@aztec/l1-artifacts 0.50.1 → 0.51.1

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.
@@ -29,6 +29,11 @@ export const RollupAbi = [
29
29
  "name": "_ares",
30
30
  "type": "address",
31
31
  "internalType": "address"
32
+ },
33
+ {
34
+ "name": "_validators",
35
+ "type": "address[]",
36
+ "internalType": "address[]"
32
37
  }
33
38
  ],
34
39
  "stateMutability": "nonpayable"
@@ -246,11 +251,40 @@ export const RollupAbi = [
246
251
  "name": "slotNumber",
247
252
  "type": "uint128",
248
253
  "internalType": "uint128"
254
+ }
255
+ ],
256
+ "stateMutability": "view"
257
+ },
258
+ {
259
+ "type": "function",
260
+ "name": "canProposeAtTime",
261
+ "inputs": [
262
+ {
263
+ "name": "_ts",
264
+ "type": "uint256",
265
+ "internalType": "uint256"
249
266
  },
250
267
  {
251
- "name": "isProven",
252
- "type": "bool",
253
- "internalType": "bool"
268
+ "name": "_proposer",
269
+ "type": "address",
270
+ "internalType": "address"
271
+ },
272
+ {
273
+ "name": "_archive",
274
+ "type": "bytes32",
275
+ "internalType": "bytes32"
276
+ }
277
+ ],
278
+ "outputs": [
279
+ {
280
+ "name": "",
281
+ "type": "uint256",
282
+ "internalType": "uint256"
283
+ },
284
+ {
285
+ "name": "",
286
+ "type": "uint256",
287
+ "internalType": "uint256"
254
288
  }
255
289
  ],
256
290
  "stateMutability": "view"
@@ -428,45 +462,45 @@ export const RollupAbi = [
428
462
  },
429
463
  {
430
464
  "type": "function",
431
- "name": "getValidatorCount",
432
- "inputs": [],
433
- "outputs": [
465
+ "name": "getValidatorAt",
466
+ "inputs": [
434
467
  {
435
- "name": "",
468
+ "name": "_index",
436
469
  "type": "uint256",
437
470
  "internalType": "uint256"
438
471
  }
439
472
  ],
440
- "stateMutability": "view"
441
- },
442
- {
443
- "type": "function",
444
- "name": "getValidators",
445
- "inputs": [],
446
473
  "outputs": [
447
474
  {
448
475
  "name": "",
449
- "type": "address[]",
450
- "internalType": "address[]"
476
+ "type": "address",
477
+ "internalType": "address"
451
478
  }
452
479
  ],
453
480
  "stateMutability": "view"
454
481
  },
455
482
  {
456
483
  "type": "function",
457
- "name": "isBlockProven",
458
- "inputs": [
484
+ "name": "getValidatorCount",
485
+ "inputs": [],
486
+ "outputs": [
459
487
  {
460
- "name": "_blockNumber",
488
+ "name": "",
461
489
  "type": "uint256",
462
490
  "internalType": "uint256"
463
491
  }
464
492
  ],
493
+ "stateMutability": "view"
494
+ },
495
+ {
496
+ "type": "function",
497
+ "name": "getValidators",
498
+ "inputs": [],
465
499
  "outputs": [
466
500
  {
467
501
  "name": "",
468
- "type": "bool",
469
- "internalType": "bool"
502
+ "type": "address[]",
503
+ "internalType": "address[]"
470
504
  }
471
505
  ],
472
506
  "stateMutability": "view"
@@ -531,30 +565,7 @@ export const RollupAbi = [
531
565
  },
532
566
  {
533
567
  "type": "function",
534
- "name": "process",
535
- "inputs": [
536
- {
537
- "name": "_header",
538
- "type": "bytes",
539
- "internalType": "bytes"
540
- },
541
- {
542
- "name": "_archive",
543
- "type": "bytes32",
544
- "internalType": "bytes32"
545
- },
546
- {
547
- "name": "_blockHash",
548
- "type": "bytes32",
549
- "internalType": "bytes32"
550
- }
551
- ],
552
- "outputs": [],
553
- "stateMutability": "nonpayable"
554
- },
555
- {
556
- "type": "function",
557
- "name": "process",
568
+ "name": "propose",
558
569
  "inputs": [
559
570
  {
560
571
  "name": "_header",
@@ -597,34 +608,19 @@ export const RollupAbi = [
597
608
  "internalType": "bytes32"
598
609
  }
599
610
  ]
600
- }
601
- ],
602
- "outputs": [],
603
- "stateMutability": "nonpayable"
604
- },
605
- {
606
- "type": "function",
607
- "name": "provenBlockCount",
608
- "inputs": [],
609
- "outputs": [
611
+ },
610
612
  {
611
- "name": "",
612
- "type": "uint256",
613
- "internalType": "uint256"
613
+ "name": "_body",
614
+ "type": "bytes",
615
+ "internalType": "bytes"
614
616
  }
615
617
  ],
616
- "stateMutability": "view"
617
- },
618
- {
619
- "type": "function",
620
- "name": "prune",
621
- "inputs": [],
622
618
  "outputs": [],
623
619
  "stateMutability": "nonpayable"
624
620
  },
625
621
  {
626
622
  "type": "function",
627
- "name": "publishAndProcess",
623
+ "name": "propose",
628
624
  "inputs": [
629
625
  {
630
626
  "name": "_header",
@@ -667,6 +663,29 @@ export const RollupAbi = [
667
663
  "internalType": "bytes32"
668
664
  }
669
665
  ]
666
+ }
667
+ ],
668
+ "outputs": [],
669
+ "stateMutability": "nonpayable"
670
+ },
671
+ {
672
+ "type": "function",
673
+ "name": "propose",
674
+ "inputs": [
675
+ {
676
+ "name": "_header",
677
+ "type": "bytes",
678
+ "internalType": "bytes"
679
+ },
680
+ {
681
+ "name": "_archive",
682
+ "type": "bytes32",
683
+ "internalType": "bytes32"
684
+ },
685
+ {
686
+ "name": "_blockHash",
687
+ "type": "bytes32",
688
+ "internalType": "bytes32"
670
689
  },
671
690
  {
672
691
  "name": "_body",
@@ -679,7 +698,7 @@ export const RollupAbi = [
679
698
  },
680
699
  {
681
700
  "type": "function",
682
- "name": "publishAndProcess",
701
+ "name": "propose",
683
702
  "inputs": [
684
703
  {
685
704
  "name": "_header",
@@ -695,13 +714,28 @@ export const RollupAbi = [
695
714
  "name": "_blockHash",
696
715
  "type": "bytes32",
697
716
  "internalType": "bytes32"
698
- },
717
+ }
718
+ ],
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable"
721
+ },
722
+ {
723
+ "type": "function",
724
+ "name": "provenBlockCount",
725
+ "inputs": [],
726
+ "outputs": [
699
727
  {
700
- "name": "_body",
701
- "type": "bytes",
702
- "internalType": "bytes"
728
+ "name": "",
729
+ "type": "uint256",
730
+ "internalType": "uint256"
703
731
  }
704
732
  ],
733
+ "stateMutability": "view"
734
+ },
735
+ {
736
+ "type": "function",
737
+ "name": "prune",
738
+ "inputs": [],
705
739
  "outputs": [],
706
740
  "stateMutability": "nonpayable"
707
741
  },
@@ -830,6 +864,73 @@ export const RollupAbi = [
830
864
  "outputs": [],
831
865
  "stateMutability": "nonpayable"
832
866
  },
867
+ {
868
+ "type": "function",
869
+ "name": "validateHeader",
870
+ "inputs": [
871
+ {
872
+ "name": "_header",
873
+ "type": "bytes",
874
+ "internalType": "bytes"
875
+ },
876
+ {
877
+ "name": "_signatures",
878
+ "type": "tuple[]",
879
+ "internalType": "struct SignatureLib.Signature[]",
880
+ "components": [
881
+ {
882
+ "name": "isEmpty",
883
+ "type": "bool",
884
+ "internalType": "bool"
885
+ },
886
+ {
887
+ "name": "v",
888
+ "type": "uint8",
889
+ "internalType": "uint8"
890
+ },
891
+ {
892
+ "name": "r",
893
+ "type": "bytes32",
894
+ "internalType": "bytes32"
895
+ },
896
+ {
897
+ "name": "s",
898
+ "type": "bytes32",
899
+ "internalType": "bytes32"
900
+ }
901
+ ]
902
+ },
903
+ {
904
+ "name": "_digest",
905
+ "type": "bytes32",
906
+ "internalType": "bytes32"
907
+ },
908
+ {
909
+ "name": "_currentTime",
910
+ "type": "uint256",
911
+ "internalType": "uint256"
912
+ },
913
+ {
914
+ "name": "_flags",
915
+ "type": "tuple",
916
+ "internalType": "struct DataStructures.ExecutionFlags",
917
+ "components": [
918
+ {
919
+ "name": "ignoreDA",
920
+ "type": "bool",
921
+ "internalType": "bool"
922
+ },
923
+ {
924
+ "name": "ignoreSignatures",
925
+ "type": "bool",
926
+ "internalType": "bool"
927
+ }
928
+ ]
929
+ }
930
+ ],
931
+ "outputs": [],
932
+ "stateMutability": "view"
933
+ },
833
934
  {
834
935
  "type": "function",
835
936
  "name": "verifier",
@@ -858,7 +959,7 @@ export const RollupAbi = [
858
959
  },
859
960
  {
860
961
  "type": "event",
861
- "name": "L2BlockProcessed",
962
+ "name": "L2BlockProposed",
862
963
  "inputs": [
863
964
  {
864
965
  "name": "blockNumber",
@@ -909,7 +1010,7 @@ export const RollupAbi = [
909
1010
  },
910
1011
  {
911
1012
  "type": "event",
912
- "name": "ProgressedState",
1013
+ "name": "PrunedPending",
913
1014
  "inputs": [
914
1015
  {
915
1016
  "name": "provenBlockCount",
@@ -927,23 +1028,25 @@ export const RollupAbi = [
927
1028
  "anonymous": false
928
1029
  },
929
1030
  {
930
- "type": "event",
931
- "name": "PrunedPending",
1031
+ "type": "error",
1032
+ "name": "DevNet__InvalidProposer",
932
1033
  "inputs": [
933
1034
  {
934
- "name": "provenBlockCount",
935
- "type": "uint256",
936
- "indexed": false,
937
- "internalType": "uint256"
1035
+ "name": "expected",
1036
+ "type": "address",
1037
+ "internalType": "address"
938
1038
  },
939
1039
  {
940
- "name": "pendingBlockCount",
941
- "type": "uint256",
942
- "indexed": false,
943
- "internalType": "uint256"
1040
+ "name": "actual",
1041
+ "type": "address",
1042
+ "internalType": "address"
944
1043
  }
945
- ],
946
- "anonymous": false
1044
+ ]
1045
+ },
1046
+ {
1047
+ "type": "error",
1048
+ "name": "DevNet__NoPruningAllowed",
1049
+ "inputs": []
947
1050
  },
948
1051
  {
949
1052
  "type": "error",
@@ -977,11 +1080,6 @@ export const RollupAbi = [
977
1080
  }
978
1081
  ]
979
1082
  },
980
- {
981
- "type": "error",
982
- "name": "Leonidas__EpochNotSetup",
983
- "inputs": []
984
- },
985
1083
  {
986
1084
  "type": "error",
987
1085
  "name": "Leonidas__InsufficientAttestations",
@@ -1185,6 +1283,11 @@ export const RollupAbi = [
1185
1283
  }
1186
1284
  ]
1187
1285
  },
1286
+ {
1287
+ "type": "error",
1288
+ "name": "Rollup__NonSequentialProving",
1289
+ "inputs": []
1290
+ },
1188
1291
  {
1189
1292
  "type": "error",
1190
1293
  "name": "Rollup__NotReadyToPrune",
@@ -1233,6 +1336,22 @@ export const RollupAbi = [
1233
1336
  }
1234
1337
  ]
1235
1338
  },
1339
+ {
1340
+ "type": "error",
1341
+ "name": "Rollup__TimestampInFuture",
1342
+ "inputs": [
1343
+ {
1344
+ "name": "max",
1345
+ "type": "uint256",
1346
+ "internalType": "uint256"
1347
+ },
1348
+ {
1349
+ "name": "actual",
1350
+ "type": "uint256",
1351
+ "internalType": "uint256"
1352
+ }
1353
+ ]
1354
+ },
1236
1355
  {
1237
1356
  "type": "error",
1238
1357
  "name": "Rollup__TryingToProveNonExistingBlock",
@@ -1249,6 +1368,22 @@ export const RollupAbi = [
1249
1368
  }
1250
1369
  ]
1251
1370
  },
1371
+ {
1372
+ "type": "error",
1373
+ "name": "SafeCastOverflowedUintDowncast",
1374
+ "inputs": [
1375
+ {
1376
+ "name": "bits",
1377
+ "type": "uint8",
1378
+ "internalType": "uint8"
1379
+ },
1380
+ {
1381
+ "name": "value",
1382
+ "type": "uint256",
1383
+ "internalType": "uint256"
1384
+ }
1385
+ ]
1386
+ },
1252
1387
  {
1253
1388
  "type": "error",
1254
1389
  "name": "SampleLib__IndexOutOfBounds",