genlayer-js 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/chains/index.cjs +2 -2
- package/dist/chains/index.d.cts +1 -1
- package/dist/chains/index.d.ts +1 -1
- package/dist/chains/index.js +3 -3
- package/dist/chunk-4FVQ3G7J.js +8039 -0
- package/dist/{chunk-RS7NCSOQ.js → chunk-GACCNOPJ.js} +7 -1
- package/dist/{chunk-AZSICIZ3.cjs → chunk-H4ZYXVV2.cjs} +7 -1
- package/dist/{chunk-FPFZLPXI.cjs → chunk-SMCXL465.cjs} +3996 -13
- package/dist/index-B52a6DSr.d.cts +13 -0
- package/dist/{index-kDM_9wW1.d.cts → index-B_gpaVzJ.d.cts} +6 -2
- package/dist/index-DNvW8slT.d.ts +13 -0
- package/dist/{index-DvSbRKD5.d.ts → index-to6d0Hzj.d.ts} +6 -2
- package/dist/index.cjs +4118 -41
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4097 -20
- package/dist/types/index.cjs +4 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +3 -1
- package/package.json +1 -1
- package/src/chains/actions.ts +2 -2
- package/src/chains/index.ts +1 -1
- package/src/chains/localnet.ts +3986 -3
- package/{dist/chunk-7YZQQWJZ.js → src/chains/studionet.ts} +899 -940
- package/src/chains/{testnet.ts → testnetAsimov.ts} +5 -5
- package/src/contracts/actions.ts +93 -4
- package/src/transactions/actions.ts +14 -3
- package/src/types/network.ts +1 -1
- package/src/types/transactions.ts +5 -0
- package/src/wallet/connect.ts +6 -2
- package/dist/index-BM9hOtGg.d.cts +0 -13
- package/dist/index-C7Colsnk.d.ts +0 -13
|
@@ -1,172 +1,135 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-MLKGABMK.js";
|
|
1
|
+
import {Address, defineChain} from "viem";
|
|
2
|
+
import {GenLayerChain} from "@/types";
|
|
4
3
|
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
// src/chains/localnet.ts
|
|
13
|
-
import { defineChain } from "viem";
|
|
14
|
-
var SIMULATOR_JSON_RPC_URL = "http://127.0.0.1:4000/api";
|
|
15
|
-
var localnet = defineChain({
|
|
16
|
-
id: 61999,
|
|
17
|
-
name: "Genlayer Localnet",
|
|
18
|
-
rpcUrls: {
|
|
19
|
-
default: {
|
|
20
|
-
http: [SIMULATOR_JSON_RPC_URL]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
nativeCurrency: {
|
|
24
|
-
name: "GEN Token",
|
|
25
|
-
symbol: "GEN",
|
|
26
|
-
decimals: 18
|
|
27
|
-
},
|
|
28
|
-
blockExplorers: {
|
|
29
|
-
default: {
|
|
30
|
-
name: "GenLayer Explorer",
|
|
31
|
-
url: SIMULATOR_JSON_RPC_URL
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
testnet: true,
|
|
35
|
-
consensusMainContract: null,
|
|
36
|
-
consensusDataContract: null,
|
|
37
|
-
defaultNumberOfInitialValidators: 5,
|
|
38
|
-
defaultConsensusMaxRotations: 3
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// src/chains/testnet.ts
|
|
42
|
-
import { defineChain as defineChain2 } from "viem";
|
|
43
|
-
var TESTNET_JSON_RPC_URL = " http://34.32.169.58:9151";
|
|
44
|
-
var CONSENSUS_MAIN_CONTRACT = {
|
|
45
|
-
address: "0x174782d5819dD26F3d6967c995EE43db7DB824F8",
|
|
4
|
+
// chains/localnet.ts
|
|
5
|
+
const SIMULATOR_JSON_RPC_URL = "https://studio.genlayer.com/api";
|
|
6
|
+
const EXPLORER_URL = "https://genlayer-explorer.vercel.app";
|
|
7
|
+
const CONSENSUS_MAIN_CONTRACT = {
|
|
8
|
+
address: "0xb7278A61aa25c888815aFC32Ad3cC52fF24fE575" as Address,
|
|
46
9
|
abi: [
|
|
47
10
|
{
|
|
48
11
|
inputs: [],
|
|
49
12
|
name: "AccessControlBadConfirmation",
|
|
50
|
-
type: "error"
|
|
13
|
+
type: "error",
|
|
51
14
|
},
|
|
52
15
|
{
|
|
53
16
|
inputs: [
|
|
54
17
|
{
|
|
55
18
|
internalType: "address",
|
|
56
19
|
name: "account",
|
|
57
|
-
type: "address"
|
|
20
|
+
type: "address",
|
|
58
21
|
},
|
|
59
22
|
{
|
|
60
23
|
internalType: "bytes32",
|
|
61
24
|
name: "neededRole",
|
|
62
|
-
type: "bytes32"
|
|
63
|
-
}
|
|
25
|
+
type: "bytes32",
|
|
26
|
+
},
|
|
64
27
|
],
|
|
65
28
|
name: "AccessControlUnauthorizedAccount",
|
|
66
|
-
type: "error"
|
|
29
|
+
type: "error",
|
|
67
30
|
},
|
|
68
31
|
{
|
|
69
32
|
inputs: [],
|
|
70
33
|
name: "CallerNotMessages",
|
|
71
|
-
type: "error"
|
|
34
|
+
type: "error",
|
|
72
35
|
},
|
|
73
36
|
{
|
|
74
37
|
inputs: [],
|
|
75
38
|
name: "CanNotAppeal",
|
|
76
|
-
type: "error"
|
|
39
|
+
type: "error",
|
|
77
40
|
},
|
|
78
41
|
{
|
|
79
42
|
inputs: [],
|
|
80
43
|
name: "EmptyTransaction",
|
|
81
|
-
type: "error"
|
|
44
|
+
type: "error",
|
|
82
45
|
},
|
|
83
46
|
{
|
|
84
47
|
inputs: [],
|
|
85
48
|
name: "FinalizationNotAllowed",
|
|
86
|
-
type: "error"
|
|
49
|
+
type: "error",
|
|
87
50
|
},
|
|
88
51
|
{
|
|
89
52
|
inputs: [],
|
|
90
53
|
name: "InvalidAddress",
|
|
91
|
-
type: "error"
|
|
54
|
+
type: "error",
|
|
92
55
|
},
|
|
93
56
|
{
|
|
94
57
|
inputs: [],
|
|
95
58
|
name: "InvalidGhostContract",
|
|
96
|
-
type: "error"
|
|
59
|
+
type: "error",
|
|
97
60
|
},
|
|
98
61
|
{
|
|
99
62
|
inputs: [],
|
|
100
63
|
name: "InvalidInitialization",
|
|
101
|
-
type: "error"
|
|
64
|
+
type: "error",
|
|
102
65
|
},
|
|
103
66
|
{
|
|
104
67
|
inputs: [],
|
|
105
68
|
name: "InvalidVote",
|
|
106
|
-
type: "error"
|
|
69
|
+
type: "error",
|
|
107
70
|
},
|
|
108
71
|
{
|
|
109
72
|
inputs: [],
|
|
110
73
|
name: "MaxNumOfIterationsInPendingQueueReached",
|
|
111
|
-
type: "error"
|
|
74
|
+
type: "error",
|
|
112
75
|
},
|
|
113
76
|
{
|
|
114
77
|
inputs: [
|
|
115
78
|
{
|
|
116
79
|
internalType: "uint256",
|
|
117
80
|
name: "numOfMessages",
|
|
118
|
-
type: "uint256"
|
|
81
|
+
type: "uint256",
|
|
119
82
|
},
|
|
120
83
|
{
|
|
121
84
|
internalType: "uint256",
|
|
122
85
|
name: "maxAllocatedMessages",
|
|
123
|
-
type: "uint256"
|
|
124
|
-
}
|
|
86
|
+
type: "uint256",
|
|
87
|
+
},
|
|
125
88
|
],
|
|
126
89
|
name: "MaxNumOfMessagesExceeded",
|
|
127
|
-
type: "error"
|
|
90
|
+
type: "error",
|
|
128
91
|
},
|
|
129
92
|
{
|
|
130
93
|
inputs: [],
|
|
131
94
|
name: "NonGenVMContract",
|
|
132
|
-
type: "error"
|
|
95
|
+
type: "error",
|
|
133
96
|
},
|
|
134
97
|
{
|
|
135
98
|
inputs: [],
|
|
136
99
|
name: "NotInitializing",
|
|
137
|
-
type: "error"
|
|
100
|
+
type: "error",
|
|
138
101
|
},
|
|
139
102
|
{
|
|
140
103
|
inputs: [
|
|
141
104
|
{
|
|
142
105
|
internalType: "address",
|
|
143
106
|
name: "owner",
|
|
144
|
-
type: "address"
|
|
145
|
-
}
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
146
109
|
],
|
|
147
110
|
name: "OwnableInvalidOwner",
|
|
148
|
-
type: "error"
|
|
111
|
+
type: "error",
|
|
149
112
|
},
|
|
150
113
|
{
|
|
151
114
|
inputs: [
|
|
152
115
|
{
|
|
153
116
|
internalType: "address",
|
|
154
117
|
name: "account",
|
|
155
|
-
type: "address"
|
|
156
|
-
}
|
|
118
|
+
type: "address",
|
|
119
|
+
},
|
|
157
120
|
],
|
|
158
121
|
name: "OwnableUnauthorizedAccount",
|
|
159
|
-
type: "error"
|
|
122
|
+
type: "error",
|
|
160
123
|
},
|
|
161
124
|
{
|
|
162
125
|
inputs: [],
|
|
163
126
|
name: "ReentrancyGuardReentrantCall",
|
|
164
|
-
type: "error"
|
|
127
|
+
type: "error",
|
|
165
128
|
},
|
|
166
129
|
{
|
|
167
130
|
inputs: [],
|
|
168
131
|
name: "TransactionNotAtPendingQueueHead",
|
|
169
|
-
type: "error"
|
|
132
|
+
type: "error",
|
|
170
133
|
},
|
|
171
134
|
{
|
|
172
135
|
anonymous: false,
|
|
@@ -175,29 +138,29 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
175
138
|
indexed: true,
|
|
176
139
|
internalType: "bytes32",
|
|
177
140
|
name: "txId",
|
|
178
|
-
type: "bytes32"
|
|
141
|
+
type: "bytes32",
|
|
179
142
|
},
|
|
180
143
|
{
|
|
181
144
|
indexed: true,
|
|
182
145
|
internalType: "address",
|
|
183
146
|
name: "appealer",
|
|
184
|
-
type: "address"
|
|
147
|
+
type: "address",
|
|
185
148
|
},
|
|
186
149
|
{
|
|
187
150
|
indexed: false,
|
|
188
151
|
internalType: "uint256",
|
|
189
152
|
name: "appealBond",
|
|
190
|
-
type: "uint256"
|
|
153
|
+
type: "uint256",
|
|
191
154
|
},
|
|
192
155
|
{
|
|
193
156
|
indexed: false,
|
|
194
157
|
internalType: "address[]",
|
|
195
158
|
name: "appealValidators",
|
|
196
|
-
type: "address[]"
|
|
197
|
-
}
|
|
159
|
+
type: "address[]",
|
|
160
|
+
},
|
|
198
161
|
],
|
|
199
162
|
name: "AppealStarted",
|
|
200
|
-
type: "event"
|
|
163
|
+
type: "event",
|
|
201
164
|
},
|
|
202
165
|
{
|
|
203
166
|
anonymous: false,
|
|
@@ -206,23 +169,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
206
169
|
indexed: true,
|
|
207
170
|
internalType: "bytes32",
|
|
208
171
|
name: "txId",
|
|
209
|
-
type: "bytes32"
|
|
172
|
+
type: "bytes32",
|
|
210
173
|
},
|
|
211
174
|
{
|
|
212
175
|
indexed: true,
|
|
213
176
|
internalType: "address",
|
|
214
177
|
name: "recipient",
|
|
215
|
-
type: "address"
|
|
178
|
+
type: "address",
|
|
216
179
|
},
|
|
217
180
|
{
|
|
218
181
|
indexed: false,
|
|
219
182
|
internalType: "bytes",
|
|
220
183
|
name: "data",
|
|
221
|
-
type: "bytes"
|
|
222
|
-
}
|
|
184
|
+
type: "bytes",
|
|
185
|
+
},
|
|
223
186
|
],
|
|
224
187
|
name: "ErrorMessage",
|
|
225
|
-
type: "event"
|
|
188
|
+
type: "event",
|
|
226
189
|
},
|
|
227
190
|
{
|
|
228
191
|
anonymous: false,
|
|
@@ -231,53 +194,53 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
231
194
|
indexed: false,
|
|
232
195
|
internalType: "address",
|
|
233
196
|
name: "ghostFactory",
|
|
234
|
-
type: "address"
|
|
197
|
+
type: "address",
|
|
235
198
|
},
|
|
236
199
|
{
|
|
237
200
|
indexed: false,
|
|
238
201
|
internalType: "address",
|
|
239
202
|
name: "genManager",
|
|
240
|
-
type: "address"
|
|
203
|
+
type: "address",
|
|
241
204
|
},
|
|
242
205
|
{
|
|
243
206
|
indexed: false,
|
|
244
207
|
internalType: "address",
|
|
245
208
|
name: "genTransactions",
|
|
246
|
-
type: "address"
|
|
209
|
+
type: "address",
|
|
247
210
|
},
|
|
248
211
|
{
|
|
249
212
|
indexed: false,
|
|
250
213
|
internalType: "address",
|
|
251
214
|
name: "genQueue",
|
|
252
|
-
type: "address"
|
|
215
|
+
type: "address",
|
|
253
216
|
},
|
|
254
217
|
{
|
|
255
218
|
indexed: false,
|
|
256
219
|
internalType: "address",
|
|
257
220
|
name: "genStaking",
|
|
258
|
-
type: "address"
|
|
221
|
+
type: "address",
|
|
259
222
|
},
|
|
260
223
|
{
|
|
261
224
|
indexed: false,
|
|
262
225
|
internalType: "address",
|
|
263
226
|
name: "genMessages",
|
|
264
|
-
type: "address"
|
|
227
|
+
type: "address",
|
|
265
228
|
},
|
|
266
229
|
{
|
|
267
230
|
indexed: false,
|
|
268
231
|
internalType: "address",
|
|
269
232
|
name: "idleness",
|
|
270
|
-
type: "address"
|
|
233
|
+
type: "address",
|
|
271
234
|
},
|
|
272
235
|
{
|
|
273
236
|
indexed: false,
|
|
274
237
|
internalType: "address",
|
|
275
238
|
name: "tribunalAppeal",
|
|
276
|
-
type: "address"
|
|
277
|
-
}
|
|
239
|
+
type: "address",
|
|
240
|
+
},
|
|
278
241
|
],
|
|
279
242
|
name: "ExternalContractsSet",
|
|
280
|
-
type: "event"
|
|
243
|
+
type: "event",
|
|
281
244
|
},
|
|
282
245
|
{
|
|
283
246
|
anonymous: false,
|
|
@@ -286,11 +249,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
286
249
|
indexed: false,
|
|
287
250
|
internalType: "uint64",
|
|
288
251
|
name: "version",
|
|
289
|
-
type: "uint64"
|
|
290
|
-
}
|
|
252
|
+
type: "uint64",
|
|
253
|
+
},
|
|
291
254
|
],
|
|
292
255
|
name: "Initialized",
|
|
293
|
-
type: "event"
|
|
256
|
+
type: "event",
|
|
294
257
|
},
|
|
295
258
|
{
|
|
296
259
|
anonymous: false,
|
|
@@ -299,23 +262,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
299
262
|
indexed: true,
|
|
300
263
|
internalType: "bytes32",
|
|
301
264
|
name: "txId",
|
|
302
|
-
type: "bytes32"
|
|
265
|
+
type: "bytes32",
|
|
303
266
|
},
|
|
304
267
|
{
|
|
305
268
|
indexed: true,
|
|
306
269
|
internalType: "address",
|
|
307
270
|
name: "recipient",
|
|
308
|
-
type: "address"
|
|
271
|
+
type: "address",
|
|
309
272
|
},
|
|
310
273
|
{
|
|
311
274
|
indexed: true,
|
|
312
275
|
internalType: "address",
|
|
313
276
|
name: "activator",
|
|
314
|
-
type: "address"
|
|
315
|
-
}
|
|
277
|
+
type: "address",
|
|
278
|
+
},
|
|
316
279
|
],
|
|
317
280
|
name: "InternalMessageProcessed",
|
|
318
|
-
type: "event"
|
|
281
|
+
type: "event",
|
|
319
282
|
},
|
|
320
283
|
{
|
|
321
284
|
anonymous: false,
|
|
@@ -324,23 +287,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
324
287
|
indexed: true,
|
|
325
288
|
internalType: "bytes32",
|
|
326
289
|
name: "txId",
|
|
327
|
-
type: "bytes32"
|
|
290
|
+
type: "bytes32",
|
|
328
291
|
},
|
|
329
292
|
{
|
|
330
293
|
indexed: true,
|
|
331
294
|
internalType: "address",
|
|
332
295
|
name: "recipient",
|
|
333
|
-
type: "address"
|
|
296
|
+
type: "address",
|
|
334
297
|
},
|
|
335
298
|
{
|
|
336
299
|
indexed: true,
|
|
337
300
|
internalType: "address",
|
|
338
301
|
name: "activator",
|
|
339
|
-
type: "address"
|
|
340
|
-
}
|
|
302
|
+
type: "address",
|
|
303
|
+
},
|
|
341
304
|
],
|
|
342
305
|
name: "NewTransaction",
|
|
343
|
-
type: "event"
|
|
306
|
+
type: "event",
|
|
344
307
|
},
|
|
345
308
|
{
|
|
346
309
|
anonymous: false,
|
|
@@ -349,17 +312,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
349
312
|
indexed: true,
|
|
350
313
|
internalType: "address",
|
|
351
314
|
name: "previousOwner",
|
|
352
|
-
type: "address"
|
|
315
|
+
type: "address",
|
|
353
316
|
},
|
|
354
317
|
{
|
|
355
318
|
indexed: true,
|
|
356
319
|
internalType: "address",
|
|
357
320
|
name: "newOwner",
|
|
358
|
-
type: "address"
|
|
359
|
-
}
|
|
321
|
+
type: "address",
|
|
322
|
+
},
|
|
360
323
|
],
|
|
361
324
|
name: "OwnershipTransferStarted",
|
|
362
|
-
type: "event"
|
|
325
|
+
type: "event",
|
|
363
326
|
},
|
|
364
327
|
{
|
|
365
328
|
anonymous: false,
|
|
@@ -368,17 +331,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
368
331
|
indexed: true,
|
|
369
332
|
internalType: "address",
|
|
370
333
|
name: "previousOwner",
|
|
371
|
-
type: "address"
|
|
334
|
+
type: "address",
|
|
372
335
|
},
|
|
373
336
|
{
|
|
374
337
|
indexed: true,
|
|
375
338
|
internalType: "address",
|
|
376
339
|
name: "newOwner",
|
|
377
|
-
type: "address"
|
|
378
|
-
}
|
|
340
|
+
type: "address",
|
|
341
|
+
},
|
|
379
342
|
],
|
|
380
343
|
name: "OwnershipTransferred",
|
|
381
|
-
type: "event"
|
|
344
|
+
type: "event",
|
|
382
345
|
},
|
|
383
346
|
{
|
|
384
347
|
anonymous: false,
|
|
@@ -387,23 +350,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
387
350
|
indexed: true,
|
|
388
351
|
internalType: "bytes32",
|
|
389
352
|
name: "role",
|
|
390
|
-
type: "bytes32"
|
|
353
|
+
type: "bytes32",
|
|
391
354
|
},
|
|
392
355
|
{
|
|
393
356
|
indexed: true,
|
|
394
357
|
internalType: "bytes32",
|
|
395
358
|
name: "previousAdminRole",
|
|
396
|
-
type: "bytes32"
|
|
359
|
+
type: "bytes32",
|
|
397
360
|
},
|
|
398
361
|
{
|
|
399
362
|
indexed: true,
|
|
400
363
|
internalType: "bytes32",
|
|
401
364
|
name: "newAdminRole",
|
|
402
|
-
type: "bytes32"
|
|
403
|
-
}
|
|
365
|
+
type: "bytes32",
|
|
366
|
+
},
|
|
404
367
|
],
|
|
405
368
|
name: "RoleAdminChanged",
|
|
406
|
-
type: "event"
|
|
369
|
+
type: "event",
|
|
407
370
|
},
|
|
408
371
|
{
|
|
409
372
|
anonymous: false,
|
|
@@ -412,23 +375,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
412
375
|
indexed: true,
|
|
413
376
|
internalType: "bytes32",
|
|
414
377
|
name: "role",
|
|
415
|
-
type: "bytes32"
|
|
378
|
+
type: "bytes32",
|
|
416
379
|
},
|
|
417
380
|
{
|
|
418
381
|
indexed: true,
|
|
419
382
|
internalType: "address",
|
|
420
383
|
name: "account",
|
|
421
|
-
type: "address"
|
|
384
|
+
type: "address",
|
|
422
385
|
},
|
|
423
386
|
{
|
|
424
387
|
indexed: true,
|
|
425
388
|
internalType: "address",
|
|
426
389
|
name: "sender",
|
|
427
|
-
type: "address"
|
|
428
|
-
}
|
|
390
|
+
type: "address",
|
|
391
|
+
},
|
|
429
392
|
],
|
|
430
393
|
name: "RoleGranted",
|
|
431
|
-
type: "event"
|
|
394
|
+
type: "event",
|
|
432
395
|
},
|
|
433
396
|
{
|
|
434
397
|
anonymous: false,
|
|
@@ -437,23 +400,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
437
400
|
indexed: true,
|
|
438
401
|
internalType: "bytes32",
|
|
439
402
|
name: "role",
|
|
440
|
-
type: "bytes32"
|
|
403
|
+
type: "bytes32",
|
|
441
404
|
},
|
|
442
405
|
{
|
|
443
406
|
indexed: true,
|
|
444
407
|
internalType: "address",
|
|
445
408
|
name: "account",
|
|
446
|
-
type: "address"
|
|
409
|
+
type: "address",
|
|
447
410
|
},
|
|
448
411
|
{
|
|
449
412
|
indexed: true,
|
|
450
413
|
internalType: "address",
|
|
451
414
|
name: "sender",
|
|
452
|
-
type: "address"
|
|
453
|
-
}
|
|
415
|
+
type: "address",
|
|
416
|
+
},
|
|
454
417
|
],
|
|
455
418
|
name: "RoleRevoked",
|
|
456
|
-
type: "event"
|
|
419
|
+
type: "event",
|
|
457
420
|
},
|
|
458
421
|
{
|
|
459
422
|
anonymous: false,
|
|
@@ -462,17 +425,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
462
425
|
indexed: true,
|
|
463
426
|
internalType: "bytes32",
|
|
464
427
|
name: "txId",
|
|
465
|
-
type: "bytes32"
|
|
428
|
+
type: "bytes32",
|
|
466
429
|
},
|
|
467
430
|
{
|
|
468
431
|
indexed: true,
|
|
469
432
|
internalType: "address",
|
|
470
433
|
name: "sender",
|
|
471
|
-
type: "address"
|
|
472
|
-
}
|
|
434
|
+
type: "address",
|
|
435
|
+
},
|
|
473
436
|
],
|
|
474
437
|
name: "SlashAppealSubmitted",
|
|
475
|
-
type: "event"
|
|
438
|
+
type: "event",
|
|
476
439
|
},
|
|
477
440
|
{
|
|
478
441
|
anonymous: false,
|
|
@@ -481,11 +444,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
481
444
|
indexed: true,
|
|
482
445
|
internalType: "bytes32",
|
|
483
446
|
name: "tx_id",
|
|
484
|
-
type: "bytes32"
|
|
485
|
-
}
|
|
447
|
+
type: "bytes32",
|
|
448
|
+
},
|
|
486
449
|
],
|
|
487
450
|
name: "TransactionAccepted",
|
|
488
|
-
type: "event"
|
|
451
|
+
type: "event",
|
|
489
452
|
},
|
|
490
453
|
{
|
|
491
454
|
anonymous: false,
|
|
@@ -494,17 +457,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
494
457
|
indexed: true,
|
|
495
458
|
internalType: "bytes32",
|
|
496
459
|
name: "txId",
|
|
497
|
-
type: "bytes32"
|
|
460
|
+
type: "bytes32",
|
|
498
461
|
},
|
|
499
462
|
{
|
|
500
463
|
indexed: true,
|
|
501
464
|
internalType: "address",
|
|
502
465
|
name: "leader",
|
|
503
|
-
type: "address"
|
|
504
|
-
}
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
505
468
|
],
|
|
506
469
|
name: "TransactionActivated",
|
|
507
|
-
type: "event"
|
|
470
|
+
type: "event",
|
|
508
471
|
},
|
|
509
472
|
{
|
|
510
473
|
anonymous: false,
|
|
@@ -513,17 +476,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
513
476
|
indexed: true,
|
|
514
477
|
internalType: "uint256",
|
|
515
478
|
name: "batchId",
|
|
516
|
-
type: "uint256"
|
|
479
|
+
type: "uint256",
|
|
517
480
|
},
|
|
518
481
|
{
|
|
519
482
|
indexed: false,
|
|
520
483
|
internalType: "address[]",
|
|
521
484
|
name: "validators",
|
|
522
|
-
type: "address[]"
|
|
523
|
-
}
|
|
485
|
+
type: "address[]",
|
|
486
|
+
},
|
|
524
487
|
],
|
|
525
488
|
name: "TransactionActivatedValidators",
|
|
526
|
-
type: "event"
|
|
489
|
+
type: "event",
|
|
527
490
|
},
|
|
528
491
|
{
|
|
529
492
|
anonymous: false,
|
|
@@ -532,17 +495,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
532
495
|
indexed: true,
|
|
533
496
|
internalType: "bytes32",
|
|
534
497
|
name: "txId",
|
|
535
|
-
type: "bytes32"
|
|
498
|
+
type: "bytes32",
|
|
536
499
|
},
|
|
537
500
|
{
|
|
538
501
|
indexed: true,
|
|
539
502
|
internalType: "address",
|
|
540
503
|
name: "sender",
|
|
541
|
-
type: "address"
|
|
542
|
-
}
|
|
504
|
+
type: "address",
|
|
505
|
+
},
|
|
543
506
|
],
|
|
544
507
|
name: "TransactionCancelled",
|
|
545
|
-
type: "event"
|
|
508
|
+
type: "event",
|
|
546
509
|
},
|
|
547
510
|
{
|
|
548
511
|
anonymous: false,
|
|
@@ -551,11 +514,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
551
514
|
indexed: true,
|
|
552
515
|
internalType: "bytes32",
|
|
553
516
|
name: "tx_id",
|
|
554
|
-
type: "bytes32"
|
|
555
|
-
}
|
|
517
|
+
type: "bytes32",
|
|
518
|
+
},
|
|
556
519
|
],
|
|
557
520
|
name: "TransactionFinalized",
|
|
558
|
-
type: "event"
|
|
521
|
+
type: "event",
|
|
559
522
|
},
|
|
560
523
|
{
|
|
561
524
|
anonymous: false,
|
|
@@ -564,23 +527,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
564
527
|
indexed: true,
|
|
565
528
|
internalType: "bytes32",
|
|
566
529
|
name: "txId",
|
|
567
|
-
type: "bytes32"
|
|
530
|
+
type: "bytes32",
|
|
568
531
|
},
|
|
569
532
|
{
|
|
570
533
|
indexed: true,
|
|
571
534
|
internalType: "address",
|
|
572
535
|
name: "oldValidator",
|
|
573
|
-
type: "address"
|
|
536
|
+
type: "address",
|
|
574
537
|
},
|
|
575
538
|
{
|
|
576
539
|
indexed: true,
|
|
577
540
|
internalType: "address",
|
|
578
541
|
name: "newValidator",
|
|
579
|
-
type: "address"
|
|
580
|
-
}
|
|
542
|
+
type: "address",
|
|
543
|
+
},
|
|
581
544
|
],
|
|
582
545
|
name: "TransactionIdleValidatorReplaced",
|
|
583
|
-
type: "event"
|
|
546
|
+
type: "event",
|
|
584
547
|
},
|
|
585
548
|
{
|
|
586
549
|
anonymous: false,
|
|
@@ -589,17 +552,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
589
552
|
indexed: true,
|
|
590
553
|
internalType: "bytes32",
|
|
591
554
|
name: "txId",
|
|
592
|
-
type: "bytes32"
|
|
555
|
+
type: "bytes32",
|
|
593
556
|
},
|
|
594
557
|
{
|
|
595
558
|
indexed: true,
|
|
596
559
|
internalType: "uint256",
|
|
597
560
|
name: "validatorIndex",
|
|
598
|
-
type: "uint256"
|
|
599
|
-
}
|
|
561
|
+
type: "uint256",
|
|
562
|
+
},
|
|
600
563
|
],
|
|
601
564
|
name: "TransactionIdleValidatorReplacementFailed",
|
|
602
|
-
type: "event"
|
|
565
|
+
type: "event",
|
|
603
566
|
},
|
|
604
567
|
{
|
|
605
568
|
anonymous: false,
|
|
@@ -608,17 +571,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
608
571
|
indexed: true,
|
|
609
572
|
internalType: "bytes32",
|
|
610
573
|
name: "txId",
|
|
611
|
-
type: "bytes32"
|
|
574
|
+
type: "bytes32",
|
|
612
575
|
},
|
|
613
576
|
{
|
|
614
577
|
indexed: true,
|
|
615
578
|
internalType: "address",
|
|
616
579
|
name: "newLeader",
|
|
617
|
-
type: "address"
|
|
618
|
-
}
|
|
580
|
+
type: "address",
|
|
581
|
+
},
|
|
619
582
|
],
|
|
620
583
|
name: "TransactionLeaderRotated",
|
|
621
|
-
type: "event"
|
|
584
|
+
type: "event",
|
|
622
585
|
},
|
|
623
586
|
{
|
|
624
587
|
anonymous: false,
|
|
@@ -627,11 +590,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
627
590
|
indexed: true,
|
|
628
591
|
internalType: "bytes32",
|
|
629
592
|
name: "tx_id",
|
|
630
|
-
type: "bytes32"
|
|
631
|
-
}
|
|
593
|
+
type: "bytes32",
|
|
594
|
+
},
|
|
632
595
|
],
|
|
633
596
|
name: "TransactionLeaderTimeout",
|
|
634
|
-
type: "event"
|
|
597
|
+
type: "event",
|
|
635
598
|
},
|
|
636
599
|
{
|
|
637
600
|
anonymous: false,
|
|
@@ -640,11 +603,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
640
603
|
indexed: false,
|
|
641
604
|
internalType: "bytes32[]",
|
|
642
605
|
name: "tx_ids",
|
|
643
|
-
type: "bytes32[]"
|
|
644
|
-
}
|
|
606
|
+
type: "bytes32[]",
|
|
607
|
+
},
|
|
645
608
|
],
|
|
646
609
|
name: "TransactionNeedsRecomputation",
|
|
647
|
-
type: "event"
|
|
610
|
+
type: "event",
|
|
648
611
|
},
|
|
649
612
|
{
|
|
650
613
|
anonymous: false,
|
|
@@ -653,17 +616,17 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
653
616
|
indexed: true,
|
|
654
617
|
internalType: "bytes32",
|
|
655
618
|
name: "tx_id",
|
|
656
|
-
type: "bytes32"
|
|
619
|
+
type: "bytes32",
|
|
657
620
|
},
|
|
658
621
|
{
|
|
659
622
|
indexed: false,
|
|
660
623
|
internalType: "address[]",
|
|
661
624
|
name: "validators",
|
|
662
|
-
type: "address[]"
|
|
663
|
-
}
|
|
625
|
+
type: "address[]",
|
|
626
|
+
},
|
|
664
627
|
],
|
|
665
628
|
name: "TransactionReceiptProposed",
|
|
666
|
-
type: "event"
|
|
629
|
+
type: "event",
|
|
667
630
|
},
|
|
668
631
|
{
|
|
669
632
|
anonymous: false,
|
|
@@ -672,11 +635,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
672
635
|
indexed: true,
|
|
673
636
|
internalType: "bytes32",
|
|
674
637
|
name: "tx_id",
|
|
675
|
-
type: "bytes32"
|
|
676
|
-
}
|
|
638
|
+
type: "bytes32",
|
|
639
|
+
},
|
|
677
640
|
],
|
|
678
641
|
name: "TransactionUndetermined",
|
|
679
|
-
type: "event"
|
|
642
|
+
type: "event",
|
|
680
643
|
},
|
|
681
644
|
{
|
|
682
645
|
anonymous: false,
|
|
@@ -685,23 +648,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
685
648
|
indexed: true,
|
|
686
649
|
internalType: "bytes32",
|
|
687
650
|
name: "txId",
|
|
688
|
-
type: "bytes32"
|
|
651
|
+
type: "bytes32",
|
|
689
652
|
},
|
|
690
653
|
{
|
|
691
654
|
indexed: true,
|
|
692
655
|
internalType: "address",
|
|
693
656
|
name: "validator",
|
|
694
|
-
type: "address"
|
|
657
|
+
type: "address",
|
|
695
658
|
},
|
|
696
659
|
{
|
|
697
660
|
indexed: false,
|
|
698
661
|
internalType: "bool",
|
|
699
662
|
name: "isLastVote",
|
|
700
|
-
type: "bool"
|
|
701
|
-
}
|
|
663
|
+
type: "bool",
|
|
664
|
+
},
|
|
702
665
|
],
|
|
703
666
|
name: "TribunalAppealVoteCommitted",
|
|
704
|
-
type: "event"
|
|
667
|
+
type: "event",
|
|
705
668
|
},
|
|
706
669
|
{
|
|
707
670
|
anonymous: false,
|
|
@@ -710,23 +673,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
710
673
|
indexed: true,
|
|
711
674
|
internalType: "bytes32",
|
|
712
675
|
name: "txId",
|
|
713
|
-
type: "bytes32"
|
|
676
|
+
type: "bytes32",
|
|
714
677
|
},
|
|
715
678
|
{
|
|
716
679
|
indexed: true,
|
|
717
680
|
internalType: "address",
|
|
718
681
|
name: "validator",
|
|
719
|
-
type: "address"
|
|
682
|
+
type: "address",
|
|
720
683
|
},
|
|
721
684
|
{
|
|
722
685
|
indexed: false,
|
|
723
686
|
internalType: "bool",
|
|
724
687
|
name: "isLastVote",
|
|
725
|
-
type: "bool"
|
|
726
|
-
}
|
|
688
|
+
type: "bool",
|
|
689
|
+
},
|
|
727
690
|
],
|
|
728
691
|
name: "TribunalAppealVoteRevealed",
|
|
729
|
-
type: "event"
|
|
692
|
+
type: "event",
|
|
730
693
|
},
|
|
731
694
|
{
|
|
732
695
|
anonymous: false,
|
|
@@ -735,23 +698,23 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
735
698
|
indexed: true,
|
|
736
699
|
internalType: "bytes32",
|
|
737
700
|
name: "txId",
|
|
738
|
-
type: "bytes32"
|
|
701
|
+
type: "bytes32",
|
|
739
702
|
},
|
|
740
703
|
{
|
|
741
704
|
indexed: true,
|
|
742
705
|
internalType: "address",
|
|
743
706
|
name: "validator",
|
|
744
|
-
type: "address"
|
|
707
|
+
type: "address",
|
|
745
708
|
},
|
|
746
709
|
{
|
|
747
710
|
indexed: false,
|
|
748
711
|
internalType: "bool",
|
|
749
712
|
name: "isLastVote",
|
|
750
|
-
type: "bool"
|
|
751
|
-
}
|
|
713
|
+
type: "bool",
|
|
714
|
+
},
|
|
752
715
|
],
|
|
753
716
|
name: "VoteCommitted",
|
|
754
|
-
type: "event"
|
|
717
|
+
type: "event",
|
|
755
718
|
},
|
|
756
719
|
{
|
|
757
720
|
anonymous: false,
|
|
@@ -760,35 +723,35 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
760
723
|
indexed: true,
|
|
761
724
|
internalType: "bytes32",
|
|
762
725
|
name: "txId",
|
|
763
|
-
type: "bytes32"
|
|
726
|
+
type: "bytes32",
|
|
764
727
|
},
|
|
765
728
|
{
|
|
766
729
|
indexed: true,
|
|
767
730
|
internalType: "address",
|
|
768
731
|
name: "validator",
|
|
769
|
-
type: "address"
|
|
732
|
+
type: "address",
|
|
770
733
|
},
|
|
771
734
|
{
|
|
772
735
|
indexed: false,
|
|
773
736
|
internalType: "enum ITransactions.VoteType",
|
|
774
737
|
name: "voteType",
|
|
775
|
-
type: "uint8"
|
|
738
|
+
type: "uint8",
|
|
776
739
|
},
|
|
777
740
|
{
|
|
778
741
|
indexed: false,
|
|
779
742
|
internalType: "bool",
|
|
780
743
|
name: "isLastVote",
|
|
781
|
-
type: "bool"
|
|
744
|
+
type: "bool",
|
|
782
745
|
},
|
|
783
746
|
{
|
|
784
747
|
indexed: false,
|
|
785
748
|
internalType: "enum ITransactions.ResultType",
|
|
786
749
|
name: "result",
|
|
787
|
-
type: "uint8"
|
|
788
|
-
}
|
|
750
|
+
type: "uint8",
|
|
751
|
+
},
|
|
789
752
|
],
|
|
790
753
|
name: "VoteRevealed",
|
|
791
|
-
type: "event"
|
|
754
|
+
type: "event",
|
|
792
755
|
},
|
|
793
756
|
{
|
|
794
757
|
inputs: [],
|
|
@@ -797,11 +760,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
797
760
|
{
|
|
798
761
|
internalType: "bytes32",
|
|
799
762
|
name: "",
|
|
800
|
-
type: "bytes32"
|
|
801
|
-
}
|
|
763
|
+
type: "bytes32",
|
|
764
|
+
},
|
|
802
765
|
],
|
|
803
766
|
stateMutability: "view",
|
|
804
|
-
type: "function"
|
|
767
|
+
type: "function",
|
|
805
768
|
},
|
|
806
769
|
{
|
|
807
770
|
inputs: [],
|
|
@@ -810,123 +773,123 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
810
773
|
{
|
|
811
774
|
internalType: "uint256",
|
|
812
775
|
name: "",
|
|
813
|
-
type: "uint256"
|
|
814
|
-
}
|
|
776
|
+
type: "uint256",
|
|
777
|
+
},
|
|
815
778
|
],
|
|
816
779
|
stateMutability: "view",
|
|
817
|
-
type: "function"
|
|
780
|
+
type: "function",
|
|
818
781
|
},
|
|
819
782
|
{
|
|
820
783
|
inputs: [],
|
|
821
784
|
name: "acceptOwnership",
|
|
822
785
|
outputs: [],
|
|
823
786
|
stateMutability: "nonpayable",
|
|
824
|
-
type: "function"
|
|
787
|
+
type: "function",
|
|
825
788
|
},
|
|
826
789
|
{
|
|
827
790
|
inputs: [
|
|
828
791
|
{
|
|
829
792
|
internalType: "bytes32",
|
|
830
793
|
name: "_txId",
|
|
831
|
-
type: "bytes32"
|
|
794
|
+
type: "bytes32",
|
|
832
795
|
},
|
|
833
796
|
{
|
|
834
797
|
internalType: "bytes",
|
|
835
798
|
name: "_vrfProof",
|
|
836
|
-
type: "bytes"
|
|
837
|
-
}
|
|
799
|
+
type: "bytes",
|
|
800
|
+
},
|
|
838
801
|
],
|
|
839
802
|
name: "activateTransaction",
|
|
840
803
|
outputs: [],
|
|
841
804
|
stateMutability: "nonpayable",
|
|
842
|
-
type: "function"
|
|
805
|
+
type: "function",
|
|
843
806
|
},
|
|
844
807
|
{
|
|
845
808
|
inputs: [
|
|
846
809
|
{
|
|
847
810
|
internalType: "address",
|
|
848
811
|
name: "_sender",
|
|
849
|
-
type: "address"
|
|
812
|
+
type: "address",
|
|
850
813
|
},
|
|
851
814
|
{
|
|
852
815
|
internalType: "address",
|
|
853
816
|
name: "_recipient",
|
|
854
|
-
type: "address"
|
|
817
|
+
type: "address",
|
|
855
818
|
},
|
|
856
819
|
{
|
|
857
820
|
internalType: "uint256",
|
|
858
821
|
name: "_numOfInitialValidators",
|
|
859
|
-
type: "uint256"
|
|
822
|
+
type: "uint256",
|
|
860
823
|
},
|
|
861
824
|
{
|
|
862
825
|
internalType: "uint256",
|
|
863
826
|
name: "_maxRotations",
|
|
864
|
-
type: "uint256"
|
|
827
|
+
type: "uint256",
|
|
865
828
|
},
|
|
866
829
|
{
|
|
867
830
|
internalType: "bytes",
|
|
868
831
|
name: "_txData",
|
|
869
|
-
type: "bytes"
|
|
870
|
-
}
|
|
832
|
+
type: "bytes",
|
|
833
|
+
},
|
|
871
834
|
],
|
|
872
835
|
name: "addTransaction",
|
|
873
836
|
outputs: [],
|
|
874
837
|
stateMutability: "nonpayable",
|
|
875
|
-
type: "function"
|
|
838
|
+
type: "function",
|
|
876
839
|
},
|
|
877
840
|
{
|
|
878
841
|
inputs: [
|
|
879
842
|
{
|
|
880
843
|
internalType: "bytes32",
|
|
881
844
|
name: "_txId",
|
|
882
|
-
type: "bytes32"
|
|
883
|
-
}
|
|
845
|
+
type: "bytes32",
|
|
846
|
+
},
|
|
884
847
|
],
|
|
885
848
|
name: "cancelTransaction",
|
|
886
849
|
outputs: [],
|
|
887
850
|
stateMutability: "nonpayable",
|
|
888
|
-
type: "function"
|
|
851
|
+
type: "function",
|
|
889
852
|
},
|
|
890
853
|
{
|
|
891
854
|
inputs: [
|
|
892
855
|
{
|
|
893
856
|
internalType: "bytes32",
|
|
894
857
|
name: "_txId",
|
|
895
|
-
type: "bytes32"
|
|
858
|
+
type: "bytes32",
|
|
896
859
|
},
|
|
897
860
|
{
|
|
898
861
|
internalType: "bytes32",
|
|
899
862
|
name: "_commitHash",
|
|
900
|
-
type: "bytes32"
|
|
901
|
-
}
|
|
863
|
+
type: "bytes32",
|
|
864
|
+
},
|
|
902
865
|
],
|
|
903
866
|
name: "commitTribunalAppealVote",
|
|
904
867
|
outputs: [],
|
|
905
868
|
stateMutability: "nonpayable",
|
|
906
|
-
type: "function"
|
|
869
|
+
type: "function",
|
|
907
870
|
},
|
|
908
871
|
{
|
|
909
872
|
inputs: [
|
|
910
873
|
{
|
|
911
874
|
internalType: "bytes32",
|
|
912
875
|
name: "_txId",
|
|
913
|
-
type: "bytes32"
|
|
876
|
+
type: "bytes32",
|
|
914
877
|
},
|
|
915
878
|
{
|
|
916
879
|
internalType: "bytes32",
|
|
917
880
|
name: "_commitHash",
|
|
918
|
-
type: "bytes32"
|
|
881
|
+
type: "bytes32",
|
|
919
882
|
},
|
|
920
883
|
{
|
|
921
884
|
internalType: "uint256",
|
|
922
885
|
name: "_validatorIndex",
|
|
923
|
-
type: "uint256"
|
|
924
|
-
}
|
|
886
|
+
type: "uint256",
|
|
887
|
+
},
|
|
925
888
|
],
|
|
926
889
|
name: "commitVote",
|
|
927
890
|
outputs: [],
|
|
928
891
|
stateMutability: "nonpayable",
|
|
929
|
-
type: "function"
|
|
892
|
+
type: "function",
|
|
930
893
|
},
|
|
931
894
|
{
|
|
932
895
|
inputs: [],
|
|
@@ -935,88 +898,88 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
935
898
|
{
|
|
936
899
|
internalType: "contract IGenManager",
|
|
937
900
|
name: "genManager",
|
|
938
|
-
type: "address"
|
|
901
|
+
type: "address",
|
|
939
902
|
},
|
|
940
903
|
{
|
|
941
904
|
internalType: "contract ITransactions",
|
|
942
905
|
name: "genTransactions",
|
|
943
|
-
type: "address"
|
|
906
|
+
type: "address",
|
|
944
907
|
},
|
|
945
908
|
{
|
|
946
909
|
internalType: "contract IQueues",
|
|
947
910
|
name: "genQueue",
|
|
948
|
-
type: "address"
|
|
911
|
+
type: "address",
|
|
949
912
|
},
|
|
950
913
|
{
|
|
951
914
|
internalType: "contract IGhostFactory",
|
|
952
915
|
name: "ghostFactory",
|
|
953
|
-
type: "address"
|
|
916
|
+
type: "address",
|
|
954
917
|
},
|
|
955
918
|
{
|
|
956
919
|
internalType: "contract IGenStaking",
|
|
957
920
|
name: "genStaking",
|
|
958
|
-
type: "address"
|
|
921
|
+
type: "address",
|
|
959
922
|
},
|
|
960
923
|
{
|
|
961
924
|
internalType: "contract IMessages",
|
|
962
925
|
name: "genMessages",
|
|
963
|
-
type: "address"
|
|
926
|
+
type: "address",
|
|
964
927
|
},
|
|
965
928
|
{
|
|
966
929
|
internalType: "contract IIdleness",
|
|
967
930
|
name: "idleness",
|
|
968
|
-
type: "address"
|
|
931
|
+
type: "address",
|
|
969
932
|
},
|
|
970
933
|
{
|
|
971
934
|
internalType: "contract ITribunalAppeal",
|
|
972
935
|
name: "tribunalAppeal",
|
|
973
|
-
type: "address"
|
|
974
|
-
}
|
|
936
|
+
type: "address",
|
|
937
|
+
},
|
|
975
938
|
],
|
|
976
939
|
stateMutability: "view",
|
|
977
|
-
type: "function"
|
|
940
|
+
type: "function",
|
|
978
941
|
},
|
|
979
942
|
{
|
|
980
943
|
inputs: [
|
|
981
944
|
{
|
|
982
945
|
internalType: "address",
|
|
983
946
|
name: "_recipient",
|
|
984
|
-
type: "address"
|
|
947
|
+
type: "address",
|
|
985
948
|
},
|
|
986
949
|
{
|
|
987
950
|
internalType: "uint256",
|
|
988
951
|
name: "_value",
|
|
989
|
-
type: "uint256"
|
|
952
|
+
type: "uint256",
|
|
990
953
|
},
|
|
991
954
|
{
|
|
992
955
|
internalType: "bytes",
|
|
993
956
|
name: "_data",
|
|
994
|
-
type: "bytes"
|
|
995
|
-
}
|
|
957
|
+
type: "bytes",
|
|
958
|
+
},
|
|
996
959
|
],
|
|
997
960
|
name: "executeMessage",
|
|
998
961
|
outputs: [
|
|
999
962
|
{
|
|
1000
963
|
internalType: "bool",
|
|
1001
964
|
name: "success",
|
|
1002
|
-
type: "bool"
|
|
1003
|
-
}
|
|
965
|
+
type: "bool",
|
|
966
|
+
},
|
|
1004
967
|
],
|
|
1005
968
|
stateMutability: "nonpayable",
|
|
1006
|
-
type: "function"
|
|
969
|
+
type: "function",
|
|
1007
970
|
},
|
|
1008
971
|
{
|
|
1009
972
|
inputs: [
|
|
1010
973
|
{
|
|
1011
974
|
internalType: "bytes32",
|
|
1012
975
|
name: "_txId",
|
|
1013
|
-
type: "bytes32"
|
|
1014
|
-
}
|
|
976
|
+
type: "bytes32",
|
|
977
|
+
},
|
|
1015
978
|
],
|
|
1016
979
|
name: "finalizeTransaction",
|
|
1017
980
|
outputs: [],
|
|
1018
981
|
stateMutability: "nonpayable",
|
|
1019
|
-
type: "function"
|
|
982
|
+
type: "function",
|
|
1020
983
|
},
|
|
1021
984
|
{
|
|
1022
985
|
inputs: [],
|
|
@@ -1027,138 +990,138 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
1027
990
|
{
|
|
1028
991
|
internalType: "contract IGenManager",
|
|
1029
992
|
name: "genManager",
|
|
1030
|
-
type: "address"
|
|
993
|
+
type: "address",
|
|
1031
994
|
},
|
|
1032
995
|
{
|
|
1033
996
|
internalType: "contract ITransactions",
|
|
1034
997
|
name: "genTransactions",
|
|
1035
|
-
type: "address"
|
|
998
|
+
type: "address",
|
|
1036
999
|
},
|
|
1037
1000
|
{
|
|
1038
1001
|
internalType: "contract IQueues",
|
|
1039
1002
|
name: "genQueue",
|
|
1040
|
-
type: "address"
|
|
1003
|
+
type: "address",
|
|
1041
1004
|
},
|
|
1042
1005
|
{
|
|
1043
1006
|
internalType: "contract IGhostFactory",
|
|
1044
1007
|
name: "ghostFactory",
|
|
1045
|
-
type: "address"
|
|
1008
|
+
type: "address",
|
|
1046
1009
|
},
|
|
1047
1010
|
{
|
|
1048
1011
|
internalType: "contract IGenStaking",
|
|
1049
1012
|
name: "genStaking",
|
|
1050
|
-
type: "address"
|
|
1013
|
+
type: "address",
|
|
1051
1014
|
},
|
|
1052
1015
|
{
|
|
1053
1016
|
internalType: "contract IMessages",
|
|
1054
1017
|
name: "genMessages",
|
|
1055
|
-
type: "address"
|
|
1018
|
+
type: "address",
|
|
1056
1019
|
},
|
|
1057
1020
|
{
|
|
1058
1021
|
internalType: "contract IIdleness",
|
|
1059
1022
|
name: "idleness",
|
|
1060
|
-
type: "address"
|
|
1023
|
+
type: "address",
|
|
1061
1024
|
},
|
|
1062
1025
|
{
|
|
1063
1026
|
internalType: "contract ITribunalAppeal",
|
|
1064
1027
|
name: "tribunalAppeal",
|
|
1065
|
-
type: "address"
|
|
1066
|
-
}
|
|
1028
|
+
type: "address",
|
|
1029
|
+
},
|
|
1067
1030
|
],
|
|
1068
1031
|
internalType: "struct IConsensusMain.ExternalContracts",
|
|
1069
1032
|
name: "",
|
|
1070
|
-
type: "tuple"
|
|
1071
|
-
}
|
|
1033
|
+
type: "tuple",
|
|
1034
|
+
},
|
|
1072
1035
|
],
|
|
1073
1036
|
stateMutability: "view",
|
|
1074
|
-
type: "function"
|
|
1037
|
+
type: "function",
|
|
1075
1038
|
},
|
|
1076
1039
|
{
|
|
1077
1040
|
inputs: [
|
|
1078
1041
|
{
|
|
1079
1042
|
internalType: "bytes32",
|
|
1080
1043
|
name: "role",
|
|
1081
|
-
type: "bytes32"
|
|
1082
|
-
}
|
|
1044
|
+
type: "bytes32",
|
|
1045
|
+
},
|
|
1083
1046
|
],
|
|
1084
1047
|
name: "getRoleAdmin",
|
|
1085
1048
|
outputs: [
|
|
1086
1049
|
{
|
|
1087
1050
|
internalType: "bytes32",
|
|
1088
1051
|
name: "",
|
|
1089
|
-
type: "bytes32"
|
|
1090
|
-
}
|
|
1052
|
+
type: "bytes32",
|
|
1053
|
+
},
|
|
1091
1054
|
],
|
|
1092
1055
|
stateMutability: "view",
|
|
1093
|
-
type: "function"
|
|
1056
|
+
type: "function",
|
|
1094
1057
|
},
|
|
1095
1058
|
{
|
|
1096
1059
|
inputs: [
|
|
1097
1060
|
{
|
|
1098
1061
|
internalType: "address",
|
|
1099
1062
|
name: "addr",
|
|
1100
|
-
type: "address"
|
|
1101
|
-
}
|
|
1063
|
+
type: "address",
|
|
1064
|
+
},
|
|
1102
1065
|
],
|
|
1103
1066
|
name: "ghostContracts",
|
|
1104
1067
|
outputs: [
|
|
1105
1068
|
{
|
|
1106
1069
|
internalType: "bool",
|
|
1107
1070
|
name: "isGhost",
|
|
1108
|
-
type: "bool"
|
|
1109
|
-
}
|
|
1071
|
+
type: "bool",
|
|
1072
|
+
},
|
|
1110
1073
|
],
|
|
1111
1074
|
stateMutability: "view",
|
|
1112
|
-
type: "function"
|
|
1075
|
+
type: "function",
|
|
1113
1076
|
},
|
|
1114
1077
|
{
|
|
1115
1078
|
inputs: [
|
|
1116
1079
|
{
|
|
1117
1080
|
internalType: "bytes32",
|
|
1118
1081
|
name: "role",
|
|
1119
|
-
type: "bytes32"
|
|
1082
|
+
type: "bytes32",
|
|
1120
1083
|
},
|
|
1121
1084
|
{
|
|
1122
1085
|
internalType: "address",
|
|
1123
1086
|
name: "account",
|
|
1124
|
-
type: "address"
|
|
1125
|
-
}
|
|
1087
|
+
type: "address",
|
|
1088
|
+
},
|
|
1126
1089
|
],
|
|
1127
1090
|
name: "grantRole",
|
|
1128
1091
|
outputs: [],
|
|
1129
1092
|
stateMutability: "nonpayable",
|
|
1130
|
-
type: "function"
|
|
1093
|
+
type: "function",
|
|
1131
1094
|
},
|
|
1132
1095
|
{
|
|
1133
1096
|
inputs: [
|
|
1134
1097
|
{
|
|
1135
1098
|
internalType: "bytes32",
|
|
1136
1099
|
name: "role",
|
|
1137
|
-
type: "bytes32"
|
|
1100
|
+
type: "bytes32",
|
|
1138
1101
|
},
|
|
1139
1102
|
{
|
|
1140
1103
|
internalType: "address",
|
|
1141
1104
|
name: "account",
|
|
1142
|
-
type: "address"
|
|
1143
|
-
}
|
|
1105
|
+
type: "address",
|
|
1106
|
+
},
|
|
1144
1107
|
],
|
|
1145
1108
|
name: "hasRole",
|
|
1146
1109
|
outputs: [
|
|
1147
1110
|
{
|
|
1148
1111
|
internalType: "bool",
|
|
1149
1112
|
name: "",
|
|
1150
|
-
type: "bool"
|
|
1151
|
-
}
|
|
1113
|
+
type: "bool",
|
|
1114
|
+
},
|
|
1152
1115
|
],
|
|
1153
1116
|
stateMutability: "view",
|
|
1154
|
-
type: "function"
|
|
1117
|
+
type: "function",
|
|
1155
1118
|
},
|
|
1156
1119
|
{
|
|
1157
1120
|
inputs: [],
|
|
1158
1121
|
name: "initialize",
|
|
1159
1122
|
outputs: [],
|
|
1160
1123
|
stateMutability: "nonpayable",
|
|
1161
|
-
type: "function"
|
|
1124
|
+
type: "function",
|
|
1162
1125
|
},
|
|
1163
1126
|
{
|
|
1164
1127
|
inputs: [],
|
|
@@ -1167,11 +1130,11 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
1167
1130
|
{
|
|
1168
1131
|
internalType: "address",
|
|
1169
1132
|
name: "",
|
|
1170
|
-
type: "address"
|
|
1171
|
-
}
|
|
1133
|
+
type: "address",
|
|
1134
|
+
},
|
|
1172
1135
|
],
|
|
1173
1136
|
stateMutability: "view",
|
|
1174
|
-
type: "function"
|
|
1137
|
+
type: "function",
|
|
1175
1138
|
},
|
|
1176
1139
|
{
|
|
1177
1140
|
inputs: [],
|
|
@@ -1180,358 +1143,359 @@ var CONSENSUS_MAIN_CONTRACT = {
|
|
|
1180
1143
|
{
|
|
1181
1144
|
internalType: "address",
|
|
1182
1145
|
name: "",
|
|
1183
|
-
type: "address"
|
|
1184
|
-
}
|
|
1146
|
+
type: "address",
|
|
1147
|
+
},
|
|
1185
1148
|
],
|
|
1186
1149
|
stateMutability: "view",
|
|
1187
|
-
type: "function"
|
|
1150
|
+
type: "function",
|
|
1188
1151
|
},
|
|
1189
1152
|
{
|
|
1190
1153
|
inputs: [
|
|
1191
1154
|
{
|
|
1192
1155
|
internalType: "address",
|
|
1193
1156
|
name: "recipient",
|
|
1194
|
-
type: "address"
|
|
1195
|
-
}
|
|
1157
|
+
type: "address",
|
|
1158
|
+
},
|
|
1196
1159
|
],
|
|
1197
1160
|
name: "proceedPendingQueueProcessing",
|
|
1198
1161
|
outputs: [],
|
|
1199
1162
|
stateMutability: "nonpayable",
|
|
1200
|
-
type: "function"
|
|
1163
|
+
type: "function",
|
|
1201
1164
|
},
|
|
1202
1165
|
{
|
|
1203
1166
|
inputs: [
|
|
1204
1167
|
{
|
|
1205
1168
|
internalType: "bytes32",
|
|
1206
1169
|
name: "_txId",
|
|
1207
|
-
type: "bytes32"
|
|
1170
|
+
type: "bytes32",
|
|
1208
1171
|
},
|
|
1209
1172
|
{
|
|
1210
1173
|
internalType: "bytes",
|
|
1211
1174
|
name: "_txReceipt",
|
|
1212
|
-
type: "bytes"
|
|
1175
|
+
type: "bytes",
|
|
1213
1176
|
},
|
|
1214
1177
|
{
|
|
1215
1178
|
internalType: "uint256",
|
|
1216
1179
|
name: "_processingBlock",
|
|
1217
|
-
type: "uint256"
|
|
1180
|
+
type: "uint256",
|
|
1218
1181
|
},
|
|
1219
1182
|
{
|
|
1220
1183
|
components: [
|
|
1221
1184
|
{
|
|
1222
1185
|
internalType: "enum IMessages.MessageType",
|
|
1223
1186
|
name: "messageType",
|
|
1224
|
-
type: "uint8"
|
|
1187
|
+
type: "uint8",
|
|
1225
1188
|
},
|
|
1226
1189
|
{
|
|
1227
1190
|
internalType: "address",
|
|
1228
1191
|
name: "recipient",
|
|
1229
|
-
type: "address"
|
|
1192
|
+
type: "address",
|
|
1230
1193
|
},
|
|
1231
1194
|
{
|
|
1232
1195
|
internalType: "uint256",
|
|
1233
1196
|
name: "value",
|
|
1234
|
-
type: "uint256"
|
|
1197
|
+
type: "uint256",
|
|
1235
1198
|
},
|
|
1236
1199
|
{
|
|
1237
1200
|
internalType: "bytes",
|
|
1238
1201
|
name: "data",
|
|
1239
|
-
type: "bytes"
|
|
1202
|
+
type: "bytes",
|
|
1240
1203
|
},
|
|
1241
1204
|
{
|
|
1242
1205
|
internalType: "bool",
|
|
1243
1206
|
name: "onAcceptance",
|
|
1244
|
-
type: "bool"
|
|
1245
|
-
}
|
|
1207
|
+
type: "bool",
|
|
1208
|
+
},
|
|
1246
1209
|
],
|
|
1247
1210
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
1248
1211
|
name: "_messages",
|
|
1249
|
-
type: "tuple[]"
|
|
1212
|
+
type: "tuple[]",
|
|
1250
1213
|
},
|
|
1251
1214
|
{
|
|
1252
1215
|
internalType: "bytes",
|
|
1253
1216
|
name: "_vrfProof",
|
|
1254
|
-
type: "bytes"
|
|
1255
|
-
}
|
|
1217
|
+
type: "bytes",
|
|
1218
|
+
},
|
|
1256
1219
|
],
|
|
1257
1220
|
name: "proposeReceipt",
|
|
1258
1221
|
outputs: [],
|
|
1259
1222
|
stateMutability: "nonpayable",
|
|
1260
|
-
type: "function"
|
|
1223
|
+
type: "function",
|
|
1261
1224
|
},
|
|
1262
1225
|
{
|
|
1263
1226
|
inputs: [],
|
|
1264
1227
|
name: "renounceOwnership",
|
|
1265
1228
|
outputs: [],
|
|
1266
1229
|
stateMutability: "nonpayable",
|
|
1267
|
-
type: "function"
|
|
1230
|
+
type: "function",
|
|
1268
1231
|
},
|
|
1269
1232
|
{
|
|
1270
1233
|
inputs: [
|
|
1271
1234
|
{
|
|
1272
1235
|
internalType: "bytes32",
|
|
1273
1236
|
name: "role",
|
|
1274
|
-
type: "bytes32"
|
|
1237
|
+
type: "bytes32",
|
|
1275
1238
|
},
|
|
1276
1239
|
{
|
|
1277
1240
|
internalType: "address",
|
|
1278
1241
|
name: "callerConfirmation",
|
|
1279
|
-
type: "address"
|
|
1280
|
-
}
|
|
1242
|
+
type: "address",
|
|
1243
|
+
},
|
|
1281
1244
|
],
|
|
1282
1245
|
name: "renounceRole",
|
|
1283
1246
|
outputs: [],
|
|
1284
1247
|
stateMutability: "nonpayable",
|
|
1285
|
-
type: "function"
|
|
1248
|
+
type: "function",
|
|
1286
1249
|
},
|
|
1287
1250
|
{
|
|
1288
1251
|
inputs: [
|
|
1289
1252
|
{
|
|
1290
1253
|
internalType: "bytes32",
|
|
1291
1254
|
name: "_txId",
|
|
1292
|
-
type: "bytes32"
|
|
1255
|
+
type: "bytes32",
|
|
1293
1256
|
},
|
|
1294
1257
|
{
|
|
1295
1258
|
internalType: "bytes32",
|
|
1296
1259
|
name: "_voteHash",
|
|
1297
|
-
type: "bytes32"
|
|
1260
|
+
type: "bytes32",
|
|
1298
1261
|
},
|
|
1299
1262
|
{
|
|
1300
1263
|
internalType: "enum ITribunalAppeal.TribunalVoteType",
|
|
1301
1264
|
name: "_voteType",
|
|
1302
|
-
type: "uint8"
|
|
1265
|
+
type: "uint8",
|
|
1303
1266
|
},
|
|
1304
1267
|
{
|
|
1305
1268
|
internalType: "uint256",
|
|
1306
1269
|
name: "_nonce",
|
|
1307
|
-
type: "uint256"
|
|
1308
|
-
}
|
|
1270
|
+
type: "uint256",
|
|
1271
|
+
},
|
|
1309
1272
|
],
|
|
1310
1273
|
name: "revealTribunalAppealVote",
|
|
1311
1274
|
outputs: [],
|
|
1312
1275
|
stateMutability: "nonpayable",
|
|
1313
|
-
type: "function"
|
|
1276
|
+
type: "function",
|
|
1314
1277
|
},
|
|
1315
1278
|
{
|
|
1316
1279
|
inputs: [
|
|
1317
1280
|
{
|
|
1318
1281
|
internalType: "bytes32",
|
|
1319
1282
|
name: "_txId",
|
|
1320
|
-
type: "bytes32"
|
|
1283
|
+
type: "bytes32",
|
|
1321
1284
|
},
|
|
1322
1285
|
{
|
|
1323
1286
|
internalType: "bytes32",
|
|
1324
1287
|
name: "_voteHash",
|
|
1325
|
-
type: "bytes32"
|
|
1288
|
+
type: "bytes32",
|
|
1326
1289
|
},
|
|
1327
1290
|
{
|
|
1328
1291
|
internalType: "enum ITransactions.VoteType",
|
|
1329
1292
|
name: "_voteType",
|
|
1330
|
-
type: "uint8"
|
|
1293
|
+
type: "uint8",
|
|
1331
1294
|
},
|
|
1332
1295
|
{
|
|
1333
1296
|
internalType: "uint256",
|
|
1334
1297
|
name: "_nonce",
|
|
1335
|
-
type: "uint256"
|
|
1298
|
+
type: "uint256",
|
|
1336
1299
|
},
|
|
1337
1300
|
{
|
|
1338
1301
|
internalType: "uint256",
|
|
1339
1302
|
name: "_validatorIndex",
|
|
1340
|
-
type: "uint256"
|
|
1341
|
-
}
|
|
1303
|
+
type: "uint256",
|
|
1304
|
+
},
|
|
1342
1305
|
],
|
|
1343
1306
|
name: "revealVote",
|
|
1344
1307
|
outputs: [],
|
|
1345
1308
|
stateMutability: "nonpayable",
|
|
1346
|
-
type: "function"
|
|
1309
|
+
type: "function",
|
|
1347
1310
|
},
|
|
1348
1311
|
{
|
|
1349
1312
|
inputs: [
|
|
1350
1313
|
{
|
|
1351
1314
|
internalType: "bytes32",
|
|
1352
1315
|
name: "role",
|
|
1353
|
-
type: "bytes32"
|
|
1316
|
+
type: "bytes32",
|
|
1354
1317
|
},
|
|
1355
1318
|
{
|
|
1356
1319
|
internalType: "address",
|
|
1357
1320
|
name: "account",
|
|
1358
|
-
type: "address"
|
|
1359
|
-
}
|
|
1321
|
+
type: "address",
|
|
1322
|
+
},
|
|
1360
1323
|
],
|
|
1361
1324
|
name: "revokeRole",
|
|
1362
1325
|
outputs: [],
|
|
1363
1326
|
stateMutability: "nonpayable",
|
|
1364
|
-
type: "function"
|
|
1327
|
+
type: "function",
|
|
1365
1328
|
},
|
|
1366
1329
|
{
|
|
1367
1330
|
inputs: [
|
|
1368
1331
|
{
|
|
1369
1332
|
internalType: "address",
|
|
1370
1333
|
name: "_ghostFactory",
|
|
1371
|
-
type: "address"
|
|
1334
|
+
type: "address",
|
|
1372
1335
|
},
|
|
1373
1336
|
{
|
|
1374
1337
|
internalType: "address",
|
|
1375
1338
|
name: "_genManager",
|
|
1376
|
-
type: "address"
|
|
1339
|
+
type: "address",
|
|
1377
1340
|
},
|
|
1378
1341
|
{
|
|
1379
1342
|
internalType: "address",
|
|
1380
1343
|
name: "_genTransactions",
|
|
1381
|
-
type: "address"
|
|
1344
|
+
type: "address",
|
|
1382
1345
|
},
|
|
1383
1346
|
{
|
|
1384
1347
|
internalType: "address",
|
|
1385
1348
|
name: "_genQueue",
|
|
1386
|
-
type: "address"
|
|
1349
|
+
type: "address",
|
|
1387
1350
|
},
|
|
1388
1351
|
{
|
|
1389
1352
|
internalType: "address",
|
|
1390
1353
|
name: "_genStaking",
|
|
1391
|
-
type: "address"
|
|
1354
|
+
type: "address",
|
|
1392
1355
|
},
|
|
1393
1356
|
{
|
|
1394
1357
|
internalType: "address",
|
|
1395
1358
|
name: "_genMessages",
|
|
1396
|
-
type: "address"
|
|
1359
|
+
type: "address",
|
|
1397
1360
|
},
|
|
1398
1361
|
{
|
|
1399
1362
|
internalType: "address",
|
|
1400
1363
|
name: "_idleness",
|
|
1401
|
-
type: "address"
|
|
1364
|
+
type: "address",
|
|
1402
1365
|
},
|
|
1403
1366
|
{
|
|
1404
1367
|
internalType: "address",
|
|
1405
1368
|
name: "_tribunalAppeal",
|
|
1406
|
-
type: "address"
|
|
1407
|
-
}
|
|
1369
|
+
type: "address",
|
|
1370
|
+
},
|
|
1408
1371
|
],
|
|
1409
1372
|
name: "setExternalContracts",
|
|
1410
1373
|
outputs: [],
|
|
1411
1374
|
stateMutability: "nonpayable",
|
|
1412
|
-
type: "function"
|
|
1375
|
+
type: "function",
|
|
1413
1376
|
},
|
|
1414
1377
|
{
|
|
1415
1378
|
inputs: [
|
|
1416
1379
|
{
|
|
1417
1380
|
internalType: "bytes32",
|
|
1418
1381
|
name: "_txId",
|
|
1419
|
-
type: "bytes32"
|
|
1420
|
-
}
|
|
1382
|
+
type: "bytes32",
|
|
1383
|
+
},
|
|
1421
1384
|
],
|
|
1422
1385
|
name: "submitAppeal",
|
|
1423
1386
|
outputs: [],
|
|
1424
1387
|
stateMutability: "payable",
|
|
1425
|
-
type: "function"
|
|
1388
|
+
type: "function",
|
|
1426
1389
|
},
|
|
1427
1390
|
{
|
|
1428
1391
|
inputs: [
|
|
1429
1392
|
{
|
|
1430
1393
|
internalType: "bytes32",
|
|
1431
1394
|
name: "_txId",
|
|
1432
|
-
type: "bytes32"
|
|
1433
|
-
}
|
|
1395
|
+
type: "bytes32",
|
|
1396
|
+
},
|
|
1434
1397
|
],
|
|
1435
1398
|
name: "submitSlashAppeal",
|
|
1436
1399
|
outputs: [],
|
|
1437
1400
|
stateMutability: "nonpayable",
|
|
1438
|
-
type: "function"
|
|
1401
|
+
type: "function",
|
|
1439
1402
|
},
|
|
1440
1403
|
{
|
|
1441
1404
|
inputs: [
|
|
1442
1405
|
{
|
|
1443
1406
|
internalType: "bytes4",
|
|
1444
1407
|
name: "interfaceId",
|
|
1445
|
-
type: "bytes4"
|
|
1446
|
-
}
|
|
1408
|
+
type: "bytes4",
|
|
1409
|
+
},
|
|
1447
1410
|
],
|
|
1448
1411
|
name: "supportsInterface",
|
|
1449
1412
|
outputs: [
|
|
1450
1413
|
{
|
|
1451
1414
|
internalType: "bool",
|
|
1452
1415
|
name: "",
|
|
1453
|
-
type: "bool"
|
|
1454
|
-
}
|
|
1416
|
+
type: "bool",
|
|
1417
|
+
},
|
|
1455
1418
|
],
|
|
1456
1419
|
stateMutability: "view",
|
|
1457
|
-
type: "function"
|
|
1420
|
+
type: "function",
|
|
1458
1421
|
},
|
|
1459
1422
|
{
|
|
1460
1423
|
inputs: [
|
|
1461
1424
|
{
|
|
1462
1425
|
internalType: "address",
|
|
1463
1426
|
name: "newOwner",
|
|
1464
|
-
type: "address"
|
|
1465
|
-
}
|
|
1427
|
+
type: "address",
|
|
1428
|
+
},
|
|
1466
1429
|
],
|
|
1467
1430
|
name: "transferOwnership",
|
|
1468
1431
|
outputs: [],
|
|
1469
1432
|
stateMutability: "nonpayable",
|
|
1470
|
-
type: "function"
|
|
1471
|
-
}
|
|
1433
|
+
type: "function",
|
|
1434
|
+
},
|
|
1472
1435
|
],
|
|
1473
|
-
bytecode: ""
|
|
1436
|
+
bytecode: "",
|
|
1474
1437
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1438
|
+
|
|
1439
|
+
const CONSENSUS_DATA_CONTRACT = {
|
|
1440
|
+
address: "0x88B0F18613Db92Bf970FfE264E02496e20a74D16" as Address,
|
|
1477
1441
|
abi: [
|
|
1478
1442
|
{
|
|
1479
1443
|
inputs: [],
|
|
1480
1444
|
name: "AccessControlBadConfirmation",
|
|
1481
|
-
type: "error"
|
|
1445
|
+
type: "error",
|
|
1482
1446
|
},
|
|
1483
1447
|
{
|
|
1484
1448
|
inputs: [
|
|
1485
1449
|
{
|
|
1486
1450
|
internalType: "address",
|
|
1487
1451
|
name: "account",
|
|
1488
|
-
type: "address"
|
|
1452
|
+
type: "address",
|
|
1489
1453
|
},
|
|
1490
1454
|
{
|
|
1491
1455
|
internalType: "bytes32",
|
|
1492
1456
|
name: "neededRole",
|
|
1493
|
-
type: "bytes32"
|
|
1494
|
-
}
|
|
1457
|
+
type: "bytes32",
|
|
1458
|
+
},
|
|
1495
1459
|
],
|
|
1496
1460
|
name: "AccessControlUnauthorizedAccount",
|
|
1497
|
-
type: "error"
|
|
1461
|
+
type: "error",
|
|
1498
1462
|
},
|
|
1499
1463
|
{
|
|
1500
1464
|
inputs: [],
|
|
1501
1465
|
name: "InvalidInitialization",
|
|
1502
|
-
type: "error"
|
|
1466
|
+
type: "error",
|
|
1503
1467
|
},
|
|
1504
1468
|
{
|
|
1505
1469
|
inputs: [],
|
|
1506
1470
|
name: "NotInitializing",
|
|
1507
|
-
type: "error"
|
|
1471
|
+
type: "error",
|
|
1508
1472
|
},
|
|
1509
1473
|
{
|
|
1510
1474
|
inputs: [
|
|
1511
1475
|
{
|
|
1512
1476
|
internalType: "address",
|
|
1513
1477
|
name: "owner",
|
|
1514
|
-
type: "address"
|
|
1515
|
-
}
|
|
1478
|
+
type: "address",
|
|
1479
|
+
},
|
|
1516
1480
|
],
|
|
1517
1481
|
name: "OwnableInvalidOwner",
|
|
1518
|
-
type: "error"
|
|
1482
|
+
type: "error",
|
|
1519
1483
|
},
|
|
1520
1484
|
{
|
|
1521
1485
|
inputs: [
|
|
1522
1486
|
{
|
|
1523
1487
|
internalType: "address",
|
|
1524
1488
|
name: "account",
|
|
1525
|
-
type: "address"
|
|
1526
|
-
}
|
|
1489
|
+
type: "address",
|
|
1490
|
+
},
|
|
1527
1491
|
],
|
|
1528
1492
|
name: "OwnableUnauthorizedAccount",
|
|
1529
|
-
type: "error"
|
|
1493
|
+
type: "error",
|
|
1530
1494
|
},
|
|
1531
1495
|
{
|
|
1532
1496
|
inputs: [],
|
|
1533
1497
|
name: "ReentrancyGuardReentrantCall",
|
|
1534
|
-
type: "error"
|
|
1498
|
+
type: "error",
|
|
1535
1499
|
},
|
|
1536
1500
|
{
|
|
1537
1501
|
anonymous: false,
|
|
@@ -1540,11 +1504,11 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1540
1504
|
indexed: false,
|
|
1541
1505
|
internalType: "uint64",
|
|
1542
1506
|
name: "version",
|
|
1543
|
-
type: "uint64"
|
|
1544
|
-
}
|
|
1507
|
+
type: "uint64",
|
|
1508
|
+
},
|
|
1545
1509
|
],
|
|
1546
1510
|
name: "Initialized",
|
|
1547
|
-
type: "event"
|
|
1511
|
+
type: "event",
|
|
1548
1512
|
},
|
|
1549
1513
|
{
|
|
1550
1514
|
anonymous: false,
|
|
@@ -1553,17 +1517,17 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1553
1517
|
indexed: true,
|
|
1554
1518
|
internalType: "address",
|
|
1555
1519
|
name: "previousOwner",
|
|
1556
|
-
type: "address"
|
|
1520
|
+
type: "address",
|
|
1557
1521
|
},
|
|
1558
1522
|
{
|
|
1559
1523
|
indexed: true,
|
|
1560
1524
|
internalType: "address",
|
|
1561
1525
|
name: "newOwner",
|
|
1562
|
-
type: "address"
|
|
1563
|
-
}
|
|
1526
|
+
type: "address",
|
|
1527
|
+
},
|
|
1564
1528
|
],
|
|
1565
1529
|
name: "OwnershipTransferStarted",
|
|
1566
|
-
type: "event"
|
|
1530
|
+
type: "event",
|
|
1567
1531
|
},
|
|
1568
1532
|
{
|
|
1569
1533
|
anonymous: false,
|
|
@@ -1572,17 +1536,17 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1572
1536
|
indexed: true,
|
|
1573
1537
|
internalType: "address",
|
|
1574
1538
|
name: "previousOwner",
|
|
1575
|
-
type: "address"
|
|
1539
|
+
type: "address",
|
|
1576
1540
|
},
|
|
1577
1541
|
{
|
|
1578
1542
|
indexed: true,
|
|
1579
1543
|
internalType: "address",
|
|
1580
1544
|
name: "newOwner",
|
|
1581
|
-
type: "address"
|
|
1582
|
-
}
|
|
1545
|
+
type: "address",
|
|
1546
|
+
},
|
|
1583
1547
|
],
|
|
1584
1548
|
name: "OwnershipTransferred",
|
|
1585
|
-
type: "event"
|
|
1549
|
+
type: "event",
|
|
1586
1550
|
},
|
|
1587
1551
|
{
|
|
1588
1552
|
anonymous: false,
|
|
@@ -1591,23 +1555,23 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1591
1555
|
indexed: true,
|
|
1592
1556
|
internalType: "bytes32",
|
|
1593
1557
|
name: "role",
|
|
1594
|
-
type: "bytes32"
|
|
1558
|
+
type: "bytes32",
|
|
1595
1559
|
},
|
|
1596
1560
|
{
|
|
1597
1561
|
indexed: true,
|
|
1598
1562
|
internalType: "bytes32",
|
|
1599
1563
|
name: "previousAdminRole",
|
|
1600
|
-
type: "bytes32"
|
|
1564
|
+
type: "bytes32",
|
|
1601
1565
|
},
|
|
1602
1566
|
{
|
|
1603
1567
|
indexed: true,
|
|
1604
1568
|
internalType: "bytes32",
|
|
1605
1569
|
name: "newAdminRole",
|
|
1606
|
-
type: "bytes32"
|
|
1607
|
-
}
|
|
1570
|
+
type: "bytes32",
|
|
1571
|
+
},
|
|
1608
1572
|
],
|
|
1609
1573
|
name: "RoleAdminChanged",
|
|
1610
|
-
type: "event"
|
|
1574
|
+
type: "event",
|
|
1611
1575
|
},
|
|
1612
1576
|
{
|
|
1613
1577
|
anonymous: false,
|
|
@@ -1616,23 +1580,23 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1616
1580
|
indexed: true,
|
|
1617
1581
|
internalType: "bytes32",
|
|
1618
1582
|
name: "role",
|
|
1619
|
-
type: "bytes32"
|
|
1583
|
+
type: "bytes32",
|
|
1620
1584
|
},
|
|
1621
1585
|
{
|
|
1622
1586
|
indexed: true,
|
|
1623
1587
|
internalType: "address",
|
|
1624
1588
|
name: "account",
|
|
1625
|
-
type: "address"
|
|
1589
|
+
type: "address",
|
|
1626
1590
|
},
|
|
1627
1591
|
{
|
|
1628
1592
|
indexed: true,
|
|
1629
1593
|
internalType: "address",
|
|
1630
1594
|
name: "sender",
|
|
1631
|
-
type: "address"
|
|
1632
|
-
}
|
|
1595
|
+
type: "address",
|
|
1596
|
+
},
|
|
1633
1597
|
],
|
|
1634
1598
|
name: "RoleGranted",
|
|
1635
|
-
type: "event"
|
|
1599
|
+
type: "event",
|
|
1636
1600
|
},
|
|
1637
1601
|
{
|
|
1638
1602
|
anonymous: false,
|
|
@@ -1641,23 +1605,23 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1641
1605
|
indexed: true,
|
|
1642
1606
|
internalType: "bytes32",
|
|
1643
1607
|
name: "role",
|
|
1644
|
-
type: "bytes32"
|
|
1608
|
+
type: "bytes32",
|
|
1645
1609
|
},
|
|
1646
1610
|
{
|
|
1647
1611
|
indexed: true,
|
|
1648
1612
|
internalType: "address",
|
|
1649
1613
|
name: "account",
|
|
1650
|
-
type: "address"
|
|
1614
|
+
type: "address",
|
|
1651
1615
|
},
|
|
1652
1616
|
{
|
|
1653
1617
|
indexed: true,
|
|
1654
1618
|
internalType: "address",
|
|
1655
1619
|
name: "sender",
|
|
1656
|
-
type: "address"
|
|
1657
|
-
}
|
|
1620
|
+
type: "address",
|
|
1621
|
+
},
|
|
1658
1622
|
],
|
|
1659
1623
|
name: "RoleRevoked",
|
|
1660
|
-
type: "event"
|
|
1624
|
+
type: "event",
|
|
1661
1625
|
},
|
|
1662
1626
|
{
|
|
1663
1627
|
inputs: [],
|
|
@@ -1666,52 +1630,52 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1666
1630
|
{
|
|
1667
1631
|
internalType: "bytes32",
|
|
1668
1632
|
name: "",
|
|
1669
|
-
type: "bytes32"
|
|
1670
|
-
}
|
|
1633
|
+
type: "bytes32",
|
|
1634
|
+
},
|
|
1671
1635
|
],
|
|
1672
1636
|
stateMutability: "view",
|
|
1673
|
-
type: "function"
|
|
1637
|
+
type: "function",
|
|
1674
1638
|
},
|
|
1675
1639
|
{
|
|
1676
1640
|
inputs: [],
|
|
1677
1641
|
name: "acceptOwnership",
|
|
1678
1642
|
outputs: [],
|
|
1679
1643
|
stateMutability: "nonpayable",
|
|
1680
|
-
type: "function"
|
|
1644
|
+
type: "function",
|
|
1681
1645
|
},
|
|
1682
1646
|
{
|
|
1683
1647
|
inputs: [
|
|
1684
1648
|
{
|
|
1685
1649
|
internalType: "bytes32",
|
|
1686
1650
|
name: "_txId",
|
|
1687
|
-
type: "bytes32"
|
|
1651
|
+
type: "bytes32",
|
|
1688
1652
|
},
|
|
1689
1653
|
{
|
|
1690
1654
|
internalType: "uint256",
|
|
1691
1655
|
name: "_currentTimestamp",
|
|
1692
|
-
type: "uint256"
|
|
1693
|
-
}
|
|
1656
|
+
type: "uint256",
|
|
1657
|
+
},
|
|
1694
1658
|
],
|
|
1695
1659
|
name: "canFinalize",
|
|
1696
1660
|
outputs: [
|
|
1697
1661
|
{
|
|
1698
1662
|
internalType: "bool",
|
|
1699
1663
|
name: "",
|
|
1700
|
-
type: "bool"
|
|
1664
|
+
type: "bool",
|
|
1701
1665
|
},
|
|
1702
1666
|
{
|
|
1703
1667
|
internalType: "uint256",
|
|
1704
1668
|
name: "",
|
|
1705
|
-
type: "uint256"
|
|
1669
|
+
type: "uint256",
|
|
1706
1670
|
},
|
|
1707
1671
|
{
|
|
1708
1672
|
internalType: "uint256",
|
|
1709
1673
|
name: "",
|
|
1710
|
-
type: "uint256"
|
|
1711
|
-
}
|
|
1674
|
+
type: "uint256",
|
|
1675
|
+
},
|
|
1712
1676
|
],
|
|
1713
1677
|
stateMutability: "view",
|
|
1714
|
-
type: "function"
|
|
1678
|
+
type: "function",
|
|
1715
1679
|
},
|
|
1716
1680
|
{
|
|
1717
1681
|
inputs: [],
|
|
@@ -1720,38 +1684,38 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1720
1684
|
{
|
|
1721
1685
|
internalType: "contract IConsensusMain",
|
|
1722
1686
|
name: "",
|
|
1723
|
-
type: "address"
|
|
1724
|
-
}
|
|
1687
|
+
type: "address",
|
|
1688
|
+
},
|
|
1725
1689
|
],
|
|
1726
1690
|
stateMutability: "view",
|
|
1727
|
-
type: "function"
|
|
1691
|
+
type: "function",
|
|
1728
1692
|
},
|
|
1729
1693
|
{
|
|
1730
1694
|
inputs: [
|
|
1731
1695
|
{
|
|
1732
1696
|
internalType: "bytes32",
|
|
1733
1697
|
name: "_tx_id",
|
|
1734
|
-
type: "bytes32"
|
|
1735
|
-
}
|
|
1698
|
+
type: "bytes32",
|
|
1699
|
+
},
|
|
1736
1700
|
],
|
|
1737
1701
|
name: "getLastAppealResult",
|
|
1738
1702
|
outputs: [
|
|
1739
1703
|
{
|
|
1740
1704
|
internalType: "enum ITransactions.ResultType",
|
|
1741
1705
|
name: "",
|
|
1742
|
-
type: "uint8"
|
|
1743
|
-
}
|
|
1706
|
+
type: "uint8",
|
|
1707
|
+
},
|
|
1744
1708
|
],
|
|
1745
1709
|
stateMutability: "view",
|
|
1746
|
-
type: "function"
|
|
1710
|
+
type: "function",
|
|
1747
1711
|
},
|
|
1748
1712
|
{
|
|
1749
1713
|
inputs: [
|
|
1750
1714
|
{
|
|
1751
1715
|
internalType: "address",
|
|
1752
1716
|
name: "recipient",
|
|
1753
|
-
type: "address"
|
|
1754
|
-
}
|
|
1717
|
+
type: "address",
|
|
1718
|
+
},
|
|
1755
1719
|
],
|
|
1756
1720
|
name: "getLatestAcceptedTransaction",
|
|
1757
1721
|
outputs: [
|
|
@@ -1760,230 +1724,230 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1760
1724
|
{
|
|
1761
1725
|
internalType: "uint256",
|
|
1762
1726
|
name: "currentTimestamp",
|
|
1763
|
-
type: "uint256"
|
|
1727
|
+
type: "uint256",
|
|
1764
1728
|
},
|
|
1765
1729
|
{
|
|
1766
1730
|
internalType: "address",
|
|
1767
1731
|
name: "sender",
|
|
1768
|
-
type: "address"
|
|
1732
|
+
type: "address",
|
|
1769
1733
|
},
|
|
1770
1734
|
{
|
|
1771
1735
|
internalType: "address",
|
|
1772
1736
|
name: "recipient",
|
|
1773
|
-
type: "address"
|
|
1737
|
+
type: "address",
|
|
1774
1738
|
},
|
|
1775
1739
|
{
|
|
1776
1740
|
internalType: "uint256",
|
|
1777
1741
|
name: "numOfInitialValidators",
|
|
1778
|
-
type: "uint256"
|
|
1742
|
+
type: "uint256",
|
|
1779
1743
|
},
|
|
1780
1744
|
{
|
|
1781
1745
|
internalType: "uint256",
|
|
1782
1746
|
name: "txSlot",
|
|
1783
|
-
type: "uint256"
|
|
1747
|
+
type: "uint256",
|
|
1784
1748
|
},
|
|
1785
1749
|
{
|
|
1786
1750
|
internalType: "uint256",
|
|
1787
1751
|
name: "createdTimestamp",
|
|
1788
|
-
type: "uint256"
|
|
1752
|
+
type: "uint256",
|
|
1789
1753
|
},
|
|
1790
1754
|
{
|
|
1791
1755
|
internalType: "uint256",
|
|
1792
1756
|
name: "lastVoteTimestamp",
|
|
1793
|
-
type: "uint256"
|
|
1757
|
+
type: "uint256",
|
|
1794
1758
|
},
|
|
1795
1759
|
{
|
|
1796
1760
|
internalType: "bytes32",
|
|
1797
1761
|
name: "randomSeed",
|
|
1798
|
-
type: "bytes32"
|
|
1762
|
+
type: "bytes32",
|
|
1799
1763
|
},
|
|
1800
1764
|
{
|
|
1801
1765
|
internalType: "enum ITransactions.ResultType",
|
|
1802
1766
|
name: "result",
|
|
1803
|
-
type: "uint8"
|
|
1767
|
+
type: "uint8",
|
|
1804
1768
|
},
|
|
1805
1769
|
{
|
|
1806
1770
|
internalType: "bytes",
|
|
1807
1771
|
name: "txData",
|
|
1808
|
-
type: "bytes"
|
|
1772
|
+
type: "bytes",
|
|
1809
1773
|
},
|
|
1810
1774
|
{
|
|
1811
1775
|
internalType: "bytes",
|
|
1812
1776
|
name: "txReceipt",
|
|
1813
|
-
type: "bytes"
|
|
1777
|
+
type: "bytes",
|
|
1814
1778
|
},
|
|
1815
1779
|
{
|
|
1816
1780
|
components: [
|
|
1817
1781
|
{
|
|
1818
1782
|
internalType: "enum IMessages.MessageType",
|
|
1819
1783
|
name: "messageType",
|
|
1820
|
-
type: "uint8"
|
|
1784
|
+
type: "uint8",
|
|
1821
1785
|
},
|
|
1822
1786
|
{
|
|
1823
1787
|
internalType: "address",
|
|
1824
1788
|
name: "recipient",
|
|
1825
|
-
type: "address"
|
|
1789
|
+
type: "address",
|
|
1826
1790
|
},
|
|
1827
1791
|
{
|
|
1828
1792
|
internalType: "uint256",
|
|
1829
1793
|
name: "value",
|
|
1830
|
-
type: "uint256"
|
|
1794
|
+
type: "uint256",
|
|
1831
1795
|
},
|
|
1832
1796
|
{
|
|
1833
1797
|
internalType: "bytes",
|
|
1834
1798
|
name: "data",
|
|
1835
|
-
type: "bytes"
|
|
1799
|
+
type: "bytes",
|
|
1836
1800
|
},
|
|
1837
1801
|
{
|
|
1838
1802
|
internalType: "bool",
|
|
1839
1803
|
name: "onAcceptance",
|
|
1840
|
-
type: "bool"
|
|
1841
|
-
}
|
|
1804
|
+
type: "bool",
|
|
1805
|
+
},
|
|
1842
1806
|
],
|
|
1843
1807
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
1844
1808
|
name: "messages",
|
|
1845
|
-
type: "tuple[]"
|
|
1809
|
+
type: "tuple[]",
|
|
1846
1810
|
},
|
|
1847
1811
|
{
|
|
1848
1812
|
internalType: "enum IQueues.QueueType",
|
|
1849
1813
|
name: "queueType",
|
|
1850
|
-
type: "uint8"
|
|
1814
|
+
type: "uint8",
|
|
1851
1815
|
},
|
|
1852
1816
|
{
|
|
1853
1817
|
internalType: "uint256",
|
|
1854
1818
|
name: "queuePosition",
|
|
1855
|
-
type: "uint256"
|
|
1819
|
+
type: "uint256",
|
|
1856
1820
|
},
|
|
1857
1821
|
{
|
|
1858
1822
|
internalType: "address",
|
|
1859
1823
|
name: "activator",
|
|
1860
|
-
type: "address"
|
|
1824
|
+
type: "address",
|
|
1861
1825
|
},
|
|
1862
1826
|
{
|
|
1863
1827
|
internalType: "address",
|
|
1864
1828
|
name: "lastLeader",
|
|
1865
|
-
type: "address"
|
|
1829
|
+
type: "address",
|
|
1866
1830
|
},
|
|
1867
1831
|
{
|
|
1868
1832
|
internalType: "enum ITransactions.TransactionStatus",
|
|
1869
1833
|
name: "status",
|
|
1870
|
-
type: "uint8"
|
|
1834
|
+
type: "uint8",
|
|
1871
1835
|
},
|
|
1872
1836
|
{
|
|
1873
1837
|
internalType: "bytes32",
|
|
1874
1838
|
name: "txId",
|
|
1875
|
-
type: "bytes32"
|
|
1839
|
+
type: "bytes32",
|
|
1876
1840
|
},
|
|
1877
1841
|
{
|
|
1878
1842
|
components: [
|
|
1879
1843
|
{
|
|
1880
1844
|
internalType: "uint256",
|
|
1881
1845
|
name: "activationBlock",
|
|
1882
|
-
type: "uint256"
|
|
1846
|
+
type: "uint256",
|
|
1883
1847
|
},
|
|
1884
1848
|
{
|
|
1885
1849
|
internalType: "uint256",
|
|
1886
1850
|
name: "processingBlock",
|
|
1887
|
-
type: "uint256"
|
|
1851
|
+
type: "uint256",
|
|
1888
1852
|
},
|
|
1889
1853
|
{
|
|
1890
1854
|
internalType: "uint256",
|
|
1891
1855
|
name: "proposalBlock",
|
|
1892
|
-
type: "uint256"
|
|
1893
|
-
}
|
|
1856
|
+
type: "uint256",
|
|
1857
|
+
},
|
|
1894
1858
|
],
|
|
1895
1859
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
1896
1860
|
name: "readStateBlockRange",
|
|
1897
|
-
type: "tuple"
|
|
1861
|
+
type: "tuple",
|
|
1898
1862
|
},
|
|
1899
1863
|
{
|
|
1900
1864
|
internalType: "uint256",
|
|
1901
1865
|
name: "numOfRounds",
|
|
1902
|
-
type: "uint256"
|
|
1866
|
+
type: "uint256",
|
|
1903
1867
|
},
|
|
1904
1868
|
{
|
|
1905
1869
|
components: [
|
|
1906
1870
|
{
|
|
1907
1871
|
internalType: "uint256",
|
|
1908
1872
|
name: "round",
|
|
1909
|
-
type: "uint256"
|
|
1873
|
+
type: "uint256",
|
|
1910
1874
|
},
|
|
1911
1875
|
{
|
|
1912
1876
|
internalType: "uint256",
|
|
1913
1877
|
name: "leaderIndex",
|
|
1914
|
-
type: "uint256"
|
|
1878
|
+
type: "uint256",
|
|
1915
1879
|
},
|
|
1916
1880
|
{
|
|
1917
1881
|
internalType: "uint256",
|
|
1918
1882
|
name: "votesCommitted",
|
|
1919
|
-
type: "uint256"
|
|
1883
|
+
type: "uint256",
|
|
1920
1884
|
},
|
|
1921
1885
|
{
|
|
1922
1886
|
internalType: "uint256",
|
|
1923
1887
|
name: "votesRevealed",
|
|
1924
|
-
type: "uint256"
|
|
1888
|
+
type: "uint256",
|
|
1925
1889
|
},
|
|
1926
1890
|
{
|
|
1927
1891
|
internalType: "uint256",
|
|
1928
1892
|
name: "appealBond",
|
|
1929
|
-
type: "uint256"
|
|
1893
|
+
type: "uint256",
|
|
1930
1894
|
},
|
|
1931
1895
|
{
|
|
1932
1896
|
internalType: "uint256",
|
|
1933
1897
|
name: "rotationsLeft",
|
|
1934
|
-
type: "uint256"
|
|
1898
|
+
type: "uint256",
|
|
1935
1899
|
},
|
|
1936
1900
|
{
|
|
1937
1901
|
internalType: "enum ITransactions.ResultType",
|
|
1938
1902
|
name: "result",
|
|
1939
|
-
type: "uint8"
|
|
1903
|
+
type: "uint8",
|
|
1940
1904
|
},
|
|
1941
1905
|
{
|
|
1942
1906
|
internalType: "address[]",
|
|
1943
1907
|
name: "roundValidators",
|
|
1944
|
-
type: "address[]"
|
|
1908
|
+
type: "address[]",
|
|
1945
1909
|
},
|
|
1946
1910
|
{
|
|
1947
1911
|
internalType: "bytes32[]",
|
|
1948
1912
|
name: "validatorVotesHash",
|
|
1949
|
-
type: "bytes32[]"
|
|
1913
|
+
type: "bytes32[]",
|
|
1950
1914
|
},
|
|
1951
1915
|
{
|
|
1952
1916
|
internalType: "enum ITransactions.VoteType[]",
|
|
1953
1917
|
name: "validatorVotes",
|
|
1954
|
-
type: "uint8[]"
|
|
1955
|
-
}
|
|
1918
|
+
type: "uint8[]",
|
|
1919
|
+
},
|
|
1956
1920
|
],
|
|
1957
1921
|
internalType: "struct ITransactions.RoundData",
|
|
1958
1922
|
name: "lastRound",
|
|
1959
|
-
type: "tuple"
|
|
1960
|
-
}
|
|
1923
|
+
type: "tuple",
|
|
1924
|
+
},
|
|
1961
1925
|
],
|
|
1962
1926
|
internalType: "struct ConsensusData.TransactionData",
|
|
1963
1927
|
name: "txData",
|
|
1964
|
-
type: "tuple"
|
|
1965
|
-
}
|
|
1928
|
+
type: "tuple",
|
|
1929
|
+
},
|
|
1966
1930
|
],
|
|
1967
1931
|
stateMutability: "view",
|
|
1968
|
-
type: "function"
|
|
1932
|
+
type: "function",
|
|
1969
1933
|
},
|
|
1970
1934
|
{
|
|
1971
1935
|
inputs: [
|
|
1972
1936
|
{
|
|
1973
1937
|
internalType: "address",
|
|
1974
1938
|
name: "recipient",
|
|
1975
|
-
type: "address"
|
|
1939
|
+
type: "address",
|
|
1976
1940
|
},
|
|
1977
1941
|
{
|
|
1978
1942
|
internalType: "uint256",
|
|
1979
1943
|
name: "startIndex",
|
|
1980
|
-
type: "uint256"
|
|
1944
|
+
type: "uint256",
|
|
1981
1945
|
},
|
|
1982
1946
|
{
|
|
1983
1947
|
internalType: "uint256",
|
|
1984
1948
|
name: "pageSize",
|
|
1985
|
-
type: "uint256"
|
|
1986
|
-
}
|
|
1949
|
+
type: "uint256",
|
|
1950
|
+
},
|
|
1987
1951
|
],
|
|
1988
1952
|
name: "getLatestAcceptedTransactions",
|
|
1989
1953
|
outputs: [
|
|
@@ -1992,239 +1956,239 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
1992
1956
|
{
|
|
1993
1957
|
internalType: "uint256",
|
|
1994
1958
|
name: "currentTimestamp",
|
|
1995
|
-
type: "uint256"
|
|
1959
|
+
type: "uint256",
|
|
1996
1960
|
},
|
|
1997
1961
|
{
|
|
1998
1962
|
internalType: "address",
|
|
1999
1963
|
name: "sender",
|
|
2000
|
-
type: "address"
|
|
1964
|
+
type: "address",
|
|
2001
1965
|
},
|
|
2002
1966
|
{
|
|
2003
1967
|
internalType: "address",
|
|
2004
1968
|
name: "recipient",
|
|
2005
|
-
type: "address"
|
|
1969
|
+
type: "address",
|
|
2006
1970
|
},
|
|
2007
1971
|
{
|
|
2008
1972
|
internalType: "uint256",
|
|
2009
1973
|
name: "numOfInitialValidators",
|
|
2010
|
-
type: "uint256"
|
|
1974
|
+
type: "uint256",
|
|
2011
1975
|
},
|
|
2012
1976
|
{
|
|
2013
1977
|
internalType: "uint256",
|
|
2014
1978
|
name: "txSlot",
|
|
2015
|
-
type: "uint256"
|
|
1979
|
+
type: "uint256",
|
|
2016
1980
|
},
|
|
2017
1981
|
{
|
|
2018
1982
|
internalType: "uint256",
|
|
2019
1983
|
name: "createdTimestamp",
|
|
2020
|
-
type: "uint256"
|
|
1984
|
+
type: "uint256",
|
|
2021
1985
|
},
|
|
2022
1986
|
{
|
|
2023
1987
|
internalType: "uint256",
|
|
2024
1988
|
name: "lastVoteTimestamp",
|
|
2025
|
-
type: "uint256"
|
|
1989
|
+
type: "uint256",
|
|
2026
1990
|
},
|
|
2027
1991
|
{
|
|
2028
1992
|
internalType: "bytes32",
|
|
2029
1993
|
name: "randomSeed",
|
|
2030
|
-
type: "bytes32"
|
|
1994
|
+
type: "bytes32",
|
|
2031
1995
|
},
|
|
2032
1996
|
{
|
|
2033
1997
|
internalType: "enum ITransactions.ResultType",
|
|
2034
1998
|
name: "result",
|
|
2035
|
-
type: "uint8"
|
|
1999
|
+
type: "uint8",
|
|
2036
2000
|
},
|
|
2037
2001
|
{
|
|
2038
2002
|
internalType: "bytes",
|
|
2039
2003
|
name: "txData",
|
|
2040
|
-
type: "bytes"
|
|
2004
|
+
type: "bytes",
|
|
2041
2005
|
},
|
|
2042
2006
|
{
|
|
2043
2007
|
internalType: "bytes",
|
|
2044
2008
|
name: "txReceipt",
|
|
2045
|
-
type: "bytes"
|
|
2009
|
+
type: "bytes",
|
|
2046
2010
|
},
|
|
2047
2011
|
{
|
|
2048
2012
|
components: [
|
|
2049
2013
|
{
|
|
2050
2014
|
internalType: "enum IMessages.MessageType",
|
|
2051
2015
|
name: "messageType",
|
|
2052
|
-
type: "uint8"
|
|
2016
|
+
type: "uint8",
|
|
2053
2017
|
},
|
|
2054
2018
|
{
|
|
2055
2019
|
internalType: "address",
|
|
2056
2020
|
name: "recipient",
|
|
2057
|
-
type: "address"
|
|
2021
|
+
type: "address",
|
|
2058
2022
|
},
|
|
2059
2023
|
{
|
|
2060
2024
|
internalType: "uint256",
|
|
2061
2025
|
name: "value",
|
|
2062
|
-
type: "uint256"
|
|
2026
|
+
type: "uint256",
|
|
2063
2027
|
},
|
|
2064
2028
|
{
|
|
2065
2029
|
internalType: "bytes",
|
|
2066
2030
|
name: "data",
|
|
2067
|
-
type: "bytes"
|
|
2031
|
+
type: "bytes",
|
|
2068
2032
|
},
|
|
2069
2033
|
{
|
|
2070
2034
|
internalType: "bool",
|
|
2071
2035
|
name: "onAcceptance",
|
|
2072
|
-
type: "bool"
|
|
2073
|
-
}
|
|
2036
|
+
type: "bool",
|
|
2037
|
+
},
|
|
2074
2038
|
],
|
|
2075
2039
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
2076
2040
|
name: "messages",
|
|
2077
|
-
type: "tuple[]"
|
|
2041
|
+
type: "tuple[]",
|
|
2078
2042
|
},
|
|
2079
2043
|
{
|
|
2080
2044
|
internalType: "enum IQueues.QueueType",
|
|
2081
2045
|
name: "queueType",
|
|
2082
|
-
type: "uint8"
|
|
2046
|
+
type: "uint8",
|
|
2083
2047
|
},
|
|
2084
2048
|
{
|
|
2085
2049
|
internalType: "uint256",
|
|
2086
2050
|
name: "queuePosition",
|
|
2087
|
-
type: "uint256"
|
|
2051
|
+
type: "uint256",
|
|
2088
2052
|
},
|
|
2089
2053
|
{
|
|
2090
2054
|
internalType: "address",
|
|
2091
2055
|
name: "activator",
|
|
2092
|
-
type: "address"
|
|
2056
|
+
type: "address",
|
|
2093
2057
|
},
|
|
2094
2058
|
{
|
|
2095
2059
|
internalType: "address",
|
|
2096
2060
|
name: "lastLeader",
|
|
2097
|
-
type: "address"
|
|
2061
|
+
type: "address",
|
|
2098
2062
|
},
|
|
2099
2063
|
{
|
|
2100
2064
|
internalType: "enum ITransactions.TransactionStatus",
|
|
2101
2065
|
name: "status",
|
|
2102
|
-
type: "uint8"
|
|
2066
|
+
type: "uint8",
|
|
2103
2067
|
},
|
|
2104
2068
|
{
|
|
2105
2069
|
internalType: "bytes32",
|
|
2106
2070
|
name: "txId",
|
|
2107
|
-
type: "bytes32"
|
|
2071
|
+
type: "bytes32",
|
|
2108
2072
|
},
|
|
2109
2073
|
{
|
|
2110
2074
|
components: [
|
|
2111
2075
|
{
|
|
2112
2076
|
internalType: "uint256",
|
|
2113
2077
|
name: "activationBlock",
|
|
2114
|
-
type: "uint256"
|
|
2078
|
+
type: "uint256",
|
|
2115
2079
|
},
|
|
2116
2080
|
{
|
|
2117
2081
|
internalType: "uint256",
|
|
2118
2082
|
name: "processingBlock",
|
|
2119
|
-
type: "uint256"
|
|
2083
|
+
type: "uint256",
|
|
2120
2084
|
},
|
|
2121
2085
|
{
|
|
2122
2086
|
internalType: "uint256",
|
|
2123
2087
|
name: "proposalBlock",
|
|
2124
|
-
type: "uint256"
|
|
2125
|
-
}
|
|
2088
|
+
type: "uint256",
|
|
2089
|
+
},
|
|
2126
2090
|
],
|
|
2127
2091
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
2128
2092
|
name: "readStateBlockRange",
|
|
2129
|
-
type: "tuple"
|
|
2093
|
+
type: "tuple",
|
|
2130
2094
|
},
|
|
2131
2095
|
{
|
|
2132
2096
|
internalType: "uint256",
|
|
2133
2097
|
name: "numOfRounds",
|
|
2134
|
-
type: "uint256"
|
|
2098
|
+
type: "uint256",
|
|
2135
2099
|
},
|
|
2136
2100
|
{
|
|
2137
2101
|
components: [
|
|
2138
2102
|
{
|
|
2139
2103
|
internalType: "uint256",
|
|
2140
2104
|
name: "round",
|
|
2141
|
-
type: "uint256"
|
|
2105
|
+
type: "uint256",
|
|
2142
2106
|
},
|
|
2143
2107
|
{
|
|
2144
2108
|
internalType: "uint256",
|
|
2145
2109
|
name: "leaderIndex",
|
|
2146
|
-
type: "uint256"
|
|
2110
|
+
type: "uint256",
|
|
2147
2111
|
},
|
|
2148
2112
|
{
|
|
2149
2113
|
internalType: "uint256",
|
|
2150
2114
|
name: "votesCommitted",
|
|
2151
|
-
type: "uint256"
|
|
2115
|
+
type: "uint256",
|
|
2152
2116
|
},
|
|
2153
2117
|
{
|
|
2154
2118
|
internalType: "uint256",
|
|
2155
2119
|
name: "votesRevealed",
|
|
2156
|
-
type: "uint256"
|
|
2120
|
+
type: "uint256",
|
|
2157
2121
|
},
|
|
2158
2122
|
{
|
|
2159
2123
|
internalType: "uint256",
|
|
2160
2124
|
name: "appealBond",
|
|
2161
|
-
type: "uint256"
|
|
2125
|
+
type: "uint256",
|
|
2162
2126
|
},
|
|
2163
2127
|
{
|
|
2164
2128
|
internalType: "uint256",
|
|
2165
2129
|
name: "rotationsLeft",
|
|
2166
|
-
type: "uint256"
|
|
2130
|
+
type: "uint256",
|
|
2167
2131
|
},
|
|
2168
2132
|
{
|
|
2169
2133
|
internalType: "enum ITransactions.ResultType",
|
|
2170
2134
|
name: "result",
|
|
2171
|
-
type: "uint8"
|
|
2135
|
+
type: "uint8",
|
|
2172
2136
|
},
|
|
2173
2137
|
{
|
|
2174
2138
|
internalType: "address[]",
|
|
2175
2139
|
name: "roundValidators",
|
|
2176
|
-
type: "address[]"
|
|
2140
|
+
type: "address[]",
|
|
2177
2141
|
},
|
|
2178
2142
|
{
|
|
2179
2143
|
internalType: "bytes32[]",
|
|
2180
2144
|
name: "validatorVotesHash",
|
|
2181
|
-
type: "bytes32[]"
|
|
2145
|
+
type: "bytes32[]",
|
|
2182
2146
|
},
|
|
2183
2147
|
{
|
|
2184
2148
|
internalType: "enum ITransactions.VoteType[]",
|
|
2185
2149
|
name: "validatorVotes",
|
|
2186
|
-
type: "uint8[]"
|
|
2187
|
-
}
|
|
2150
|
+
type: "uint8[]",
|
|
2151
|
+
},
|
|
2188
2152
|
],
|
|
2189
2153
|
internalType: "struct ITransactions.RoundData",
|
|
2190
2154
|
name: "lastRound",
|
|
2191
|
-
type: "tuple"
|
|
2192
|
-
}
|
|
2155
|
+
type: "tuple",
|
|
2156
|
+
},
|
|
2193
2157
|
],
|
|
2194
2158
|
internalType: "struct ConsensusData.TransactionData[]",
|
|
2195
2159
|
name: "",
|
|
2196
|
-
type: "tuple[]"
|
|
2197
|
-
}
|
|
2160
|
+
type: "tuple[]",
|
|
2161
|
+
},
|
|
2198
2162
|
],
|
|
2199
2163
|
stateMutability: "view",
|
|
2200
|
-
type: "function"
|
|
2164
|
+
type: "function",
|
|
2201
2165
|
},
|
|
2202
2166
|
{
|
|
2203
2167
|
inputs: [
|
|
2204
2168
|
{
|
|
2205
2169
|
internalType: "address",
|
|
2206
2170
|
name: "recipient",
|
|
2207
|
-
type: "address"
|
|
2208
|
-
}
|
|
2171
|
+
type: "address",
|
|
2172
|
+
},
|
|
2209
2173
|
],
|
|
2210
2174
|
name: "getLatestAcceptedTxCount",
|
|
2211
2175
|
outputs: [
|
|
2212
2176
|
{
|
|
2213
2177
|
internalType: "uint256",
|
|
2214
2178
|
name: "",
|
|
2215
|
-
type: "uint256"
|
|
2216
|
-
}
|
|
2179
|
+
type: "uint256",
|
|
2180
|
+
},
|
|
2217
2181
|
],
|
|
2218
2182
|
stateMutability: "view",
|
|
2219
|
-
type: "function"
|
|
2183
|
+
type: "function",
|
|
2220
2184
|
},
|
|
2221
2185
|
{
|
|
2222
2186
|
inputs: [
|
|
2223
2187
|
{
|
|
2224
2188
|
internalType: "address",
|
|
2225
2189
|
name: "recipient",
|
|
2226
|
-
type: "address"
|
|
2227
|
-
}
|
|
2190
|
+
type: "address",
|
|
2191
|
+
},
|
|
2228
2192
|
],
|
|
2229
2193
|
name: "getLatestFinalizedTransaction",
|
|
2230
2194
|
outputs: [
|
|
@@ -2233,230 +2197,230 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
2233
2197
|
{
|
|
2234
2198
|
internalType: "uint256",
|
|
2235
2199
|
name: "currentTimestamp",
|
|
2236
|
-
type: "uint256"
|
|
2200
|
+
type: "uint256",
|
|
2237
2201
|
},
|
|
2238
2202
|
{
|
|
2239
2203
|
internalType: "address",
|
|
2240
2204
|
name: "sender",
|
|
2241
|
-
type: "address"
|
|
2205
|
+
type: "address",
|
|
2242
2206
|
},
|
|
2243
2207
|
{
|
|
2244
2208
|
internalType: "address",
|
|
2245
2209
|
name: "recipient",
|
|
2246
|
-
type: "address"
|
|
2210
|
+
type: "address",
|
|
2247
2211
|
},
|
|
2248
2212
|
{
|
|
2249
2213
|
internalType: "uint256",
|
|
2250
2214
|
name: "numOfInitialValidators",
|
|
2251
|
-
type: "uint256"
|
|
2215
|
+
type: "uint256",
|
|
2252
2216
|
},
|
|
2253
2217
|
{
|
|
2254
2218
|
internalType: "uint256",
|
|
2255
2219
|
name: "txSlot",
|
|
2256
|
-
type: "uint256"
|
|
2220
|
+
type: "uint256",
|
|
2257
2221
|
},
|
|
2258
2222
|
{
|
|
2259
2223
|
internalType: "uint256",
|
|
2260
2224
|
name: "createdTimestamp",
|
|
2261
|
-
type: "uint256"
|
|
2225
|
+
type: "uint256",
|
|
2262
2226
|
},
|
|
2263
2227
|
{
|
|
2264
2228
|
internalType: "uint256",
|
|
2265
2229
|
name: "lastVoteTimestamp",
|
|
2266
|
-
type: "uint256"
|
|
2230
|
+
type: "uint256",
|
|
2267
2231
|
},
|
|
2268
2232
|
{
|
|
2269
2233
|
internalType: "bytes32",
|
|
2270
2234
|
name: "randomSeed",
|
|
2271
|
-
type: "bytes32"
|
|
2235
|
+
type: "bytes32",
|
|
2272
2236
|
},
|
|
2273
2237
|
{
|
|
2274
2238
|
internalType: "enum ITransactions.ResultType",
|
|
2275
2239
|
name: "result",
|
|
2276
|
-
type: "uint8"
|
|
2240
|
+
type: "uint8",
|
|
2277
2241
|
},
|
|
2278
2242
|
{
|
|
2279
2243
|
internalType: "bytes",
|
|
2280
2244
|
name: "txData",
|
|
2281
|
-
type: "bytes"
|
|
2245
|
+
type: "bytes",
|
|
2282
2246
|
},
|
|
2283
2247
|
{
|
|
2284
2248
|
internalType: "bytes",
|
|
2285
2249
|
name: "txReceipt",
|
|
2286
|
-
type: "bytes"
|
|
2250
|
+
type: "bytes",
|
|
2287
2251
|
},
|
|
2288
2252
|
{
|
|
2289
2253
|
components: [
|
|
2290
2254
|
{
|
|
2291
2255
|
internalType: "enum IMessages.MessageType",
|
|
2292
2256
|
name: "messageType",
|
|
2293
|
-
type: "uint8"
|
|
2257
|
+
type: "uint8",
|
|
2294
2258
|
},
|
|
2295
2259
|
{
|
|
2296
2260
|
internalType: "address",
|
|
2297
2261
|
name: "recipient",
|
|
2298
|
-
type: "address"
|
|
2262
|
+
type: "address",
|
|
2299
2263
|
},
|
|
2300
2264
|
{
|
|
2301
2265
|
internalType: "uint256",
|
|
2302
2266
|
name: "value",
|
|
2303
|
-
type: "uint256"
|
|
2267
|
+
type: "uint256",
|
|
2304
2268
|
},
|
|
2305
2269
|
{
|
|
2306
2270
|
internalType: "bytes",
|
|
2307
2271
|
name: "data",
|
|
2308
|
-
type: "bytes"
|
|
2272
|
+
type: "bytes",
|
|
2309
2273
|
},
|
|
2310
2274
|
{
|
|
2311
2275
|
internalType: "bool",
|
|
2312
2276
|
name: "onAcceptance",
|
|
2313
|
-
type: "bool"
|
|
2314
|
-
}
|
|
2277
|
+
type: "bool",
|
|
2278
|
+
},
|
|
2315
2279
|
],
|
|
2316
2280
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
2317
2281
|
name: "messages",
|
|
2318
|
-
type: "tuple[]"
|
|
2282
|
+
type: "tuple[]",
|
|
2319
2283
|
},
|
|
2320
2284
|
{
|
|
2321
2285
|
internalType: "enum IQueues.QueueType",
|
|
2322
2286
|
name: "queueType",
|
|
2323
|
-
type: "uint8"
|
|
2287
|
+
type: "uint8",
|
|
2324
2288
|
},
|
|
2325
2289
|
{
|
|
2326
2290
|
internalType: "uint256",
|
|
2327
2291
|
name: "queuePosition",
|
|
2328
|
-
type: "uint256"
|
|
2292
|
+
type: "uint256",
|
|
2329
2293
|
},
|
|
2330
2294
|
{
|
|
2331
2295
|
internalType: "address",
|
|
2332
2296
|
name: "activator",
|
|
2333
|
-
type: "address"
|
|
2297
|
+
type: "address",
|
|
2334
2298
|
},
|
|
2335
2299
|
{
|
|
2336
2300
|
internalType: "address",
|
|
2337
2301
|
name: "lastLeader",
|
|
2338
|
-
type: "address"
|
|
2302
|
+
type: "address",
|
|
2339
2303
|
},
|
|
2340
2304
|
{
|
|
2341
2305
|
internalType: "enum ITransactions.TransactionStatus",
|
|
2342
2306
|
name: "status",
|
|
2343
|
-
type: "uint8"
|
|
2307
|
+
type: "uint8",
|
|
2344
2308
|
},
|
|
2345
2309
|
{
|
|
2346
2310
|
internalType: "bytes32",
|
|
2347
2311
|
name: "txId",
|
|
2348
|
-
type: "bytes32"
|
|
2312
|
+
type: "bytes32",
|
|
2349
2313
|
},
|
|
2350
2314
|
{
|
|
2351
2315
|
components: [
|
|
2352
2316
|
{
|
|
2353
2317
|
internalType: "uint256",
|
|
2354
2318
|
name: "activationBlock",
|
|
2355
|
-
type: "uint256"
|
|
2319
|
+
type: "uint256",
|
|
2356
2320
|
},
|
|
2357
2321
|
{
|
|
2358
2322
|
internalType: "uint256",
|
|
2359
2323
|
name: "processingBlock",
|
|
2360
|
-
type: "uint256"
|
|
2324
|
+
type: "uint256",
|
|
2361
2325
|
},
|
|
2362
2326
|
{
|
|
2363
2327
|
internalType: "uint256",
|
|
2364
2328
|
name: "proposalBlock",
|
|
2365
|
-
type: "uint256"
|
|
2366
|
-
}
|
|
2329
|
+
type: "uint256",
|
|
2330
|
+
},
|
|
2367
2331
|
],
|
|
2368
2332
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
2369
2333
|
name: "readStateBlockRange",
|
|
2370
|
-
type: "tuple"
|
|
2334
|
+
type: "tuple",
|
|
2371
2335
|
},
|
|
2372
2336
|
{
|
|
2373
2337
|
internalType: "uint256",
|
|
2374
2338
|
name: "numOfRounds",
|
|
2375
|
-
type: "uint256"
|
|
2339
|
+
type: "uint256",
|
|
2376
2340
|
},
|
|
2377
2341
|
{
|
|
2378
2342
|
components: [
|
|
2379
2343
|
{
|
|
2380
2344
|
internalType: "uint256",
|
|
2381
2345
|
name: "round",
|
|
2382
|
-
type: "uint256"
|
|
2346
|
+
type: "uint256",
|
|
2383
2347
|
},
|
|
2384
2348
|
{
|
|
2385
2349
|
internalType: "uint256",
|
|
2386
2350
|
name: "leaderIndex",
|
|
2387
|
-
type: "uint256"
|
|
2351
|
+
type: "uint256",
|
|
2388
2352
|
},
|
|
2389
2353
|
{
|
|
2390
2354
|
internalType: "uint256",
|
|
2391
2355
|
name: "votesCommitted",
|
|
2392
|
-
type: "uint256"
|
|
2356
|
+
type: "uint256",
|
|
2393
2357
|
},
|
|
2394
2358
|
{
|
|
2395
2359
|
internalType: "uint256",
|
|
2396
2360
|
name: "votesRevealed",
|
|
2397
|
-
type: "uint256"
|
|
2361
|
+
type: "uint256",
|
|
2398
2362
|
},
|
|
2399
2363
|
{
|
|
2400
2364
|
internalType: "uint256",
|
|
2401
2365
|
name: "appealBond",
|
|
2402
|
-
type: "uint256"
|
|
2366
|
+
type: "uint256",
|
|
2403
2367
|
},
|
|
2404
2368
|
{
|
|
2405
2369
|
internalType: "uint256",
|
|
2406
2370
|
name: "rotationsLeft",
|
|
2407
|
-
type: "uint256"
|
|
2371
|
+
type: "uint256",
|
|
2408
2372
|
},
|
|
2409
2373
|
{
|
|
2410
2374
|
internalType: "enum ITransactions.ResultType",
|
|
2411
2375
|
name: "result",
|
|
2412
|
-
type: "uint8"
|
|
2376
|
+
type: "uint8",
|
|
2413
2377
|
},
|
|
2414
2378
|
{
|
|
2415
2379
|
internalType: "address[]",
|
|
2416
2380
|
name: "roundValidators",
|
|
2417
|
-
type: "address[]"
|
|
2381
|
+
type: "address[]",
|
|
2418
2382
|
},
|
|
2419
2383
|
{
|
|
2420
2384
|
internalType: "bytes32[]",
|
|
2421
2385
|
name: "validatorVotesHash",
|
|
2422
|
-
type: "bytes32[]"
|
|
2386
|
+
type: "bytes32[]",
|
|
2423
2387
|
},
|
|
2424
2388
|
{
|
|
2425
2389
|
internalType: "enum ITransactions.VoteType[]",
|
|
2426
2390
|
name: "validatorVotes",
|
|
2427
|
-
type: "uint8[]"
|
|
2428
|
-
}
|
|
2391
|
+
type: "uint8[]",
|
|
2392
|
+
},
|
|
2429
2393
|
],
|
|
2430
2394
|
internalType: "struct ITransactions.RoundData",
|
|
2431
2395
|
name: "lastRound",
|
|
2432
|
-
type: "tuple"
|
|
2433
|
-
}
|
|
2396
|
+
type: "tuple",
|
|
2397
|
+
},
|
|
2434
2398
|
],
|
|
2435
2399
|
internalType: "struct ConsensusData.TransactionData",
|
|
2436
2400
|
name: "txData",
|
|
2437
|
-
type: "tuple"
|
|
2438
|
-
}
|
|
2401
|
+
type: "tuple",
|
|
2402
|
+
},
|
|
2439
2403
|
],
|
|
2440
2404
|
stateMutability: "view",
|
|
2441
|
-
type: "function"
|
|
2405
|
+
type: "function",
|
|
2442
2406
|
},
|
|
2443
2407
|
{
|
|
2444
2408
|
inputs: [
|
|
2445
2409
|
{
|
|
2446
2410
|
internalType: "address",
|
|
2447
2411
|
name: "recipient",
|
|
2448
|
-
type: "address"
|
|
2412
|
+
type: "address",
|
|
2449
2413
|
},
|
|
2450
2414
|
{
|
|
2451
2415
|
internalType: "uint256",
|
|
2452
2416
|
name: "startIndex",
|
|
2453
|
-
type: "uint256"
|
|
2417
|
+
type: "uint256",
|
|
2454
2418
|
},
|
|
2455
2419
|
{
|
|
2456
2420
|
internalType: "uint256",
|
|
2457
2421
|
name: "pageSize",
|
|
2458
|
-
type: "uint256"
|
|
2459
|
-
}
|
|
2422
|
+
type: "uint256",
|
|
2423
|
+
},
|
|
2460
2424
|
],
|
|
2461
2425
|
name: "getLatestFinalizedTransactions",
|
|
2462
2426
|
outputs: [
|
|
@@ -2465,282 +2429,282 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
2465
2429
|
{
|
|
2466
2430
|
internalType: "uint256",
|
|
2467
2431
|
name: "currentTimestamp",
|
|
2468
|
-
type: "uint256"
|
|
2432
|
+
type: "uint256",
|
|
2469
2433
|
},
|
|
2470
2434
|
{
|
|
2471
2435
|
internalType: "address",
|
|
2472
2436
|
name: "sender",
|
|
2473
|
-
type: "address"
|
|
2437
|
+
type: "address",
|
|
2474
2438
|
},
|
|
2475
2439
|
{
|
|
2476
2440
|
internalType: "address",
|
|
2477
2441
|
name: "recipient",
|
|
2478
|
-
type: "address"
|
|
2442
|
+
type: "address",
|
|
2479
2443
|
},
|
|
2480
2444
|
{
|
|
2481
2445
|
internalType: "uint256",
|
|
2482
2446
|
name: "numOfInitialValidators",
|
|
2483
|
-
type: "uint256"
|
|
2447
|
+
type: "uint256",
|
|
2484
2448
|
},
|
|
2485
2449
|
{
|
|
2486
2450
|
internalType: "uint256",
|
|
2487
2451
|
name: "txSlot",
|
|
2488
|
-
type: "uint256"
|
|
2452
|
+
type: "uint256",
|
|
2489
2453
|
},
|
|
2490
2454
|
{
|
|
2491
2455
|
internalType: "uint256",
|
|
2492
2456
|
name: "createdTimestamp",
|
|
2493
|
-
type: "uint256"
|
|
2457
|
+
type: "uint256",
|
|
2494
2458
|
},
|
|
2495
2459
|
{
|
|
2496
2460
|
internalType: "uint256",
|
|
2497
2461
|
name: "lastVoteTimestamp",
|
|
2498
|
-
type: "uint256"
|
|
2462
|
+
type: "uint256",
|
|
2499
2463
|
},
|
|
2500
2464
|
{
|
|
2501
2465
|
internalType: "bytes32",
|
|
2502
2466
|
name: "randomSeed",
|
|
2503
|
-
type: "bytes32"
|
|
2467
|
+
type: "bytes32",
|
|
2504
2468
|
},
|
|
2505
2469
|
{
|
|
2506
2470
|
internalType: "enum ITransactions.ResultType",
|
|
2507
2471
|
name: "result",
|
|
2508
|
-
type: "uint8"
|
|
2472
|
+
type: "uint8",
|
|
2509
2473
|
},
|
|
2510
2474
|
{
|
|
2511
2475
|
internalType: "bytes",
|
|
2512
2476
|
name: "txData",
|
|
2513
|
-
type: "bytes"
|
|
2477
|
+
type: "bytes",
|
|
2514
2478
|
},
|
|
2515
2479
|
{
|
|
2516
2480
|
internalType: "bytes",
|
|
2517
2481
|
name: "txReceipt",
|
|
2518
|
-
type: "bytes"
|
|
2482
|
+
type: "bytes",
|
|
2519
2483
|
},
|
|
2520
2484
|
{
|
|
2521
2485
|
components: [
|
|
2522
2486
|
{
|
|
2523
2487
|
internalType: "enum IMessages.MessageType",
|
|
2524
2488
|
name: "messageType",
|
|
2525
|
-
type: "uint8"
|
|
2489
|
+
type: "uint8",
|
|
2526
2490
|
},
|
|
2527
2491
|
{
|
|
2528
2492
|
internalType: "address",
|
|
2529
2493
|
name: "recipient",
|
|
2530
|
-
type: "address"
|
|
2494
|
+
type: "address",
|
|
2531
2495
|
},
|
|
2532
2496
|
{
|
|
2533
2497
|
internalType: "uint256",
|
|
2534
2498
|
name: "value",
|
|
2535
|
-
type: "uint256"
|
|
2499
|
+
type: "uint256",
|
|
2536
2500
|
},
|
|
2537
2501
|
{
|
|
2538
2502
|
internalType: "bytes",
|
|
2539
2503
|
name: "data",
|
|
2540
|
-
type: "bytes"
|
|
2504
|
+
type: "bytes",
|
|
2541
2505
|
},
|
|
2542
2506
|
{
|
|
2543
2507
|
internalType: "bool",
|
|
2544
2508
|
name: "onAcceptance",
|
|
2545
|
-
type: "bool"
|
|
2546
|
-
}
|
|
2509
|
+
type: "bool",
|
|
2510
|
+
},
|
|
2547
2511
|
],
|
|
2548
2512
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
2549
2513
|
name: "messages",
|
|
2550
|
-
type: "tuple[]"
|
|
2514
|
+
type: "tuple[]",
|
|
2551
2515
|
},
|
|
2552
2516
|
{
|
|
2553
2517
|
internalType: "enum IQueues.QueueType",
|
|
2554
2518
|
name: "queueType",
|
|
2555
|
-
type: "uint8"
|
|
2519
|
+
type: "uint8",
|
|
2556
2520
|
},
|
|
2557
2521
|
{
|
|
2558
2522
|
internalType: "uint256",
|
|
2559
2523
|
name: "queuePosition",
|
|
2560
|
-
type: "uint256"
|
|
2524
|
+
type: "uint256",
|
|
2561
2525
|
},
|
|
2562
2526
|
{
|
|
2563
2527
|
internalType: "address",
|
|
2564
2528
|
name: "activator",
|
|
2565
|
-
type: "address"
|
|
2529
|
+
type: "address",
|
|
2566
2530
|
},
|
|
2567
2531
|
{
|
|
2568
2532
|
internalType: "address",
|
|
2569
2533
|
name: "lastLeader",
|
|
2570
|
-
type: "address"
|
|
2534
|
+
type: "address",
|
|
2571
2535
|
},
|
|
2572
2536
|
{
|
|
2573
2537
|
internalType: "enum ITransactions.TransactionStatus",
|
|
2574
2538
|
name: "status",
|
|
2575
|
-
type: "uint8"
|
|
2539
|
+
type: "uint8",
|
|
2576
2540
|
},
|
|
2577
2541
|
{
|
|
2578
2542
|
internalType: "bytes32",
|
|
2579
2543
|
name: "txId",
|
|
2580
|
-
type: "bytes32"
|
|
2544
|
+
type: "bytes32",
|
|
2581
2545
|
},
|
|
2582
2546
|
{
|
|
2583
2547
|
components: [
|
|
2584
2548
|
{
|
|
2585
2549
|
internalType: "uint256",
|
|
2586
2550
|
name: "activationBlock",
|
|
2587
|
-
type: "uint256"
|
|
2551
|
+
type: "uint256",
|
|
2588
2552
|
},
|
|
2589
2553
|
{
|
|
2590
2554
|
internalType: "uint256",
|
|
2591
2555
|
name: "processingBlock",
|
|
2592
|
-
type: "uint256"
|
|
2556
|
+
type: "uint256",
|
|
2593
2557
|
},
|
|
2594
2558
|
{
|
|
2595
2559
|
internalType: "uint256",
|
|
2596
2560
|
name: "proposalBlock",
|
|
2597
|
-
type: "uint256"
|
|
2598
|
-
}
|
|
2561
|
+
type: "uint256",
|
|
2562
|
+
},
|
|
2599
2563
|
],
|
|
2600
2564
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
2601
2565
|
name: "readStateBlockRange",
|
|
2602
|
-
type: "tuple"
|
|
2566
|
+
type: "tuple",
|
|
2603
2567
|
},
|
|
2604
2568
|
{
|
|
2605
2569
|
internalType: "uint256",
|
|
2606
2570
|
name: "numOfRounds",
|
|
2607
|
-
type: "uint256"
|
|
2571
|
+
type: "uint256",
|
|
2608
2572
|
},
|
|
2609
2573
|
{
|
|
2610
2574
|
components: [
|
|
2611
2575
|
{
|
|
2612
2576
|
internalType: "uint256",
|
|
2613
2577
|
name: "round",
|
|
2614
|
-
type: "uint256"
|
|
2578
|
+
type: "uint256",
|
|
2615
2579
|
},
|
|
2616
2580
|
{
|
|
2617
2581
|
internalType: "uint256",
|
|
2618
2582
|
name: "leaderIndex",
|
|
2619
|
-
type: "uint256"
|
|
2583
|
+
type: "uint256",
|
|
2620
2584
|
},
|
|
2621
2585
|
{
|
|
2622
2586
|
internalType: "uint256",
|
|
2623
2587
|
name: "votesCommitted",
|
|
2624
|
-
type: "uint256"
|
|
2588
|
+
type: "uint256",
|
|
2625
2589
|
},
|
|
2626
2590
|
{
|
|
2627
2591
|
internalType: "uint256",
|
|
2628
2592
|
name: "votesRevealed",
|
|
2629
|
-
type: "uint256"
|
|
2593
|
+
type: "uint256",
|
|
2630
2594
|
},
|
|
2631
2595
|
{
|
|
2632
2596
|
internalType: "uint256",
|
|
2633
2597
|
name: "appealBond",
|
|
2634
|
-
type: "uint256"
|
|
2598
|
+
type: "uint256",
|
|
2635
2599
|
},
|
|
2636
2600
|
{
|
|
2637
2601
|
internalType: "uint256",
|
|
2638
2602
|
name: "rotationsLeft",
|
|
2639
|
-
type: "uint256"
|
|
2603
|
+
type: "uint256",
|
|
2640
2604
|
},
|
|
2641
2605
|
{
|
|
2642
2606
|
internalType: "enum ITransactions.ResultType",
|
|
2643
2607
|
name: "result",
|
|
2644
|
-
type: "uint8"
|
|
2608
|
+
type: "uint8",
|
|
2645
2609
|
},
|
|
2646
2610
|
{
|
|
2647
2611
|
internalType: "address[]",
|
|
2648
2612
|
name: "roundValidators",
|
|
2649
|
-
type: "address[]"
|
|
2613
|
+
type: "address[]",
|
|
2650
2614
|
},
|
|
2651
2615
|
{
|
|
2652
2616
|
internalType: "bytes32[]",
|
|
2653
2617
|
name: "validatorVotesHash",
|
|
2654
|
-
type: "bytes32[]"
|
|
2618
|
+
type: "bytes32[]",
|
|
2655
2619
|
},
|
|
2656
2620
|
{
|
|
2657
2621
|
internalType: "enum ITransactions.VoteType[]",
|
|
2658
2622
|
name: "validatorVotes",
|
|
2659
|
-
type: "uint8[]"
|
|
2660
|
-
}
|
|
2623
|
+
type: "uint8[]",
|
|
2624
|
+
},
|
|
2661
2625
|
],
|
|
2662
2626
|
internalType: "struct ITransactions.RoundData",
|
|
2663
2627
|
name: "lastRound",
|
|
2664
|
-
type: "tuple"
|
|
2665
|
-
}
|
|
2628
|
+
type: "tuple",
|
|
2629
|
+
},
|
|
2666
2630
|
],
|
|
2667
2631
|
internalType: "struct ConsensusData.TransactionData[]",
|
|
2668
2632
|
name: "",
|
|
2669
|
-
type: "tuple[]"
|
|
2670
|
-
}
|
|
2633
|
+
type: "tuple[]",
|
|
2634
|
+
},
|
|
2671
2635
|
],
|
|
2672
2636
|
stateMutability: "view",
|
|
2673
|
-
type: "function"
|
|
2637
|
+
type: "function",
|
|
2674
2638
|
},
|
|
2675
2639
|
{
|
|
2676
2640
|
inputs: [
|
|
2677
2641
|
{
|
|
2678
2642
|
internalType: "address",
|
|
2679
2643
|
name: "recipient",
|
|
2680
|
-
type: "address"
|
|
2681
|
-
}
|
|
2644
|
+
type: "address",
|
|
2645
|
+
},
|
|
2682
2646
|
],
|
|
2683
2647
|
name: "getLatestFinalizedTxCount",
|
|
2684
2648
|
outputs: [
|
|
2685
2649
|
{
|
|
2686
2650
|
internalType: "uint256",
|
|
2687
2651
|
name: "",
|
|
2688
|
-
type: "uint256"
|
|
2689
|
-
}
|
|
2652
|
+
type: "uint256",
|
|
2653
|
+
},
|
|
2690
2654
|
],
|
|
2691
2655
|
stateMutability: "view",
|
|
2692
|
-
type: "function"
|
|
2656
|
+
type: "function",
|
|
2693
2657
|
},
|
|
2694
2658
|
{
|
|
2695
2659
|
inputs: [
|
|
2696
2660
|
{
|
|
2697
2661
|
internalType: "address",
|
|
2698
2662
|
name: "recipient",
|
|
2699
|
-
type: "address"
|
|
2700
|
-
}
|
|
2663
|
+
type: "address",
|
|
2664
|
+
},
|
|
2701
2665
|
],
|
|
2702
2666
|
name: "getLatestPendingTxCount",
|
|
2703
2667
|
outputs: [
|
|
2704
2668
|
{
|
|
2705
2669
|
internalType: "uint256",
|
|
2706
2670
|
name: "",
|
|
2707
|
-
type: "uint256"
|
|
2708
|
-
}
|
|
2671
|
+
type: "uint256",
|
|
2672
|
+
},
|
|
2709
2673
|
],
|
|
2710
2674
|
stateMutability: "view",
|
|
2711
|
-
type: "function"
|
|
2675
|
+
type: "function",
|
|
2712
2676
|
},
|
|
2713
2677
|
{
|
|
2714
2678
|
inputs: [
|
|
2715
2679
|
{
|
|
2716
2680
|
internalType: "address",
|
|
2717
2681
|
name: "recipient",
|
|
2718
|
-
type: "address"
|
|
2682
|
+
type: "address",
|
|
2719
2683
|
},
|
|
2720
2684
|
{
|
|
2721
2685
|
internalType: "uint256",
|
|
2722
2686
|
name: "slot",
|
|
2723
|
-
type: "uint256"
|
|
2724
|
-
}
|
|
2687
|
+
type: "uint256",
|
|
2688
|
+
},
|
|
2725
2689
|
],
|
|
2726
2690
|
name: "getLatestPendingTxId",
|
|
2727
2691
|
outputs: [
|
|
2728
2692
|
{
|
|
2729
2693
|
internalType: "bytes32",
|
|
2730
2694
|
name: "",
|
|
2731
|
-
type: "bytes32"
|
|
2732
|
-
}
|
|
2695
|
+
type: "bytes32",
|
|
2696
|
+
},
|
|
2733
2697
|
],
|
|
2734
2698
|
stateMutability: "view",
|
|
2735
|
-
type: "function"
|
|
2699
|
+
type: "function",
|
|
2736
2700
|
},
|
|
2737
2701
|
{
|
|
2738
2702
|
inputs: [
|
|
2739
2703
|
{
|
|
2740
2704
|
internalType: "address",
|
|
2741
2705
|
name: "recipient",
|
|
2742
|
-
type: "address"
|
|
2743
|
-
}
|
|
2706
|
+
type: "address",
|
|
2707
|
+
},
|
|
2744
2708
|
],
|
|
2745
2709
|
name: "getLatestUndeterminedTransaction",
|
|
2746
2710
|
outputs: [
|
|
@@ -2749,239 +2713,239 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
2749
2713
|
{
|
|
2750
2714
|
internalType: "uint256",
|
|
2751
2715
|
name: "currentTimestamp",
|
|
2752
|
-
type: "uint256"
|
|
2716
|
+
type: "uint256",
|
|
2753
2717
|
},
|
|
2754
2718
|
{
|
|
2755
2719
|
internalType: "address",
|
|
2756
2720
|
name: "sender",
|
|
2757
|
-
type: "address"
|
|
2721
|
+
type: "address",
|
|
2758
2722
|
},
|
|
2759
2723
|
{
|
|
2760
2724
|
internalType: "address",
|
|
2761
2725
|
name: "recipient",
|
|
2762
|
-
type: "address"
|
|
2726
|
+
type: "address",
|
|
2763
2727
|
},
|
|
2764
2728
|
{
|
|
2765
2729
|
internalType: "uint256",
|
|
2766
2730
|
name: "numOfInitialValidators",
|
|
2767
|
-
type: "uint256"
|
|
2731
|
+
type: "uint256",
|
|
2768
2732
|
},
|
|
2769
2733
|
{
|
|
2770
2734
|
internalType: "uint256",
|
|
2771
2735
|
name: "txSlot",
|
|
2772
|
-
type: "uint256"
|
|
2736
|
+
type: "uint256",
|
|
2773
2737
|
},
|
|
2774
2738
|
{
|
|
2775
2739
|
internalType: "uint256",
|
|
2776
2740
|
name: "createdTimestamp",
|
|
2777
|
-
type: "uint256"
|
|
2741
|
+
type: "uint256",
|
|
2778
2742
|
},
|
|
2779
2743
|
{
|
|
2780
2744
|
internalType: "uint256",
|
|
2781
2745
|
name: "lastVoteTimestamp",
|
|
2782
|
-
type: "uint256"
|
|
2746
|
+
type: "uint256",
|
|
2783
2747
|
},
|
|
2784
2748
|
{
|
|
2785
2749
|
internalType: "bytes32",
|
|
2786
2750
|
name: "randomSeed",
|
|
2787
|
-
type: "bytes32"
|
|
2751
|
+
type: "bytes32",
|
|
2788
2752
|
},
|
|
2789
2753
|
{
|
|
2790
2754
|
internalType: "enum ITransactions.ResultType",
|
|
2791
2755
|
name: "result",
|
|
2792
|
-
type: "uint8"
|
|
2756
|
+
type: "uint8",
|
|
2793
2757
|
},
|
|
2794
2758
|
{
|
|
2795
2759
|
internalType: "bytes",
|
|
2796
2760
|
name: "txData",
|
|
2797
|
-
type: "bytes"
|
|
2761
|
+
type: "bytes",
|
|
2798
2762
|
},
|
|
2799
2763
|
{
|
|
2800
2764
|
internalType: "bytes",
|
|
2801
2765
|
name: "txReceipt",
|
|
2802
|
-
type: "bytes"
|
|
2766
|
+
type: "bytes",
|
|
2803
2767
|
},
|
|
2804
2768
|
{
|
|
2805
2769
|
components: [
|
|
2806
2770
|
{
|
|
2807
2771
|
internalType: "enum IMessages.MessageType",
|
|
2808
2772
|
name: "messageType",
|
|
2809
|
-
type: "uint8"
|
|
2773
|
+
type: "uint8",
|
|
2810
2774
|
},
|
|
2811
2775
|
{
|
|
2812
2776
|
internalType: "address",
|
|
2813
2777
|
name: "recipient",
|
|
2814
|
-
type: "address"
|
|
2778
|
+
type: "address",
|
|
2815
2779
|
},
|
|
2816
2780
|
{
|
|
2817
2781
|
internalType: "uint256",
|
|
2818
2782
|
name: "value",
|
|
2819
|
-
type: "uint256"
|
|
2783
|
+
type: "uint256",
|
|
2820
2784
|
},
|
|
2821
2785
|
{
|
|
2822
2786
|
internalType: "bytes",
|
|
2823
2787
|
name: "data",
|
|
2824
|
-
type: "bytes"
|
|
2788
|
+
type: "bytes",
|
|
2825
2789
|
},
|
|
2826
2790
|
{
|
|
2827
2791
|
internalType: "bool",
|
|
2828
2792
|
name: "onAcceptance",
|
|
2829
|
-
type: "bool"
|
|
2830
|
-
}
|
|
2793
|
+
type: "bool",
|
|
2794
|
+
},
|
|
2831
2795
|
],
|
|
2832
2796
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
2833
2797
|
name: "messages",
|
|
2834
|
-
type: "tuple[]"
|
|
2798
|
+
type: "tuple[]",
|
|
2835
2799
|
},
|
|
2836
2800
|
{
|
|
2837
2801
|
internalType: "enum IQueues.QueueType",
|
|
2838
2802
|
name: "queueType",
|
|
2839
|
-
type: "uint8"
|
|
2803
|
+
type: "uint8",
|
|
2840
2804
|
},
|
|
2841
2805
|
{
|
|
2842
2806
|
internalType: "uint256",
|
|
2843
2807
|
name: "queuePosition",
|
|
2844
|
-
type: "uint256"
|
|
2808
|
+
type: "uint256",
|
|
2845
2809
|
},
|
|
2846
2810
|
{
|
|
2847
2811
|
internalType: "address",
|
|
2848
2812
|
name: "activator",
|
|
2849
|
-
type: "address"
|
|
2813
|
+
type: "address",
|
|
2850
2814
|
},
|
|
2851
2815
|
{
|
|
2852
2816
|
internalType: "address",
|
|
2853
2817
|
name: "lastLeader",
|
|
2854
|
-
type: "address"
|
|
2818
|
+
type: "address",
|
|
2855
2819
|
},
|
|
2856
2820
|
{
|
|
2857
2821
|
internalType: "enum ITransactions.TransactionStatus",
|
|
2858
2822
|
name: "status",
|
|
2859
|
-
type: "uint8"
|
|
2823
|
+
type: "uint8",
|
|
2860
2824
|
},
|
|
2861
2825
|
{
|
|
2862
2826
|
internalType: "bytes32",
|
|
2863
2827
|
name: "txId",
|
|
2864
|
-
type: "bytes32"
|
|
2828
|
+
type: "bytes32",
|
|
2865
2829
|
},
|
|
2866
2830
|
{
|
|
2867
2831
|
components: [
|
|
2868
2832
|
{
|
|
2869
2833
|
internalType: "uint256",
|
|
2870
2834
|
name: "activationBlock",
|
|
2871
|
-
type: "uint256"
|
|
2835
|
+
type: "uint256",
|
|
2872
2836
|
},
|
|
2873
2837
|
{
|
|
2874
2838
|
internalType: "uint256",
|
|
2875
2839
|
name: "processingBlock",
|
|
2876
|
-
type: "uint256"
|
|
2840
|
+
type: "uint256",
|
|
2877
2841
|
},
|
|
2878
2842
|
{
|
|
2879
2843
|
internalType: "uint256",
|
|
2880
2844
|
name: "proposalBlock",
|
|
2881
|
-
type: "uint256"
|
|
2882
|
-
}
|
|
2845
|
+
type: "uint256",
|
|
2846
|
+
},
|
|
2883
2847
|
],
|
|
2884
2848
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
2885
2849
|
name: "readStateBlockRange",
|
|
2886
|
-
type: "tuple"
|
|
2850
|
+
type: "tuple",
|
|
2887
2851
|
},
|
|
2888
2852
|
{
|
|
2889
2853
|
internalType: "uint256",
|
|
2890
2854
|
name: "numOfRounds",
|
|
2891
|
-
type: "uint256"
|
|
2855
|
+
type: "uint256",
|
|
2892
2856
|
},
|
|
2893
2857
|
{
|
|
2894
2858
|
components: [
|
|
2895
2859
|
{
|
|
2896
2860
|
internalType: "uint256",
|
|
2897
2861
|
name: "round",
|
|
2898
|
-
type: "uint256"
|
|
2862
|
+
type: "uint256",
|
|
2899
2863
|
},
|
|
2900
2864
|
{
|
|
2901
2865
|
internalType: "uint256",
|
|
2902
2866
|
name: "leaderIndex",
|
|
2903
|
-
type: "uint256"
|
|
2867
|
+
type: "uint256",
|
|
2904
2868
|
},
|
|
2905
2869
|
{
|
|
2906
2870
|
internalType: "uint256",
|
|
2907
2871
|
name: "votesCommitted",
|
|
2908
|
-
type: "uint256"
|
|
2872
|
+
type: "uint256",
|
|
2909
2873
|
},
|
|
2910
2874
|
{
|
|
2911
2875
|
internalType: "uint256",
|
|
2912
2876
|
name: "votesRevealed",
|
|
2913
|
-
type: "uint256"
|
|
2877
|
+
type: "uint256",
|
|
2914
2878
|
},
|
|
2915
2879
|
{
|
|
2916
2880
|
internalType: "uint256",
|
|
2917
2881
|
name: "appealBond",
|
|
2918
|
-
type: "uint256"
|
|
2882
|
+
type: "uint256",
|
|
2919
2883
|
},
|
|
2920
2884
|
{
|
|
2921
2885
|
internalType: "uint256",
|
|
2922
2886
|
name: "rotationsLeft",
|
|
2923
|
-
type: "uint256"
|
|
2887
|
+
type: "uint256",
|
|
2924
2888
|
},
|
|
2925
2889
|
{
|
|
2926
2890
|
internalType: "enum ITransactions.ResultType",
|
|
2927
2891
|
name: "result",
|
|
2928
|
-
type: "uint8"
|
|
2892
|
+
type: "uint8",
|
|
2929
2893
|
},
|
|
2930
2894
|
{
|
|
2931
2895
|
internalType: "address[]",
|
|
2932
2896
|
name: "roundValidators",
|
|
2933
|
-
type: "address[]"
|
|
2897
|
+
type: "address[]",
|
|
2934
2898
|
},
|
|
2935
2899
|
{
|
|
2936
2900
|
internalType: "bytes32[]",
|
|
2937
2901
|
name: "validatorVotesHash",
|
|
2938
|
-
type: "bytes32[]"
|
|
2902
|
+
type: "bytes32[]",
|
|
2939
2903
|
},
|
|
2940
2904
|
{
|
|
2941
2905
|
internalType: "enum ITransactions.VoteType[]",
|
|
2942
2906
|
name: "validatorVotes",
|
|
2943
|
-
type: "uint8[]"
|
|
2944
|
-
}
|
|
2907
|
+
type: "uint8[]",
|
|
2908
|
+
},
|
|
2945
2909
|
],
|
|
2946
2910
|
internalType: "struct ITransactions.RoundData",
|
|
2947
2911
|
name: "lastRound",
|
|
2948
|
-
type: "tuple"
|
|
2949
|
-
}
|
|
2912
|
+
type: "tuple",
|
|
2913
|
+
},
|
|
2950
2914
|
],
|
|
2951
2915
|
internalType: "struct ConsensusData.TransactionData",
|
|
2952
2916
|
name: "txData",
|
|
2953
|
-
type: "tuple"
|
|
2954
|
-
}
|
|
2917
|
+
type: "tuple",
|
|
2918
|
+
},
|
|
2955
2919
|
],
|
|
2956
2920
|
stateMutability: "view",
|
|
2957
|
-
type: "function"
|
|
2921
|
+
type: "function",
|
|
2958
2922
|
},
|
|
2959
2923
|
{
|
|
2960
2924
|
inputs: [
|
|
2961
2925
|
{
|
|
2962
2926
|
internalType: "address",
|
|
2963
2927
|
name: "recipient",
|
|
2964
|
-
type: "address"
|
|
2965
|
-
}
|
|
2928
|
+
type: "address",
|
|
2929
|
+
},
|
|
2966
2930
|
],
|
|
2967
2931
|
name: "getLatestUndeterminedTxCount",
|
|
2968
2932
|
outputs: [
|
|
2969
2933
|
{
|
|
2970
2934
|
internalType: "uint256",
|
|
2971
2935
|
name: "",
|
|
2972
|
-
type: "uint256"
|
|
2973
|
-
}
|
|
2936
|
+
type: "uint256",
|
|
2937
|
+
},
|
|
2974
2938
|
],
|
|
2975
2939
|
stateMutability: "view",
|
|
2976
|
-
type: "function"
|
|
2940
|
+
type: "function",
|
|
2977
2941
|
},
|
|
2978
2942
|
{
|
|
2979
2943
|
inputs: [
|
|
2980
2944
|
{
|
|
2981
2945
|
internalType: "bytes32",
|
|
2982
2946
|
name: "_tx_id",
|
|
2983
|
-
type: "bytes32"
|
|
2984
|
-
}
|
|
2947
|
+
type: "bytes32",
|
|
2948
|
+
},
|
|
2985
2949
|
],
|
|
2986
2950
|
name: "getMessagesForTransaction",
|
|
2987
2951
|
outputs: [
|
|
@@ -2990,88 +2954,88 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
2990
2954
|
{
|
|
2991
2955
|
internalType: "enum IMessages.MessageType",
|
|
2992
2956
|
name: "messageType",
|
|
2993
|
-
type: "uint8"
|
|
2957
|
+
type: "uint8",
|
|
2994
2958
|
},
|
|
2995
2959
|
{
|
|
2996
2960
|
internalType: "address",
|
|
2997
2961
|
name: "recipient",
|
|
2998
|
-
type: "address"
|
|
2962
|
+
type: "address",
|
|
2999
2963
|
},
|
|
3000
2964
|
{
|
|
3001
2965
|
internalType: "uint256",
|
|
3002
2966
|
name: "value",
|
|
3003
|
-
type: "uint256"
|
|
2967
|
+
type: "uint256",
|
|
3004
2968
|
},
|
|
3005
2969
|
{
|
|
3006
2970
|
internalType: "bytes",
|
|
3007
2971
|
name: "data",
|
|
3008
|
-
type: "bytes"
|
|
2972
|
+
type: "bytes",
|
|
3009
2973
|
},
|
|
3010
2974
|
{
|
|
3011
2975
|
internalType: "bool",
|
|
3012
2976
|
name: "onAcceptance",
|
|
3013
|
-
type: "bool"
|
|
3014
|
-
}
|
|
2977
|
+
type: "bool",
|
|
2978
|
+
},
|
|
3015
2979
|
],
|
|
3016
2980
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
3017
2981
|
name: "",
|
|
3018
|
-
type: "tuple[]"
|
|
2982
|
+
type: "tuple[]",
|
|
3019
2983
|
},
|
|
3020
2984
|
{
|
|
3021
2985
|
internalType: "address",
|
|
3022
2986
|
name: "ghostAddress",
|
|
3023
|
-
type: "address"
|
|
3024
|
-
}
|
|
2987
|
+
type: "address",
|
|
2988
|
+
},
|
|
3025
2989
|
],
|
|
3026
2990
|
stateMutability: "view",
|
|
3027
|
-
type: "function"
|
|
2991
|
+
type: "function",
|
|
3028
2992
|
},
|
|
3029
2993
|
{
|
|
3030
2994
|
inputs: [
|
|
3031
2995
|
{
|
|
3032
2996
|
internalType: "bytes32",
|
|
3033
2997
|
name: "_tx_id",
|
|
3034
|
-
type: "bytes32"
|
|
3035
|
-
}
|
|
2998
|
+
type: "bytes32",
|
|
2999
|
+
},
|
|
3036
3000
|
],
|
|
3037
3001
|
name: "getReadStateBlockRangeForTransaction",
|
|
3038
3002
|
outputs: [
|
|
3039
3003
|
{
|
|
3040
3004
|
internalType: "uint256",
|
|
3041
3005
|
name: "activationBlock",
|
|
3042
|
-
type: "uint256"
|
|
3006
|
+
type: "uint256",
|
|
3043
3007
|
},
|
|
3044
3008
|
{
|
|
3045
3009
|
internalType: "uint256",
|
|
3046
3010
|
name: "processingBlock",
|
|
3047
|
-
type: "uint256"
|
|
3011
|
+
type: "uint256",
|
|
3048
3012
|
},
|
|
3049
3013
|
{
|
|
3050
3014
|
internalType: "uint256",
|
|
3051
3015
|
name: "proposalBlock",
|
|
3052
|
-
type: "uint256"
|
|
3053
|
-
}
|
|
3016
|
+
type: "uint256",
|
|
3017
|
+
},
|
|
3054
3018
|
],
|
|
3055
3019
|
stateMutability: "view",
|
|
3056
|
-
type: "function"
|
|
3020
|
+
type: "function",
|
|
3057
3021
|
},
|
|
3058
3022
|
{
|
|
3059
3023
|
inputs: [
|
|
3060
3024
|
{
|
|
3061
3025
|
internalType: "address",
|
|
3062
3026
|
name: "recipient",
|
|
3063
|
-
type: "address"
|
|
3027
|
+
type: "address",
|
|
3064
3028
|
},
|
|
3065
3029
|
{
|
|
3066
3030
|
internalType: "uint256",
|
|
3067
3031
|
name: "startIndex",
|
|
3068
|
-
type: "uint256"
|
|
3032
|
+
type: "uint256",
|
|
3069
3033
|
},
|
|
3070
3034
|
{
|
|
3071
3035
|
internalType: "uint256",
|
|
3072
3036
|
name: "endIndex",
|
|
3073
|
-
type: "uint256"
|
|
3074
|
-
}
|
|
3037
|
+
type: "uint256",
|
|
3038
|
+
},
|
|
3075
3039
|
],
|
|
3076
3040
|
name: "getRecipientQueues",
|
|
3077
3041
|
outputs: [
|
|
@@ -3082,104 +3046,104 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3082
3046
|
{
|
|
3083
3047
|
internalType: "uint256",
|
|
3084
3048
|
name: "head",
|
|
3085
|
-
type: "uint256"
|
|
3049
|
+
type: "uint256",
|
|
3086
3050
|
},
|
|
3087
3051
|
{
|
|
3088
3052
|
internalType: "uint256",
|
|
3089
3053
|
name: "tail",
|
|
3090
|
-
type: "uint256"
|
|
3054
|
+
type: "uint256",
|
|
3091
3055
|
},
|
|
3092
3056
|
{
|
|
3093
3057
|
internalType: "bytes32[]",
|
|
3094
3058
|
name: "txIds",
|
|
3095
|
-
type: "bytes32[]"
|
|
3096
|
-
}
|
|
3059
|
+
type: "bytes32[]",
|
|
3060
|
+
},
|
|
3097
3061
|
],
|
|
3098
3062
|
internalType: "struct IQueues.QueueInfoView",
|
|
3099
3063
|
name: "pending",
|
|
3100
|
-
type: "tuple"
|
|
3064
|
+
type: "tuple",
|
|
3101
3065
|
},
|
|
3102
3066
|
{
|
|
3103
3067
|
components: [
|
|
3104
3068
|
{
|
|
3105
3069
|
internalType: "uint256",
|
|
3106
3070
|
name: "head",
|
|
3107
|
-
type: "uint256"
|
|
3071
|
+
type: "uint256",
|
|
3108
3072
|
},
|
|
3109
3073
|
{
|
|
3110
3074
|
internalType: "uint256",
|
|
3111
3075
|
name: "tail",
|
|
3112
|
-
type: "uint256"
|
|
3076
|
+
type: "uint256",
|
|
3113
3077
|
},
|
|
3114
3078
|
{
|
|
3115
3079
|
internalType: "bytes32[]",
|
|
3116
3080
|
name: "txIds",
|
|
3117
|
-
type: "bytes32[]"
|
|
3118
|
-
}
|
|
3081
|
+
type: "bytes32[]",
|
|
3082
|
+
},
|
|
3119
3083
|
],
|
|
3120
3084
|
internalType: "struct IQueues.QueueInfoView",
|
|
3121
3085
|
name: "accepted",
|
|
3122
|
-
type: "tuple"
|
|
3086
|
+
type: "tuple",
|
|
3123
3087
|
},
|
|
3124
3088
|
{
|
|
3125
3089
|
components: [
|
|
3126
3090
|
{
|
|
3127
3091
|
internalType: "uint256",
|
|
3128
3092
|
name: "head",
|
|
3129
|
-
type: "uint256"
|
|
3093
|
+
type: "uint256",
|
|
3130
3094
|
},
|
|
3131
3095
|
{
|
|
3132
3096
|
internalType: "uint256",
|
|
3133
3097
|
name: "tail",
|
|
3134
|
-
type: "uint256"
|
|
3098
|
+
type: "uint256",
|
|
3135
3099
|
},
|
|
3136
3100
|
{
|
|
3137
3101
|
internalType: "bytes32[]",
|
|
3138
3102
|
name: "txIds",
|
|
3139
|
-
type: "bytes32[]"
|
|
3140
|
-
}
|
|
3103
|
+
type: "bytes32[]",
|
|
3104
|
+
},
|
|
3141
3105
|
],
|
|
3142
3106
|
internalType: "struct IQueues.QueueInfoView",
|
|
3143
3107
|
name: "undetermined",
|
|
3144
|
-
type: "tuple"
|
|
3108
|
+
type: "tuple",
|
|
3145
3109
|
},
|
|
3146
3110
|
{
|
|
3147
3111
|
internalType: "uint256",
|
|
3148
3112
|
name: "finalizedCount",
|
|
3149
|
-
type: "uint256"
|
|
3113
|
+
type: "uint256",
|
|
3150
3114
|
},
|
|
3151
3115
|
{
|
|
3152
3116
|
internalType: "uint256",
|
|
3153
3117
|
name: "issuedTxCount",
|
|
3154
|
-
type: "uint256"
|
|
3155
|
-
}
|
|
3118
|
+
type: "uint256",
|
|
3119
|
+
},
|
|
3156
3120
|
],
|
|
3157
3121
|
internalType: "struct IQueues.RecipientQueuesView",
|
|
3158
3122
|
name: "",
|
|
3159
|
-
type: "tuple"
|
|
3160
|
-
}
|
|
3123
|
+
type: "tuple",
|
|
3124
|
+
},
|
|
3161
3125
|
],
|
|
3162
3126
|
stateMutability: "view",
|
|
3163
|
-
type: "function"
|
|
3127
|
+
type: "function",
|
|
3164
3128
|
},
|
|
3165
3129
|
{
|
|
3166
3130
|
inputs: [
|
|
3167
3131
|
{
|
|
3168
3132
|
internalType: "bytes32",
|
|
3169
3133
|
name: "role",
|
|
3170
|
-
type: "bytes32"
|
|
3171
|
-
}
|
|
3134
|
+
type: "bytes32",
|
|
3135
|
+
},
|
|
3172
3136
|
],
|
|
3173
3137
|
name: "getRoleAdmin",
|
|
3174
3138
|
outputs: [
|
|
3175
3139
|
{
|
|
3176
3140
|
internalType: "bytes32",
|
|
3177
3141
|
name: "",
|
|
3178
|
-
type: "bytes32"
|
|
3179
|
-
}
|
|
3142
|
+
type: "bytes32",
|
|
3143
|
+
},
|
|
3180
3144
|
],
|
|
3181
3145
|
stateMutability: "view",
|
|
3182
|
-
type: "function"
|
|
3146
|
+
type: "function",
|
|
3183
3147
|
},
|
|
3184
3148
|
{
|
|
3185
3149
|
inputs: [],
|
|
@@ -3188,19 +3152,19 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3188
3152
|
{
|
|
3189
3153
|
internalType: "uint256",
|
|
3190
3154
|
name: "",
|
|
3191
|
-
type: "uint256"
|
|
3192
|
-
}
|
|
3155
|
+
type: "uint256",
|
|
3156
|
+
},
|
|
3193
3157
|
],
|
|
3194
3158
|
stateMutability: "view",
|
|
3195
|
-
type: "function"
|
|
3159
|
+
type: "function",
|
|
3196
3160
|
},
|
|
3197
3161
|
{
|
|
3198
3162
|
inputs: [
|
|
3199
3163
|
{
|
|
3200
3164
|
internalType: "bytes32",
|
|
3201
3165
|
name: "_tx_id",
|
|
3202
|
-
type: "bytes32"
|
|
3203
|
-
}
|
|
3166
|
+
type: "bytes32",
|
|
3167
|
+
},
|
|
3204
3168
|
],
|
|
3205
3169
|
name: "getTransactionAllData",
|
|
3206
3170
|
outputs: [
|
|
@@ -3209,247 +3173,247 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3209
3173
|
{
|
|
3210
3174
|
internalType: "bytes32",
|
|
3211
3175
|
name: "id",
|
|
3212
|
-
type: "bytes32"
|
|
3176
|
+
type: "bytes32",
|
|
3213
3177
|
},
|
|
3214
3178
|
{
|
|
3215
3179
|
internalType: "address",
|
|
3216
3180
|
name: "sender",
|
|
3217
|
-
type: "address"
|
|
3181
|
+
type: "address",
|
|
3218
3182
|
},
|
|
3219
3183
|
{
|
|
3220
3184
|
internalType: "address",
|
|
3221
3185
|
name: "recipient",
|
|
3222
|
-
type: "address"
|
|
3186
|
+
type: "address",
|
|
3223
3187
|
},
|
|
3224
3188
|
{
|
|
3225
3189
|
internalType: "uint256",
|
|
3226
3190
|
name: "numOfInitialValidators",
|
|
3227
|
-
type: "uint256"
|
|
3191
|
+
type: "uint256",
|
|
3228
3192
|
},
|
|
3229
3193
|
{
|
|
3230
3194
|
internalType: "uint256",
|
|
3231
3195
|
name: "txSlot",
|
|
3232
|
-
type: "uint256"
|
|
3196
|
+
type: "uint256",
|
|
3233
3197
|
},
|
|
3234
3198
|
{
|
|
3235
3199
|
internalType: "address",
|
|
3236
3200
|
name: "activator",
|
|
3237
|
-
type: "address"
|
|
3201
|
+
type: "address",
|
|
3238
3202
|
},
|
|
3239
3203
|
{
|
|
3240
3204
|
internalType: "enum ITransactions.TransactionStatus",
|
|
3241
3205
|
name: "status",
|
|
3242
|
-
type: "uint8"
|
|
3206
|
+
type: "uint8",
|
|
3243
3207
|
},
|
|
3244
3208
|
{
|
|
3245
3209
|
internalType: "enum ITransactions.TransactionStatus",
|
|
3246
3210
|
name: "previousStatus",
|
|
3247
|
-
type: "uint8"
|
|
3211
|
+
type: "uint8",
|
|
3248
3212
|
},
|
|
3249
3213
|
{
|
|
3250
3214
|
components: [
|
|
3251
3215
|
{
|
|
3252
3216
|
internalType: "uint256",
|
|
3253
3217
|
name: "created",
|
|
3254
|
-
type: "uint256"
|
|
3218
|
+
type: "uint256",
|
|
3255
3219
|
},
|
|
3256
3220
|
{
|
|
3257
3221
|
internalType: "uint256",
|
|
3258
3222
|
name: "pending",
|
|
3259
|
-
type: "uint256"
|
|
3223
|
+
type: "uint256",
|
|
3260
3224
|
},
|
|
3261
3225
|
{
|
|
3262
3226
|
internalType: "uint256",
|
|
3263
3227
|
name: "activated",
|
|
3264
|
-
type: "uint256"
|
|
3228
|
+
type: "uint256",
|
|
3265
3229
|
},
|
|
3266
3230
|
{
|
|
3267
3231
|
internalType: "uint256",
|
|
3268
3232
|
name: "proposed",
|
|
3269
|
-
type: "uint256"
|
|
3233
|
+
type: "uint256",
|
|
3270
3234
|
},
|
|
3271
3235
|
{
|
|
3272
3236
|
internalType: "uint256",
|
|
3273
3237
|
name: "committed",
|
|
3274
|
-
type: "uint256"
|
|
3238
|
+
type: "uint256",
|
|
3275
3239
|
},
|
|
3276
3240
|
{
|
|
3277
3241
|
internalType: "uint256",
|
|
3278
3242
|
name: "lastVote",
|
|
3279
|
-
type: "uint256"
|
|
3243
|
+
type: "uint256",
|
|
3280
3244
|
},
|
|
3281
3245
|
{
|
|
3282
3246
|
internalType: "uint256",
|
|
3283
3247
|
name: "appealSubmitted",
|
|
3284
|
-
type: "uint256"
|
|
3285
|
-
}
|
|
3248
|
+
type: "uint256",
|
|
3249
|
+
},
|
|
3286
3250
|
],
|
|
3287
3251
|
internalType: "struct ITransactions.Timestamps",
|
|
3288
3252
|
name: "timestamps",
|
|
3289
|
-
type: "tuple"
|
|
3253
|
+
type: "tuple",
|
|
3290
3254
|
},
|
|
3291
3255
|
{
|
|
3292
3256
|
internalType: "bytes32",
|
|
3293
3257
|
name: "randomSeed",
|
|
3294
|
-
type: "bytes32"
|
|
3258
|
+
type: "bytes32",
|
|
3295
3259
|
},
|
|
3296
3260
|
{
|
|
3297
3261
|
internalType: "bool",
|
|
3298
3262
|
name: "onAcceptanceMessages",
|
|
3299
|
-
type: "bool"
|
|
3263
|
+
type: "bool",
|
|
3300
3264
|
},
|
|
3301
3265
|
{
|
|
3302
3266
|
internalType: "enum ITransactions.ResultType",
|
|
3303
3267
|
name: "result",
|
|
3304
|
-
type: "uint8"
|
|
3268
|
+
type: "uint8",
|
|
3305
3269
|
},
|
|
3306
3270
|
{
|
|
3307
3271
|
components: [
|
|
3308
3272
|
{
|
|
3309
3273
|
internalType: "uint256",
|
|
3310
3274
|
name: "activationBlock",
|
|
3311
|
-
type: "uint256"
|
|
3275
|
+
type: "uint256",
|
|
3312
3276
|
},
|
|
3313
3277
|
{
|
|
3314
3278
|
internalType: "uint256",
|
|
3315
3279
|
name: "processingBlock",
|
|
3316
|
-
type: "uint256"
|
|
3280
|
+
type: "uint256",
|
|
3317
3281
|
},
|
|
3318
3282
|
{
|
|
3319
3283
|
internalType: "uint256",
|
|
3320
3284
|
name: "proposalBlock",
|
|
3321
|
-
type: "uint256"
|
|
3322
|
-
}
|
|
3285
|
+
type: "uint256",
|
|
3286
|
+
},
|
|
3323
3287
|
],
|
|
3324
3288
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
3325
3289
|
name: "readStateBlockRange",
|
|
3326
|
-
type: "tuple"
|
|
3290
|
+
type: "tuple",
|
|
3327
3291
|
},
|
|
3328
3292
|
{
|
|
3329
3293
|
internalType: "bytes",
|
|
3330
3294
|
name: "txData",
|
|
3331
|
-
type: "bytes"
|
|
3295
|
+
type: "bytes",
|
|
3332
3296
|
},
|
|
3333
3297
|
{
|
|
3334
3298
|
internalType: "bytes",
|
|
3335
3299
|
name: "txReceipt",
|
|
3336
|
-
type: "bytes"
|
|
3300
|
+
type: "bytes",
|
|
3337
3301
|
},
|
|
3338
3302
|
{
|
|
3339
3303
|
components: [
|
|
3340
3304
|
{
|
|
3341
3305
|
internalType: "enum IMessages.MessageType",
|
|
3342
3306
|
name: "messageType",
|
|
3343
|
-
type: "uint8"
|
|
3307
|
+
type: "uint8",
|
|
3344
3308
|
},
|
|
3345
3309
|
{
|
|
3346
3310
|
internalType: "address",
|
|
3347
3311
|
name: "recipient",
|
|
3348
|
-
type: "address"
|
|
3312
|
+
type: "address",
|
|
3349
3313
|
},
|
|
3350
3314
|
{
|
|
3351
3315
|
internalType: "uint256",
|
|
3352
3316
|
name: "value",
|
|
3353
|
-
type: "uint256"
|
|
3317
|
+
type: "uint256",
|
|
3354
3318
|
},
|
|
3355
3319
|
{
|
|
3356
3320
|
internalType: "bytes",
|
|
3357
3321
|
name: "data",
|
|
3358
|
-
type: "bytes"
|
|
3322
|
+
type: "bytes",
|
|
3359
3323
|
},
|
|
3360
3324
|
{
|
|
3361
3325
|
internalType: "bool",
|
|
3362
3326
|
name: "onAcceptance",
|
|
3363
|
-
type: "bool"
|
|
3364
|
-
}
|
|
3327
|
+
type: "bool",
|
|
3328
|
+
},
|
|
3365
3329
|
],
|
|
3366
3330
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
3367
3331
|
name: "messages",
|
|
3368
|
-
type: "tuple[]"
|
|
3332
|
+
type: "tuple[]",
|
|
3369
3333
|
},
|
|
3370
3334
|
{
|
|
3371
3335
|
internalType: "address[]",
|
|
3372
3336
|
name: "consumedValidators",
|
|
3373
|
-
type: "address[]"
|
|
3337
|
+
type: "address[]",
|
|
3374
3338
|
},
|
|
3375
3339
|
{
|
|
3376
3340
|
components: [
|
|
3377
3341
|
{
|
|
3378
3342
|
internalType: "uint256",
|
|
3379
3343
|
name: "round",
|
|
3380
|
-
type: "uint256"
|
|
3344
|
+
type: "uint256",
|
|
3381
3345
|
},
|
|
3382
3346
|
{
|
|
3383
3347
|
internalType: "uint256",
|
|
3384
3348
|
name: "leaderIndex",
|
|
3385
|
-
type: "uint256"
|
|
3349
|
+
type: "uint256",
|
|
3386
3350
|
},
|
|
3387
3351
|
{
|
|
3388
3352
|
internalType: "uint256",
|
|
3389
3353
|
name: "votesCommitted",
|
|
3390
|
-
type: "uint256"
|
|
3354
|
+
type: "uint256",
|
|
3391
3355
|
},
|
|
3392
3356
|
{
|
|
3393
3357
|
internalType: "uint256",
|
|
3394
3358
|
name: "votesRevealed",
|
|
3395
|
-
type: "uint256"
|
|
3359
|
+
type: "uint256",
|
|
3396
3360
|
},
|
|
3397
3361
|
{
|
|
3398
3362
|
internalType: "uint256",
|
|
3399
3363
|
name: "appealBond",
|
|
3400
|
-
type: "uint256"
|
|
3364
|
+
type: "uint256",
|
|
3401
3365
|
},
|
|
3402
3366
|
{
|
|
3403
3367
|
internalType: "uint256",
|
|
3404
3368
|
name: "rotationsLeft",
|
|
3405
|
-
type: "uint256"
|
|
3369
|
+
type: "uint256",
|
|
3406
3370
|
},
|
|
3407
3371
|
{
|
|
3408
3372
|
internalType: "enum ITransactions.ResultType",
|
|
3409
3373
|
name: "result",
|
|
3410
|
-
type: "uint8"
|
|
3374
|
+
type: "uint8",
|
|
3411
3375
|
},
|
|
3412
3376
|
{
|
|
3413
3377
|
internalType: "address[]",
|
|
3414
3378
|
name: "roundValidators",
|
|
3415
|
-
type: "address[]"
|
|
3379
|
+
type: "address[]",
|
|
3416
3380
|
},
|
|
3417
3381
|
{
|
|
3418
3382
|
internalType: "bytes32[]",
|
|
3419
3383
|
name: "validatorVotesHash",
|
|
3420
|
-
type: "bytes32[]"
|
|
3384
|
+
type: "bytes32[]",
|
|
3421
3385
|
},
|
|
3422
3386
|
{
|
|
3423
3387
|
internalType: "enum ITransactions.VoteType[]",
|
|
3424
3388
|
name: "validatorVotes",
|
|
3425
|
-
type: "uint8[]"
|
|
3426
|
-
}
|
|
3389
|
+
type: "uint8[]",
|
|
3390
|
+
},
|
|
3427
3391
|
],
|
|
3428
3392
|
internalType: "struct ITransactions.RoundData[]",
|
|
3429
3393
|
name: "roundData",
|
|
3430
|
-
type: "tuple[]"
|
|
3431
|
-
}
|
|
3394
|
+
type: "tuple[]",
|
|
3395
|
+
},
|
|
3432
3396
|
],
|
|
3433
3397
|
internalType: "struct ITransactions.Transaction",
|
|
3434
3398
|
name: "transaction",
|
|
3435
|
-
type: "tuple"
|
|
3436
|
-
}
|
|
3399
|
+
type: "tuple",
|
|
3400
|
+
},
|
|
3437
3401
|
],
|
|
3438
3402
|
stateMutability: "view",
|
|
3439
|
-
type: "function"
|
|
3403
|
+
type: "function",
|
|
3440
3404
|
},
|
|
3441
3405
|
{
|
|
3442
3406
|
inputs: [
|
|
3443
3407
|
{
|
|
3444
3408
|
internalType: "bytes32",
|
|
3445
3409
|
name: "_tx_id",
|
|
3446
|
-
type: "bytes32"
|
|
3410
|
+
type: "bytes32",
|
|
3447
3411
|
},
|
|
3448
3412
|
{
|
|
3449
3413
|
internalType: "uint256",
|
|
3450
3414
|
name: "_timestamp",
|
|
3451
|
-
type: "uint256"
|
|
3452
|
-
}
|
|
3415
|
+
type: "uint256",
|
|
3416
|
+
},
|
|
3453
3417
|
],
|
|
3454
3418
|
name: "getTransactionData",
|
|
3455
3419
|
outputs: [
|
|
@@ -3458,401 +3422,401 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3458
3422
|
{
|
|
3459
3423
|
internalType: "uint256",
|
|
3460
3424
|
name: "currentTimestamp",
|
|
3461
|
-
type: "uint256"
|
|
3425
|
+
type: "uint256",
|
|
3462
3426
|
},
|
|
3463
3427
|
{
|
|
3464
3428
|
internalType: "address",
|
|
3465
3429
|
name: "sender",
|
|
3466
|
-
type: "address"
|
|
3430
|
+
type: "address",
|
|
3467
3431
|
},
|
|
3468
3432
|
{
|
|
3469
3433
|
internalType: "address",
|
|
3470
3434
|
name: "recipient",
|
|
3471
|
-
type: "address"
|
|
3435
|
+
type: "address",
|
|
3472
3436
|
},
|
|
3473
3437
|
{
|
|
3474
3438
|
internalType: "uint256",
|
|
3475
3439
|
name: "numOfInitialValidators",
|
|
3476
|
-
type: "uint256"
|
|
3440
|
+
type: "uint256",
|
|
3477
3441
|
},
|
|
3478
3442
|
{
|
|
3479
3443
|
internalType: "uint256",
|
|
3480
3444
|
name: "txSlot",
|
|
3481
|
-
type: "uint256"
|
|
3445
|
+
type: "uint256",
|
|
3482
3446
|
},
|
|
3483
3447
|
{
|
|
3484
3448
|
internalType: "uint256",
|
|
3485
3449
|
name: "createdTimestamp",
|
|
3486
|
-
type: "uint256"
|
|
3450
|
+
type: "uint256",
|
|
3487
3451
|
},
|
|
3488
3452
|
{
|
|
3489
3453
|
internalType: "uint256",
|
|
3490
3454
|
name: "lastVoteTimestamp",
|
|
3491
|
-
type: "uint256"
|
|
3455
|
+
type: "uint256",
|
|
3492
3456
|
},
|
|
3493
3457
|
{
|
|
3494
3458
|
internalType: "bytes32",
|
|
3495
3459
|
name: "randomSeed",
|
|
3496
|
-
type: "bytes32"
|
|
3460
|
+
type: "bytes32",
|
|
3497
3461
|
},
|
|
3498
3462
|
{
|
|
3499
3463
|
internalType: "enum ITransactions.ResultType",
|
|
3500
3464
|
name: "result",
|
|
3501
|
-
type: "uint8"
|
|
3465
|
+
type: "uint8",
|
|
3502
3466
|
},
|
|
3503
3467
|
{
|
|
3504
3468
|
internalType: "bytes",
|
|
3505
3469
|
name: "txData",
|
|
3506
|
-
type: "bytes"
|
|
3470
|
+
type: "bytes",
|
|
3507
3471
|
},
|
|
3508
3472
|
{
|
|
3509
3473
|
internalType: "bytes",
|
|
3510
3474
|
name: "txReceipt",
|
|
3511
|
-
type: "bytes"
|
|
3475
|
+
type: "bytes",
|
|
3512
3476
|
},
|
|
3513
3477
|
{
|
|
3514
3478
|
components: [
|
|
3515
3479
|
{
|
|
3516
3480
|
internalType: "enum IMessages.MessageType",
|
|
3517
3481
|
name: "messageType",
|
|
3518
|
-
type: "uint8"
|
|
3482
|
+
type: "uint8",
|
|
3519
3483
|
},
|
|
3520
3484
|
{
|
|
3521
3485
|
internalType: "address",
|
|
3522
3486
|
name: "recipient",
|
|
3523
|
-
type: "address"
|
|
3487
|
+
type: "address",
|
|
3524
3488
|
},
|
|
3525
3489
|
{
|
|
3526
3490
|
internalType: "uint256",
|
|
3527
3491
|
name: "value",
|
|
3528
|
-
type: "uint256"
|
|
3492
|
+
type: "uint256",
|
|
3529
3493
|
},
|
|
3530
3494
|
{
|
|
3531
3495
|
internalType: "bytes",
|
|
3532
3496
|
name: "data",
|
|
3533
|
-
type: "bytes"
|
|
3497
|
+
type: "bytes",
|
|
3534
3498
|
},
|
|
3535
3499
|
{
|
|
3536
3500
|
internalType: "bool",
|
|
3537
3501
|
name: "onAcceptance",
|
|
3538
|
-
type: "bool"
|
|
3539
|
-
}
|
|
3502
|
+
type: "bool",
|
|
3503
|
+
},
|
|
3540
3504
|
],
|
|
3541
3505
|
internalType: "struct IMessages.SubmittedMessage[]",
|
|
3542
3506
|
name: "messages",
|
|
3543
|
-
type: "tuple[]"
|
|
3507
|
+
type: "tuple[]",
|
|
3544
3508
|
},
|
|
3545
3509
|
{
|
|
3546
3510
|
internalType: "enum IQueues.QueueType",
|
|
3547
3511
|
name: "queueType",
|
|
3548
|
-
type: "uint8"
|
|
3512
|
+
type: "uint8",
|
|
3549
3513
|
},
|
|
3550
3514
|
{
|
|
3551
3515
|
internalType: "uint256",
|
|
3552
3516
|
name: "queuePosition",
|
|
3553
|
-
type: "uint256"
|
|
3517
|
+
type: "uint256",
|
|
3554
3518
|
},
|
|
3555
3519
|
{
|
|
3556
3520
|
internalType: "address",
|
|
3557
3521
|
name: "activator",
|
|
3558
|
-
type: "address"
|
|
3522
|
+
type: "address",
|
|
3559
3523
|
},
|
|
3560
3524
|
{
|
|
3561
3525
|
internalType: "address",
|
|
3562
3526
|
name: "lastLeader",
|
|
3563
|
-
type: "address"
|
|
3527
|
+
type: "address",
|
|
3564
3528
|
},
|
|
3565
3529
|
{
|
|
3566
3530
|
internalType: "enum ITransactions.TransactionStatus",
|
|
3567
3531
|
name: "status",
|
|
3568
|
-
type: "uint8"
|
|
3532
|
+
type: "uint8",
|
|
3569
3533
|
},
|
|
3570
3534
|
{
|
|
3571
3535
|
internalType: "bytes32",
|
|
3572
3536
|
name: "txId",
|
|
3573
|
-
type: "bytes32"
|
|
3537
|
+
type: "bytes32",
|
|
3574
3538
|
},
|
|
3575
3539
|
{
|
|
3576
3540
|
components: [
|
|
3577
3541
|
{
|
|
3578
3542
|
internalType: "uint256",
|
|
3579
3543
|
name: "activationBlock",
|
|
3580
|
-
type: "uint256"
|
|
3544
|
+
type: "uint256",
|
|
3581
3545
|
},
|
|
3582
3546
|
{
|
|
3583
3547
|
internalType: "uint256",
|
|
3584
3548
|
name: "processingBlock",
|
|
3585
|
-
type: "uint256"
|
|
3549
|
+
type: "uint256",
|
|
3586
3550
|
},
|
|
3587
3551
|
{
|
|
3588
3552
|
internalType: "uint256",
|
|
3589
3553
|
name: "proposalBlock",
|
|
3590
|
-
type: "uint256"
|
|
3591
|
-
}
|
|
3554
|
+
type: "uint256",
|
|
3555
|
+
},
|
|
3592
3556
|
],
|
|
3593
3557
|
internalType: "struct ITransactions.ReadStateBlockRange",
|
|
3594
3558
|
name: "readStateBlockRange",
|
|
3595
|
-
type: "tuple"
|
|
3559
|
+
type: "tuple",
|
|
3596
3560
|
},
|
|
3597
3561
|
{
|
|
3598
3562
|
internalType: "uint256",
|
|
3599
3563
|
name: "numOfRounds",
|
|
3600
|
-
type: "uint256"
|
|
3564
|
+
type: "uint256",
|
|
3601
3565
|
},
|
|
3602
3566
|
{
|
|
3603
3567
|
components: [
|
|
3604
3568
|
{
|
|
3605
3569
|
internalType: "uint256",
|
|
3606
3570
|
name: "round",
|
|
3607
|
-
type: "uint256"
|
|
3571
|
+
type: "uint256",
|
|
3608
3572
|
},
|
|
3609
3573
|
{
|
|
3610
3574
|
internalType: "uint256",
|
|
3611
3575
|
name: "leaderIndex",
|
|
3612
|
-
type: "uint256"
|
|
3576
|
+
type: "uint256",
|
|
3613
3577
|
},
|
|
3614
3578
|
{
|
|
3615
3579
|
internalType: "uint256",
|
|
3616
3580
|
name: "votesCommitted",
|
|
3617
|
-
type: "uint256"
|
|
3581
|
+
type: "uint256",
|
|
3618
3582
|
},
|
|
3619
3583
|
{
|
|
3620
3584
|
internalType: "uint256",
|
|
3621
3585
|
name: "votesRevealed",
|
|
3622
|
-
type: "uint256"
|
|
3586
|
+
type: "uint256",
|
|
3623
3587
|
},
|
|
3624
3588
|
{
|
|
3625
3589
|
internalType: "uint256",
|
|
3626
3590
|
name: "appealBond",
|
|
3627
|
-
type: "uint256"
|
|
3591
|
+
type: "uint256",
|
|
3628
3592
|
},
|
|
3629
3593
|
{
|
|
3630
3594
|
internalType: "uint256",
|
|
3631
3595
|
name: "rotationsLeft",
|
|
3632
|
-
type: "uint256"
|
|
3596
|
+
type: "uint256",
|
|
3633
3597
|
},
|
|
3634
3598
|
{
|
|
3635
3599
|
internalType: "enum ITransactions.ResultType",
|
|
3636
3600
|
name: "result",
|
|
3637
|
-
type: "uint8"
|
|
3601
|
+
type: "uint8",
|
|
3638
3602
|
},
|
|
3639
3603
|
{
|
|
3640
3604
|
internalType: "address[]",
|
|
3641
3605
|
name: "roundValidators",
|
|
3642
|
-
type: "address[]"
|
|
3606
|
+
type: "address[]",
|
|
3643
3607
|
},
|
|
3644
3608
|
{
|
|
3645
3609
|
internalType: "bytes32[]",
|
|
3646
3610
|
name: "validatorVotesHash",
|
|
3647
|
-
type: "bytes32[]"
|
|
3611
|
+
type: "bytes32[]",
|
|
3648
3612
|
},
|
|
3649
3613
|
{
|
|
3650
3614
|
internalType: "enum ITransactions.VoteType[]",
|
|
3651
3615
|
name: "validatorVotes",
|
|
3652
|
-
type: "uint8[]"
|
|
3653
|
-
}
|
|
3616
|
+
type: "uint8[]",
|
|
3617
|
+
},
|
|
3654
3618
|
],
|
|
3655
3619
|
internalType: "struct ITransactions.RoundData",
|
|
3656
3620
|
name: "lastRound",
|
|
3657
|
-
type: "tuple"
|
|
3658
|
-
}
|
|
3621
|
+
type: "tuple",
|
|
3622
|
+
},
|
|
3659
3623
|
],
|
|
3660
3624
|
internalType: "struct ConsensusData.TransactionData",
|
|
3661
3625
|
name: "",
|
|
3662
|
-
type: "tuple"
|
|
3663
|
-
}
|
|
3626
|
+
type: "tuple",
|
|
3627
|
+
},
|
|
3664
3628
|
],
|
|
3665
3629
|
stateMutability: "view",
|
|
3666
|
-
type: "function"
|
|
3630
|
+
type: "function",
|
|
3667
3631
|
},
|
|
3668
3632
|
{
|
|
3669
3633
|
inputs: [
|
|
3670
3634
|
{
|
|
3671
3635
|
internalType: "uint256",
|
|
3672
3636
|
name: "startIndex",
|
|
3673
|
-
type: "uint256"
|
|
3637
|
+
type: "uint256",
|
|
3674
3638
|
},
|
|
3675
3639
|
{
|
|
3676
3640
|
internalType: "uint256",
|
|
3677
3641
|
name: "endIndex",
|
|
3678
|
-
type: "uint256"
|
|
3679
|
-
}
|
|
3642
|
+
type: "uint256",
|
|
3643
|
+
},
|
|
3680
3644
|
],
|
|
3681
3645
|
name: "getTransactionIndexToTxId",
|
|
3682
3646
|
outputs: [
|
|
3683
3647
|
{
|
|
3684
3648
|
internalType: "bytes32[]",
|
|
3685
3649
|
name: "",
|
|
3686
|
-
type: "bytes32[]"
|
|
3687
|
-
}
|
|
3650
|
+
type: "bytes32[]",
|
|
3651
|
+
},
|
|
3688
3652
|
],
|
|
3689
3653
|
stateMutability: "view",
|
|
3690
|
-
type: "function"
|
|
3654
|
+
type: "function",
|
|
3691
3655
|
},
|
|
3692
3656
|
{
|
|
3693
3657
|
inputs: [
|
|
3694
3658
|
{
|
|
3695
3659
|
internalType: "bytes32",
|
|
3696
3660
|
name: "_tx_id",
|
|
3697
|
-
type: "bytes32"
|
|
3661
|
+
type: "bytes32",
|
|
3698
3662
|
},
|
|
3699
3663
|
{
|
|
3700
3664
|
internalType: "uint256",
|
|
3701
3665
|
name: "_timestamp",
|
|
3702
|
-
type: "uint256"
|
|
3703
|
-
}
|
|
3666
|
+
type: "uint256",
|
|
3667
|
+
},
|
|
3704
3668
|
],
|
|
3705
3669
|
name: "getTransactionStatus",
|
|
3706
3670
|
outputs: [
|
|
3707
3671
|
{
|
|
3708
3672
|
internalType: "enum ITransactions.TransactionStatus",
|
|
3709
3673
|
name: "",
|
|
3710
|
-
type: "uint8"
|
|
3711
|
-
}
|
|
3674
|
+
type: "uint8",
|
|
3675
|
+
},
|
|
3712
3676
|
],
|
|
3713
3677
|
stateMutability: "view",
|
|
3714
|
-
type: "function"
|
|
3678
|
+
type: "function",
|
|
3715
3679
|
},
|
|
3716
3680
|
{
|
|
3717
3681
|
inputs: [
|
|
3718
3682
|
{
|
|
3719
3683
|
internalType: "bytes32",
|
|
3720
3684
|
name: "_tx_id",
|
|
3721
|
-
type: "bytes32"
|
|
3722
|
-
}
|
|
3685
|
+
type: "bytes32",
|
|
3686
|
+
},
|
|
3723
3687
|
],
|
|
3724
3688
|
name: "getValidatorsForLastAppeal",
|
|
3725
3689
|
outputs: [
|
|
3726
3690
|
{
|
|
3727
3691
|
internalType: "address[]",
|
|
3728
3692
|
name: "",
|
|
3729
|
-
type: "address[]"
|
|
3730
|
-
}
|
|
3693
|
+
type: "address[]",
|
|
3694
|
+
},
|
|
3731
3695
|
],
|
|
3732
3696
|
stateMutability: "view",
|
|
3733
|
-
type: "function"
|
|
3697
|
+
type: "function",
|
|
3734
3698
|
},
|
|
3735
3699
|
{
|
|
3736
3700
|
inputs: [
|
|
3737
3701
|
{
|
|
3738
3702
|
internalType: "bytes32",
|
|
3739
3703
|
name: "_tx_id",
|
|
3740
|
-
type: "bytes32"
|
|
3741
|
-
}
|
|
3704
|
+
type: "bytes32",
|
|
3705
|
+
},
|
|
3742
3706
|
],
|
|
3743
3707
|
name: "getValidatorsForLastRound",
|
|
3744
3708
|
outputs: [
|
|
3745
3709
|
{
|
|
3746
3710
|
internalType: "address[]",
|
|
3747
3711
|
name: "",
|
|
3748
|
-
type: "address[]"
|
|
3749
|
-
}
|
|
3712
|
+
type: "address[]",
|
|
3713
|
+
},
|
|
3750
3714
|
],
|
|
3751
3715
|
stateMutability: "view",
|
|
3752
|
-
type: "function"
|
|
3716
|
+
type: "function",
|
|
3753
3717
|
},
|
|
3754
3718
|
{
|
|
3755
3719
|
inputs: [
|
|
3756
3720
|
{
|
|
3757
3721
|
internalType: "bytes32",
|
|
3758
3722
|
name: "role",
|
|
3759
|
-
type: "bytes32"
|
|
3723
|
+
type: "bytes32",
|
|
3760
3724
|
},
|
|
3761
3725
|
{
|
|
3762
3726
|
internalType: "address",
|
|
3763
3727
|
name: "account",
|
|
3764
|
-
type: "address"
|
|
3765
|
-
}
|
|
3728
|
+
type: "address",
|
|
3729
|
+
},
|
|
3766
3730
|
],
|
|
3767
3731
|
name: "grantRole",
|
|
3768
3732
|
outputs: [],
|
|
3769
3733
|
stateMutability: "nonpayable",
|
|
3770
|
-
type: "function"
|
|
3734
|
+
type: "function",
|
|
3771
3735
|
},
|
|
3772
3736
|
{
|
|
3773
3737
|
inputs: [
|
|
3774
3738
|
{
|
|
3775
3739
|
internalType: "bytes32",
|
|
3776
3740
|
name: "role",
|
|
3777
|
-
type: "bytes32"
|
|
3741
|
+
type: "bytes32",
|
|
3778
3742
|
},
|
|
3779
3743
|
{
|
|
3780
3744
|
internalType: "address",
|
|
3781
3745
|
name: "account",
|
|
3782
|
-
type: "address"
|
|
3783
|
-
}
|
|
3746
|
+
type: "address",
|
|
3747
|
+
},
|
|
3784
3748
|
],
|
|
3785
3749
|
name: "hasRole",
|
|
3786
3750
|
outputs: [
|
|
3787
3751
|
{
|
|
3788
3752
|
internalType: "bool",
|
|
3789
3753
|
name: "",
|
|
3790
|
-
type: "bool"
|
|
3791
|
-
}
|
|
3754
|
+
type: "bool",
|
|
3755
|
+
},
|
|
3792
3756
|
],
|
|
3793
3757
|
stateMutability: "view",
|
|
3794
|
-
type: "function"
|
|
3758
|
+
type: "function",
|
|
3795
3759
|
},
|
|
3796
3760
|
{
|
|
3797
3761
|
inputs: [
|
|
3798
3762
|
{
|
|
3799
3763
|
internalType: "bytes32",
|
|
3800
3764
|
name: "_tx_id",
|
|
3801
|
-
type: "bytes32"
|
|
3802
|
-
}
|
|
3765
|
+
type: "bytes32",
|
|
3766
|
+
},
|
|
3803
3767
|
],
|
|
3804
3768
|
name: "hasTransactionOnAcceptanceMessages",
|
|
3805
3769
|
outputs: [
|
|
3806
3770
|
{
|
|
3807
3771
|
internalType: "bool",
|
|
3808
3772
|
name: "",
|
|
3809
|
-
type: "bool"
|
|
3810
|
-
}
|
|
3773
|
+
type: "bool",
|
|
3774
|
+
},
|
|
3811
3775
|
],
|
|
3812
3776
|
stateMutability: "view",
|
|
3813
|
-
type: "function"
|
|
3777
|
+
type: "function",
|
|
3814
3778
|
},
|
|
3815
3779
|
{
|
|
3816
3780
|
inputs: [
|
|
3817
3781
|
{
|
|
3818
3782
|
internalType: "bytes32",
|
|
3819
3783
|
name: "_tx_id",
|
|
3820
|
-
type: "bytes32"
|
|
3821
|
-
}
|
|
3784
|
+
type: "bytes32",
|
|
3785
|
+
},
|
|
3822
3786
|
],
|
|
3823
3787
|
name: "hasTransactionOnFinalizationMessages",
|
|
3824
3788
|
outputs: [
|
|
3825
3789
|
{
|
|
3826
3790
|
internalType: "bool",
|
|
3827
3791
|
name: "",
|
|
3828
|
-
type: "bool"
|
|
3829
|
-
}
|
|
3792
|
+
type: "bool",
|
|
3793
|
+
},
|
|
3830
3794
|
],
|
|
3831
3795
|
stateMutability: "view",
|
|
3832
|
-
type: "function"
|
|
3796
|
+
type: "function",
|
|
3833
3797
|
},
|
|
3834
3798
|
{
|
|
3835
3799
|
inputs: [
|
|
3836
3800
|
{
|
|
3837
3801
|
internalType: "address",
|
|
3838
3802
|
name: "_consensusMain",
|
|
3839
|
-
type: "address"
|
|
3803
|
+
type: "address",
|
|
3840
3804
|
},
|
|
3841
3805
|
{
|
|
3842
3806
|
internalType: "address",
|
|
3843
3807
|
name: "_transactions",
|
|
3844
|
-
type: "address"
|
|
3808
|
+
type: "address",
|
|
3845
3809
|
},
|
|
3846
3810
|
{
|
|
3847
3811
|
internalType: "address",
|
|
3848
3812
|
name: "_queues",
|
|
3849
|
-
type: "address"
|
|
3850
|
-
}
|
|
3813
|
+
type: "address",
|
|
3814
|
+
},
|
|
3851
3815
|
],
|
|
3852
3816
|
name: "initialize",
|
|
3853
3817
|
outputs: [],
|
|
3854
3818
|
stateMutability: "nonpayable",
|
|
3855
|
-
type: "function"
|
|
3819
|
+
type: "function",
|
|
3856
3820
|
},
|
|
3857
3821
|
{
|
|
3858
3822
|
inputs: [],
|
|
@@ -3861,11 +3825,11 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3861
3825
|
{
|
|
3862
3826
|
internalType: "address",
|
|
3863
3827
|
name: "",
|
|
3864
|
-
type: "address"
|
|
3865
|
-
}
|
|
3828
|
+
type: "address",
|
|
3829
|
+
},
|
|
3866
3830
|
],
|
|
3867
3831
|
stateMutability: "view",
|
|
3868
|
-
type: "function"
|
|
3832
|
+
type: "function",
|
|
3869
3833
|
},
|
|
3870
3834
|
{
|
|
3871
3835
|
inputs: [],
|
|
@@ -3874,11 +3838,11 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3874
3838
|
{
|
|
3875
3839
|
internalType: "address",
|
|
3876
3840
|
name: "",
|
|
3877
|
-
type: "address"
|
|
3878
|
-
}
|
|
3841
|
+
type: "address",
|
|
3842
|
+
},
|
|
3879
3843
|
],
|
|
3880
3844
|
stateMutability: "view",
|
|
3881
|
-
type: "function"
|
|
3845
|
+
type: "function",
|
|
3882
3846
|
},
|
|
3883
3847
|
{
|
|
3884
3848
|
inputs: [],
|
|
@@ -3887,112 +3851,112 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
3887
3851
|
{
|
|
3888
3852
|
internalType: "contract IQueues",
|
|
3889
3853
|
name: "",
|
|
3890
|
-
type: "address"
|
|
3891
|
-
}
|
|
3854
|
+
type: "address",
|
|
3855
|
+
},
|
|
3892
3856
|
],
|
|
3893
3857
|
stateMutability: "view",
|
|
3894
|
-
type: "function"
|
|
3858
|
+
type: "function",
|
|
3895
3859
|
},
|
|
3896
3860
|
{
|
|
3897
3861
|
inputs: [],
|
|
3898
3862
|
name: "renounceOwnership",
|
|
3899
3863
|
outputs: [],
|
|
3900
3864
|
stateMutability: "nonpayable",
|
|
3901
|
-
type: "function"
|
|
3865
|
+
type: "function",
|
|
3902
3866
|
},
|
|
3903
3867
|
{
|
|
3904
3868
|
inputs: [
|
|
3905
3869
|
{
|
|
3906
3870
|
internalType: "bytes32",
|
|
3907
3871
|
name: "role",
|
|
3908
|
-
type: "bytes32"
|
|
3872
|
+
type: "bytes32",
|
|
3909
3873
|
},
|
|
3910
3874
|
{
|
|
3911
3875
|
internalType: "address",
|
|
3912
3876
|
name: "callerConfirmation",
|
|
3913
|
-
type: "address"
|
|
3914
|
-
}
|
|
3877
|
+
type: "address",
|
|
3878
|
+
},
|
|
3915
3879
|
],
|
|
3916
3880
|
name: "renounceRole",
|
|
3917
3881
|
outputs: [],
|
|
3918
3882
|
stateMutability: "nonpayable",
|
|
3919
|
-
type: "function"
|
|
3883
|
+
type: "function",
|
|
3920
3884
|
},
|
|
3921
3885
|
{
|
|
3922
3886
|
inputs: [
|
|
3923
3887
|
{
|
|
3924
3888
|
internalType: "bytes32",
|
|
3925
3889
|
name: "role",
|
|
3926
|
-
type: "bytes32"
|
|
3890
|
+
type: "bytes32",
|
|
3927
3891
|
},
|
|
3928
3892
|
{
|
|
3929
3893
|
internalType: "address",
|
|
3930
3894
|
name: "account",
|
|
3931
|
-
type: "address"
|
|
3932
|
-
}
|
|
3895
|
+
type: "address",
|
|
3896
|
+
},
|
|
3933
3897
|
],
|
|
3934
3898
|
name: "revokeRole",
|
|
3935
3899
|
outputs: [],
|
|
3936
3900
|
stateMutability: "nonpayable",
|
|
3937
|
-
type: "function"
|
|
3901
|
+
type: "function",
|
|
3938
3902
|
},
|
|
3939
3903
|
{
|
|
3940
3904
|
inputs: [
|
|
3941
3905
|
{
|
|
3942
3906
|
internalType: "address",
|
|
3943
3907
|
name: "_consensusMain",
|
|
3944
|
-
type: "address"
|
|
3945
|
-
}
|
|
3908
|
+
type: "address",
|
|
3909
|
+
},
|
|
3946
3910
|
],
|
|
3947
3911
|
name: "setConsensusMain",
|
|
3948
3912
|
outputs: [],
|
|
3949
3913
|
stateMutability: "nonpayable",
|
|
3950
|
-
type: "function"
|
|
3914
|
+
type: "function",
|
|
3951
3915
|
},
|
|
3952
3916
|
{
|
|
3953
3917
|
inputs: [
|
|
3954
3918
|
{
|
|
3955
3919
|
internalType: "address",
|
|
3956
3920
|
name: "_queues",
|
|
3957
|
-
type: "address"
|
|
3958
|
-
}
|
|
3921
|
+
type: "address",
|
|
3922
|
+
},
|
|
3959
3923
|
],
|
|
3960
3924
|
name: "setQueues",
|
|
3961
3925
|
outputs: [],
|
|
3962
3926
|
stateMutability: "nonpayable",
|
|
3963
|
-
type: "function"
|
|
3927
|
+
type: "function",
|
|
3964
3928
|
},
|
|
3965
3929
|
{
|
|
3966
3930
|
inputs: [
|
|
3967
3931
|
{
|
|
3968
3932
|
internalType: "address",
|
|
3969
3933
|
name: "_transactions",
|
|
3970
|
-
type: "address"
|
|
3971
|
-
}
|
|
3934
|
+
type: "address",
|
|
3935
|
+
},
|
|
3972
3936
|
],
|
|
3973
3937
|
name: "setTransactions",
|
|
3974
3938
|
outputs: [],
|
|
3975
3939
|
stateMutability: "nonpayable",
|
|
3976
|
-
type: "function"
|
|
3940
|
+
type: "function",
|
|
3977
3941
|
},
|
|
3978
3942
|
{
|
|
3979
3943
|
inputs: [
|
|
3980
3944
|
{
|
|
3981
3945
|
internalType: "bytes4",
|
|
3982
3946
|
name: "interfaceId",
|
|
3983
|
-
type: "bytes4"
|
|
3984
|
-
}
|
|
3947
|
+
type: "bytes4",
|
|
3948
|
+
},
|
|
3985
3949
|
],
|
|
3986
3950
|
name: "supportsInterface",
|
|
3987
3951
|
outputs: [
|
|
3988
3952
|
{
|
|
3989
3953
|
internalType: "bool",
|
|
3990
3954
|
name: "",
|
|
3991
|
-
type: "bool"
|
|
3992
|
-
}
|
|
3955
|
+
type: "bool",
|
|
3956
|
+
},
|
|
3993
3957
|
],
|
|
3994
3958
|
stateMutability: "view",
|
|
3995
|
-
type: "function"
|
|
3959
|
+
type: "function",
|
|
3996
3960
|
},
|
|
3997
3961
|
{
|
|
3998
3962
|
inputs: [],
|
|
@@ -4001,56 +3965,51 @@ var CONSENSUS_DATA_CONTRACT = {
|
|
|
4001
3965
|
{
|
|
4002
3966
|
internalType: "contract ITransactions",
|
|
4003
3967
|
name: "",
|
|
4004
|
-
type: "address"
|
|
4005
|
-
}
|
|
3968
|
+
type: "address",
|
|
3969
|
+
},
|
|
4006
3970
|
],
|
|
4007
3971
|
stateMutability: "view",
|
|
4008
|
-
type: "function"
|
|
3972
|
+
type: "function",
|
|
4009
3973
|
},
|
|
4010
3974
|
{
|
|
4011
3975
|
inputs: [
|
|
4012
3976
|
{
|
|
4013
3977
|
internalType: "address",
|
|
4014
3978
|
name: "newOwner",
|
|
4015
|
-
type: "address"
|
|
4016
|
-
}
|
|
3979
|
+
type: "address",
|
|
3980
|
+
},
|
|
4017
3981
|
],
|
|
4018
3982
|
name: "transferOwnership",
|
|
4019
3983
|
outputs: [],
|
|
4020
3984
|
stateMutability: "nonpayable",
|
|
4021
|
-
type: "function"
|
|
4022
|
-
}
|
|
3985
|
+
type: "function",
|
|
3986
|
+
},
|
|
4023
3987
|
],
|
|
4024
|
-
bytecode: ""
|
|
3988
|
+
bytecode: "",
|
|
4025
3989
|
};
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
3990
|
+
|
|
3991
|
+
export const studionet: GenLayerChain = defineChain({
|
|
3992
|
+
id: 61_999,
|
|
3993
|
+
name: "Genlayer Studio Network",
|
|
4029
3994
|
rpcUrls: {
|
|
4030
3995
|
default: {
|
|
4031
|
-
http: [
|
|
4032
|
-
}
|
|
3996
|
+
http: [SIMULATOR_JSON_RPC_URL],
|
|
3997
|
+
},
|
|
4033
3998
|
},
|
|
4034
3999
|
nativeCurrency: {
|
|
4035
4000
|
name: "GEN Token",
|
|
4036
4001
|
symbol: "GEN",
|
|
4037
|
-
decimals: 18
|
|
4002
|
+
decimals: 18,
|
|
4038
4003
|
},
|
|
4039
4004
|
blockExplorers: {
|
|
4040
4005
|
default: {
|
|
4041
4006
|
name: "GenLayer Explorer",
|
|
4042
|
-
url:
|
|
4043
|
-
}
|
|
4007
|
+
url: EXPLORER_URL,
|
|
4008
|
+
},
|
|
4044
4009
|
},
|
|
4045
4010
|
testnet: true,
|
|
4046
4011
|
consensusMainContract: CONSENSUS_MAIN_CONTRACT,
|
|
4047
4012
|
consensusDataContract: CONSENSUS_DATA_CONTRACT,
|
|
4048
4013
|
defaultNumberOfInitialValidators: 5,
|
|
4049
|
-
defaultConsensusMaxRotations: 3
|
|
4014
|
+
defaultConsensusMaxRotations: 3,
|
|
4050
4015
|
});
|
|
4051
|
-
|
|
4052
|
-
export {
|
|
4053
|
-
localnet,
|
|
4054
|
-
testnet,
|
|
4055
|
-
chains_exports
|
|
4056
|
-
};
|