genlayer-js 0.18.10 → 0.18.12

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