UNPKG

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