genlayer-js 0.18.3 → 0.18.5

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