-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
32 lines (32 loc) · 865 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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]: string | number | boolean | null;
};
}
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;
}