-
Notifications
You must be signed in to change notification settings - Fork 16
Jettons mini-metadata standart #79
Comments
So from first glance separate standard for mini-metadata looks excessive itself, but probably i missed some nuance? |
@EmelyanenkoK Thanks for the quick response. For example, We have several ways in creating, a new standard/sub-standard that I can see:
The first option is the easiest, the others require more complex compatibility changes. I ask for the community's opinion on this, so that we can decide as early as possible which way we should go. After that I can prepare a new description of the future standard(or sub-standard). |
I think 1 way is better: |
#64 updated |
Summary
I would like to propose a jettons metadata standard that describes the content structure(in TL-B) and get methods of the root token contract (minter). This standard describes how you can save the necessary data, occupying the smallest possible bit size.
Motivation
The current
Fungible tokens (Jettons) standard
offers the useNFT Data Standard
forjetton_content
cell. Unfortunately, different variations of on-chain in this standard take up a lot of space, and completely off-chain storage can't ensure proper preservation of data. In the TON blockchain, we pay storage fee for every bit, so we have to take the data size seriously.Specification
*symbol_size
uint byte size of future ASCII string (max value is 2^3-1, i.e. 7)
*symbol
ASCII string, token symbol, max value:56 bit (i.e. 7 bytes ---> ↑)
*name_size
uint byte size of future ASCII string (max value is 2^4-1, i.e. 15)
*name
ASCII string, token name, max value:120 bit (i.e. 15 bytes ---> ↑)
icon_uri
1023 (3+4+56+120)
(i.e.840 bit
,105 bytes
); may take more space if symbol and name< (56+120)
bit (i.e.< 176 bit
)Note: fields marked with * are required.
TL-B scheme:
The constructor does not use values with a size of 1 byte. It makes absolutely no sense. In this case, the constructor is
$11
. The constructor is necessary so that when deserializing data, it can be understood by what standard we have recorded the Jetton data.Minter
token_info
get method must to returnsymbol
andname
in integer representation, as wellicon_uri
as slice:The text was updated successfully, but these errors were encountered: