-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) Modify ZRC-2 to document what the sample contract (and most imp…
…lementors, I think) did all along.
- Loading branch information
1 parent
40c00eb
commit 6f3f923
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
| ZRC | Title | Status | Type | Author | Created (yyyy-mm-dd) | Updated (yyyy-mm-dd) | | ||
| --- | ---------------------------- | ----------- | -------- | ------------------------------------------------------------------------------------ | -------------------- | -------------------- | | ||
| 2 | Standard for Fungible Tokens | Implemented | Standard | Vaivaswatha Nagaraj <[email protected]> <br> Chua Han Wen <[email protected]> | 2019-11-18 | 2020-11-12 | | ||
| 2 | Standard for Fungible Tokens | Implemented | Standard | Vaivaswatha Nagaraj <[email protected]> <br> Chua Han Wen <[email protected]> | 2019-11-18 | 2024-08-27 | | ||
|
||
## I. What are Fungible Tokens? | ||
|
||
|
@@ -125,7 +125,7 @@ transition Mint(recipient: ByStr20, amount: Uint128) | |
#### 2. Burn() (Optional) | ||
|
||
```ocaml | ||
(* @dev: Burn existing tokens. Only contract_owner can burn. *) | ||
(* @dev: Burn existing tokens. Only the owner of the tokens can burn. *) | ||
(* @param burn_account: Address of the token_owner whose balance is to decrease. *) | ||
(* @param amount: Number of tokens to be burned. *) | ||
transition Burn(burn_account: ByStr20, amount: Uint128) | ||
|
@@ -135,14 +135,13 @@ transition Burn(burn_account: ByStr20, amount: Uint128) | |
|
||
| | Name | Type | Description | | ||
| ------ | -------------- | --------- | -------------------------------------------------------- | | ||
| @param | `burn_account` | `ByStr20` | Address of the token_owner whose balance is to decrease. | | ||
| @param | `amount` | `Uint128` | Number of tokens to be burned. | | ||
|
||
**Messages sent:** | ||
|
||
| | Name | Description | Callback Parameters | | ||
| ------ | --------------------- | ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `_tag` | `BurnSuccessCallBack` | Provide the sender the status of the burn. | `burner` : `ByStr20`, `burn_account`: `ByStr20`, `amount`: `Uint128`, where `burner` is the address of the burner, `burn_account` is the address whose balance will be decreased, and `amount` is the amount of fungible tokens burned. | | ||
| `_tag` | `BurnSuccessCallBack` | Provide the sender the status of the burn. | `burner` : `ByStr20`, `amount`: `Uint128`, where `burner` is the address of the burner, and `amount` is the amount of fungible tokens burned. | | ||
|
||
**Events/Errors:** | ||
|
||
|