@aztec/l1-artifacts 0.56.0 → 0.57.0

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 (88) hide show
  1. package/dest/FeeJuicePortalAbi.d.ts +14 -14
  2. package/dest/FeeJuicePortalAbi.d.ts.map +1 -1
  3. package/dest/FeeJuicePortalAbi.js +18 -19
  4. package/dest/FeeJuicePortalBytecode.d.ts +1 -1
  5. package/dest/FeeJuicePortalBytecode.d.ts.map +1 -1
  6. package/dest/FeeJuicePortalBytecode.js +2 -2
  7. package/dest/IProofCommitmentEscrowAbi.d.ts +181 -0
  8. package/dest/IProofCommitmentEscrowAbi.d.ts.map +1 -0
  9. package/dest/IProofCommitmentEscrowAbi.js +232 -0
  10. package/dest/IProofCommitmentEscrowBytecode.d.ts +5 -0
  11. package/dest/IProofCommitmentEscrowBytecode.d.ts.map +1 -0
  12. package/dest/IProofCommitmentEscrowBytecode.js +5 -0
  13. package/dest/IVerifierAbi.d.ts +23 -0
  14. package/dest/IVerifierAbi.d.ts.map +1 -0
  15. package/dest/IVerifierAbi.js +30 -0
  16. package/dest/IVerifierBytecode.d.ts +5 -0
  17. package/dest/IVerifierBytecode.d.ts.map +1 -0
  18. package/dest/IVerifierBytecode.js +5 -0
  19. package/dest/InboxAbi.d.ts +10 -0
  20. package/dest/InboxAbi.d.ts.map +1 -1
  21. package/dest/InboxAbi.js +14 -1
  22. package/dest/InboxBytecode.d.ts +1 -1
  23. package/dest/InboxBytecode.d.ts.map +1 -1
  24. package/dest/InboxBytecode.js +2 -2
  25. package/dest/MockVerifierBytecode.d.ts +1 -1
  26. package/dest/MockVerifierBytecode.d.ts.map +1 -1
  27. package/dest/MockVerifierBytecode.js +2 -2
  28. package/dest/OutboxBytecode.d.ts +1 -1
  29. package/dest/OutboxBytecode.d.ts.map +1 -1
  30. package/dest/OutboxBytecode.js +2 -2
  31. package/dest/ProofCommitmentEscrowAbi.d.ts +291 -0
  32. package/dest/ProofCommitmentEscrowAbi.d.ts.map +1 -0
  33. package/dest/ProofCommitmentEscrowAbi.js +379 -0
  34. package/dest/ProofCommitmentEscrowBytecode.d.ts +5 -0
  35. package/dest/ProofCommitmentEscrowBytecode.d.ts.map +1 -0
  36. package/dest/ProofCommitmentEscrowBytecode.js +5 -0
  37. package/dest/RegistryAbi.d.ts +16 -1
  38. package/dest/RegistryAbi.d.ts.map +1 -1
  39. package/dest/RegistryAbi.js +21 -2
  40. package/dest/RegistryBytecode.d.ts +1 -1
  41. package/dest/RegistryBytecode.d.ts.map +1 -1
  42. package/dest/RegistryBytecode.js +2 -2
  43. package/dest/RollupAbi.d.ts +431 -123
  44. package/dest/RollupAbi.d.ts.map +1 -1
  45. package/dest/RollupAbi.js +574 -173
  46. package/dest/RollupBytecode.d.ts +1 -1
  47. package/dest/RollupBytecode.d.ts.map +1 -1
  48. package/dest/RollupBytecode.js +2 -2
  49. package/dest/{PortalERC20Abi.d.ts → TestERC20Abi.d.ts} +3 -3
  50. package/dest/{PortalERC20Abi.d.ts.map → TestERC20Abi.d.ts.map} +1 -1
  51. package/dest/{PortalERC20Abi.js → TestERC20Abi.js} +3 -3
  52. package/{generated/PortalERC20Bytecode.ts → dest/TestERC20Bytecode.d.ts} +3 -2
  53. package/dest/TestERC20Bytecode.d.ts.map +1 -0
  54. package/dest/TestERC20Bytecode.js +5 -0
  55. package/dest/TokenPortalBytecode.d.ts +1 -1
  56. package/dest/TokenPortalBytecode.d.ts.map +1 -1
  57. package/dest/TokenPortalBytecode.js +2 -2
  58. package/dest/UniswapPortalBytecode.d.ts +1 -1
  59. package/dest/UniswapPortalBytecode.d.ts.map +1 -1
  60. package/dest/UniswapPortalBytecode.js +2 -2
  61. package/dest/index.d.ts +8 -2
  62. package/dest/index.d.ts.map +1 -1
  63. package/dest/index.js +9 -3
  64. package/generated/FeeJuicePortalAbi.ts +17 -18
  65. package/generated/FeeJuicePortalBytecode.ts +1 -1
  66. package/generated/IProofCommitmentEscrowAbi.ts +231 -0
  67. package/generated/IProofCommitmentEscrowBytecode.ts +4 -0
  68. package/generated/IVerifierAbi.ts +29 -0
  69. package/generated/IVerifierBytecode.ts +4 -0
  70. package/generated/InboxAbi.ts +13 -0
  71. package/generated/InboxBytecode.ts +1 -1
  72. package/generated/MockVerifierBytecode.ts +1 -1
  73. package/generated/OutboxBytecode.ts +1 -1
  74. package/generated/ProofCommitmentEscrowAbi.ts +378 -0
  75. package/generated/ProofCommitmentEscrowBytecode.ts +4 -0
  76. package/generated/RegistryAbi.ts +20 -1
  77. package/generated/RegistryBytecode.ts +1 -1
  78. package/generated/RollupAbi.ts +573 -172
  79. package/generated/RollupBytecode.ts +1 -1
  80. package/generated/{PortalERC20Abi.ts → TestERC20Abi.ts} +2 -2
  81. package/generated/TestERC20Bytecode.ts +4 -0
  82. package/generated/TokenPortalBytecode.ts +1 -1
  83. package/generated/UniswapPortalBytecode.ts +1 -1
  84. package/generated/index.ts +8 -2
  85. package/package.json +1 -1
  86. package/dest/PortalERC20Bytecode.d.ts +0 -5
  87. package/dest/PortalERC20Bytecode.d.ts.map +0 -1
  88. package/dest/PortalERC20Bytecode.js +0 -5
