@aztec/l1-artifacts 0.47.1 → 0.48.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 (49) hide show
  1. package/dest/AvailabilityOracleBytecode.d.ts +1 -1
  2. package/dest/AvailabilityOracleBytecode.js +1 -1
  3. package/dest/{GasPortalAbi.d.ts → FeeJuicePortalAbi.d.ts} +3 -3
  4. package/dest/FeeJuicePortalAbi.d.ts.map +1 -0
  5. package/dest/{GasPortalAbi.js → FeeJuicePortalAbi.js} +3 -3
  6. package/dest/FeeJuicePortalBytecode.d.ts +5 -0
  7. package/dest/FeeJuicePortalBytecode.d.ts.map +1 -0
  8. package/dest/FeeJuicePortalBytecode.js +5 -0
  9. package/dest/InboxBytecode.d.ts +1 -1
  10. package/dest/InboxBytecode.js +1 -1
  11. package/dest/OutboxBytecode.d.ts +1 -1
  12. package/dest/OutboxBytecode.js +1 -1
  13. package/dest/RegistryAbi.d.ts +57 -0
  14. package/dest/RegistryAbi.d.ts.map +1 -1
  15. package/dest/RegistryAbi.js +75 -1
  16. package/dest/RegistryBytecode.d.ts +1 -1
  17. package/dest/RegistryBytecode.d.ts.map +1 -1
  18. package/dest/RegistryBytecode.js +2 -2
  19. package/dest/RollupAbi.d.ts +356 -15
  20. package/dest/RollupAbi.d.ts.map +1 -1
  21. package/dest/RollupAbi.js +467 -16
  22. package/dest/RollupBytecode.d.ts +1 -1
  23. package/dest/RollupBytecode.d.ts.map +1 -1
  24. package/dest/RollupBytecode.js +2 -2
  25. package/dest/TokenPortalBytecode.d.ts +1 -1
  26. package/dest/TokenPortalBytecode.js +1 -1
  27. package/dest/UniswapPortalBytecode.d.ts +1 -1
  28. package/dest/UniswapPortalBytecode.js +1 -1
  29. package/dest/index.d.ts +2 -2
  30. package/dest/index.d.ts.map +1 -1
  31. package/dest/index.js +3 -3
  32. package/generated/AvailabilityOracleBytecode.ts +1 -1
  33. package/generated/{GasPortalAbi.ts → FeeJuicePortalAbi.ts} +2 -2
  34. package/generated/FeeJuicePortalBytecode.ts +4 -0
  35. package/generated/InboxBytecode.ts +1 -1
  36. package/generated/OutboxBytecode.ts +1 -1
  37. package/generated/RegistryAbi.ts +74 -0
  38. package/generated/RegistryBytecode.ts +1 -1
  39. package/generated/RollupAbi.ts +466 -15
  40. package/generated/RollupBytecode.ts +1 -1
  41. package/generated/TokenPortalBytecode.ts +1 -1
  42. package/generated/UniswapPortalBytecode.ts +1 -1
  43. package/generated/index.ts +2 -2
  44. package/package.json +1 -1
  45. package/dest/GasPortalAbi.d.ts.map +0 -1
  46. package/dest/GasPortalBytecode.d.ts +0 -5
  47. package/dest/GasPortalBytecode.d.ts.map +0 -1
  48. package/dest/GasPortalBytecode.js +0 -5
  49. package/generated/GasPortalBytecode.ts +0 -4
@@ -16,7 +16,7 @@ export const RollupAbi = [
16
16
  "internalType": "contract IAvailabilityOracle"
17
17
  },
18
18
  {
19
- "name": "_gasToken",
19
+ "name": "_fpcJuice",
20
20
  "type": "address",
21
21
  "internalType": "contract IERC20"
22
22
  },
@@ -43,7 +43,7 @@ export const RollupAbi = [
43
43
  },
