Skip to content

Commit

Permalink
(fix) Modify ZRC-2 to document what the sample contract (and most imp…
Browse files Browse the repository at this point in the history
…lementors, I think) did all along.
  • Loading branch information
rrw-zilliqa committed Aug 29, 2024
1 parent 40c00eb commit 6f3f923
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zrcs/zrc-2.md
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?

Expand Down Expand Up @@ -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)
Expand All @@ -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:**

Expand Down

0 comments on commit 6f3f923

Please sign in to comment.