Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"token-list detailed" standard #116

Open
dirtycajunrice opened this issue Mar 29, 2022 · 1 comment
Open

"token-list detailed" standard #116

dirtycajunrice opened this issue Mar 29, 2022 · 1 comment

Comments

@dirtycajunrice
Copy link

I would like to propose an extension to the token-list standard that allows more detailed information to encompass ERC1155 and ERC721. This extension would have, initially, a structure like this:

interface TokenListExtended extends TokenList {
  type: 1155 | 721 | 20
  id: number | null
}

This would allow discerning the difference between token type definitions, and allow explicit id calls to 1155s

@DannyDelott
Copy link
Contributor

From the docs:

Token Lists is a community-led initiative to improve discoverability, reputation and trust in ERC20 token lists in a manner that is inclusive, transparent, and decentralized.

We have similar issues supporting variant token standards, (eg: erc20Permit), though this can be solved w/out a schema change by adding to the tags array:

For example, USDC is an erc20Permit token, and can be modeled like this:

{ 
  address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
  tags: ['ERC20Permit'],
  decimals: 6,
  ...
}

tiendn pushed a commit to tiendn/token-lists that referenced this issue Jun 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants