-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema-EIP1085.json
172 lines (172 loc) · 4.42 KB
/
schema-EIP1085.json
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"title": "EIP1085 standard genesis schema",
"type": "object",
"required": [
"version",
"params",
"genesis"
],
"version": "2",
"properties": {
"version": {
"type": "string",
"title": "Genesis schema version",
"default": "1",
"enum": ["1"]
},
"params": {
"$ref": "#/definitions/Params"
},
"genesis": {
"$ref": "#/definitions/Genesis"
},
"accounts": {
"$ref": "#/definitions/Accounts"
}
},
"definitions": {
"Params": {
"title": "Chain parameters",
"type": "object",
"required": [
"chainId"
],
"properties": {
"miningMethod": {
"title": "The mechanism by which blocks are mined",
"type": "string",
"enum": ["clique", "ethash", "NoProof"]
},
"frontierForkBlock": {
"title": "Block number for the Frontier fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"homesteadForkBlock": {
"title": "Block number for the Homestead fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"DAOForkBlock": {
"title": "Block number for the DAO fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"EIP150ForkBlock": {
"title": "Block number for the TangerineWhistle fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"EIP158ForkBlock": {
"title": "Block number for the SpuriousDragon fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"byzantiumForkBlock": {
"title": "Block number for the Byzantium fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"constantinopleForkBlock": {
"title": "Block number for the Constantinople fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"petersburgForkBlock": {
"title": "Block number for the Petersburg (aka ConstantinopleFix) fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"istanbulForkBlock": {
"title": "Block number for the Istanbul fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"muirglacierForkBlock": {
"title": "Block number for the Muir Glacier fork",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"chainId": {
"title": "The EIP155 chain ID",
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
}
}
},
"Genesis": {
"title": "Genesis block parameters",
"type": "object",
"required": [
"nonce",
"difficulty",
"author",
"timestamp",
"extraData",
"gasLimit"
],
"properties": {
"nonce": {
"type": "string",
"pattern": "^0x([0-9a-fA-F]{2}){8}$"
},
"difficulty": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"author": {
"title": "Corresponds to coinbase",
"type": "string",
"pattern": "^0x([0-9a-fA-F]{2}){20}$"
},
"timestamp": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"extraData": {
"type": "string",
"pattern": "^0x([0-9a-fA-F]{2})*$"
},
"gasLimit": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
}
}
},
"Accounts": {
"title": "Genesis account states",
"type": "object",
"patternProperties": {
"^0x([0-9a-fA-F]{2}){20}$": {
"$ref": "#/definitions/Account"
}
}
},
"Account": {
"title": "The state of an account",
"type": "object",
"properties": {
"balance": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"code": {
"type": "string",
"pattern": "^(0x([0-9a-fA-F]{2})+)?$"
},
"nonce": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
},
"storage": {
"patternProperties": {
"^0x([0-9a-fA-F]){40}$": {
"type": "string",
"pattern": "^0x([0-9a-fA-F])+$"
}
}
}
}
}
}
}