@aztec/l1-artifacts 0.47.1 → 0.49.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) 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/InboxAbi.d.ts +13 -5
  10. package/dest/InboxAbi.d.ts.map +1 -1
  11. package/dest/InboxAbi.js +18 -6
  12. package/dest/InboxBytecode.d.ts +1 -1
  13. package/dest/InboxBytecode.d.ts.map +1 -1
  14. package/dest/InboxBytecode.js +2 -2
  15. package/dest/OutboxAbi.d.ts +28 -28
  16. package/dest/OutboxAbi.js +38 -38
  17. package/dest/OutboxBytecode.d.ts +1 -1
  18. package/dest/OutboxBytecode.d.ts.map +1 -1
  19. package/dest/OutboxBytecode.js +2 -2
  20. package/dest/RegistryAbi.d.ts +56 -43
  21. package/dest/RegistryAbi.d.ts.map +1 -1
  22. package/dest/RegistryAbi.js +72 -54
  23. package/dest/RegistryBytecode.d.ts +1 -1
  24. package/dest/RegistryBytecode.d.ts.map +1 -1
  25. package/dest/RegistryBytecode.js +2 -2
  26. package/dest/RollupAbi.d.ts +402 -14
  27. package/dest/RollupAbi.d.ts.map +1 -1
  28. package/dest/RollupAbi.js +526 -15
  29. package/dest/RollupBytecode.d.ts +1 -1
  30. package/dest/RollupBytecode.d.ts.map +1 -1
  31. package/dest/RollupBytecode.js +2 -2
  32. package/dest/TokenPortalBytecode.d.ts +1 -1
  33. package/dest/TokenPortalBytecode.d.ts.map +1 -1
  34. package/dest/TokenPortalBytecode.js +2 -2
  35. package/dest/UniswapPortalBytecode.d.ts +1 -1
  36. package/dest/UniswapPortalBytecode.d.ts.map +1 -1
  37. package/dest/UniswapPortalBytecode.js +2 -2
  38. package/dest/index.d.ts +2 -2
  39. package/dest/index.d.ts.map +1 -1
  40. package/dest/index.js +3 -3
  41. package/generated/AvailabilityOracleBytecode.ts +1 -1
  42. package/generated/{GasPortalAbi.ts → FeeJuicePortalAbi.ts} +2 -2
  43. package/generated/FeeJuicePortalBytecode.ts +4 -0
  44. package/generated/InboxAbi.ts +17 -5
  45. package/generated/InboxBytecode.ts +1 -1
  46. package/generated/OutboxAbi.ts +37 -37
  47. package/generated/OutboxBytecode.ts +1 -1
  48. package/generated/RegistryAbi.ts +71 -53
  49. package/generated/RegistryBytecode.ts +1 -1
  50. package/generated/RollupAbi.ts +525 -14
  51. package/generated/RollupBytecode.ts +1 -1
  52. package/generated/TokenPortalBytecode.ts +1 -1
  53. package/generated/UniswapPortalBytecode.ts +1 -1
  54. package/generated/index.ts +2 -2
  55. package/package.json +1 -1
  56. package/dest/GasPortalAbi.d.ts.map +0 -1
  57. package/dest/GasPortalBytecode.d.ts +0 -5
  58. package/dest/GasPortalBytecode.d.ts.map +0 -1
  59. package/dest/GasPortalBytecode.js +0 -5
  60. 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
  {
@@ -145,6 +145,19 @@ export const RollupAbi = [
145
145
  ],
146
146
  "stateMutability": "view"
147
147
  },
148
+ {
149
+ "type": "function",
150
+ "name": "TIMELINESS_PROVING_IN_SLOTS",
151
+ "inputs": [],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "uint256",
156
+ "internalType": "uint256"
157
+ }
158
+ ],
159
+ "stateMutability": "view"
160
+ },
148
161
  {
149
162
  "type": "function",
150
163
  "name": "VERSION",
@@ -184,6 +197,54 @@ export const RollupAbi = [
184
197
  ],
185
198
  "stateMutability": "view"
186
199
  },
