forked from ethereumjs/ethereumjs-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
51 lines (46 loc) · 829 Bytes
/
types.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
46
47
48
49
50
51
export interface genesisStatesType {
names: {
[key: string]: string
}
[key: string]: {}
}
export interface chainsType {
names: {
[key: string]: string
}
[key: string]: any
}
export interface Chain {
name: string
chainId: number
networkId: number
comment: string
url: string
genesis: GenesisBlock
hardforks: Hardfork[]
bootstrapNodes: BootstrapNode[]
}
export interface GenesisBlock {
hash: string
timestamp: string | null
gasLimit: number
difficulty: number
nonce: string
extraData: string
stateRoot: string
}
export interface Hardfork {
name: string
block: number | null
consensus: string
finality: any
}
export interface BootstrapNode {
ip: string
port: number | string
network?: string
chainId?: number
id: string
location: string
comment: string
}