@aztec/ethereum 0.78.1 → 0.79.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.
- package/dest/contracts/fee_juice.js +1 -1
- package/dest/contracts/forwarder.d.ts.map +1 -1
- package/dest/contracts/forwarder.js +2 -1
- package/dest/contracts/governance.d.ts +17 -5
- package/dest/contracts/governance.d.ts.map +1 -1
- package/dest/contracts/governance.js +18 -20
- package/dest/contracts/governance_proposer.d.ts +1 -0
- package/dest/contracts/governance_proposer.d.ts.map +1 -1
- package/dest/contracts/governance_proposer.js +10 -3
- package/dest/contracts/registry.js +2 -2
- package/dest/contracts/rollup.d.ts.map +1 -1
- package/dest/contracts/rollup.js +3 -1
- package/dest/contracts/slashing_proposer.js +1 -1
- package/dest/deploy_l1_contracts.d.ts +181 -325
- package/dest/deploy_l1_contracts.d.ts.map +1 -1
- package/dest/deploy_l1_contracts.js +48 -26
- package/dest/l1_tx_utils.d.ts +1 -0
- package/dest/l1_tx_utils.d.ts.map +1 -1
- package/dest/l1_tx_utils.js +4 -1
- package/dest/queries.d.ts +7 -0
- package/dest/queries.d.ts.map +1 -1
- package/dest/queries.js +14 -2
- package/dest/test/chain_monitor.d.ts +25 -0
- package/dest/test/chain_monitor.d.ts.map +1 -0
- package/dest/test/chain_monitor.js +74 -0
- package/dest/test/index.d.ts +1 -0
- package/dest/test/index.d.ts.map +1 -1
- package/dest/test/index.js +1 -0
- package/dest/test/upgrade_utils.d.ts.map +1 -1
- package/dest/test/upgrade_utils.js +1 -1
- package/dest/utils.js +1 -1
- package/package.json +5 -5
- package/src/contracts/fee_juice.ts +1 -1
- package/src/contracts/forwarder.ts +2 -1
- package/src/contracts/governance.ts +22 -21
- package/src/contracts/governance_proposer.ts +7 -3
- package/src/contracts/registry.ts +2 -2
- package/src/contracts/rollup.ts +3 -1
- package/src/contracts/slashing_proposer.ts +1 -1
- package/src/deploy_l1_contracts.ts +66 -28
- package/src/l1_tx_utils.ts +5 -0
- package/src/queries.ts +29 -2
- package/src/test/chain_monitor.ts +88 -0
- package/src/test/index.ts +1 -0
- package/src/test/upgrade_utils.ts +1 -1
- package/src/utils.ts +1 -1
|
@@ -119,9 +119,7 @@ export declare const l1Artifacts: {
|
|
|
119
119
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
120
120
|
readonly inputs: readonly [{
|
|
121
121
|
readonly name: "proposal";
|
|
122
|
-
readonly type: "address";
|
|
123
|
-
* Return type of the deployL1Contract function.
|
|
124
|
-
*/
|
|
122
|
+
readonly type: "address";
|
|
125
123
|
readonly internalType: "contract IPayload";
|
|
126
124
|
}];
|
|
127
125
|
}, {
|
|
@@ -218,7 +216,7 @@ export declare const l1Artifacts: {
|
|
|
218
216
|
readonly inputs: readonly [{
|
|
219
217
|
readonly name: "slot";
|
|
220
218
|
readonly type: "uint256";
|
|
221
|
-
readonly internalType: "Slot";
|
|
219
|
+
readonly internalType: "Slot";
|
|
222
220
|
}];
|
|
223
221
|
}, {
|
|
224
222
|
readonly type: "error";
|
|
@@ -233,7 +231,7 @@ export declare const l1Artifacts: {
|
|
|
233
231
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
234
232
|
readonly inputs: readonly [{
|
|
235
233
|
readonly name: "caller";
|
|
236
|
-
readonly type: "address";
|
|
234
|
+
readonly type: "address"; /** Configuration for the L1 tx utils module. */
|
|
237
235
|
readonly internalType: "address";
|
|
238
236
|
}, {
|
|
239
237
|
readonly name: "governanceProposer";
|
|
@@ -806,18 +804,6 @@ export declare const l1Artifacts: {
|
|
|
806
804
|
readonly type: "uint256";
|
|
807
805
|
readonly internalType: "uint256";
|
|
808
806
|
}];
|
|
809
|
-
}, {
|
|
810
|
-
readonly type: "error";
|
|
811
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
812
|
-
readonly inputs: readonly [{
|
|
813
|
-
readonly name: "expected";
|
|
814
|
-
readonly type: "uint256";
|
|
815
|
-
readonly internalType: "Epoch";
|
|
816
|
-
}, {
|
|
817
|
-
readonly name: "actual";
|
|
818
|
-
readonly type: "uint256";
|
|
819
|
-
readonly internalType: "Epoch";
|
|
820
|
-
}];
|
|
821
807
|
}, {
|
|
822
808
|
readonly type: "error";
|
|
823
809
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -1425,9 +1411,7 @@ export declare const l1Artifacts: {
|
|
|
1425
1411
|
readonly name: "proposal";
|
|
1426
1412
|
readonly type: "address";
|
|
1427
1413
|
readonly internalType: "contract IPayload";
|
|
1428
|
-
}];
|
|
1429
|
-
* Public Client Type.
|
|
1430
|
-
*/
|
|
1414
|
+
}];
|
|
1431
1415
|
}, {
|
|
1432
1416
|
readonly type: "error";
|
|
1433
1417
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
@@ -1446,9 +1430,7 @@ export declare const l1Artifacts: {
|
|
|
1446
1430
|
}, {
|
|
1447
1431
|
readonly name: "votesNeeded";
|
|
1448
1432
|
readonly type: "uint256";
|
|
1449
|
-
readonly internalType: "uint256";
|
|
1450
|
-
* The contract bytecode
|
|
1451
|
-
*/
|
|
1433
|
+
readonly internalType: "uint256";
|
|
1452
1434
|
}];
|
|
1453
1435
|
}, {
|
|
1454
1436
|
readonly type: "error";
|
|
@@ -1525,12 +1507,12 @@ export declare const l1Artifacts: {
|
|
|
1525
1507
|
readonly name: "slot";
|
|
1526
1508
|
readonly type: "uint256";
|
|
1527
1509
|
readonly internalType: "Slot";
|
|
1528
|
-
}];
|
|
1510
|
+
}]; /** The genesis root of the archive tree. */
|
|
1529
1511
|
}, {
|
|
1530
1512
|
readonly type: "error";
|
|
1531
1513
|
readonly name: "Governance__CallFailed";
|
|
1532
1514
|
readonly inputs: readonly [{
|
|
1533
|
-
readonly name: "target";
|
|
1515
|
+
readonly name: "target"; /** The salt for CREATE2 deployment. */
|
|
1534
1516
|
readonly type: "address";
|
|
1535
1517
|
readonly internalType: "address";
|
|
1536
1518
|
}];
|
|
@@ -1804,15 +1786,6 @@ export declare const l1Artifacts: {
|
|
|
1804
1786
|
readonly inputs: readonly [{
|
|
1805
1787
|
readonly name: "l2BlockNumber";
|
|
1806
1788
|
readonly type: "uint256";
|
|
1807
|
-
/**
|
|
1808
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
1809
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
1810
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
1811
|
-
* @param chain - The chain instance to deploy to.
|
|
1812
|
-
* @param logger - A logger object.
|
|
1813
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
1814
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
1815
|
-
*/
|
|
1816
1789
|
readonly internalType: "uint256";
|
|
1817
1790
|
}];
|
|
1818
1791
|
}, {
|
|
@@ -2105,18 +2078,6 @@ export declare const l1Artifacts: {
|
|
|
2105
2078
|
readonly type: "uint256";
|
|
2106
2079
|
readonly internalType: "uint256";
|
|
2107
2080
|
}];
|
|
2108
|
-
}, {
|
|
2109
|
-
readonly type: "error";
|
|
2110
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
2111
|
-
readonly inputs: readonly [{
|
|
2112
|
-
readonly name: "expected";
|
|
2113
|
-
readonly type: "uint256";
|
|
2114
|
-
readonly internalType: "Epoch";
|
|
2115
|
-
}, {
|
|
2116
|
-
readonly name: "actual";
|
|
2117
|
-
readonly type: "uint256";
|
|
2118
|
-
readonly internalType: "Epoch";
|
|
2119
|
-
}];
|
|
2120
2081
|
}, {
|
|
2121
2082
|
readonly type: "error";
|
|
2122
2083
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -2773,7 +2734,7 @@ export declare const l1Artifacts: {
|
|
|
2773
2734
|
readonly name: "slot";
|
|
2774
2735
|
readonly type: "uint256";
|
|
2775
2736
|
readonly internalType: "Slot";
|
|
2776
|
-
}];
|
|
2737
|
+
}]; /** The vk tree root. */
|
|
2777
2738
|
}, {
|
|
2778
2739
|
readonly type: "error";
|
|
2779
2740
|
readonly name: "Governance__CallFailed";
|
|
@@ -2783,11 +2744,12 @@ export declare const l1Artifacts: {
|
|
|
2783
2744
|
readonly internalType: "address";
|
|
2784
2745
|
}];
|
|
2785
2746
|
}, {
|
|
2786
|
-
readonly type: "error";
|
|
2747
|
+
readonly type: "error"; /** The salt for CREATE2 deployment. */
|
|
2787
2748
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
2788
2749
|
readonly inputs: readonly [{
|
|
2789
2750
|
readonly name: "caller";
|
|
2790
|
-
readonly type: "address";
|
|
2751
|
+
readonly type: "address";
|
|
2752
|
+
/** Configuration for the L1 tx utils module. */
|
|
2791
2753
|
readonly internalType: "address";
|
|
2792
2754
|
}, {
|
|
2793
2755
|
readonly name: "governanceProposer";
|
|
@@ -3349,18 +3311,6 @@ export declare const l1Artifacts: {
|
|
|
3349
3311
|
readonly type: "uint256";
|
|
3350
3312
|
readonly internalType: "uint256";
|
|
3351
3313
|
}];
|
|
3352
|
-
}, {
|
|
3353
|
-
readonly type: "error";
|
|
3354
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
3355
|
-
readonly inputs: readonly [{
|
|
3356
|
-
readonly name: "expected";
|
|
3357
|
-
readonly type: "uint256";
|
|
3358
|
-
readonly internalType: "Epoch";
|
|
3359
|
-
}, {
|
|
3360
|
-
readonly name: "actual";
|
|
3361
|
-
readonly type: "uint256";
|
|
3362
|
-
readonly internalType: "Epoch";
|
|
3363
|
-
}];
|
|
3364
3314
|
}, {
|
|
3365
3315
|
readonly type: "error";
|
|
3366
3316
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -4039,7 +3989,7 @@ export declare const l1Artifacts: {
|
|
|
4039
3989
|
}, {
|
|
4040
3990
|
readonly type: "error";
|
|
4041
3991
|
readonly name: "GovernanceProposer__CanOnlyExecuteProposalInPast";
|
|
4042
|
-
readonly inputs: readonly [];
|
|
3992
|
+
readonly inputs: readonly []; /** The protocol contract tree root. */
|
|
4043
3993
|
}, {
|
|
4044
3994
|
readonly type: "error";
|
|
4045
3995
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
@@ -4049,7 +3999,7 @@ export declare const l1Artifacts: {
|
|
|
4049
3999
|
readonly internalType: "contract IPayload";
|
|
4050
4000
|
}];
|
|
4051
4001
|
}, {
|
|
4052
|
-
readonly type: "error";
|
|
4002
|
+
readonly type: "error"; /** The initial validators for the rollup contract. */
|
|
4053
4003
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
4054
4004
|
readonly inputs: readonly [{
|
|
4055
4005
|
readonly name: "instance";
|
|
@@ -4779,18 +4729,6 @@ export declare const l1Artifacts: {
|
|
|
4779
4729
|
readonly type: "uint256";
|
|
4780
4730
|
readonly internalType: "uint256";
|
|
4781
4731
|
}];
|
|
4782
|
-
}, {
|
|
4783
|
-
readonly type: "error";
|
|
4784
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
4785
|
-
readonly inputs: readonly [{
|
|
4786
|
-
readonly name: "expected";
|
|
4787
|
-
readonly type: "uint256";
|
|
4788
|
-
readonly internalType: "Epoch";
|
|
4789
|
-
}, {
|
|
4790
|
-
readonly name: "actual";
|
|
4791
|
-
readonly type: "uint256";
|
|
4792
|
-
readonly internalType: "Epoch";
|
|
4793
|
-
}];
|
|
4794
4732
|
}, {
|
|
4795
4733
|
readonly type: "error";
|
|
4796
4734
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -4807,6 +4745,16 @@ export declare const l1Artifacts: {
|
|
|
4807
4745
|
readonly type: "error";
|
|
4808
4746
|
readonly name: "Rollup__InvalidManaBaseFee";
|
|
4809
4747
|
readonly inputs: readonly [{
|
|
4748
|
+
/**
|
|
4749
|
+
* Helper function to deploy ETH contracts.
|
|
4750
|
+
* @param walletClient - A viem WalletClient.
|
|
4751
|
+
* @param publicClient - A viem PublicClient.
|
|
4752
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
4753
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
4754
|
+
* @param args - Constructor arguments for the contract.
|
|
4755
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
4756
|
+
* @returns The ETH address the contract was deployed to.
|
|
4757
|
+
*/
|
|
4810
4758
|
readonly name: "expected";
|
|
4811
4759
|
readonly type: "uint256";
|
|
4812
4760
|
readonly internalType: "uint256";
|
|
@@ -5304,16 +5252,6 @@ export declare const l1Artifacts: {
|
|
|
5304
5252
|
readonly internalType: "uint256";
|
|
5305
5253
|
}];
|
|
5306
5254
|
readonly stateMutability: "view";
|
|
5307
|
-
}, {
|
|
5308
|
-
readonly type: "function";
|
|
5309
|
-
readonly name: "canPrune";
|
|
5310
|
-
readonly inputs: readonly [];
|
|
5311
|
-
readonly outputs: readonly [{
|
|
5312
|
-
readonly name: "";
|
|
5313
|
-
readonly type: "bool";
|
|
5314
|
-
readonly internalType: "bool";
|
|
5315
|
-
}];
|
|
5316
|
-
readonly stateMutability: "view";
|
|
5317
5255
|
}, {
|
|
5318
5256
|
readonly type: "function";
|
|
5319
5257
|
readonly name: "canPruneAtTime";
|
|
@@ -5563,6 +5501,16 @@ export declare const l1Artifacts: {
|
|
|
5563
5501
|
}];
|
|
5564
5502
|
}];
|
|
5565
5503
|
readonly stateMutability: "view";
|
|
5504
|
+
}, {
|
|
5505
|
+
readonly type: "function";
|
|
5506
|
+
readonly name: "getBurnAddress";
|
|
5507
|
+
readonly inputs: readonly [];
|
|
5508
|
+
readonly outputs: readonly [{
|
|
5509
|
+
readonly name: "";
|
|
5510
|
+
readonly type: "address";
|
|
5511
|
+
readonly internalType: "address";
|
|
5512
|
+
}];
|
|
5513
|
+
readonly stateMutability: "pure";
|
|
5566
5514
|
}, {
|
|
5567
5515
|
readonly type: "function";
|
|
5568
5516
|
readonly name: "getCollectiveProverRewardsForEpoch";
|
|
@@ -5591,16 +5539,6 @@ export declare const l1Artifacts: {
|
|
|
5591
5539
|
readonly internalType: "address[]";
|
|
5592
5540
|
}];
|
|
5593
5541
|
readonly stateMutability: "view";
|
|
5594
|
-
}, {
|
|
5595
|
-
readonly type: "function";
|
|
5596
|
-
readonly name: "getCuauhxicalli";
|
|
5597
|
-
readonly inputs: readonly [];
|
|
5598
|
-
readonly outputs: readonly [{
|
|
5599
|
-
readonly name: "";
|
|
5600
|
-
readonly type: "address";
|
|
5601
|
-
readonly internalType: "address";
|
|
5602
|
-
}];
|
|
5603
|
-
readonly stateMutability: "view";
|
|
5604
5542
|
}, {
|
|
5605
5543
|
readonly type: "function";
|
|
5606
5544
|
readonly name: "getCurrentEpoch";
|
|
@@ -6628,7 +6566,7 @@ export declare const l1Artifacts: {
|
|
|
6628
6566
|
}, {
|
|
6629
6567
|
readonly name: "_flags";
|
|
6630
6568
|
readonly type: "tuple";
|
|
6631
|
-
readonly internalType: "struct
|
|
6569
|
+
readonly internalType: "struct BlockHeaderValidationFlags";
|
|
6632
6570
|
readonly components: readonly [{
|
|
6633
6571
|
readonly name: "ignoreDA";
|
|
6634
6572
|
readonly type: "bool";
|
|
@@ -6645,27 +6583,27 @@ export declare const l1Artifacts: {
|
|
|
6645
6583
|
contractBytecode: `0x${string}`;
|
|
6646
6584
|
libraries: {
|
|
6647
6585
|
linkReferences: {
|
|
6648
|
-
readonly "src/core/libraries/
|
|
6586
|
+
readonly "src/core/libraries/rollup/ExtRollupLib.sol": {
|
|
6649
6587
|
readonly ExtRollupLib: readonly [{
|
|
6650
6588
|
readonly start: 605;
|
|
6651
6589
|
readonly length: 20;
|
|
6652
6590
|
}, {
|
|
6653
|
-
readonly start:
|
|
6591
|
+
readonly start: 1748;
|
|
6654
6592
|
readonly length: 20;
|
|
6655
6593
|
}, {
|
|
6656
|
-
readonly start:
|
|
6594
|
+
readonly start: 7181;
|
|
6657
6595
|
readonly length: 20;
|
|
6658
6596
|
}, {
|
|
6659
|
-
readonly start:
|
|
6597
|
+
readonly start: 7611;
|
|
6660
6598
|
readonly length: 20;
|
|
6661
6599
|
}, {
|
|
6662
|
-
readonly start:
|
|
6600
|
+
readonly start: 8583;
|
|
6663
6601
|
readonly length: 20;
|
|
6664
6602
|
}, {
|
|
6665
|
-
readonly start:
|
|
6603
|
+
readonly start: 9183;
|
|
6666
6604
|
readonly length: 20;
|
|
6667
6605
|
}, {
|
|
6668
|
-
readonly start:
|
|
6606
|
+
readonly start: 9320;
|
|
6669
6607
|
readonly length: 20;
|
|
6670
6608
|
}];
|
|
6671
6609
|
};
|
|
@@ -6754,9 +6692,7 @@ export declare const l1Artifacts: {
|
|
|
6754
6692
|
readonly inputs: readonly [{
|
|
6755
6693
|
readonly name: "n";
|
|
6756
6694
|
readonly type: "uint256";
|
|
6757
|
-
readonly internalType: "uint256";
|
|
6758
|
-
* The contract abi.
|
|
6759
|
-
*/
|
|
6695
|
+
readonly internalType: "uint256";
|
|
6760
6696
|
}, {
|
|
6761
6697
|
readonly name: "m";
|
|
6762
6698
|
readonly type: "uint256";
|
|
@@ -6836,11 +6772,11 @@ export declare const l1Artifacts: {
|
|
|
6836
6772
|
}];
|
|
6837
6773
|
}, {
|
|
6838
6774
|
readonly type: "error";
|
|
6839
|
-
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
6775
|
+
readonly name: "Governance__CallerNotGovernanceProposer"; /** The genesis root of the archive tree. */
|
|
6840
6776
|
readonly inputs: readonly [{
|
|
6841
6777
|
readonly name: "caller";
|
|
6842
6778
|
readonly type: "address";
|
|
6843
|
-
readonly internalType: "address";
|
|
6779
|
+
readonly internalType: "address"; /** The salt for CREATE2 deployment. */
|
|
6844
6780
|
}, {
|
|
6845
6781
|
readonly name: "governanceProposer";
|
|
6846
6782
|
readonly type: "address";
|
|
@@ -6854,6 +6790,14 @@ export declare const l1Artifacts: {
|
|
|
6854
6790
|
readonly type: "address";
|
|
6855
6791
|
readonly internalType: "address";
|
|
6856
6792
|
}, {
|
|
6793
|
+
/**
|
|
6794
|
+
* Creates a wallet and a public viem client for interacting with L1.
|
|
6795
|
+
* @param rpcUrls - List of RPC URLs to connect to L1.
|
|
6796
|
+
* @param mnemonicOrPrivateKeyOrHdAccount - Mnemonic or account for the wallet client.
|
|
6797
|
+
* @param chain - Optional chain spec (defaults to local foundry).
|
|
6798
|
+
* @param addressIndex - Optional index of the address to use from the mnemonic.
|
|
6799
|
+
* @returns - A wallet and a public client.
|
|
6800
|
+
*/
|
|
6857
6801
|
readonly name: "self";
|
|
6858
6802
|
readonly type: "address";
|
|
6859
6803
|
readonly internalType: "address";
|
|
@@ -7366,18 +7310,6 @@ export declare const l1Artifacts: {
|
|
|
7366
7310
|
readonly type: "uint256";
|
|
7367
7311
|
readonly internalType: "uint256";
|
|
7368
7312
|
}];
|
|
7369
|
-
}, {
|
|
7370
|
-
readonly type: "error";
|
|
7371
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
7372
|
-
readonly inputs: readonly [{
|
|
7373
|
-
readonly name: "expected";
|
|
7374
|
-
readonly type: "uint256";
|
|
7375
|
-
readonly internalType: "Epoch";
|
|
7376
|
-
}, {
|
|
7377
|
-
readonly name: "actual";
|
|
7378
|
-
readonly type: "uint256";
|
|
7379
|
-
readonly internalType: "Epoch";
|
|
7380
|
-
}];
|
|
7381
7313
|
}, {
|
|
7382
7314
|
readonly type: "error";
|
|
7383
7315
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -7609,6 +7541,16 @@ export declare const l1Artifacts: {
|
|
|
7609
7541
|
}, {
|
|
7610
7542
|
readonly type: "error";
|
|
7611
7543
|
readonly name: "Staking__AlreadyActive";
|
|
7544
|
+
/**
|
|
7545
|
+
* Helper function to deploy ETH contracts.
|
|
7546
|
+
* @param walletClient - A viem WalletClient.
|
|
7547
|
+
* @param publicClient - A viem PublicClient.
|
|
7548
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
7549
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
7550
|
+
* @param args - Constructor arguments for the contract.
|
|
7551
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
7552
|
+
* @returns The ETH address the contract was deployed to.
|
|
7553
|
+
*/
|
|
7612
7554
|
readonly inputs: readonly [{
|
|
7613
7555
|
readonly name: "attester";
|
|
7614
7556
|
readonly type: "address";
|
|
@@ -7844,13 +7786,12 @@ export declare const l1Artifacts: {
|
|
|
7844
7786
|
}];
|
|
7845
7787
|
}, {
|
|
7846
7788
|
readonly type: "error";
|
|
7847
|
-
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
7789
|
+
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
7790
|
+
/**
|
|
7848
7791
|
* Public Client Type.
|
|
7849
7792
|
*/
|
|
7850
7793
|
readonly inputs: readonly [{
|
|
7851
|
-
readonly name: "votesCast";
|
|
7852
|
-
* The currently deployed l1 contract addresses
|
|
7853
|
-
*/
|
|
7794
|
+
readonly name: "votesCast";
|
|
7854
7795
|
readonly type: "uint256";
|
|
7855
7796
|
readonly internalType: "uint256";
|
|
7856
7797
|
}, {
|
|
@@ -7940,11 +7881,10 @@ export declare const l1Artifacts: {
|
|
|
7940
7881
|
readonly inputs: readonly [{
|
|
7941
7882
|
readonly name: "target";
|
|
7942
7883
|
readonly type: "address";
|
|
7943
|
-
readonly internalType: "address";
|
|
7884
|
+
readonly internalType: "address"; /** The vk tree root. */
|
|
7944
7885
|
}];
|
|
7945
7886
|
}, {
|
|
7946
7887
|
readonly type: "error";
|
|
7947
|
-
/** The protocol contract tree root. */
|
|
7948
7888
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
7949
7889
|
readonly inputs: readonly [{
|
|
7950
7890
|
readonly name: "caller";
|
|
@@ -7952,7 +7892,7 @@ export declare const l1Artifacts: {
|
|
|
7952
7892
|
readonly internalType: "address";
|
|
7953
7893
|
}, {
|
|
7954
7894
|
readonly name: "governanceProposer";
|
|
7955
|
-
readonly type: "address";
|
|
7895
|
+
readonly type: "address"; /** The initial validators for the rollup contract. */
|
|
7956
7896
|
readonly internalType: "address";
|
|
7957
7897
|
}];
|
|
7958
7898
|
}, {
|
|
@@ -8525,18 +8465,6 @@ export declare const l1Artifacts: {
|
|
|
8525
8465
|
readonly type: "uint256";
|
|
8526
8466
|
readonly internalType: "uint256";
|
|
8527
8467
|
}];
|
|
8528
|
-
}, {
|
|
8529
|
-
readonly type: "error";
|
|
8530
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
8531
|
-
readonly inputs: readonly [{
|
|
8532
|
-
readonly name: "expected";
|
|
8533
|
-
readonly type: "uint256";
|
|
8534
|
-
readonly internalType: "Epoch";
|
|
8535
|
-
}, {
|
|
8536
|
-
readonly name: "actual";
|
|
8537
|
-
readonly type: "uint256";
|
|
8538
|
-
readonly internalType: "Epoch";
|
|
8539
|
-
}];
|
|
8540
8468
|
}, {
|
|
8541
8469
|
readonly type: "error";
|
|
8542
8470
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -9205,7 +9133,11 @@ export declare const l1Artifacts: {
|
|
|
9205
9133
|
}];
|
|
9206
9134
|
}, {
|
|
9207
9135
|
readonly type: "error";
|
|
9208
|
-
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
9136
|
+
readonly name: "GovernanceProposer__InstanceHaveNoCode"; /**
|
|
9137
|
+
* The address of the L2 Fee Juice contract.
|
|
9138
|
+
* It should be an AztecAddress, but the type is defined in stdlib,
|
|
9139
|
+
* which would create a circular import
|
|
9140
|
+
* */
|
|
9209
9141
|
readonly inputs: readonly [{
|
|
9210
9142
|
readonly name: "instance";
|
|
9211
9143
|
readonly type: "address";
|
|
@@ -9215,9 +9147,10 @@ export declare const l1Artifacts: {
|
|
|
9215
9147
|
readonly type: "error";
|
|
9216
9148
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
9217
9149
|
readonly inputs: readonly [{
|
|
9218
|
-
readonly name: "votesCast";
|
|
9150
|
+
readonly name: "votesCast";
|
|
9151
|
+
/** The genesis root of the archive tree. */
|
|
9219
9152
|
readonly type: "uint256";
|
|
9220
|
-
readonly internalType: "uint256";
|
|
9153
|
+
readonly internalType: "uint256"; /** The hash of the genesis block header. */
|
|
9221
9154
|
}, {
|
|
9222
9155
|
readonly name: "votesNeeded";
|
|
9223
9156
|
readonly type: "uint256";
|
|
@@ -9229,7 +9162,6 @@ export declare const l1Artifacts: {
|
|
|
9229
9162
|
readonly inputs: readonly [{
|
|
9230
9163
|
readonly name: "n";
|
|
9231
9164
|
readonly type: "uint256";
|
|
9232
|
-
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
9233
9165
|
readonly internalType: "uint256";
|
|
9234
9166
|
}, {
|
|
9235
9167
|
readonly name: "m";
|
|
@@ -9871,18 +9803,6 @@ export declare const l1Artifacts: {
|
|
|
9871
9803
|
readonly type: "uint256";
|
|
9872
9804
|
readonly internalType: "uint256";
|
|
9873
9805
|
}];
|
|
9874
|
-
}, {
|
|
9875
|
-
readonly type: "error";
|
|
9876
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
9877
|
-
readonly inputs: readonly [{
|
|
9878
|
-
readonly name: "expected";
|
|
9879
|
-
readonly type: "uint256";
|
|
9880
|
-
readonly internalType: "Epoch";
|
|
9881
|
-
}, {
|
|
9882
|
-
readonly name: "actual";
|
|
9883
|
-
readonly type: "uint256";
|
|
9884
|
-
readonly internalType: "Epoch";
|
|
9885
|
-
}];
|
|
9886
9806
|
}, {
|
|
9887
9807
|
readonly type: "error";
|
|
9888
9808
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -10651,7 +10571,11 @@ export declare const l1Artifacts: {
|
|
|
10651
10571
|
}];
|
|
10652
10572
|
}, {
|
|
10653
10573
|
readonly type: "error";
|
|
10654
|
-
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
10574
|
+
readonly name: "GovernanceProposer__InstanceHaveNoCode"; /**
|
|
10575
|
+
* The address of the L2 Fee Juice contract.
|
|
10576
|
+
* It should be an AztecAddress, but the type is defined in stdlib,
|
|
10577
|
+
* which would create a circular import
|
|
10578
|
+
* */
|
|
10655
10579
|
readonly inputs: readonly [{
|
|
10656
10580
|
readonly name: "instance";
|
|
10657
10581
|
readonly type: "address";
|
|
@@ -10661,9 +10585,10 @@ export declare const l1Artifacts: {
|
|
|
10661
10585
|
readonly type: "error";
|
|
10662
10586
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
10663
10587
|
readonly inputs: readonly [{
|
|
10664
|
-
readonly name: "votesCast";
|
|
10588
|
+
readonly name: "votesCast";
|
|
10589
|
+
/** The genesis root of the archive tree. */
|
|
10665
10590
|
readonly type: "uint256";
|
|
10666
|
-
readonly internalType: "uint256";
|
|
10591
|
+
readonly internalType: "uint256"; /** The hash of the genesis block header. */
|
|
10667
10592
|
}, {
|
|
10668
10593
|
readonly name: "votesNeeded";
|
|
10669
10594
|
readonly type: "uint256";
|
|
@@ -10675,7 +10600,6 @@ export declare const l1Artifacts: {
|
|
|
10675
10600
|
readonly inputs: readonly [{
|
|
10676
10601
|
readonly name: "n";
|
|
10677
10602
|
readonly type: "uint256";
|
|
10678
|
-
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
10679
10603
|
readonly internalType: "uint256";
|
|
10680
10604
|
}, {
|
|
10681
10605
|
readonly name: "m";
|
|
@@ -11317,18 +11241,6 @@ export declare const l1Artifacts: {
|
|
|
11317
11241
|
readonly type: "uint256";
|
|
11318
11242
|
readonly internalType: "uint256";
|
|
11319
11243
|
}];
|
|
11320
|
-
}, {
|
|
11321
|
-
readonly type: "error";
|
|
11322
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
11323
|
-
readonly inputs: readonly [{
|
|
11324
|
-
readonly name: "expected";
|
|
11325
|
-
readonly type: "uint256";
|
|
11326
|
-
readonly internalType: "Epoch";
|
|
11327
|
-
}, {
|
|
11328
|
-
readonly name: "actual";
|
|
11329
|
-
readonly type: "uint256";
|
|
11330
|
-
readonly internalType: "Epoch";
|
|
11331
|
-
}];
|
|
11332
11244
|
}, {
|
|
11333
11245
|
readonly type: "error";
|
|
11334
11246
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -12010,7 +11922,9 @@ export declare const l1Artifacts: {
|
|
|
12010
11922
|
readonly internalType: "address";
|
|
12011
11923
|
}];
|
|
12012
11924
|
}, {
|
|
12013
|
-
readonly type: "error";
|
|
11925
|
+
readonly type: "error"; /**
|
|
11926
|
+
* The currently deployed l1 contract addresses
|
|
11927
|
+
*/
|
|
12014
11928
|
readonly name: "DevNet__NoPruningAllowed";
|
|
12015
11929
|
readonly inputs: readonly [];
|
|
12016
11930
|
}, {
|
|
@@ -12104,7 +12018,7 @@ export declare const l1Artifacts: {
|
|
|
12104
12018
|
readonly type: "error";
|
|
12105
12019
|
readonly name: "GovernanceProposer__OnlyProposerCanVote";
|
|
12106
12020
|
readonly inputs: readonly [{
|
|
12107
|
-
readonly name: "caller";
|
|
12021
|
+
readonly name: "caller"; /** The genesis root of the archive tree. */
|
|
12108
12022
|
readonly type: "address";
|
|
12109
12023
|
readonly internalType: "address";
|
|
12110
12024
|
}, {
|
|
@@ -12114,7 +12028,7 @@ export declare const l1Artifacts: {
|
|
|
12114
12028
|
}];
|
|
12115
12029
|
}, {
|
|
12116
12030
|
readonly type: "error";
|
|
12117
|
-
readonly name: "GovernanceProposer__ProposalAlreadyExecuted";
|
|
12031
|
+
readonly name: "GovernanceProposer__ProposalAlreadyExecuted";
|
|
12118
12032
|
readonly inputs: readonly [{
|
|
12119
12033
|
readonly name: "roundNumber";
|
|
12120
12034
|
readonly type: "uint256";
|
|
@@ -12712,18 +12626,6 @@ export declare const l1Artifacts: {
|
|
|
12712
12626
|
readonly type: "uint256";
|
|
12713
12627
|
readonly internalType: "uint256";
|
|
12714
12628
|
}];
|
|
12715
|
-
}, {
|
|
12716
|
-
readonly type: "error";
|
|
12717
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
12718
|
-
readonly inputs: readonly [{
|
|
12719
|
-
readonly name: "expected";
|
|
12720
|
-
readonly type: "uint256";
|
|
12721
|
-
readonly internalType: "Epoch";
|
|
12722
|
-
}, {
|
|
12723
|
-
readonly name: "actual";
|
|
12724
|
-
readonly type: "uint256";
|
|
12725
|
-
readonly internalType: "Epoch";
|
|
12726
|
-
}];
|
|
12727
12629
|
}, {
|
|
12728
12630
|
readonly type: "error";
|
|
12729
12631
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -13278,9 +13180,7 @@ export declare const l1Artifacts: {
|
|
|
13278
13180
|
readonly inputs: readonly [];
|
|
13279
13181
|
}, {
|
|
13280
13182
|
readonly type: "error";
|
|
13281
|
-
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
13282
|
-
* The currently deployed l1 contract addresses
|
|
13283
|
-
*/
|
|
13183
|
+
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
13284
13184
|
readonly inputs: readonly [];
|
|
13285
13185
|
}, {
|
|
13286
13186
|
readonly type: "error";
|
|
@@ -13380,7 +13280,7 @@ export declare const l1Artifacts: {
|
|
|
13380
13280
|
}];
|
|
13381
13281
|
}, {
|
|
13382
13282
|
readonly type: "error";
|
|
13383
|
-
readonly name: "GovernanceProposer__ProposalTooOld";
|
|
13283
|
+
readonly name: "GovernanceProposer__ProposalTooOld";
|
|
13384
13284
|
readonly inputs: readonly [{
|
|
13385
13285
|
readonly name: "roundNumber";
|
|
13386
13286
|
readonly type: "uint256";
|
|
@@ -13651,15 +13551,7 @@ export declare const l1Artifacts: {
|
|
|
13651
13551
|
readonly internalType: "uint256";
|
|
13652
13552
|
}];
|
|
13653
13553
|
}, {
|
|
13654
|
-
readonly type: "error";
|
|
13655
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
13656
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
13657
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
13658
|
-
* @param chain - The chain instance to deploy to.
|
|
13659
|
-
* @param logger - A logger object.
|
|
13660
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
13661
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
13662
|
-
*/
|
|
13554
|
+
readonly type: "error";
|
|
13663
13555
|
readonly name: "Outbox__BlockNotProven";
|
|
13664
13556
|
readonly inputs: readonly [{
|
|
13665
13557
|
readonly name: "l2BlockNumber";
|
|
@@ -13987,18 +13879,6 @@ export declare const l1Artifacts: {
|
|
|
13987
13879
|
readonly type: "uint256";
|
|
13988
13880
|
readonly internalType: "uint256";
|
|
13989
13881
|
}];
|
|
13990
|
-
}, {
|
|
13991
|
-
readonly type: "error";
|
|
13992
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
13993
|
-
readonly inputs: readonly [{
|
|
13994
|
-
readonly name: "expected";
|
|
13995
|
-
readonly type: "uint256";
|
|
13996
|
-
readonly internalType: "Epoch";
|
|
13997
|
-
}, {
|
|
13998
|
-
readonly name: "actual";
|
|
13999
|
-
readonly type: "uint256";
|
|
14000
|
-
readonly internalType: "Epoch";
|
|
14001
|
-
}];
|
|
14002
13882
|
}, {
|
|
14003
13883
|
readonly type: "error";
|
|
14004
13884
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -14153,6 +14033,16 @@ export declare const l1Artifacts: {
|
|
|
14153
14033
|
}];
|
|
14154
14034
|
}, {
|
|
14155
14035
|
readonly type: "error";
|
|
14036
|
+
/**
|
|
14037
|
+
* Helper function to deploy ETH contracts.
|
|
14038
|
+
* @param walletClient - A viem WalletClient.
|
|
14039
|
+
* @param publicClient - A viem PublicClient.
|
|
14040
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
14041
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
14042
|
+
* @param args - Constructor arguments for the contract.
|
|
14043
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
14044
|
+
* @returns The ETH address the contract was deployed to.
|
|
14045
|
+
*/
|
|
14156
14046
|
readonly name: "Rollup__StartAndEndNotSameEpoch";
|
|
14157
14047
|
readonly inputs: readonly [{
|
|
14158
14048
|
readonly name: "start";
|
|
@@ -14583,7 +14473,9 @@ export declare const l1Artifacts: {
|
|
|
14583
14473
|
readonly inputs: readonly [{
|
|
14584
14474
|
readonly name: "instance";
|
|
14585
14475
|
readonly type: "address";
|
|
14586
|
-
readonly internalType: "address";
|
|
14476
|
+
readonly internalType: "address"; /**
|
|
14477
|
+
* The contract libraries
|
|
14478
|
+
*/
|
|
14587
14479
|
}];
|
|
14588
14480
|
}, {
|
|
14589
14481
|
readonly type: "error";
|
|
@@ -14662,7 +14554,7 @@ export declare const l1Artifacts: {
|
|
|
14662
14554
|
readonly internalType: "uint256";
|
|
14663
14555
|
}, {
|
|
14664
14556
|
readonly name: "currentRoundNumber";
|
|
14665
|
-
readonly type: "uint256";
|
|
14557
|
+
readonly type: "uint256"; /** The salt for CREATE2 deployment. */
|
|
14666
14558
|
readonly internalType: "uint256";
|
|
14667
14559
|
}];
|
|
14668
14560
|
}, {
|
|
@@ -15254,18 +15146,6 @@ export declare const l1Artifacts: {
|
|
|
15254
15146
|
readonly type: "uint256";
|
|
15255
15147
|
readonly internalType: "uint256";
|
|
15256
15148
|
}];
|
|
15257
|
-
}, {
|
|
15258
|
-
readonly type: "error";
|
|
15259
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
15260
|
-
readonly inputs: readonly [{
|
|
15261
|
-
readonly name: "expected";
|
|
15262
|
-
readonly type: "uint256";
|
|
15263
|
-
readonly internalType: "Epoch";
|
|
15264
|
-
}, {
|
|
15265
|
-
readonly name: "actual";
|
|
15266
|
-
readonly type: "uint256";
|
|
15267
|
-
readonly internalType: "Epoch";
|
|
15268
|
-
}];
|
|
15269
15149
|
}, {
|
|
15270
15150
|
readonly type: "error";
|
|
15271
15151
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -15431,6 +15311,16 @@ export declare const l1Artifacts: {
|
|
|
15431
15311
|
readonly internalType: "Epoch";
|
|
15432
15312
|
}];
|
|
15433
15313
|
}, {
|
|
15314
|
+
/**
|
|
15315
|
+
* Helper function to deploy ETH contracts.
|
|
15316
|
+
* @param walletClient - A viem WalletClient.
|
|
15317
|
+
* @param publicClient - A viem PublicClient.
|
|
15318
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
15319
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
15320
|
+
* @param args - Constructor arguments for the contract.
|
|
15321
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
15322
|
+
* @returns The ETH address the contract was deployed to.
|
|
15323
|
+
*/
|
|
15434
15324
|
readonly type: "error";
|
|
15435
15325
|
readonly name: "Rollup__StartIsNotBuildingOnProven";
|
|
15436
15326
|
readonly inputs: readonly [];
|
|
@@ -15791,9 +15681,7 @@ export declare const l1Artifacts: {
|
|
|
15791
15681
|
readonly name: "GovernanceProposer__CanOnlyExecuteProposalInPast";
|
|
15792
15682
|
readonly inputs: readonly [];
|
|
15793
15683
|
}, {
|
|
15794
|
-
readonly type: "error";
|
|
15795
|
-
* Wallet Client Type.
|
|
15796
|
-
*/
|
|
15684
|
+
readonly type: "error";
|
|
15797
15685
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
15798
15686
|
readonly inputs: readonly [{
|
|
15799
15687
|
readonly name: "proposal";
|
|
@@ -16491,18 +16379,6 @@ export declare const l1Artifacts: {
|
|
|
16491
16379
|
readonly type: "uint256";
|
|
16492
16380
|
readonly internalType: "uint256";
|
|
16493
16381
|
}];
|
|
16494
|
-
}, {
|
|
16495
|
-
readonly type: "error";
|
|
16496
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
16497
|
-
readonly inputs: readonly [{
|
|
16498
|
-
readonly name: "expected";
|
|
16499
|
-
readonly type: "uint256";
|
|
16500
|
-
readonly internalType: "Epoch";
|
|
16501
|
-
}, {
|
|
16502
|
-
readonly name: "actual";
|
|
16503
|
-
readonly type: "uint256";
|
|
16504
|
-
readonly internalType: "Epoch";
|
|
16505
|
-
}];
|
|
16506
16382
|
}, {
|
|
16507
16383
|
readonly type: "error";
|
|
16508
16384
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -17124,9 +17000,7 @@ export declare const l1Artifacts: {
|
|
|
17124
17000
|
}, {
|
|
17125
17001
|
readonly type: "error";
|
|
17126
17002
|
readonly name: "FeeJuicePortal__Unauthorized";
|
|
17127
|
-
readonly inputs: readonly [];
|
|
17128
|
-
* The contract libraries
|
|
17129
|
-
*/
|
|
17003
|
+
readonly inputs: readonly [];
|
|
17130
17004
|
}, {
|
|
17131
17005
|
readonly type: "error";
|
|
17132
17006
|
readonly name: "FeeMath__InvalidFeeAssetPriceModifier";
|
|
@@ -17814,18 +17688,6 @@ export declare const l1Artifacts: {
|
|
|
17814
17688
|
readonly type: "uint256";
|
|
17815
17689
|
readonly internalType: "uint256";
|
|
17816
17690
|
}];
|
|
17817
|
-
}, {
|
|
17818
|
-
readonly type: "error";
|
|
17819
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
17820
|
-
readonly inputs: readonly [{
|
|
17821
|
-
readonly name: "expected";
|
|
17822
|
-
readonly type: "uint256";
|
|
17823
|
-
readonly internalType: "Epoch";
|
|
17824
|
-
}, {
|
|
17825
|
-
readonly name: "actual";
|
|
17826
|
-
readonly type: "uint256";
|
|
17827
|
-
readonly internalType: "Epoch";
|
|
17828
|
-
}];
|
|
17829
17691
|
}, {
|
|
17830
17692
|
readonly type: "error";
|
|
17831
17693
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -17921,16 +17783,6 @@ export declare const l1Artifacts: {
|
|
|
17921
17783
|
}, {
|
|
17922
17784
|
readonly type: "error";
|
|
17923
17785
|
readonly name: "Rollup__NonSequentialProving";
|
|
17924
|
-
/**
|
|
17925
|
-
* Helper function to deploy ETH contracts.
|
|
17926
|
-
* @param walletClient - A viem WalletClient.
|
|
17927
|
-
* @param publicClient - A viem PublicClient.
|
|
17928
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
17929
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
17930
|
-
* @param args - Constructor arguments for the contract.
|
|
17931
|
-
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
17932
|
-
* @returns The ETH address the contract was deployed to.
|
|
17933
|
-
*/
|
|
17934
17786
|
readonly inputs: readonly [];
|
|
17935
17787
|
}, {
|
|
17936
17788
|
readonly type: "error";
|
|
@@ -18819,9 +18671,7 @@ export declare const l1Artifacts: {
|
|
|
18819
18671
|
readonly name: "proposal";
|
|
18820
18672
|
readonly type: "address";
|
|
18821
18673
|
readonly internalType: "contract IPayload";
|
|
18822
|
-
}];
|
|
18823
|
-
* Wallet Client Type.
|
|
18824
|
-
*/
|
|
18674
|
+
}];
|
|
18825
18675
|
}, {
|
|
18826
18676
|
readonly type: "error";
|
|
18827
18677
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
@@ -18838,7 +18688,9 @@ export declare const l1Artifacts: {
|
|
|
18838
18688
|
readonly type: "uint256";
|
|
18839
18689
|
readonly internalType: "uint256";
|
|
18840
18690
|
}, {
|
|
18841
|
-
readonly name: "votesNeeded";
|
|
18691
|
+
readonly name: "votesNeeded"; /**
|
|
18692
|
+
* Contract artifacts
|
|
18693
|
+
*/
|
|
18842
18694
|
readonly type: "uint256";
|
|
18843
18695
|
readonly internalType: "uint256";
|
|
18844
18696
|
}];
|
|
@@ -18846,9 +18698,6 @@ export declare const l1Artifacts: {
|
|
|
18846
18698
|
readonly type: "error";
|
|
18847
18699
|
readonly name: "GovernanceProposer__InvalidNAndMValues";
|
|
18848
18700
|
readonly inputs: readonly [{
|
|
18849
|
-
/**
|
|
18850
|
-
* The contract libraries
|
|
18851
|
-
*/
|
|
18852
18701
|
readonly name: "n";
|
|
18853
18702
|
readonly type: "uint256";
|
|
18854
18703
|
readonly internalType: "uint256";
|
|
@@ -18912,20 +18761,25 @@ export declare const l1Artifacts: {
|
|
|
18912
18761
|
readonly name: "currentRoundNumber";
|
|
18913
18762
|
readonly type: "uint256";
|
|
18914
18763
|
readonly internalType: "uint256";
|
|
18915
|
-
}];
|
|
18764
|
+
}]; /**
|
|
18765
|
+
* The address of the L2 Fee Juice contract.
|
|
18766
|
+
* It should be an AztecAddress, but the type is defined in stdlib,
|
|
18767
|
+
* which would create a circular import
|
|
18768
|
+
* */
|
|
18916
18769
|
}, {
|
|
18917
18770
|
readonly type: "error";
|
|
18918
18771
|
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
18919
18772
|
readonly inputs: readonly [{
|
|
18920
18773
|
readonly name: "slot";
|
|
18921
|
-
readonly type: "uint256";
|
|
18774
|
+
readonly type: "uint256"; /** The vk tree root. */
|
|
18922
18775
|
readonly internalType: "Slot";
|
|
18923
|
-
}];
|
|
18776
|
+
}]; /** The protocol contract tree root. */
|
|
18924
18777
|
}, {
|
|
18925
18778
|
readonly type: "error";
|
|
18926
18779
|
readonly name: "Governance__CallFailed";
|
|
18927
18780
|
readonly inputs: readonly [{
|
|
18928
|
-
readonly name: "target";
|
|
18781
|
+
readonly name: "target";
|
|
18782
|
+
/** The hash of the genesis block header. */
|
|
18929
18783
|
readonly type: "address";
|
|
18930
18784
|
readonly internalType: "address";
|
|
18931
18785
|
}];
|
|
@@ -19201,15 +19055,6 @@ export declare const l1Artifacts: {
|
|
|
19201
19055
|
readonly type: "uint32";
|
|
19202
19056
|
readonly internalType: "uint32";
|
|
19203
19057
|
}, {
|
|
19204
|
-
/**
|
|
19205
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
19206
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
19207
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
19208
|
-
* @param chain - The chain instance to deploy to.
|
|
19209
|
-
* @param logger - A logger object.
|
|
19210
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
19211
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
19212
|
-
*/
|
|
19213
19058
|
readonly name: "versionPassed";
|
|
19214
19059
|
readonly type: "uint32";
|
|
19215
19060
|
readonly internalType: "uint32";
|
|
@@ -19470,18 +19315,6 @@ export declare const l1Artifacts: {
|
|
|
19470
19315
|
readonly type: "uint256";
|
|
19471
19316
|
readonly internalType: "uint256";
|
|
19472
19317
|
}];
|
|
19473
|
-
}, {
|
|
19474
|
-
readonly type: "error";
|
|
19475
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
19476
|
-
readonly inputs: readonly [{
|
|
19477
|
-
readonly name: "expected";
|
|
19478
|
-
readonly type: "uint256";
|
|
19479
|
-
readonly internalType: "Epoch";
|
|
19480
|
-
}, {
|
|
19481
|
-
readonly name: "actual";
|
|
19482
|
-
readonly type: "uint256";
|
|
19483
|
-
readonly internalType: "Epoch";
|
|
19484
|
-
}];
|
|
19485
19318
|
}, {
|
|
19486
19319
|
readonly type: "error";
|
|
19487
19320
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -19704,6 +19537,16 @@ export declare const l1Artifacts: {
|
|
|
19704
19537
|
readonly inputs: readonly [{
|
|
19705
19538
|
readonly name: "expected";
|
|
19706
19539
|
readonly type: "address";
|
|
19540
|
+
/**
|
|
19541
|
+
* Helper function to deploy ETH contracts.
|
|
19542
|
+
* @param walletClient - A viem WalletClient.
|
|
19543
|
+
* @param publicClient - A viem PublicClient.
|
|
19544
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
19545
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
19546
|
+
* @param args - Constructor arguments for the contract.
|
|
19547
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
19548
|
+
* @returns The ETH address the contract was deployed to.
|
|
19549
|
+
*/
|
|
19707
19550
|
readonly internalType: "address";
|
|
19708
19551
|
}, {
|
|
19709
19552
|
readonly name: "recovered";
|
|
@@ -20038,9 +19881,7 @@ export declare const l1Artifacts: {
|
|
|
20038
19881
|
}, {
|
|
20039
19882
|
readonly name: "votesNeeded";
|
|
20040
19883
|
readonly type: "uint256";
|
|
20041
|
-
readonly internalType: "uint256";
|
|
20042
|
-
* The contract libraries
|
|
20043
|
-
*/
|
|
19884
|
+
readonly internalType: "uint256";
|
|
20044
19885
|
}];
|
|
20045
19886
|
}, {
|
|
20046
19887
|
readonly type: "error";
|
|
@@ -20104,7 +19945,11 @@ export declare const l1Artifacts: {
|
|
|
20104
19945
|
readonly inputs: readonly [{
|
|
20105
19946
|
readonly name: "roundNumber";
|
|
20106
19947
|
readonly type: "uint256";
|
|
20107
|
-
readonly internalType: "uint256";
|
|
19948
|
+
readonly internalType: "uint256"; /**
|
|
19949
|
+
* The address of the L2 Fee Juice contract.
|
|
19950
|
+
* It should be an AztecAddress, but the type is defined in stdlib,
|
|
19951
|
+
* which would create a circular import
|
|
19952
|
+
* */
|
|
20108
19953
|
}, {
|
|
20109
19954
|
readonly name: "currentRoundNumber";
|
|
20110
19955
|
readonly type: "uint256";
|
|
@@ -20120,7 +19965,8 @@ export declare const l1Artifacts: {
|
|
|
20120
19965
|
}];
|
|
20121
19966
|
}, {
|
|
20122
19967
|
readonly type: "error";
|
|
20123
|
-
readonly name: "Governance__CallFailed";
|
|
19968
|
+
readonly name: "Governance__CallFailed";
|
|
19969
|
+
/** The salt for CREATE2 deployment. */
|
|
20124
19970
|
readonly inputs: readonly [{
|
|
20125
19971
|
readonly name: "target";
|
|
20126
19972
|
readonly type: "address";
|
|
@@ -20678,18 +20524,6 @@ export declare const l1Artifacts: {
|
|
|
20678
20524
|
readonly type: "uint256";
|
|
20679
20525
|
readonly internalType: "uint256";
|
|
20680
20526
|
}];
|
|
20681
|
-
}, {
|
|
20682
|
-
readonly type: "error";
|
|
20683
|
-
readonly name: "Rollup__InvalidEpoch";
|
|
20684
|
-
readonly inputs: readonly [{
|
|
20685
|
-
readonly name: "expected";
|
|
20686
|
-
readonly type: "uint256";
|
|
20687
|
-
readonly internalType: "Epoch";
|
|
20688
|
-
}, {
|
|
20689
|
-
readonly name: "actual";
|
|
20690
|
-
readonly type: "uint256";
|
|
20691
|
-
readonly internalType: "Epoch";
|
|
20692
|
-
}];
|
|
20693
20527
|
}, {
|
|
20694
20528
|
readonly type: "error";
|
|
20695
20529
|
readonly name: "Rollup__InvalidInHash";
|
|
@@ -20839,16 +20673,7 @@ export declare const l1Artifacts: {
|
|
|
20839
20673
|
readonly internalType: "Slot";
|
|
20840
20674
|
}, {
|
|
20841
20675
|
readonly name: "proposedSlot";
|
|
20842
|
-
readonly type: "uint256";
|
|
20843
|
-
* Helper function to deploy ETH contracts.
|
|
20844
|
-
* @param walletClient - A viem WalletClient.
|
|
20845
|
-
* @param publicClient - A viem PublicClient.
|
|
20846
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
20847
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
20848
|
-
* @param args - Constructor arguments for the contract.
|
|
20849
|
-
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
20850
|
-
* @returns The ETH address the contract was deployed to.
|
|
20851
|
-
*/
|
|
20676
|
+
readonly type: "uint256";
|
|
20852
20677
|
readonly internalType: "Slot";
|
|
20853
20678
|
}];
|
|
20854
20679
|
}, {
|
|
@@ -20896,6 +20721,16 @@ export declare const l1Artifacts: {
|
|
|
20896
20721
|
readonly name: "Rollup__UnavailableTxs";
|
|
20897
20722
|
readonly inputs: readonly [{
|
|
20898
20723
|
readonly name: "txsHash";
|
|
20724
|
+
/**
|
|
20725
|
+
* Helper function to deploy ETH contracts.
|
|
20726
|
+
* @param walletClient - A viem WalletClient.
|
|
20727
|
+
* @param publicClient - A viem PublicClient.
|
|
20728
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
20729
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
20730
|
+
* @param args - Constructor arguments for the contract.
|
|
20731
|
+
* @param maybeSalt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
20732
|
+
* @returns The ETH address the contract was deployed to.
|
|
20733
|
+
*/
|
|
20899
20734
|
readonly type: "bytes32";
|
|
20900
20735
|
readonly internalType: "bytes32";
|
|
20901
20736
|
}];
|
|
@@ -21151,7 +20986,15 @@ export interface DeployL1ContractsArgs extends L1ContractsConfig {
|
|
|
21151
20986
|
* @returns - A wallet and a public client.
|
|
21152
20987
|
*/
|
|
21153
20988
|
export declare function createL1Clients(rpcUrls: string[], mnemonicOrPrivateKeyOrHdAccount: string | `0x${string}` | HDAccount | PrivateKeyAccount, chain?: Chain, addressIndex?: number): L1Clients;
|
|
21154
|
-
|
|
20989
|
+
/**
|
|
20990
|
+
* Deploys the rollup, slash factory, and the payload which can be used to make the rollup the canonical version.
|
|
20991
|
+
* @param clients - The L1 clients.
|
|
20992
|
+
* @param args - The deployment arguments.
|
|
20993
|
+
* @param registryAddress - The address of the registry.
|
|
20994
|
+
* @param logger - The logger.
|
|
20995
|
+
* @param txUtilsConfig - The L1 tx utils config.
|
|
20996
|
+
*/
|
|
20997
|
+
export declare const deployRollupForUpgrade: (clients: L1Clients, args: DeployL1ContractsArgs, registryAddress: EthAddress, logger: Logger, txUtilsConfig: L1TxUtilsConfig) => Promise<{
|
|
21155
20998
|
rollup: RollupContract;
|
|
21156
20999
|
payloadAddress: EthAddress;
|
|
21157
21000
|
slashFactoryAddress: EthAddress;
|
|
@@ -21159,6 +21002,19 @@ export declare const deployRollupAndPeriphery: (clients: L1Clients, args: Deploy
|
|
|
21159
21002
|
export declare const deploySlashFactory: (deployer: L1Deployer, rollupAddress: Hex, logger: Logger) => Promise<EthAddress>;
|
|
21160
21003
|
export declare const deployUpgradePayload: (deployer: L1Deployer, addresses: Pick<L1ContractAddresses, 'registryAddress' | 'rollupAddress'>) => Promise<EthAddress>;
|
|
21161
21004
|
export declare const deployRollup: (clients: L1Clients, deployer: L1Deployer, args: DeployL1ContractsArgs, addresses: Pick<L1ContractAddresses, 'feeJuicePortalAddress' | 'rewardDistributorAddress' | 'stakingAssetAddress'>, logger: Logger) => Promise<RollupContract>;
|
|
21005
|
+
/**
|
|
21006
|
+
* Initialize the validator set for the rollup using a cheat function.
|
|
21007
|
+
* @note This function will only be used when the chain is local anvil node soon (#12050)
|
|
21008
|
+
*
|
|
21009
|
+
* @param clients - The L1 clients.
|
|
21010
|
+
* @param deployer - The L1 deployer.
|
|
21011
|
+
* @param rollupAddress - The address of the rollup.
|
|
21012
|
+
* @param stakingAssetAddress - The address of the staking asset.
|
|
21013
|
+
* @param validators - The validators to initialize.
|
|
21014
|
+
* @param acceleratedTestDeployments - Whether to use accelerated test deployments.
|
|
21015
|
+
* @param logger - The logger.
|
|
21016
|
+
*/
|
|
21017
|
+
export declare const cheat_initializeValidatorSet: (clients: L1Clients, deployer: L1Deployer, rollupAddress: Hex, stakingAssetAddress: Hex, validators: Hex[], acceleratedTestDeployments: boolean | undefined, logger: Logger) => Promise<void>;
|
|
21162
21018
|
/**
|
|
21163
21019
|
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
21164
21020
|
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|