genlayer-js 0.9.0 → 0.9.2

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