200
+ {
201
+ "type": "function",
202
+ "name": "archiveAt",
203
+ "inputs": [
204
+ {
205
+ "name": "_blockNumber",
206
+ "type": "uint256",
207
+ "internalType": "uint256"
208
+ }
209
+ ],
210
+ "outputs": [
211
+ {
212
+ "name": "",
213
+ "type": "bytes32",
214
+ "internalType": "bytes32"
215
+ }
216
+ ],
217
+ "stateMutability": "view"
218
+ },
219
+ {
220
+ "type": "function",
221
+ "name": "blocks",
222
+ "inputs": [
223
+ {
224
+ "name": "blockNumber",
225
+ "type": "uint256",
226
+ "internalType": "uint256"
227
+ }
228
+ ],
229
+ "outputs": [
230
+ {
231
+ "name": "archive",
232
+ "type": "bytes32",
233
+ "internalType": "bytes32"
234
+ },
235
+ {
236
+ "name": "slotNumber",
237
+ "type": "uint128",
238
+ "internalType": "uint128"
239
+ },
240
+ {
241
+ "name": "isProven",
242
+ "type": "bool",
243
+ "internalType": "bool"
244
+ }
245
+ ],
246
+ "stateMutability": "view"
247
+ },
187
248
  {
188
249
  "type": "function",
189
250
  "name": "epochs",
@@ -247,6 +308,25 @@ export const RollupAbi = [
247
308
  ],
248
309
  "stateMutability": "view"
249
310
  },
