Skip to content

Commit bda9f6b

Browse files
Update 0064 add render type for Jetton (#98)
* Update 0064-token-data-standard.md Added render_type and amount_style for jettons * Update 0064-token-data-standard.md * Update 0064-token-data-standard.md Updated description for render_type and amount_style
1 parent 1fbc23c commit bda9f6b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

text/0064-token-data-standard.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ Note, that while TL-B scheme does not constrain bit size of each chunk it is exp
131131
6. `symbol` - Optional. UTF8 string. The symbol of the token - e.g. "XMPL". Used in the form "You received 99 XMPL".
132132
7. `decimals` - Optional. If not specified, 9 is used by default. UTF8 encoded string with number from 0 to 255. The number of decimals the token uses - e.g. 8, means to divide the token amount by 100000000 to get its user representation, while 0 means that tokens are indivisible: user representation of token number should correspond to token amount in wallet-contract storage.
133133
In case you specify decimals, it is highly recommended that you specify this parameter on-chain and that the smart contract code ensures that this parameter is immutable.
134+
8. `amount_style` - Optional. Needed by external applications to understand which format for displaying the number of jettons.
135+
- "n" - number of jettons (default value). If the user has 100 tokens with decimals 0, then display that user has 100 tokens
136+
- "n-of-total" - the number of jettons out of the total number of issued jettons. For example, totalSupply Jetton = 1000. A user has 100 jettons in the jetton wallet. For example must be displayed in the user's wallet as 100 of 1000 or in any other textual or graphical way to demonstrate the particular from the general.
137+
- "%" - percentage of jettons from the total number of issued jettons. For example, totalSupply Jetton = 1000. A user has 100 jettons in the jetton wallet. For example it should be displayed in the user's wallet as 10%.
138+
9. `render_type` - Optional. Needed by external applications to understand which group the jetton belongs to and how to display it.
139+
- "currency" - display as currency (default value).
140+
- "game" - display for games. It should be displayed as NFT, but at the same time display the number of jettons considering the `amount_style`
134141

135142
# Drawbacks
136143

@@ -161,4 +168,6 @@ None
161168

162169
* 14 May 2022 - the standard is now used not only for NFT, but for all tokens in the TON. Added section "Jetton metadata attributes".
163170

164-
* 31 Aug 2022 - added note about data encoded in TL-B schema in "Data serialization" paragraph.
171+
* 31 Aug 2022 - added note about data encoded in TL-B schema in "Data serialization" paragraph.
172+
173+
* 14 Oct 2022 - render_type and amount_style for Jetton metadata

0 commit comments

Comments
 (0)