@@ -5,11 +5,6 @@ export const RollupAbi = [
5
5
  {
6
6
  "type": "constructor",
7
7
  "inputs": [
8
- {
9
- "name": "_registry",
10
- "type": "address",
11
- "internalType": "contract IRegistry"
12
- },
13
8
  {
14
9
  "name": "_fpcJuicePortal",
15
10
  "type": "address",
@@ -80,7 +75,7 @@ export const RollupAbi = [
80
75
  {
81
76
  "name": "",
82
77
  "type": "uint256",
83
- "internalType": "uint256"
78
+ "internalType": "Timestamp"
84
79
  }
85
80
  ],
86
81
  "stateMutability": "view"
@@ -150,19 +145,6 @@ export const RollupAbi = [
150
145
  ],
151
146
  "stateMutability": "view"
152
147
  },
153
- {
154
- "type": "function",
155
- "name": "REGISTRY",
156
- "inputs": [],
157
- "outputs": [
158
- {
159
- "name": "",
160
- "type": "address",
161
- "internalType": "contract IRegistry"
162
- }
163
- ],
164
- "stateMutability": "view"
165
- },
166
148
  {
167
149
  "type": "function",
168
150
  "name": "SLOT_DURATION",
@@ -270,8 +252,8 @@ export const RollupAbi = [
270
252
  },
271
253
  {
272
254
  "name": "slotNumber",
273
- "type": "uint128",
274
- "internalType": "uint128"
255
+ "type": "uint256",
256
+ "internalType": "Slot"
275
257
  }
276
258
  ],
277
259
  "stateMutability": "view"
@@ -283,7 +265,7 @@ export const RollupAbi = [
283
265
  {
284
266
  "name": "_ts",
285
267
  "type": "uint256",
286
- "internalType": "uint256"
268
+ "internalType": "Timestamp"
287
269
  },
288
270
  {
289
271
  "name": "_archive",
@@ -295,7 +277,7 @@ export const RollupAbi = [
295
277
  {
296
278
  "name": "",
297
279
  "type": "uint256",
298
- "internalType": "uint256"
280
+ "internalType": "Slot"
299
281
  },
300
282
  {
301
283
  "name": "",
@@ -312,8 +294,40 @@ export const RollupAbi = [
312
294
  {
313
295
  "name": "_quote",
314
296
  "type": "tuple",
315
- "internalType": "struct DataStructures.EpochProofQuote",
297
+ "internalType": "struct EpochProofQuoteLib.SignedEpochProofQuote",
316
298
  "components": [
299
+ {
300
+ "name": "quote",
301
+ "type": "tuple",
302
+ "internalType": "struct EpochProofQuoteLib.EpochProofQuote",
303
+ "components": [
304
+ {
305
+ "name": "epochToProve",
306
+ "type": "uint256",
307
+ "internalType": "Epoch"
308
+ },
309
+ {
310
+ "name": "validUntilSlot",
311
+ "type": "uint256",
312
+ "internalType": "Slot"
313
+ },
314
+ {
315
+ "name": "bondAmount",
316
+ "type": "uint256",
317
+ "internalType": "uint256"
318
+ },
319
+ {
320
+ "name": "prover",
321
+ "type": "address",
322
+ "internalType": "address"
323
+ },
324
+ {
325
+ "name": "basisPointFee",
326
+ "type": "uint32",
327
+ "internalType": "uint32"
328
+ }
329
+ ]
330
+ },
317
331
  {
318
332
  "name": "signature",
319
333
  "type": "tuple",
@@ -340,31 +354,6 @@ export const RollupAbi = [
340
354
  "internalType": "bytes32"
341
355
  }
342
356
  ]
343
- },
344
- {
345
- "name": "epochToProve",
346
- "type": "uint256",
347
- "internalType": "uint256"
348
- },
349
- {
350
- "name": "validUntilSlot",
351
- "type": "uint256",
352
- "internalType": "uint256"
353
- },
354
- {
355
- "name": "bondAmount",
356
- "type": "uint256",
357
- "internalType": "uint256"
358
- },
359
- {
360
- "name": "prover",
361
- "type": "address",
362
- "internalType": "address"
363
- },
364
- {
365
- "name": "basisPointFee",
366
- "type": "uint32",
367
- "internalType": "uint32"
368
357
  }
369
358
  ]
370
359
  }
@@ -391,14 +380,70 @@ export const RollupAbi = [
391
380
  ],
392
381
  "stateMutability": "pure"
393
382
  },
383
+ {
384
+ "type": "function",
385
+ "name": "eip712Domain",
386
+ "inputs": [],
387
+ "outputs": [
388
+ {
389
+ "name": "fields",
390
+ "type": "bytes1",
391
+ "internalType": "bytes1"
392
+ },
393
+ {
394
+ "name": "name",
395
+ "type": "string",
396
+ "internalType": "string"
397
+ },
398
+ {
399
+ "name": "version",
400
+ "type": "string",
401
+ "internalType": "string"
402
+ },
403
+ {
404
+ "name": "chainId",
405
+ "type": "uint256",
406
+ "internalType": "uint256"
407
+ },
408
+ {
409
+ "name": "verifyingContract",
410
+ "type": "address",
411
+ "internalType": "address"
412
+ },
413
+ {
414
+ "name": "salt",
415
+ "type": "bytes32",
416
+ "internalType": "bytes32"
417
+ },
418
+ {
419
+ "name": "extensions",
420
+ "type": "uint256[]",
421
+ "internalType": "uint256[]"
422
+ }
423
+ ],
424
+ "stateMutability": "view"
425
+ },
426
+ {
427
+ "type": "function",
428
+ "name": "epochProofVerifier",
429
+ "inputs": [],
430
+ "outputs": [
431
+ {
432
+ "name": "",
433
+ "type": "address",
434
+ "internalType": "contract IVerifier"
435
+ }
436
+ ],
437
+ "stateMutability": "view"
438
+ },
394
439
  {
395
440
  "type": "function",
396
441
  "name": "epochs",
397
442
  "inputs": [
398
443
  {
399
- "name": "epochNumber",
444
+ "name": "",
400
445
  "type": "uint256",
401
- "internalType": "uint256"
446
+ "internalType": "Epoch"
402
447
  }
403
448
  ],
404
449
  "outputs": [
@@ -423,7 +468,7 @@ export const RollupAbi = [
423
468
  {
424
469
  "name": "",
425
470
  "type": "uint256",
426
- "internalType": "uint256"
471
+ "internalType": "Epoch"
427
472
  }
428
473
  ],
429
474
  "stateMutability": "view"
@@ -462,7 +507,7 @@ export const RollupAbi = [
462
507
  {
463
508
  "name": "",
464
509
  "type": "uint256",
465
- "internalType": "uint256"
510
+ "internalType": "Slot"
466
511
  }
467
512
  ],
468
513
  "stateMutability": "view"
@@ -474,18 +519,37 @@ export const RollupAbi = [
474
519
  {
475
520
  "name": "_ts",
476
521
  "type": "uint256",
477
- "internalType": "uint256"
522
+ "internalType": "Timestamp"
478
523
  }
479
524
  ],
480
525
  "outputs": [
481
526
  {
482
527
  "name": "",
483
528
  "type": "uint256",
484
- "internalType": "uint256"
529
+ "internalType": "Epoch"
485
530
  }
486
531
  ],
487
532
  "stateMutability": "view"
488
533
  },
534
+ {
535
+ "type": "function",
536
+ "name": "getEpochAtSlot",
537
+ "inputs": [
538
+ {
539
+ "name": "_slotNumber",
540
+ "type": "uint256",
541
+ "internalType": "Slot"
542
+ }
543
+ ],
544
+ "outputs": [
545
+ {
546
+ "name": "",
547
+ "type": "uint256",
548
+ "internalType": "Epoch"
549
+ }
550
+ ],
551
+ "stateMutability": "pure"
552
+ },
489
553
  {
490
554
  "type": "function",
491
555
  "name": "getEpochCommittee",
@@ -493,7 +557,7 @@ export const RollupAbi = [
493
557
  {
494
558
  "name": "_epoch",
495
559
  "type": "uint256",
496
- "internalType": "uint256"
560
+ "internalType": "Epoch"
497
561
  }
498
562
  ],
499
563
  "outputs": [
@@ -505,6 +569,59 @@ export const RollupAbi = [
505
569
  ],
506
570
  "stateMutability": "view"
507
571
  },
572
+ {
573
+ "type": "function",
574
+ "name": "getEpochForBlock",
575
+ "inputs": [
576
+ {
577
+ "name": "blockNumber",
578
+ "type": "uint256",
579
+ "internalType": "uint256"
580
+ }
581
+ ],
582
+ "outputs": [
583
+ {
584
+ "name": "",
585
+ "type": "uint256",
586
+ "internalType": "Epoch"
587
+ }
588
+ ],
589
+ "stateMutability": "view"
590
+ },
591
+ {
592
+ "type": "function",
593
+ "name": "getEpochProofPublicInputs",
594
+ "inputs": [
595
+ {
596
+ "name": "_epochSize",
597
+ "type": "uint256",
598
+ "internalType": "uint256"
599
+ },
600
+ {
601
+ "name": "_args",
602
+ "type": "bytes32[7]",
603
+ "internalType": "bytes32[7]"
604
+ },
605
+ {
606
+ "name": "_fees",
607
+ "type": "bytes32[64]",
608
+ "internalType": "bytes32[64]"
609
+ },
610
+ {
611
+ "name": "_aggregationObject",
612
+ "type": "bytes",
613
+ "internalType": "bytes"
614
+ }
615
+ ],
616
+ "outputs": [
617
+ {
618
+ "name": "",
619
+ "type": "bytes32[]",
620
+ "internalType": "bytes32[]"
621
+ }
622
+ ],
623
+ "stateMutability": "view"
624
+ },
508
625
  {
509
626
  "type": "function",
510
627
  "name": "getEpochToProve",
@@ -513,7 +630,7 @@ export const RollupAbi = [
513
630
  {
514
631
  "name": "",
515
632
  "type": "uint256",
516
- "internalType": "uint256"
633
+ "internalType": "Epoch"
517
634
  }
518
635
  ],
519
636
  "stateMutability": "view"
@@ -538,7 +655,7 @@ export const RollupAbi = [
538
655
  {
539
656
  "name": "_ts",
540
657
  "type": "uint256",
541
- "internalType": "uint256"
658
+ "internalType": "Timestamp"
542
659
  }
543
660
  ],
544
661
  "outputs": [
@@ -570,14 +687,14 @@ export const RollupAbi = [
570
687
  {
571
688
  "name": "_ts",
572
689
  "type": "uint256",
573
- "internalType": "uint256"
690
+ "internalType": "Timestamp"
574
691
  }
575
692
  ],
576
693
  "outputs": [
577
694
  {
578
695
  "name": "",
579
696
  "type": "uint256",
580
- "internalType": "uint256"
697
+ "internalType": "Slot"
581
698
  }
582
699
  ],
583
700
  "stateMutability": "view"
@@ -589,14 +706,14 @@ export const RollupAbi = [
589
706
  {
590
707
  "name": "_slotNumber",
591
708
  "type": "uint256",
592
- "internalType": "uint256"
709
+ "internalType": "Slot"
593
710
  }
594
711
  ],
595
712
  "outputs": [
596
713
  {
597
714
  "name": "",
598
715
  "type": "uint256",
599
- "internalType": "uint256"
716
+ "internalType": "Timestamp"
600
717
  }
601
718
  ],
602
719
  "stateMutability": "view"
@@ -665,6 +782,19 @@ export const RollupAbi = [
665
782
  ],
666
783
  "stateMutability": "view"
667
784
  },
785
+ {
786
+ "type": "function",
787
+ "name": "nextEpochToClaim",
788
+ "inputs": [],
789
+ "outputs": [
790
+ {
791
+ "name": "",
792
+ "type": "uint256",
793
+ "internalType": "Epoch"
794
+ }
795
+ ],
796
+ "stateMutability": "view"
797
+ },
668
798
  {
669
799
  "type": "function",
670
800
  "name": "owner",
@@ -686,7 +816,7 @@ export const RollupAbi = [
686
816
  {
687
817
  "name": "epochToProve",
688
818
  "type": "uint256",
689
- "internalType": "uint256"
819
+ "internalType": "Epoch"
690
820
  },
691
821
  {
692
822
  "name": "basisPointFee",
@@ -736,47 +866,219 @@ export const RollupAbi = [
736
866
  "internalType": "bytes32[]"
737
867
  },
738
868
  {
739
- "name": "_signatures",
740
- "type": "tuple[]",
741
- "internalType": "struct SignatureLib.Signature[]",
869
+ "name": "_signatures",
870
+ "type": "tuple[]",
871
+ "internalType": "struct SignatureLib.Signature[]",
872
+ "components": [
873
+ {
874
+ "name": "isEmpty",
875
+ "type": "bool",
876
+ "internalType": "bool"
877
+ },
878
+ {
879
+ "name": "v",
880
+ "type": "uint8",
881
+ "internalType": "uint8"
882
+ },
883
+ {
884
+ "name": "r",
885
+ "type": "bytes32",
886
+ "internalType": "bytes32"
887
+ },
888
+ {
889
+ "name": "s",
890
+ "type": "bytes32",
891
+ "internalType": "bytes32"
892
+ }
893
+ ]
894
+ },
895
+ {
896
+ "name": "_body",
897
+ "type": "bytes",
898
+ "internalType": "bytes"
899
+ }
900
+ ],
901
+ "outputs": [],
902
+ "stateMutability": "nonpayable"
903
+ },
904
+ {
905
+ "type": "function",
906
+ "name": "proposeAndClaim",
907
+ "inputs": [
908
+ {
909
+ "name": "_header",
910
+ "type": "bytes",
911
+ "internalType": "bytes"
912
+ },
913
+ {
914
+ "name": "_archive",
915
+ "type": "bytes32",
916
+ "internalType": "bytes32"
917
+ },
918
+ {
919
+ "name": "_blockHash",
920
+ "type": "bytes32",
921
+ "internalType": "bytes32"
922
+ },
923
+ {
924
+ "name": "_txHashes",
925
+ "type": "bytes32[]",
926
+ "internalType": "bytes32[]"
927
+ },
928
+ {
929
+ "name": "_signatures",
930
+ "type": "tuple[]",
931
+ "internalType": "struct SignatureLib.Signature[]",
932
+ "components": [
933
+ {
934
+ "name": "isEmpty",
935
+ "type": "bool",
936
+ "internalType": "bool"
937
+ },
938
+ {
939
+ "name": "v",
940
+ "type": "uint8",
941
+ "internalType": "uint8"
942
+ },
943
+ {
944
+ "name": "r",
945
+ "type": "bytes32",
946
+ "internalType": "bytes32"
947
+ },
948
+ {
949
+ "name": "s",
950
+ "type": "bytes32",
951
+ "internalType": "bytes32"
952
+ }
953
+ ]
954
+ },
955
+ {
956
+ "name": "_body",
957
+ "type": "bytes",
958
+ "internalType": "bytes"
959
+ },
960
+ {
961
+ "name": "_quote",
962
+ "type": "tuple",
963
+ "internalType": "struct EpochProofQuoteLib.SignedEpochProofQuote",
964
+ "components": [
965
+ {
966
+ "name": "quote",
967
+ "type": "tuple",
968
+ "internalType": "struct EpochProofQuoteLib.EpochProofQuote",
969
+ "components": [
970
+ {
971
+ "name": "epochToProve",
972
+ "type": "uint256",
973
+ "internalType": "Epoch"
974
+ },
975
+ {
976
+ "name": "validUntilSlot",
977
+ "type": "uint256",
978
+ "internalType": "Slot"
979
+ },
980
+ {
981
+ "name": "bondAmount",
982
+ "type": "uint256",
983
+ "internalType": "uint256"
984
+ },
985
+ {
986
+ "name": "prover",
987
+ "type": "address",
988
+ "internalType": "address"
989
+ },
990
+ {
991
+ "name": "basisPointFee",
992
+ "type": "uint32",
993
+ "internalType": "uint32"
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "name": "signature",
999
+ "type": "tuple",
1000
+ "internalType": "struct SignatureLib.Signature",
1001
+ "components": [
1002
+ {
1003
+ "name": "isEmpty",
1004
+ "type": "bool",
1005
+ "internalType": "bool"
1006
+ },
1007
+ {
1008
+ "name": "v",
1009
+ "type": "uint8",
1010
+ "internalType": "uint8"
1011
+ },
1012
+ {
1013
+ "name": "r",
1014
+ "type": "bytes32",
1015
+ "internalType": "bytes32"
1016
+ },
1017
+ {
1018
+ "name": "s",
1019
+ "type": "bytes32",
1020
+ "internalType": "bytes32"
1021
+ }
1022
+ ]
1023
+ }
1024
+ ]
1025
+ }
1026
+ ],
1027
+ "outputs": [],
1028
+ "stateMutability": "nonpayable"
1029
+ },
1030
+ {
1031
+ "type": "function",
1032
+ "name": "prune",
1033
+ "inputs": [],
1034
+ "outputs": [],
1035
+ "stateMutability": "nonpayable"
1036
+ },
1037
+ {
1038
+ "type": "function",
1039
+ "name": "quoteToDigest",
1040
+ "inputs": [
1041
+ {
1042
+ "name": "quote",
1043
+ "type": "tuple",
1044
+ "internalType": "struct EpochProofQuoteLib.EpochProofQuote",
742
1045
  "components": [
743
1046
  {
744
- "name": "isEmpty",
745
- "type": "bool",
746
- "internalType": "bool"
1047
+ "name": "epochToProve",
1048
+ "type": "uint256",
1049
+ "internalType": "Epoch"
747
1050
  },
748
1051
  {
749
- "name": "v",
750
- "type": "uint8",
751
- "internalType": "uint8"
1052
+ "name": "validUntilSlot",
1053
+ "type": "uint256",
1054
+ "internalType": "Slot"
752
1055
  },
753
1056
  {
754
- "name": "r",
755
- "type": "bytes32",
756
- "internalType": "bytes32"
1057
+ "name": "bondAmount",
1058
+ "type": "uint256",
1059
+ "internalType": "uint256"
757
1060
  },
758
1061
  {
759
- "name": "s",
760
- "type": "bytes32",
761
- "internalType": "bytes32"
1062
+ "name": "prover",
1063
+ "type": "address",
1064
+ "internalType": "address"
1065
+ },
1066
+ {
1067
+ "name": "basisPointFee",
1068
+ "type": "uint32",
1069
+ "internalType": "uint32"
762
1070
  }
763
1071
  ]
764
- },
1072
+ }
1073
+ ],
1074
+ "outputs": [
765
1075
  {
766
- "name": "_body",
767
- "type": "bytes",
768
- "internalType": "bytes"
1076
+ "name": "",
1077
+ "type": "bytes32",
1078
+ "internalType": "bytes32"
769
1079
  }
770
1080
  ],
771
- "outputs": [],
772
- "stateMutability": "nonpayable"
773
- },
774
- {
775
- "type": "function",
776
- "name": "prune",
777
- "inputs": [],
778
- "outputs": [],
779
- "stateMutability": "nonpayable"
1081
+ "stateMutability": "view"
780
1082
  },
781
1083
  {
782
1084
  "type": "function",
@@ -813,7 +1115,7 @@ export const RollupAbi = [
813
1115
  },
814
1116
  {
815
1117
  "type": "function",
816
- "name": "setVerifier",
1118
+ "name": "setEpochVerifier",
817
1119
  "inputs": [
818
1120
  {
819
1121
  "name": "_verifier",
@@ -879,28 +1181,33 @@ export const RollupAbi = [
879
1181
  "name": "archiveOfMyBlock",
880
1182
  "type": "bytes32",
881
1183
  "internalType": "bytes32"
1184
+ },
1185
+ {
1186
+ "name": "provenEpochNumber",
1187
+ "type": "uint256",
1188
+ "internalType": "Epoch"
882
1189
  }
883
1190
  ],
884
1191
  "stateMutability": "view"
885
1192
  },
886
1193
  {
887
1194
  "type": "function",
888
- "name": "submitBlockRootProof",
1195
+ "name": "submitEpochRootProof",
889
1196
  "inputs": [
890
1197
  {
891
- "name": "_header",
892
- "type": "bytes",
893
- "internalType": "bytes"
1198
+ "name": "_epochSize",
1199
+ "type": "uint256",
1200
+ "internalType": "uint256"
894
1201
  },
895
1202
  {
896
- "name": "_archive",
897
- "type": "bytes32",
898
- "internalType": "bytes32"
1203
+ "name": "_args",
1204
+ "type": "bytes32[7]",
1205
+ "internalType": "bytes32[7]"
899
1206
  },
900
1207
  {
901
- "name": "_proverId",
902
- "type": "bytes32",
903
- "internalType": "bytes32"
1208
+ "name": "_fees",
1209
+ "type": "bytes32[64]",
1210
+ "internalType": "bytes32[64]"
904
1211
  },
905
1212
  {
906
1213
  "name": "_aggregationObject",
@@ -947,6 +1254,80 @@ export const RollupAbi = [
947
1254
  "outputs": [],
948
1255
  "stateMutability": "nonpayable"
949
1256
  },
1257
+ {
1258
+ "type": "function",
1259
+ "name": "validateEpochProofRightClaim",
1260
+ "inputs": [
1261
+ {
1262
+ "name": "_quote",
1263
+ "type": "tuple",
1264
+ "internalType": "struct EpochProofQuoteLib.SignedEpochProofQuote",
1265
+ "components": [
1266
+ {
1267
+ "name": "quote",
1268
+ "type": "tuple",
1269
+ "internalType": "struct EpochProofQuoteLib.EpochProofQuote",
1270
+ "components": [
1271
+ {
1272
+ "name": "epochToProve",
1273
+ "type": "uint256",
1274
+ "internalType": "Epoch"
1275
+ },
1276
+ {
1277
+ "name": "validUntilSlot",
1278
+ "type": "uint256",
1279
+ "internalType": "Slot"
1280
+ },
1281
+ {
1282
+ "name": "bondAmount",
1283
+ "type": "uint256",
1284
+ "internalType": "uint256"
1285
+ },
1286
+ {
1287
+ "name": "prover",
1288
+ "type": "address",
1289
+ "internalType": "address"
1290
+ },
1291
+ {
1292
+ "name": "basisPointFee",
1293
+ "type": "uint32",
1294
+ "internalType": "uint32"
1295
+ }
1296
+ ]
1297
+ },
1298
+ {
1299
+ "name": "signature",
1300
+ "type": "tuple",
1301
+ "internalType": "struct SignatureLib.Signature",
1302
+ "components": [
1303
+ {
1304
+ "name": "isEmpty",
1305
+ "type": "bool",
1306
+ "internalType": "bool"
1307
+ },
1308
+ {
1309
+ "name": "v",
1310
+ "type": "uint8",
1311
+ "internalType": "uint8"
1312
+ },
1313
+ {
1314
+ "name": "r",
1315
+ "type": "bytes32",
1316
+ "internalType": "bytes32"
1317
+ },
1318
+ {
1319
+ "name": "s",
1320
+ "type": "bytes32",
1321
+ "internalType": "bytes32"
1322
+ }
1323
+ ]
1324
+ }
1325
+ ]
1326
+ }
1327
+ ],
1328
+ "outputs": [],
1329
+ "stateMutability": "view"
1330
+ },
950
1331
  {
951
1332
  "type": "function",
952
1333
  "name": "validateHeader",
@@ -991,7 +1372,7 @@ export const RollupAbi = [
991
1372
  {
992
1373
  "name": "_currentTime",
993
1374
  "type": "uint256",
994
- "internalType": "uint256"
1375
+ "internalType": "Timestamp"
995
1376
  },
996
1377
  {
997
1378
  "name": "_txsEffectsHash",
@@ -1019,19 +1400,6 @@ export const RollupAbi = [
1019
1400
  "outputs": [],
1020
1401
  "stateMutability": "view"
1021
1402
  },
1022
- {
1023
- "type": "function",
1024
- "name": "verifier",
1025
- "inputs": [],
1026
- "outputs": [
1027
- {
1028
- "name": "",
1029
- "type": "address",
1030
- "internalType": "contract IVerifier"
1031
- }
1032
- ],
1033
- "stateMutability": "view"
1034
- },
1035
1403
  {
1036
1404
  "type": "function",
1037
1405
  "name": "vkTreeRoot",
@@ -1045,6 +1413,12 @@ export const RollupAbi = [
1045
1413
  ],
1046
1414
  "stateMutability": "view"
1047
1415
  },
1416
+ {
1417
+ "type": "event",
1418
+ "name": "EIP712DomainChanged",
1419
+ "inputs": [],
1420
+ "anonymous": false
1421
+ },
1048
1422
  {
1049
1423
  "type": "event",
1050
1424
  "name": "L2BlockProposed",
@@ -1110,7 +1484,7 @@ export const RollupAbi = [
1110
1484
  "name": "epoch",
1111
1485
  "type": "uint256",
1112
1486
  "indexed": true,
1113
- "internalType": "uint256"
1487
+ "internalType": "Epoch"
1114
1488
  },
1115
1489
  {
1116
1490
  "name": "bondProvider",
@@ -1134,7 +1508,7 @@ export const RollupAbi = [
1134
1508
  "name": "currentSlot",
1135
1509
  "type": "uint256",
1136
1510
  "indexed": false,
1137
- "internalType": "uint256"
1511
+ "internalType": "Slot"
1138
1512
  }
1139
1513
  ],
1140
1514
  "anonymous": false
@@ -1181,15 +1555,20 @@ export const RollupAbi = [
1181
1555
  {
1182
1556
  "name": "expected",
1183
1557
  "type": "uint256",
1184
- "internalType": "uint256"
1558
+ "internalType": "Slot"
1185
1559
  },
1186
1560
  {
1187
1561
  "name": "actual",
1188
1562
  "type": "uint256",
1189
- "internalType": "uint256"
1563
+ "internalType": "Slot"
1190
1564
  }
1191
1565
  ]
1192
1566
  },
1567
+ {
1568
+ "type": "error",
1569
+ "name": "InvalidShortString",
1570
+ "inputs": []
1571
+ },
1193
1572
  {
1194
1573
  "type": "error",
1195
1574
  "name": "Leonidas__InsufficientAttestations",
@@ -1276,6 +1655,22 @@ export const RollupAbi = [
1276
1655
  }
1277
1656
  ]
1278
1657
  },
1658
+ {
1659
+ "type": "error",
1660
+ "name": "Rollup__InsufficientFundsInEscrow",
1661
+ "inputs": [
1662
+ {
1663
+ "name": "required",
1664
+ "type": "uint256",
1665
+ "internalType": "uint256"
1666
+ },
1667
+ {
1668
+ "name": "available",
1669
+ "type": "uint256",
1670
+ "internalType": "uint256"
1671
+ }
1672
+ ]
1673
+ },
1279
1674
  {
1280
1675
  "type": "error",
1281
1676
  "name": "Rollup__InvalidArchive",
@@ -1292,6 +1687,22 @@ export const RollupAbi = [
1292
1687
  }
1293
1688
  ]
1294
1689
  },
1690
+ {
1691
+ "type": "error",
1692
+ "name": "Rollup__InvalidBlockHash",
1693
+ "inputs": [
1694
+ {
1695
+ "name": "expected",
1696
+ "type": "bytes32",
1697
+ "internalType": "bytes32"
1698
+ },
1699
+ {
1700
+ "name": "actual",
1701
+ "type": "bytes32",
1702
+ "internalType": "bytes32"
1703
+ }
1704
+ ]
1705
+ },
1295
1706
  {
1296
1707
  "type": "error",
1297
1708
  "name": "Rollup__InvalidBlockNumber",
@@ -1331,12 +1742,12 @@ export const RollupAbi = [
1331
1742
  {
1332
1743
  "name": "expected",
1333
1744
  "type": "uint256",
1334
- "internalType": "uint256"
1745
+ "internalType": "Epoch"
1335
1746
  },
1336
1747
  {
1337
1748
  "name": "actual",
1338
1749
  "type": "uint256",
1339
- "internalType": "uint256"
1750
+ "internalType": "Epoch"
1340
1751
  }
1341
1752
  ]
1342
1753
  },
@@ -1358,12 +1769,23 @@ export const RollupAbi = [
1358
1769
  },
1359
1770
  {
1360
1771
  "type": "error",
1361
- "name": "Rollup__InvalidProof",
1362
- "inputs": []
1772
+ "name": "Rollup__InvalidPreviousArchive",
1773
+ "inputs": [
1774
+ {
1775
+ "name": "expected",
1776
+ "type": "bytes32",
1777
+ "internalType": "bytes32"
1778
+ },
1779
+ {
1780
+ "name": "actual",
1781
+ "type": "bytes32",
1782
+ "internalType": "bytes32"
1783
+ }
1784
+ ]
1363
1785
  },
1364
1786
  {
1365
1787
  "type": "error",
1366
- "name": "Rollup__InvalidProposedArchive",
1788
+ "name": "Rollup__InvalidPreviousBlockHash",
1367
1789
  "inputs": [
1368
1790
  {
1369
1791
  "name": "expected",
@@ -1377,6 +1799,11 @@ export const RollupAbi = [
1377
1799
  }
1378
1800
  ]
1379
1801
  },
1802
+ {
1803
+ "type": "error",
1804
+ "name": "Rollup__InvalidProof",
1805
+ "inputs": []
1806
+ },
1380
1807
  {
1381
1808
  "type": "error",
1382
1809
  "name": "Rollup__InvalidTimestamp",
@@ -1384,12 +1811,12 @@ export const RollupAbi = [
1384
1811
  {
1385
1812
  "name": "expected",
1386
1813
  "type": "uint256",
1387
- "internalType": "uint256"
1814
+ "internalType": "Timestamp"
1388
1815
  },
1389
1816
  {
1390
1817
  "name": "actual",
1391
1818
  "type": "uint256",
1392
- "internalType": "uint256"
1819
+ "internalType": "Timestamp"
1393
1820
  }
1394
1821
  ]
1395
1822
  },
@@ -1414,11 +1841,6 @@ export const RollupAbi = [
1414
1841
  "name": "Rollup__NoEpochToProve",
1415
1842
  "inputs": []
1416
1843
  },
1417
- {
1418
- "type": "error",
1419
- "name": "Rollup__NonSequentialProving",
1420
- "inputs": []
1421
- },
1422
1844
  {
1423
1845
  "type": "error",
1424
1846
  "name": "Rollup__NotClaimingCorrectEpoch",
@@ -1426,12 +1848,12 @@ export const RollupAbi = [
1426
1848
  {
1427
1849
  "name": "expected",
1428
1850
  "type": "uint256",
1429
- "internalType": "uint256"
1851
+ "internalType": "Epoch"
1430
1852
  },
1431
1853
  {
1432
1854
  "name": "actual",
1433
1855
  "type": "uint256",
1434
- "internalType": "uint256"
1856
+ "internalType": "Epoch"
1435
1857
  }
1436
1858
  ]
1437
1859
  },
@@ -1468,12 +1890,12 @@ export const RollupAbi = [
1468
1890
  {
1469
1891
  "name": "currentSlot",
1470
1892
  "type": "uint256",
1471
- "internalType": "uint256"
1893
+ "internalType": "Slot"
1472
1894
  },
1473
1895
  {
1474
1896
  "name": "quoteSlot",
1475
1897
  "type": "uint256",
1476
- "internalType": "uint256"
1898
+ "internalType": "Slot"
1477
1899
  }
1478
1900
  ]
1479
1901
  },
@@ -1484,23 +1906,12 @@ export const RollupAbi = [
1484
1906
  {
1485
1907
  "name": "lastSlot",
1486
1908
  "type": "uint256",
1487
- "internalType": "uint256"
1909
+ "internalType": "Slot"
1488
1910
  },
1489
1911
  {
1490
1912
  "name": "proposedSlot",
1491
1913
  "type": "uint256",
1492
- "internalType": "uint256"
1493
- }
1494
- ]
1495
- },
1496
- {
1497
- "type": "error",
1498
- "name": "Rollup__SlotValueTooLarge",
1499
- "inputs": [
1500
- {
1501
- "name": "slot",
1502
- "type": "uint256",
1503
- "internalType": "uint256"
1914
+ "internalType": "Slot"
1504
1915
  }
1505
1916
  ]
1506
1917
  },
@@ -1511,20 +1922,15 @@ export const RollupAbi = [
1511
1922
  {
1512
1923
  "name": "max",
1513
1924
  "type": "uint256",
1514
- "internalType": "uint256"
1925
+ "internalType": "Timestamp"
1515
1926
  },
1516
1927
  {
1517
1928
  "name": "actual",
1518
1929
  "type": "uint256",
1519
- "internalType": "uint256"
1930
+ "internalType": "Timestamp"
1520
1931
  }
1521
1932
  ]
1522
1933
  },
1523
- {
1524
- "type": "error",
1525
- "name": "Rollup__TryingToProveNonExistingBlock",
1526
- "inputs": []
1527
- },
1528
1934
  {
1529
1935
  "type": "error",
1530
1936
  "name": "Rollup__UnavailableTxs",
@@ -1536,22 +1942,6 @@ export const RollupAbi = [
1536
1942
  }
1537
1943
  ]
1538
1944
  },
1539
- {
1540
- "type": "error",
1541
- "name": "SafeCastOverflowedUintDowncast",
1542
- "inputs": [
1543
- {
1544
- "name": "bits",
1545
- "type": "uint8",
1546
- "internalType": "uint8"
1547
- },
1548
- {
1549
- "name": "value",
1550
- "type": "uint256",
1551
- "internalType": "uint256"
1552
- }
1553
- ]
1554
- },
1555
1945
  {
1556
1946
  "type": "error",
1557
1947
  "name": "SampleLib__IndexOutOfBounds",
@@ -1589,6 +1979,17 @@ export const RollupAbi = [
1589
1979
  }
1590
1980
  ]
1591
1981
  },
1982
+ {
1983
+ "type": "error",
1984
+ "name": "StringTooLong",
1985
+ "inputs": [
1986
+ {
1987
+ "name": "str",
1988
+ "type": "string",
1989
+ "internalType": "string"
1990
+ }
1991
+ ]
1992
+ },
1592
1993
  {
1593
1994
  "type": "error",
1594
1995
  "name": "TxsDecoder__InvalidLogsLength",