跳至正文
Wener Notes

Token List

约 1 分钟阅读
TypeScript
type ExtensionValue = string | number | boolean | null;

export interface TokenInfo {
  readonly chainId: number;
  readonly address: string;
  readonly name: string;
  readonly decimals: number;
  readonly symbol: string;
  readonly logoURI?: string;
  readonly tags?: string[];
  readonly extensions?: {
    readonly [key: string]: { [key: string]: ExtensionValue } | ExtensionValue;
  };
}

export interface Version {
  readonly major: number;
  readonly minor: number;
  readonly patch: number;
}

export interface Tags {
  readonly [tagId: string]: {
    readonly name: string;
    readonly description: string;
  };
}

export interface TokenList {
  readonly name: string;
  readonly timestamp: string;
  readonly version: Version;
  readonly tokens: TokenInfo[];
  readonly keywords?: string[];
  readonly tags?: Tags;
  readonly logoURI?: string;
}

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • Blockchain Awesome
    笔记 · TokenList

    Wallet · MetaMask · WalletConnect · Coinbase · ImToken · TrustWallet · https://coinmetrics.io/ · https://coinmarketcap.com/

参考资料

GitHub1 条
其他外链2 条
最近更新commit 856fd6c编辑