-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
chainlist.d.ts
45 lines (42 loc) · 851 Bytes
/
chainlist.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
33
34
35
36
37
38
39
40
41
42
43
44
45
interface NativeCurrency {
name: string
symbol: string
decimals: number
}
interface Explorer {
name: string
url: string
icon: string
standard: string
}
interface Chain {
name: string
chainId: number
shortName: string
chain: string
// @deprecated check faucet array instead
// see issue https://github.com/izayl/evm-box/issues/11
network: string
networkId: number
nativeCurrency: NativeCurrency
rpc: string[]
faucets: string[]
infoURL: string
explorers?: Explorer[]
selectCounts?: number
}
interface AddEthereumChainParameter {
/**
* the integer ID of the chain as a hexadecimal string
*/
chainId: string
blockExplorerUrls?: string[] | Explorer[]
chainName?: string
iconUrls?: string[]
nativeCurrency?: {
name: string
symbol: string
decimals: number
}
rpcUrls?: string[]
}