311
+ {
312
+ "type": "function",
313
+ "name": "getEpochAt",
314
+ "inputs": [
315
+ {
316
+ "name": "_ts",
317
+ "type": "uint256",
318
+ "internalType": "uint256"
319
+ }
320
+ ],
321
+ "outputs": [
322
+ {
323
+ "name": "",
324
+ "type": "uint256",
325
+ "internalType": "uint256"
326
+ }
327
+ ],
328
+ "stateMutability": "view"
329
+ },
250
330
  {
251
331
  "type": "function",
252
332
  "name": "getEpochCommittee",
@@ -268,20 +348,64 @@ export const RollupAbi = [
268
348
  },
269
349
  {
270
350
  "type": "function",
271
- "name": "getValidators",
272
- "inputs": [],
351
+ "name": "getProposerAt",
352
+ "inputs": [
353
+ {
354
+ "name": "_ts",
355
+ "type": "uint256",
356
+ "internalType": "uint256"
357
+ }
358
+ ],
273
359
  "outputs": [
274
360
  {
275
361
  "name": "",
276
- "type": "address[]",
277
- "internalType": "address[]"
362
+ "type": "address",
363
+ "internalType": "address"
364
+ }
365
+ ],
366
+ "stateMutability": "view"
367
+ },
368
+ {
369
+ "type": "function",
370
+ "name": "getSlotAt",
371
+ "inputs": [
372
+ {
373
+ "name": "_ts",
374
+ "type": "uint256",
375
+ "internalType": "uint256"
376
+ }
377
+ ],
378
+ "outputs": [
379
+ {
380
+ "name": "",
381
+ "type": "uint256",
382
+ "internalType": "uint256"
383
+ }
384
+ ],
385
+ "stateMutability": "view"
386
+ },
387
+ {
388
+ "type": "function",
389
+ "name": "getTimestampForSlot",
390
+ "inputs": [
391
+ {
392
+ "name": "_slotNumber",
393
+ "type": "uint256",
394
+ "internalType": "uint256"
395
+ }
396
+ ],
397
+ "outputs": [
398
+ {
399
+ "name": "",
400
+ "type": "uint256",
401
+ "internalType": "uint256"
278
402
  }
279
403
  ],
280
404
  "stateMutability": "view"
281
405
  },
282
406
  {
283
407
  "type": "function",
284
- "name": "lastBlockTs",
408
+ "name": "getValidatorCount",
285
409
  "inputs": [],
286
410
  "outputs": [
287
411
  {
@@ -294,15 +418,66 @@ export const RollupAbi = [
294
418
  },
295
419
  {
296
420
  "type": "function",
297
- "name": "lastWarpedBlockTs",
421
+ "name": "getValidators",
298
422
  "inputs": [],
299
423
  "outputs": [
300
424
  {
301
425
  "name": "",
426
+ "type": "address[]",
427
+ "internalType": "address[]"
428
+ }
429
+ ],
430
+ "stateMutability": "view"
431
+ },
432
+ {
433
+ "type": "function",
434
+ "name": "isBlockProven",
435
+ "inputs": [
436
+ {
437
+ "name": "_blockNumber",
302
438
  "type": "uint256",
303
439
  "internalType": "uint256"
304
440
  }
305
441
  ],
442
+ "outputs": [
443
+ {
444
+ "name": "",
445
+ "type": "bool",
446
+ "internalType": "bool"
447
+ }
448
+ ],
449
+ "stateMutability": "view"
450
+ },
451
+ {
452
+ "type": "function",
453
+ "name": "isDevNet",
454
+ "inputs": [],
455
+ "outputs": [
456
+ {
457
+ "name": "",
458
+ "type": "bool",
459
+ "internalType": "bool"
460
+ }
461
+ ],
462
+ "stateMutability": "view"
463
+ },
464
+ {
465
+ "type": "function",
466
+ "name": "isValidator",
467
+ "inputs": [
468
+ {
469
+ "name": "_validator",
470
+ "type": "address",
471
+ "internalType": "address"
472
+ }
473
+ ],
474
+ "outputs": [
475
+ {
476
+ "name": "",
477
+ "type": "bool",
478
+ "internalType": "bool"
479
+ }
480
+ ],
306
481
  "stateMutability": "view"
307
482
  },
308
483
  {
@@ -318,6 +493,19 @@ export const RollupAbi = [
318
493
  ],
319
494
  "stateMutability": "view"
320
495
  },
496
+ {
497
+ "type": "function",
498
+ "name": "pendingBlockCount",
499
+ "inputs": [],
500
+ "outputs": [
501
+ {
502
+ "name": "",
503
+ "type": "uint256",
504
+ "internalType": "uint256"
505
+ }
506
+ ],
507
+ "stateMutability": "view"
508
+ },
321
509
  {
322
510
  "type": "function",
323
511
  "name": "process",
@@ -381,6 +569,99 @@ export const RollupAbi = [
381
569
  "outputs": [],
382
570
  "stateMutability": "nonpayable"
383
571
  },
572
+ {
573
+ "type": "function",
574
+ "name": "provenBlockCount",
575
+ "inputs": [],
576
+ "outputs": [
577
+ {
578
+ "name": "",
579
+ "type": "uint256",
580
+ "internalType": "uint256"
581
+ }
582
+ ],
583
+ "stateMutability": "view"
584
+ },
585
+ {
586
+ "type": "function",
587
+ "name": "prune",
588
+ "inputs": [],
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable"
591
+ },
592
+ {
593
+ "type": "function",
594
+ "name": "publishAndProcess",
595
+ "inputs": [
596
+ {
597
+ "name": "_header",
598
+ "type": "bytes",
599
+ "internalType": "bytes"
600
+ },
601
+ {
602
+ "name": "_archive",
603
+ "type": "bytes32",
604
+ "internalType": "bytes32"
605
+ },
606
+ {
607
+ "name": "_signatures",
608
+ "type": "tuple[]",
609
+ "internalType": "struct SignatureLib.Signature[]",
610
+ "components": [
611
+ {
612
+ "name": "isEmpty",
613
+ "type": "bool",
614
+ "internalType": "bool"
615
+ },
616
+ {
617
+ "name": "v",
618
+ "type": "uint8",
619
+ "internalType": "uint8"
620
+ },
621
+ {
622
+ "name": "r",
623
+ "type": "bytes32",
624
+ "internalType": "bytes32"
625
+ },
626
+ {
627
+ "name": "s",
628
+ "type": "bytes32",
629
+ "internalType": "bytes32"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "name": "_body",
635
+ "type": "bytes",
636
+ "internalType": "bytes"
637
+ }
638
+ ],
639
+ "outputs": [],
640
+ "stateMutability": "nonpayable"
641
+ },
642
+ {
643
+ "type": "function",
644
+ "name": "publishAndProcess",
645
+ "inputs": [
646
+ {
647
+ "name": "_header",
648
+ "type": "bytes",
649
+ "internalType": "bytes"
650
+ },
651
+ {
652
+ "name": "_archive",
653
+ "type": "bytes32",
654
+ "internalType": "bytes32"
655
+ },
656
+ {
657
+ "name": "_body",
658
+ "type": "bytes",
659
+ "internalType": "bytes"
660
+ }
661
+ ],
662
+ "outputs": [],
663
+ "stateMutability": "nonpayable"
664
+ },
384
665
  {
385
666
  "type": "function",
386
667
  "name": "removeValidator",
@@ -401,6 +682,32 @@ export const RollupAbi = [
401
682
  "outputs": [],
402
683
  "stateMutability": "nonpayable"
403
684
  },
685
+ {
686
+ "type": "function",
687
+ "name": "setAssumeProvenUntilBlockNumber",
688
+ "inputs": [
689
+ {
690
+ "name": "blockNumber",
691
+ "type": "uint256",
692
+ "internalType": "uint256"
693
+ }
694
+ ],
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable"
697
+ },
698
+ {
699
+ "type": "function",
700
+ "name": "setDevNet",
701
+ "inputs": [
702
+ {
703
+ "name": "_devNet",
704
+ "type": "bool",
705
+ "internalType": "bool"
706
+ }
707
+ ],
708
+ "outputs": [],
709
+ "stateMutability": "nonpayable"
710
+ },
404
711
  {
405
712
  "type": "function",
406
713
  "name": "setVerifier",
@@ -448,6 +755,11 @@ export const RollupAbi = [
448
755
  "type": "bytes32",
449
756
  "internalType": "bytes32"
450
757
  },
758
+ {
759
+ "name": "_proverId",
760
+ "type": "bytes32",
761
+ "internalType": "bytes32"
762
+ },
451
763
  {
452
764
  "name": "_aggregationObject",
453
765
  "type": "bytes",
@@ -523,6 +835,12 @@ export const RollupAbi = [
523
835
  "type": "uint256",
524
836
  "indexed": true,
525
837
  "internalType": "uint256"
838
+ },
839
+ {
840
+ "name": "proverId",
841
+ "type": "bytes32",
842
+ "indexed": true,
843
+ "internalType": "bytes32"
526
844
  }
527
845
  ],
528
846
  "anonymous": false
@@ -546,6 +864,44 @@ export const RollupAbi = [
546
864
  ],
547
865
  "anonymous": false
548
866
  },
867
+ {
868
+ "type": "event",
869
+ "name": "ProgressedState",
870
+ "inputs": [
871
+ {
872
+ "name": "provenBlockCount",
873
+ "type": "uint256",
874
+ "indexed": false,
875
+ "internalType": "uint256"
876
+ },
877
+ {
878
+ "name": "pendingBlockCount",
879
+ "type": "uint256",
880
+ "indexed": false,
881
+ "internalType": "uint256"
882
+ }
883
+ ],
884
+ "anonymous": false
885
+ },
886
+ {
887
+ "type": "event",
888
+ "name": "PrunedPending",
889
+ "inputs": [
890
+ {
891
+ "name": "provenBlockCount",
892
+ "type": "uint256",
893
+ "indexed": false,
894
+ "internalType": "uint256"
895
+ },
896
+ {
897
+ "name": "pendingBlockCount",
898
+ "type": "uint256",
899
+ "indexed": false,
900
+ "internalType": "uint256"
901
+ }
902
+ ],
903
+ "anonymous": false
904
+ },
549
905
  {
550
906
  "type": "error",
551
907
  "name": "HeaderLib__InvalidHeaderSize",
@@ -562,6 +918,22 @@ export const RollupAbi = [
562
918
  }
563
919
  ]
564
920
  },
921
+ {
922
+ "type": "error",
923
+ "name": "HeaderLib__InvalidSlotNumber",
924
+ "inputs": [
925
+ {
926
+ "name": "expected",
927
+ "type": "uint256",
928
+ "internalType": "uint256"
929
+ },
930
+ {
931
+ "name": "actual",
932
+ "type": "uint256",
933
+ "internalType": "uint256"
934
+ }
935
+ ]
936
+ },
565
937
  {
566
938
  "type": "error",
567
939
  "name": "Leonidas__EpochNotSetup",
@@ -572,12 +944,28 @@ export const RollupAbi = [
572
944
  "name": "Leonidas__InsufficientAttestations",
573
945
  "inputs": [
574
946
  {
575
- "name": "expected",
947
+ "name": "minimumNeeded",
576
948
  "type": "uint256",
577
949
  "internalType": "uint256"
578
950
  },
579
951
  {
580
- "name": "actual",
952
+ "name": "provided",
953
+ "type": "uint256",
954
+ "internalType": "uint256"
955
+ }
956
+ ]
957
+ },
958
+ {
959
+ "type": "error",
960
+ "name": "Leonidas__InsufficientAttestationsProvided",
961
+ "inputs": [
962
+ {
963
+ "name": "minimumNeeded",
964
+ "type": "uint256",
965
+ "internalType": "uint256"
966
+ },
967
+ {
968
+ "name": "provided",
581
969
  "type": "uint256",
582
970
  "internalType": "uint256"
583
971
  }
@@ -637,6 +1025,22 @@ export const RollupAbi = [
637
1025
  }
638
1026
  ]
639
1027
  },
1028
+ {
1029
+ "type": "error",
1030
+ "name": "Rollup__InvalidBlockNumber",
1031
+ "inputs": [
1032
+ {
1033
+ "name": "expected",
1034
+ "type": "uint256",
1035
+ "internalType": "uint256"
1036
+ },
1037
+ {
1038
+ "name": "actual",
1039
+ "type": "uint256",
1040
+ "internalType": "uint256"
1041
+ }
1042
+ ]
1043
+ },
640
1044
  {
641
1045
  "type": "error",
642
1046
  "name": "Rollup__InvalidChainId",
@@ -653,6 +1057,22 @@ export const RollupAbi = [
653
1057
  }
654
1058
  ]
655
1059
  },
1060
+ {
1061
+ "type": "error",
1062
+ "name": "Rollup__InvalidEpoch",
1063
+ "inputs": [
1064
+ {
1065
+ "name": "expected",
1066
+ "type": "uint256",
1067
+ "internalType": "uint256"
1068
+ },
1069
+ {
1070
+ "name": "actual",
1071
+ "type": "uint256",
1072
+ "internalType": "uint256"
1073
+ }
1074
+ ]
1075
+ },
656
1076
  {
657
1077
  "type": "error",
658
1078
  "name": "Rollup__InvalidInHash",
@@ -674,6 +1094,38 @@ export const RollupAbi = [
674
1094
  "name": "Rollup__InvalidProof",
675
1095
  "inputs": []
676
1096
  },
1097
+ {
1098
+ "type": "error",
1099
+ "name": "Rollup__InvalidProposedArchive",
1100
+ "inputs": [
1101
+ {
1102
+ "name": "expected",
1103
+ "type": "bytes32",
1104
+ "internalType": "bytes32"
1105
+ },
1106
+ {
1107
+ "name": "actual",
1108
+ "type": "bytes32",
1109
+ "internalType": "bytes32"
1110
+ }
1111
+ ]
1112
+ },
1113
+ {
1114
+ "type": "error",
1115
+ "name": "Rollup__InvalidTimestamp",
1116
+ "inputs": [
1117
+ {
1118
+ "name": "expected",
1119
+ "type": "uint256",
1120
+ "internalType": "uint256"
1121
+ },
1122
+ {
1123
+ "name": "actual",
1124
+ "type": "uint256",
1125
+ "internalType": "uint256"
1126
+ }
1127
+ ]
1128
+ },
677
1129
  {
678
1130
  "type": "error",
679
1131
  "name": "Rollup__InvalidVersion",
@@ -692,12 +1144,55 @@ export const RollupAbi = [
692
1144
  },
693
1145
  {
694
1146
  "type": "error",
695
- "name": "Rollup__TimestampInFuture",
1147
+ "name": "Rollup__NotReadyToPrune",
1148
+ "inputs": [
1149
+ {
1150
+ "name": "currentSlot",
1151
+ "type": "uint256",
1152
+ "internalType": "uint256"
1153
+ },
1154
+ {
1155
+ "name": "prunableAt",
1156
+ "type": "uint256",
1157
+ "internalType": "uint256"
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "type": "error",
1163
+ "name": "Rollup__NothingToPrune",
696
1164
  "inputs": []
697
1165
  },
698
1166
  {
699
1167
  "type": "error",
700
- "name": "Rollup__TimestampTooOld",
1168
+ "name": "Rollup__SlotAlreadyInChain",
1169
+ "inputs": [
1170
+ {
1171
+ "name": "lastSlot",
1172
+ "type": "uint256",
1173
+ "internalType": "uint256"
1174
+ },
1175
+ {
1176
+ "name": "proposedSlot",
1177
+ "type": "uint256",
1178
+ "internalType": "uint256"
1179
+ }
1180
+ ]
1181
+ },
1182
+ {
1183
+ "type": "error",
1184
+ "name": "Rollup__SlotValueTooLarge",
1185
+ "inputs": [
1186
+ {
1187
+ "name": "slot",
1188
+ "type": "uint256",
1189
+ "internalType": "uint256"
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ "type": "error",
1195
+ "name": "Rollup__TryingToProveNonExistingBlock",
701
1196
  "inputs": []
702
1197
  },
703
1198
  {
@@ -711,6 +1206,22 @@ export const RollupAbi = [
711
1206
  }
712
1207
  ]
713
1208
  },
1209
+ {
1210
+ "type": "error",
1211
+ "name": "SampleLib__IndexOutOfBounds",
1212
+ "inputs": [
1213
+ {
1214
+ "name": "requested",
1215
+ "type": "uint256",
1216
+ "internalType": "uint256"
1217
+ },
1218
+ {
1219
+ "name": "bound",
1220
+ "type": "uint256",
1221
+ "internalType": "uint256"
1222
+ }
1223
+ ]
1224
+ },
714
1225
  {
715
1226
  "type": "error",
716
1227
  "name": "SignatureLib__CannotVerifyEmpty",