UNPKG

865 BTypeScriptView Raw
1export interface TokenInfo {
2 readonly chainId: number;
3 readonly address: string;
4 readonly name: string;
5 readonly decimals: number;
6 readonly symbol: string;
7 readonly logoURI?: string;
8 readonly tags?: string[];
9 readonly extensions?: {
10 readonly [key: string]: string | number | boolean | null;
11 };
12}
13export interface Version {
14 readonly major: number;
15 readonly minor: number;
16 readonly patch: number;
17}
18export interface Tags {
19 readonly [tagId: string]: {
20 readonly name: string;
21 readonly description: string;
22 };
23}
24export interface TokenList {
25 readonly name: string;
26 readonly timestamp: string;
27 readonly version: Version;
28 readonly tokens: TokenInfo[];
29 readonly keywords?: string[];
30 readonly tags?: Tags;
31 readonly logoURI?: string;
32}