@0xsequence/token-directory 中文文档教程
Sequence Token Directory
包含几乎所有 ERC-20、ERC-721 和 ERC-1155 代币列表的代币目录。
Token List Formats
此存储库中存在的 ERC-20 代币列表遵循 Uniswap 代币列表架构。 原始列表使用 Coingecko 的 erc20 代币列表 CoinGecko@95.1.0。 代币描述和链接取自 Coingecko 的 API。
此存储库中存在的 ERC-721 和 ERC-1155 代币列表遵循序列可收集列表架构。 原始列表是使用 Dune Analytics 通过查询 #16838。 代币描述和链接取自 OpenSea 的 API。
Add or Update Your Token
如果令牌完全丢失,或包含不正确或缺失的信息,请坚持以下程序;
- Fork the current Token Directory repository
- Add your token in the
tokens
array in the correct file in the src/registry/ folder e.g. Registring a new ERC-721 token on Mainnet should be done by adding entry here. - Open a PR comparing the main branch with your fork
- In the PR, add an explanation if this PR is for an existing token that needs to be updated
如果令牌已经是列表的一部分,注册表中的令牌对象将替换列表中的现有令牌(令牌将通过合约地址匹配)。
Formats
根据标准,您的令牌条目应遵循以下格式:
ERC20
请参阅此处 例如。
{
chainId: number, // Chain ID
address: string, // Contract address
name: string, // Name of token, 40 chars max
symbol: string, // Symbol of token, 20 chars max
decimals: number, // Number of decimals token uses
logoURI: string | null, // URI / URL for token logo
extensions: {
link: string | null, // URL of token's website
description: string | null, // Short description of token (1000 chars max)
ogImage: string | null // URL of Open Graph image of token website
}
ERC721 and ERC1155
有关 erc721 和 此处 用于 erc1155 示例。
{
chainId: number, // Chain ID
address: string, // Contract address
name: string, // Name of token, 40 chars max
standard: 'erc721' | 'erc1155', // Name of token's standard
symbol: string | null, // Symbol of token, 20 chars max
logoURI: string | null, // URI / URL for token logo
extensions: {
link: string | null, // URL of token's website
description: string | null, // Short description of token (1000 chars max)
ogImage: string | null // URL of Open Graph image of token website
}
LICENSE
麻省理工学院
Sequence Token Directory
Token directory that contains a list of almost all ERC-20, ERC-721 and ERC-1155 tokens.
Token List Formats
The ERC-20 token lists present in this repository follow the Uniswap Token List Schema. The original list was populated using Coingecko's erc20 token list CoinGecko@95.1.0. Token description and links are taken from Coingecko's API.
The ERC-721 and ERC-1155 token lists present in this repository follow the Sequence Collectible List Schema. The original list was populated using Dune Analytics via the query #16838. Token description and links were taken from OpenSea's API.
Add or Update Your Token
If a token is missing entirely, or contains incorrect or missing information, please stick to the following procedure;
- Fork the current Token Directory repository
- Add your token in the
tokens
array in the correct file in the src/registry/ folder e.g. Registring a new ERC-721 token on Mainnet should be done by adding entry here. - Open a PR comparing the main branch with your fork
- In the PR, add an explanation if this PR is for an existing token that needs to be updated
If the token is already part of the list, the token object in the registry will replace the existing token in the list (tokens will be matched by contract address).
Formats
Depending on the standard, your token entries should respect the following format:
ERC20
See here for examples.
{
chainId: number, // Chain ID
address: string, // Contract address
name: string, // Name of token, 40 chars max
symbol: string, // Symbol of token, 20 chars max
decimals: number, // Number of decimals token uses
logoURI: string | null, // URI / URL for token logo
extensions: {
link: string | null, // URL of token's website
description: string | null, // Short description of token (1000 chars max)
ogImage: string | null // URL of Open Graph image of token website
}
ERC721 and ERC1155
See here for erc721 and here for erc1155 examples.
{
chainId: number, // Chain ID
address: string, // Contract address
name: string, // Name of token, 40 chars max
standard: 'erc721' | 'erc1155', // Name of token's standard
symbol: string | null, // Symbol of token, 20 chars max
logoURI: string | null, // URI / URL for token logo
extensions: {
link: string | null, // URL of token's website
description: string | null, // Short description of token (1000 chars max)
ogImage: string | null // URL of Open Graph image of token website
}
LICENSE
MIT