Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

TIP-30 Native Token Metadata Standard #68

Merged
merged 7 commits into from
Jul 13, 2022
Merged

TIP-30 Native Token Metadata Standard #68

merged 7 commits into from
Jul 13, 2022

Conversation

lzpap
Copy link
Member

@lzpap lzpap commented Mar 25, 2022

Defines a JSON schema for token metadata format and validation.

Rendered version

lzpap added 2 commits March 25, 2022 15:31
Defines a JSON schema for token metadata format and validation.
@thibault-martinez thibault-martinez changed the title TIP-29 Native Token Metadata Standrad TIP-29 Native Token Metadata Standard Mar 25, 2022
@lzpap lzpap changed the title TIP-29 Native Token Metadata Standard TIP-30 Native Token Metadata Standard Mar 25, 2022
Copy link

@nicole-obrien nicole-obrien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently have the following additional properties on the base token metadata for the network:

  • subunit: the unit of the smallest decimal value
  • useMetricPrefix: determines if this token can be displayed with prefixes for the multiples of a 1000.

Are these something we also want to have in this standard?, and then we can also make the base token adhere to this standard too.

@lzpap
Copy link
Member Author

lzpap commented Jul 1, 2022

We currently have the following additional properties on the base token metadata for the network:

  • subunit: the unit of the smallest decimal value
  • useMetricPrefix: determines if this token can be displayed with prefixes for the multiples of a 1000.

Are these something we also want to have in this standard?, and then we can also make the base token adhere to this standard too.

The base token of the network is distinct from native tokens in many respects:

  • different utility in the core protocol
  • different representation in outputs
  • even different resolution (64bit vs 256bit)
  • unit and subunit are special for the bas token because we want to give the smallest possible denomination a name, while with native tokens this is not usually the case

Therefore, I don't think we need to use the Native Token Metadata Standard explicitly for describing the Base Token of the network. With TIP-30 we were inspred by ERC20 and ERC1155 metadata conventions, let's not make our custom one mandatory. You may add these fields to your metadata if needed, at least IRC30 let's you define additional fields.

@lzpap lzpap merged commit f4e1daa into main Jul 13, 2022
@lzpap lzpap deleted the token-metadata-schema branch July 13, 2022 10:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants