"token-list detailed" standard
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
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,
...
}