genlayer-js 0.9.0 → 0.9.1

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