44
44
  {
45
45
  "type": "function",
46
- "name": "EPOCH_SIZE",
46
+ "name": "EPOCH_DURATION",
47
47
  "inputs": [],
48
48
  "outputs": [
49
49
  {
@@ -56,7 +56,7 @@ export const RollupAbi = [
56
56
  },
57
57
  {
58
58
  "type": "function",
59
- "name": "GAS_TOKEN",
59
+ "name": "FEE_JUICE",
60
60
  "inputs": [],
61
61
  "outputs": [
62
62
  {
@@ -121,7 +121,7 @@ export const RollupAbi = [
121
121
  },
122
122
  {
123
123
  "type": "function",
124
- "name": "SLOT_SIZE",
124
+ "name": "SLOT_DURATION",
125
125
  "inputs": [],
126
126
  "outputs": [
127
127
  {
@@ -184,6 +184,54 @@ export const RollupAbi = [
184
184
  ],
185
185
  "stateMutability": "view"
186
186
  },
187
+ {
188
+ "type": "function",
189
+ "name": "archiveAt",
190
+ "inputs": [
191
+ {
192
+ "name": "_blockNumber",
193
+ "type": "uint256",
194
+ "internalType": "uint256"
195
+ }
196
+ ],
197
+ "outputs": [
198
+ {
199
+ "name": "",
200
+ "type": "bytes32",
201
+ "internalType": "bytes32"
202
+ }
203
+ ],
204
+ "stateMutability": "view"
205
+ },
206
+ {
207
+ "type": "function",
208
+ "name": "blocks",
209
+ "inputs": [
210
+ {
211
+ "name": "blockNumber",
212
+ "type": "uint256",
213
+ "internalType": "uint256"
214
+ }
215
+ ],
216
+ "outputs": [
217
+ {
218
+ "name": "archive",
219
+ "type": "bytes32",
220
+ "internalType": "bytes32"
221
+ },
222
+ {
223
+ "name": "slotNumber",
224
+ "type": "uint128",
225
+ "internalType": "uint128"
226
+ },
227
+ {
228
+ "name": "isProven",
229
+ "type": "bool",
230
+ "internalType": "bool"
231
+ }
232
+ ],
233
+ "stateMutability": "view"
234
+ },
187
235
  {
188
236
  "type": "function",
189
237
  "name": "epochs",
@@ -247,6 +295,25 @@ export const RollupAbi = [
247
295
  ],
248
296
  "stateMutability": "view"
249
297
  },
298
+ {
299
+ "type": "function",
300
+ "name": "getEpochAt",
301
+ "inputs": [
302
+ {
303
+ "name": "_ts",
304
+ "type": "uint256",
305
+ "internalType": "uint256"
306
+ }
307
+ ],
308
+ "outputs": [
309
+ {
310
+ "name": "",
311
+ "type": "uint256",
312
+ "internalType": "uint256"
313
+ }
314
+ ],
315
+ "stateMutability": "view"
316
+ },
250
317
  {
251
318
  "type": "function",
252
319
  "name": "getEpochCommittee",
@@ -268,20 +335,64 @@ export const RollupAbi = [
268
335
  },
269
336
  {
270
337
  "type": "function",
271
- "name": "getValidators",
272
- "inputs": [],
338
+ "name": "getProposerAt",
339
+ "inputs": [
340
+ {
341
+ "name": "_ts",
342
+ "type": "uint256",
343
+ "internalType": "uint256"
344
+ }
345
+ ],
273
346
  "outputs": [
274
347
  {
275
348
  "name": "",
276
- "type": "address[]",
277
- "internalType": "address[]"
349
+ "type": "address",
350
+ "internalType": "address"
351
+ }
352
+ ],
353
+ "stateMutability": "view"
354
+ },
355
+ {
356
+ "type": "function",
357
+ "name": "getSlotAt",
358
+ "inputs": [
359
+ {
360
+ "name": "_ts",
361
+ "type": "uint256",
362
+ "internalType": "uint256"
363
+ }
364
+ ],
365
+ "outputs": [
366
+ {
367
+ "name": "",
368
+ "type": "uint256",
369
+ "internalType": "uint256"
370
+ }
371
+ ],
372
+ "stateMutability": "view"
373
+ },
374
+ {
375
+ "type": "function",
376
+ "name": "getTimestampForSlot",
377
+ "inputs": [
378
+ {
379
+ "name": "_slotNumber",
380
+ "type": "uint256",
381
+ "internalType": "uint256"
382
+ }
383
+ ],
384
+ "outputs": [
385
+ {
386
+ "name": "",
387
+ "type": "uint256",
388
+ "internalType": "uint256"
278
389
  }
279
390
  ],
280
391
  "stateMutability": "view"
281
392
  },
282
393
  {
283
394
  "type": "function",
284
- "name": "lastBlockTs",
395
+ "name": "getValidatorCount",
285
396
  "inputs": [],
286
397
  "outputs": [
287
398
  {
@@ -294,15 +405,66 @@ export const RollupAbi = [
294
405
  },
295
406
  {
296
407
  "type": "function",
297
- "name": "lastWarpedBlockTs",
408
+ "name": "getValidators",
298
409
  "inputs": [],
299
410
  "outputs": [
300
411
  {
301
412
  "name": "",
413
+ "type": "address[]",
414
+ "internalType": "address[]"
415
+ }
416
+ ],
417
+ "stateMutability": "view"
418
+ },
419
+ {
420
+ "type": "function",
421
+ "name": "isBlockProven",
422
+ "inputs": [
423
+ {
424
+ "name": "_blockNumber",
302
425
  "type": "uint256",
303
426
  "internalType": "uint256"
304
427
  }
305
428
  ],
429
+ "outputs": [
430
+ {
431
+ "name": "",
432
+ "type": "bool",
433
+ "internalType": "bool"
434
+ }
435
+ ],
436
+ "stateMutability": "view"
437
+ },
438
+ {
439
+ "type": "function",
440
+ "name": "isDevNet",
441
+ "inputs": [],
442
+ "outputs": [
443
+ {
444
+ "name": "",
445
+ "type": "bool",
446
+ "internalType": "bool"
447
+ }
448
+ ],
449
+ "stateMutability": "view"
450
+ },
451
+ {
452
+ "type": "function",
453
+ "name": "isValidator",
454
+ "inputs": [
455
+ {
456
+ "name": "_validator",
457
+ "type": "address",
458
+ "internalType": "address"
459
+ }
460
+ ],
461
+ "outputs": [
462
+ {
463
+ "name": "",
464
+ "type": "bool",
465
+ "internalType": "bool"
466
+ }
467
+ ],
306
468
  "stateMutability": "view"
307
469
  },
308
470
  {
@@ -318,6 +480,19 @@ export const RollupAbi = [
318
480
  ],
319
481
  "stateMutability": "view"
320
482
  },
483
+ {
484
+ "type": "function",
485
+ "name": "pendingBlockCount",
486
+ "inputs": [],
487
+ "outputs": [
488
+ {
489
+ "name": "",
490
+ "type": "uint256",
491
+ "internalType": "uint256"
492
+ }
493
+ ],
494
+ "stateMutability": "view"
495
+ },
321
496
  {
322
497
  "type": "function",
323
498
  "name": "process",
@@ -381,6 +556,92 @@ export const RollupAbi = [
381
556
  "outputs": [],
382
557
  "stateMutability": "nonpayable"
383
558
  },
559
+ {
560
+ "type": "function",
561
+ "name": "provenBlockCount",
562
+ "inputs": [],
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "uint256",
567
+ "internalType": "uint256"
568
+ }
569
+ ],
570
+ "stateMutability": "view"
571
+ },
572
+ {
573
+ "type": "function",
574
+ "name": "publishAndProcess",
575
+ "inputs": [
576
+ {
577
+ "name": "_header",
578
+ "type": "bytes",
579
+ "internalType": "bytes"
580
+ },
581
+ {
582
+ "name": "_archive",
583
+ "type": "bytes32",
584
+ "internalType": "bytes32"
585
+ },
586
+ {
587
+ "name": "_signatures",
588
+ "type": "tuple[]",
589
+ "internalType": "struct SignatureLib.Signature[]",
590
+ "components": [
591
+ {
592
+ "name": "isEmpty",
593
+ "type": "bool",
594
+ "internalType": "bool"
595
+ },
596
+ {
597
+ "name": "v",
598
+ "type": "uint8",
599
+ "internalType": "uint8"
600
+ },
601
+ {
602
+ "name": "r",
603
+ "type": "bytes32",
604
+ "internalType": "bytes32"
605
+ },
606
+ {
607
+ "name": "s",
608
+ "type": "bytes32",
609
+ "internalType": "bytes32"
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "name": "_body",
615
+ "type": "bytes",
616
+ "internalType": "bytes"
617
+ }
618
+ ],
619
+ "outputs": [],
620
+ "stateMutability": "nonpayable"
621
+ },
622
+ {
623
+ "type": "function",
624
+ "name": "publishAndProcess",
625
+ "inputs": [
626
+ {
627
+ "name": "_header",
628
+ "type": "bytes",
629
+ "internalType": "bytes"
630
+ },
631
+ {
632
+ "name": "_archive",
633
+ "type": "bytes32",
634
+ "internalType": "bytes32"
635
+ },
636
+ {
637
+ "name": "_body",
638
+ "type": "bytes",
639
+ "internalType": "bytes"
640
+ }
641
+ ],
642
+ "outputs": [],
643
+ "stateMutability": "nonpayable"
644
+ },
384
645
  {
385
646
  "type": "function",
386
647
  "name": "removeValidator",
@@ -401,6 +662,32 @@ export const RollupAbi = [
401
662
  "outputs": [],
402
663
  "stateMutability": "nonpayable"
403
664
  },
665
+ {
666
+ "type": "function",
667
+ "name": "setAssumeProvenUntilBlockNumber",
668
+ "inputs": [
669
+ {
670
+ "name": "blockNumber",
671
+ "type": "uint256",
672
+ "internalType": "uint256"
673
+ }
674
+ ],
675
+ "outputs": [],
676
+ "stateMutability": "nonpayable"
677
+ },
678
+ {
679
+ "type": "function",
680
+ "name": "setDevNet",
681
+ "inputs": [
682
+ {
683
+ "name": "_devNet",
684
+ "type": "bool",
685
+ "internalType": "bool"
686
+ }
687
+ ],
688
+ "outputs": [],
689
+ "stateMutability": "nonpayable"
690
+ },
404
691
  {
405
692
  "type": "function",
406
693
  "name": "setVerifier",
@@ -448,6 +735,11 @@ export const RollupAbi = [
448
735
  "type": "bytes32",
449
736
  "internalType": "bytes32"
450
737
  },
738
+ {
739
+ "name": "_proverId",
740
+ "type": "bytes32",
741
+ "internalType": "bytes32"
742
+ },
451
743
  {
452
744
  "name": "_aggregationObject",
453
745
  "type": "bytes",
@@ -523,6 +815,12 @@ export const RollupAbi = [
523
815
  "type": "uint256",
524
816
  "indexed": true,
525
817
  "internalType": "uint256"
818
+ },
819
+ {
820
+ "name": "proverId",
821
+ "type": "bytes32",
822
+ "indexed": true,
823
+ "internalType": "bytes32"
526
824
  }
527
825
  ],
528
826
  "anonymous": false
@@ -546,6 +844,25 @@ export const RollupAbi = [
546
844
  ],
547
845
  "anonymous": false
548
846
  },
847
+ {
848
+ "type": "event",
849
+ "name": "ProgressedState",
850
+ "inputs": [
851
+ {
852
+ "name": "provenBlockCount",
853
+ "type": "uint256",
854
+ "indexed": false,
855
+ "internalType": "uint256"
856
+ },
857
+ {
858
+ "name": "pendingBlockCount",
859
+ "type": "uint256",
860
+ "indexed": false,
861
+ "internalType": "uint256"
862
+ }
863
+ ],
864
+ "anonymous": false
865
+ },
549
866
  {
550
867
  "type": "error",
551
868
  "name": "HeaderLib__InvalidHeaderSize",
@@ -562,6 +879,22 @@ export const RollupAbi = [
562
879
  }
563
880
  ]
564
881
  },
882
+ {
883
+ "type": "error",
884
+ "name": "HeaderLib__InvalidSlotNumber",
885
+ "inputs": [
886
+ {
887
+ "name": "expected",
888
+ "type": "uint256",
889
+ "internalType": "uint256"
890
+ },
891
+ {
892
+ "name": "actual",
893
+ "type": "uint256",
894
+ "internalType": "uint256"
895
+ }
896
+ ]
897
+ },
565
898
  {
566
899
  "type": "error",
567
900
  "name": "Leonidas__EpochNotSetup",
@@ -572,12 +905,28 @@ export const RollupAbi = [
572
905
  "name": "Leonidas__InsufficientAttestations",
573
906
  "inputs": [
574
907
  {
575
- "name": "expected",
908
+ "name": "minimumNeeded",
576
909
  "type": "uint256",
577
910
  "internalType": "uint256"
578
911
  },
579
912
  {
580
- "name": "actual",
913
+ "name": "provided",
914
+ "type": "uint256",
915
+ "internalType": "uint256"
916
+ }
917
+ ]
918
+ },
919
+ {
920
+ "type": "error",
921
+ "name": "Leonidas__InsufficientAttestationsProvided",
922
+ "inputs": [
923
+ {
924
+ "name": "minimumNeeded",
925
+ "type": "uint256",
926
+ "internalType": "uint256"
927
+ },
928
+ {
929
+ "name": "provided",
581
930
  "type": "uint256",
582
931
  "internalType": "uint256"
583
932
  }
@@ -637,6 +986,22 @@ export const RollupAbi = [
637
986
  }
638
987
  ]
639
988
  },
989
+ {
990
+ "type": "error",
991
+ "name": "Rollup__InvalidBlockNumber",
992
+ "inputs": [
993
+ {
994
+ "name": "expected",
995
+ "type": "uint256",
996
+ "internalType": "uint256"
997
+ },
998
+ {
999
+ "name": "actual",
1000
+ "type": "uint256",
1001
+ "internalType": "uint256"
1002
+ }
1003
+ ]
1004
+ },
640
1005
  {
641
1006
  "type": "error",
642
1007
  "name": "Rollup__InvalidChainId",
@@ -653,6 +1018,22 @@ export const RollupAbi = [
653
1018
  }
654
1019
  ]
655
1020
  },
1021
+ {
1022
+ "type": "error",
1023
+ "name": "Rollup__InvalidEpoch",
1024
+ "inputs": [
1025
+ {
1026
+ "name": "expected",
1027
+ "type": "uint256",
1028
+ "internalType": "uint256"
1029
+ },
1030
+ {
1031
+ "name": "actual",
1032
+ "type": "uint256",
1033
+ "internalType": "uint256"
1034
+ }
1035
+ ]
1036
+ },
656
1037
  {
657
1038
  "type": "error",
658
1039
  "name": "Rollup__InvalidInHash",
@@ -674,6 +1055,38 @@ export const RollupAbi = [
674
1055
  "name": "Rollup__InvalidProof",
675
1056
  "inputs": []
676
1057
  },
1058
+ {
1059
+ "type": "error",
1060
+ "name": "Rollup__InvalidProposedArchive",
1061
+ "inputs": [
1062
+ {
1063
+ "name": "expected",
1064
+ "type": "bytes32",
1065
+ "internalType": "bytes32"
1066
+ },
1067
+ {
1068
+ "name": "actual",
1069
+ "type": "bytes32",
1070
+ "internalType": "bytes32"
1071
+ }
1072
+ ]
1073
+ },
1074
+ {
1075
+ "type": "error",
1076
+ "name": "Rollup__InvalidTimestamp",
1077
+ "inputs": [
1078
+ {
1079
+ "name": "expected",
1080
+ "type": "uint256",
1081
+ "internalType": "uint256"
1082
+ },
1083
+ {
1084
+ "name": "actual",
1085
+ "type": "uint256",
1086
+ "internalType": "uint256"
1087
+ }
1088
+ ]
1089
+ },
677
1090
  {
678
1091
  "type": "error",
679
1092
  "name": "Rollup__InvalidVersion",
@@ -692,12 +1105,34 @@ export const RollupAbi = [
692
1105
  },
693
1106
  {
694
1107
  "type": "error",
695
- "name": "Rollup__TimestampInFuture",
696
- "inputs": []
1108
+ "name": "Rollup__SlotAlreadyInChain",
1109
+ "inputs": [
1110
+ {
1111
+ "name": "lastSlot",
1112
+ "type": "uint256",
1113
+ "internalType": "uint256"
1114
+ },
1115
+ {
1116
+ "name": "proposedSlot",
1117
+ "type": "uint256",
1118
+ "internalType": "uint256"
1119
+ }
1120
+ ]
697
1121
  },
698
1122
  {
699
1123
  "type": "error",
700
- "name": "Rollup__TimestampTooOld",
1124
+ "name": "Rollup__SlotValueTooLarge",
1125
+ "inputs": [
1126
+ {
1127
+ "name": "slot",
1128
+ "type": "uint256",
1129
+ "internalType": "uint256"
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "type": "error",
1135
+ "name": "Rollup__TryingToProveNonExistingBlock",
701
1136
  "inputs": []
702
1137
  },
703
1138
  {
@@ -711,6 +1146,22 @@ export const RollupAbi = [
711
1146
  }
712
1147
  ]
713
1148
  },
1149
+ {
1150
+ "type": "error",
1151
+ "name": "SampleLib__IndexOutOfBounds",
1152
+ "inputs": [
1153
+ {
1154
+ "name": "requested",
1155
+ "type": "uint256",
1156
+ "internalType": "uint256"
1157
+ },
1158
+ {
1159
+ "name": "bound",
1160
+ "type": "uint256",
1161
+ "internalType": "uint256"
1162
+ }
1163
+ ]
1164
+ },
714
1165
  {
715
1166
  "type": "error",
716
1167
  "name": "SignatureLib__CannotVerifyEmpty",