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