@aztec/ethereum 0.77.1 → 0.78.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.
- package/dest/deploy_l1_contracts.d.ts +125 -138
- package/dest/deploy_l1_contracts.d.ts.map +1 -1
- package/dest/deploy_l1_contracts.js +153 -69
- package/dest/l1_tx_utils.d.ts +5 -4
- package/dest/l1_tx_utils.d.ts.map +1 -1
- package/dest/l1_tx_utils.js +7 -2
- package/package.json +4 -4
- package/src/deploy_l1_contracts.ts +185 -50
- package/src/l1_tx_utils.ts +10 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
2
2
|
import type { Fr } from '@aztec/foundation/fields';
|
|
3
|
-
import type
|
|
3
|
+
import { type Logger } from '@aztec/foundation/log';
|
|
4
4
|
import type { Abi, Narrow } from 'abitype';
|
|
5
5
|
import { type Chain, type Hex } from 'viem';
|
|
6
6
|
import { type HDAccount, type PrivateKeyAccount } from 'viem/accounts';
|
|
7
7
|
import type { L1ContractsConfig } from './config.js';
|
|
8
8
|
import { RollupContract } from './contracts/rollup.js';
|
|
9
9
|
import type { L1ContractAddresses } from './l1_contract_addresses.js';
|
|
10
|
-
import { L1TxUtils, type L1TxUtilsConfig } from './l1_tx_utils.js';
|
|
10
|
+
import { type GasPrice, type L1TxRequest, L1TxUtils, type L1TxUtilsConfig } from './l1_tx_utils.js';
|
|
11
11
|
import type { L1Clients, ViemPublicClient, ViemWalletClient } from './types.js';
|
|
12
12
|
export declare const DEPLOYER_ADDRESS: Hex;
|
|
13
13
|
/**
|
|
@@ -119,13 +119,13 @@ export declare const l1Artifacts: {
|
|
|
119
119
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
120
120
|
readonly inputs: readonly [{
|
|
121
121
|
readonly name: "proposal";
|
|
122
|
-
readonly type: "address";
|
|
122
|
+
readonly type: "address"; /**
|
|
123
|
+
* Return type of the deployL1Contract function.
|
|
124
|
+
*/
|
|
123
125
|
readonly internalType: "contract IPayload";
|
|
124
126
|
}];
|
|
125
127
|
}, {
|
|
126
|
-
readonly type: "error";
|
|
127
|
-
* Public Client Type.
|
|
128
|
-
*/
|
|
128
|
+
readonly type: "error";
|
|
129
129
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
130
130
|
readonly inputs: readonly [{
|
|
131
131
|
readonly name: "instance";
|
|
@@ -218,10 +218,10 @@ export declare const l1Artifacts: {
|
|
|
218
218
|
readonly inputs: readonly [{
|
|
219
219
|
readonly name: "slot";
|
|
220
220
|
readonly type: "uint256";
|
|
221
|
-
readonly internalType: "Slot";
|
|
221
|
+
readonly internalType: "Slot"; /** The vk tree root. */
|
|
222
222
|
}];
|
|
223
223
|
}, {
|
|
224
|
-
readonly type: "error";
|
|
224
|
+
readonly type: "error";
|
|
225
225
|
readonly name: "Governance__CallFailed";
|
|
226
226
|
readonly inputs: readonly [{
|
|
227
227
|
readonly name: "target";
|
|
@@ -1425,7 +1425,9 @@ export declare const l1Artifacts: {
|
|
|
1425
1425
|
readonly name: "proposal";
|
|
1426
1426
|
readonly type: "address";
|
|
1427
1427
|
readonly internalType: "contract IPayload";
|
|
1428
|
-
}];
|
|
1428
|
+
}]; /**
|
|
1429
|
+
* Public Client Type.
|
|
1430
|
+
*/
|
|
1429
1431
|
}, {
|
|
1430
1432
|
readonly type: "error";
|
|
1431
1433
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
@@ -1440,14 +1442,13 @@ export declare const l1Artifacts: {
|
|
|
1440
1442
|
readonly inputs: readonly [{
|
|
1441
1443
|
readonly name: "votesCast";
|
|
1442
1444
|
readonly type: "uint256";
|
|
1443
|
-
/**
|
|
1444
|
-
* The contract abi.
|
|
1445
|
-
*/
|
|
1446
1445
|
readonly internalType: "uint256";
|
|
1447
1446
|
}, {
|
|
1448
1447
|
readonly name: "votesNeeded";
|
|
1449
1448
|
readonly type: "uint256";
|
|
1450
|
-
readonly internalType: "uint256";
|
|
1449
|
+
readonly internalType: "uint256"; /**
|
|
1450
|
+
* The contract bytecode
|
|
1451
|
+
*/
|
|
1451
1452
|
}];
|
|
1452
1453
|
}, {
|
|
1453
1454
|
readonly type: "error";
|
|
@@ -1521,9 +1522,9 @@ export declare const l1Artifacts: {
|
|
|
1521
1522
|
readonly type: "error";
|
|
1522
1523
|
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
1523
1524
|
readonly inputs: readonly [{
|
|
1524
|
-
readonly name: "slot";
|
|
1525
|
+
readonly name: "slot";
|
|
1525
1526
|
readonly type: "uint256";
|
|
1526
|
-
readonly internalType: "Slot";
|
|
1527
|
+
readonly internalType: "Slot";
|
|
1527
1528
|
}];
|
|
1528
1529
|
}, {
|
|
1529
1530
|
readonly type: "error";
|
|
@@ -1803,6 +1804,15 @@ export declare const l1Artifacts: {
|
|
|
1803
1804
|
readonly inputs: readonly [{
|
|
1804
1805
|
readonly name: "l2BlockNumber";
|
|
1805
1806
|
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
|
+
*/
|
|
1806
1816
|
readonly internalType: "uint256";
|
|
1807
1817
|
}];
|
|
1808
1818
|
}, {
|
|
@@ -2690,9 +2700,7 @@ export declare const l1Artifacts: {
|
|
|
2690
2700
|
}];
|
|
2691
2701
|
}, {
|
|
2692
2702
|
readonly type: "error";
|
|
2693
|
-
readonly name: "GovernanceProposer__InvalidNAndMValues";
|
|
2694
|
-
* The contract libraries
|
|
2695
|
-
*/
|
|
2703
|
+
readonly name: "GovernanceProposer__InvalidNAndMValues";
|
|
2696
2704
|
readonly inputs: readonly [{
|
|
2697
2705
|
readonly name: "n";
|
|
2698
2706
|
readonly type: "uint256";
|
|
@@ -2768,11 +2776,10 @@ export declare const l1Artifacts: {
|
|
|
2768
2776
|
}];
|
|
2769
2777
|
}, {
|
|
2770
2778
|
readonly type: "error";
|
|
2771
|
-
/** The genesis root of the archive tree. */
|
|
2772
2779
|
readonly name: "Governance__CallFailed";
|
|
2773
2780
|
readonly inputs: readonly [{
|
|
2774
2781
|
readonly name: "target";
|
|
2775
|
-
readonly type: "address";
|
|
2782
|
+
readonly type: "address";
|
|
2776
2783
|
readonly internalType: "address";
|
|
2777
2784
|
}];
|
|
2778
2785
|
}, {
|
|
@@ -2780,7 +2787,7 @@ export declare const l1Artifacts: {
|
|
|
2780
2787
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
2781
2788
|
readonly inputs: readonly [{
|
|
2782
2789
|
readonly name: "caller";
|
|
2783
|
-
readonly type: "address";
|
|
2790
|
+
readonly type: "address"; /** Configuration for the L1 tx utils module. */
|
|
2784
2791
|
readonly internalType: "address";
|
|
2785
2792
|
}, {
|
|
2786
2793
|
readonly name: "governanceProposer";
|
|
@@ -3016,15 +3023,6 @@ export declare const l1Artifacts: {
|
|
|
3016
3023
|
readonly indexed: true;
|
|
3017
3024
|
readonly internalType: "uint256";
|
|
3018
3025
|
}, {
|
|
3019
|
-
/**
|
|
3020
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
3021
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
3022
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
3023
|
-
* @param chain - The chain instance to deploy to.
|
|
3024
|
-
* @param logger - A logger object.
|
|
3025
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
3026
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
3027
|
-
*/
|
|
3028
3026
|
readonly name: "root";
|
|
3029
3027
|
readonly type: "bytes32";
|
|
3030
3028
|
readonly indexed: true;
|
|
@@ -6756,7 +6754,9 @@ export declare const l1Artifacts: {
|
|
|
6756
6754
|
readonly inputs: readonly [{
|
|
6757
6755
|
readonly name: "n";
|
|
6758
6756
|
readonly type: "uint256";
|
|
6759
|
-
readonly internalType: "uint256";
|
|
6757
|
+
readonly internalType: "uint256"; /**
|
|
6758
|
+
* The contract abi.
|
|
6759
|
+
*/
|
|
6760
6760
|
}, {
|
|
6761
6761
|
readonly name: "m";
|
|
6762
6762
|
readonly type: "uint256";
|
|
@@ -7844,9 +7844,13 @@ export declare const l1Artifacts: {
|
|
|
7844
7844
|
}];
|
|
7845
7845
|
}, {
|
|
7846
7846
|
readonly type: "error";
|
|
7847
|
-
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
7847
|
+
readonly name: "GovernanceProposer__InsufficientVotes"; /**
|
|
7848
|
+
* Public Client Type.
|
|
7849
|
+
*/
|
|
7848
7850
|
readonly inputs: readonly [{
|
|
7849
|
-
readonly name: "votesCast";
|
|
7851
|
+
readonly name: "votesCast"; /**
|
|
7852
|
+
* The currently deployed l1 contract addresses
|
|
7853
|
+
*/
|
|
7850
7854
|
readonly type: "uint256";
|
|
7851
7855
|
readonly internalType: "uint256";
|
|
7852
7856
|
}, {
|
|
@@ -7940,6 +7944,7 @@ export declare const l1Artifacts: {
|
|
|
7940
7944
|
}];
|
|
7941
7945
|
}, {
|
|
7942
7946
|
readonly type: "error";
|
|
7947
|
+
/** The protocol contract tree root. */
|
|
7943
7948
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
7944
7949
|
readonly inputs: readonly [{
|
|
7945
7950
|
readonly name: "caller";
|
|
@@ -8537,16 +8542,6 @@ export declare const l1Artifacts: {
|
|
|
8537
8542
|
readonly name: "Rollup__InvalidInHash";
|
|
8538
8543
|
readonly inputs: readonly [{
|
|
8539
8544
|
readonly name: "expected";
|
|
8540
|
-
/**
|
|
8541
|
-
* Helper function to deploy ETH contracts.
|
|
8542
|
-
* @param walletClient - A viem WalletClient.
|
|
8543
|
-
* @param publicClient - A viem PublicClient.
|
|
8544
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
8545
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
8546
|
-
* @param args - Constructor arguments for the contract.
|
|
8547
|
-
* @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).
|
|
8548
|
-
* @returns The ETH address the contract was deployed to.
|
|
8549
|
-
*/
|
|
8550
8545
|
readonly type: "bytes32";
|
|
8551
8546
|
readonly internalType: "bytes32";
|
|
8552
8547
|
}, {
|
|
@@ -9217,11 +9212,10 @@ export declare const l1Artifacts: {
|
|
|
9217
9212
|
readonly internalType: "address";
|
|
9218
9213
|
}];
|
|
9219
9214
|
}, {
|
|
9220
|
-
/** The protocol contract tree root. */
|
|
9221
9215
|
readonly type: "error";
|
|
9222
9216
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
9223
9217
|
readonly inputs: readonly [{
|
|
9224
|
-
readonly name: "votesCast";
|
|
9218
|
+
readonly name: "votesCast"; /** The genesis root of the archive tree. */
|
|
9225
9219
|
readonly type: "uint256";
|
|
9226
9220
|
readonly internalType: "uint256";
|
|
9227
9221
|
}, {
|
|
@@ -9235,6 +9229,7 @@ export declare const l1Artifacts: {
|
|
|
9235
9229
|
readonly inputs: readonly [{
|
|
9236
9230
|
readonly name: "n";
|
|
9237
9231
|
readonly type: "uint256";
|
|
9232
|
+
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
9238
9233
|
readonly internalType: "uint256";
|
|
9239
9234
|
}, {
|
|
9240
9235
|
readonly name: "m";
|
|
@@ -10663,11 +10658,10 @@ export declare const l1Artifacts: {
|
|
|
10663
10658
|
readonly internalType: "address";
|
|
10664
10659
|
}];
|
|
10665
10660
|
}, {
|
|
10666
|
-
/** The protocol contract tree root. */
|
|
10667
10661
|
readonly type: "error";
|
|
10668
10662
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
10669
10663
|
readonly inputs: readonly [{
|
|
10670
|
-
readonly name: "votesCast";
|
|
10664
|
+
readonly name: "votesCast"; /** The genesis root of the archive tree. */
|
|
10671
10665
|
readonly type: "uint256";
|
|
10672
10666
|
readonly internalType: "uint256";
|
|
10673
10667
|
}, {
|
|
@@ -10681,6 +10675,7 @@ export declare const l1Artifacts: {
|
|
|
10681
10675
|
readonly inputs: readonly [{
|
|
10682
10676
|
readonly name: "n";
|
|
10683
10677
|
readonly type: "uint256";
|
|
10678
|
+
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
10684
10679
|
readonly internalType: "uint256";
|
|
10685
10680
|
}, {
|
|
10686
10681
|
readonly name: "m";
|
|
@@ -12011,9 +12006,7 @@ export declare const l1Artifacts: {
|
|
|
12011
12006
|
readonly internalType: "address";
|
|
12012
12007
|
}, {
|
|
12013
12008
|
readonly name: "actual";
|
|
12014
|
-
readonly type: "address";
|
|
12015
|
-
* The currently deployed l1 contract addresses
|
|
12016
|
-
*/
|
|
12009
|
+
readonly type: "address";
|
|
12017
12010
|
readonly internalType: "address";
|
|
12018
12011
|
}];
|
|
12019
12012
|
}, {
|
|
@@ -12121,7 +12114,7 @@ export declare const l1Artifacts: {
|
|
|
12121
12114
|
}];
|
|
12122
12115
|
}, {
|
|
12123
12116
|
readonly type: "error";
|
|
12124
|
-
readonly name: "GovernanceProposer__ProposalAlreadyExecuted";
|
|
12117
|
+
readonly name: "GovernanceProposer__ProposalAlreadyExecuted"; /** Configuration for the L1 tx utils module. */
|
|
12125
12118
|
readonly inputs: readonly [{
|
|
12126
12119
|
readonly name: "roundNumber";
|
|
12127
12120
|
readonly type: "uint256";
|
|
@@ -12353,15 +12346,6 @@ export declare const l1Artifacts: {
|
|
|
12353
12346
|
readonly inputs: readonly [{
|
|
12354
12347
|
readonly name: "actor";
|
|
12355
12348
|
readonly type: "bytes32";
|
|
12356
|
-
/**
|
|
12357
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
12358
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
12359
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
12360
|
-
* @param chain - The chain instance to deploy to.
|
|
12361
|
-
* @param logger - A logger object.
|
|
12362
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
12363
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
12364
|
-
*/
|
|
12365
12349
|
readonly internalType: "bytes32";
|
|
12366
12350
|
}];
|
|
12367
12351
|
}, {
|
|
@@ -13294,7 +13278,9 @@ export declare const l1Artifacts: {
|
|
|
13294
13278
|
readonly inputs: readonly [];
|
|
13295
13279
|
}, {
|
|
13296
13280
|
readonly type: "error";
|
|
13297
|
-
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
13281
|
+
readonly name: "FeeJuicePortal__InvalidInitialization"; /**
|
|
13282
|
+
* The currently deployed l1 contract addresses
|
|
13283
|
+
*/
|
|
13298
13284
|
readonly inputs: readonly [];
|
|
13299
13285
|
}, {
|
|
13300
13286
|
readonly type: "error";
|
|
@@ -13389,12 +13375,12 @@ export declare const l1Artifacts: {
|
|
|
13389
13375
|
readonly name: "GovernanceProposer__ProposalHaveNoCode";
|
|
13390
13376
|
readonly inputs: readonly [{
|
|
13391
13377
|
readonly name: "proposal";
|
|
13392
|
-
readonly type: "address";
|
|
13378
|
+
readonly type: "address";
|
|
13393
13379
|
readonly internalType: "contract IPayload";
|
|
13394
13380
|
}];
|
|
13395
13381
|
}, {
|
|
13396
13382
|
readonly type: "error";
|
|
13397
|
-
readonly name: "GovernanceProposer__ProposalTooOld";
|
|
13383
|
+
readonly name: "GovernanceProposer__ProposalTooOld"; /** The initial validators for the rollup contract. */
|
|
13398
13384
|
readonly inputs: readonly [{
|
|
13399
13385
|
readonly name: "roundNumber";
|
|
13400
13386
|
readonly type: "uint256";
|
|
@@ -13665,7 +13651,15 @@ export declare const l1Artifacts: {
|
|
|
13665
13651
|
readonly internalType: "uint256";
|
|
13666
13652
|
}];
|
|
13667
13653
|
}, {
|
|
13668
|
-
readonly type: "error";
|
|
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
|
+
*/
|
|
13669
13663
|
readonly name: "Outbox__BlockNotProven";
|
|
13670
13664
|
readonly inputs: readonly [{
|
|
13671
13665
|
readonly name: "l2BlockNumber";
|
|
@@ -14566,9 +14560,7 @@ export declare const l1Artifacts: {
|
|
|
14566
14560
|
}, {
|
|
14567
14561
|
readonly type: "error";
|
|
14568
14562
|
readonly name: "FeeJuicePortal__Unauthorized";
|
|
14569
|
-
readonly inputs: readonly [];
|
|
14570
|
-
* Public Client Type.
|
|
14571
|
-
*/
|
|
14563
|
+
readonly inputs: readonly [];
|
|
14572
14564
|
}, {
|
|
14573
14565
|
readonly type: "error";
|
|
14574
14566
|
readonly name: "FeeMath__InvalidFeeAssetPriceModifier";
|
|
@@ -15264,16 +15256,6 @@ export declare const l1Artifacts: {
|
|
|
15264
15256
|
}];
|
|
15265
15257
|
}, {
|
|
15266
15258
|
readonly type: "error";
|
|
15267
|
-
/**
|
|
15268
|
-
* Helper function to deploy ETH contracts.
|
|
15269
|
-
* @param walletClient - A viem WalletClient.
|
|
15270
|
-
* @param publicClient - A viem PublicClient.
|
|
15271
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
15272
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
15273
|
-
* @param args - Constructor arguments for the contract.
|
|
15274
|
-
* @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).
|
|
15275
|
-
* @returns The ETH address the contract was deployed to.
|
|
15276
|
-
*/
|
|
15277
15259
|
readonly name: "Rollup__InvalidEpoch";
|
|
15278
15260
|
readonly inputs: readonly [{
|
|
15279
15261
|
readonly name: "expected";
|
|
@@ -15809,7 +15791,9 @@ export declare const l1Artifacts: {
|
|
|
15809
15791
|
readonly name: "GovernanceProposer__CanOnlyExecuteProposalInPast";
|
|
15810
15792
|
readonly inputs: readonly [];
|
|
15811
15793
|
}, {
|
|
15812
|
-
readonly type: "error";
|
|
15794
|
+
readonly type: "error"; /**
|
|
15795
|
+
* Wallet Client Type.
|
|
15796
|
+
*/
|
|
15813
15797
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
15814
15798
|
readonly inputs: readonly [{
|
|
15815
15799
|
readonly name: "proposal";
|
|
@@ -15830,9 +15814,6 @@ export declare const l1Artifacts: {
|
|
|
15830
15814
|
readonly inputs: readonly [{
|
|
15831
15815
|
readonly name: "votesCast";
|
|
15832
15816
|
readonly type: "uint256";
|
|
15833
|
-
/**
|
|
15834
|
-
* The contract libraries
|
|
15835
|
-
*/
|
|
15836
15817
|
readonly internalType: "uint256";
|
|
15837
15818
|
}, {
|
|
15838
15819
|
readonly name: "votesNeeded";
|
|
@@ -15917,7 +15898,7 @@ export declare const l1Artifacts: {
|
|
|
15917
15898
|
}];
|
|
15918
15899
|
}, {
|
|
15919
15900
|
readonly type: "error";
|
|
15920
|
-
readonly name: "Governance__CallFailed";
|
|
15901
|
+
readonly name: "Governance__CallFailed";
|
|
15921
15902
|
readonly inputs: readonly [{
|
|
15922
15903
|
readonly name: "target";
|
|
15923
15904
|
readonly type: "address";
|
|
@@ -16507,16 +16488,7 @@ export declare const l1Artifacts: {
|
|
|
16507
16488
|
readonly internalType: "uint256";
|
|
16508
16489
|
}, {
|
|
16509
16490
|
readonly name: "actual";
|
|
16510
|
-
readonly type: "uint256";
|
|
16511
|
-
* Helper function to deploy ETH contracts.
|
|
16512
|
-
* @param walletClient - A viem WalletClient.
|
|
16513
|
-
* @param publicClient - A viem PublicClient.
|
|
16514
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
16515
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
16516
|
-
* @param args - Constructor arguments for the contract.
|
|
16517
|
-
* @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).
|
|
16518
|
-
* @returns The ETH address the contract was deployed to.
|
|
16519
|
-
*/
|
|
16491
|
+
readonly type: "uint256";
|
|
16520
16492
|
readonly internalType: "uint256";
|
|
16521
16493
|
}];
|
|
16522
16494
|
}, {
|
|
@@ -17126,18 +17098,10 @@ export declare const l1Artifacts: {
|
|
|
17126
17098
|
}];
|
|
17127
17099
|
readonly anonymous: false;
|
|
17128
17100
|
}, {
|
|
17129
|
-
/**
|
|
17130
|
-
* Wallet Client Type.
|
|
17131
|
-
*/
|
|
17132
17101
|
readonly type: "error";
|
|
17133
|
-
readonly name: "DevNet__InvalidProposer";
|
|
17134
|
-
* Public Client Type.
|
|
17135
|
-
*/
|
|
17102
|
+
readonly name: "DevNet__InvalidProposer";
|
|
17136
17103
|
readonly inputs: readonly [{
|
|
17137
17104
|
readonly name: "expected";
|
|
17138
|
-
/**
|
|
17139
|
-
* The currently deployed l1 contract addresses
|
|
17140
|
-
*/
|
|
17141
17105
|
readonly type: "address";
|
|
17142
17106
|
readonly internalType: "address";
|
|
17143
17107
|
}, {
|
|
@@ -17160,7 +17124,9 @@ export declare const l1Artifacts: {
|
|
|
17160
17124
|
}, {
|
|
17161
17125
|
readonly type: "error";
|
|
17162
17126
|
readonly name: "FeeJuicePortal__Unauthorized";
|
|
17163
|
-
readonly inputs: readonly [];
|
|
17127
|
+
readonly inputs: readonly []; /**
|
|
17128
|
+
* The contract libraries
|
|
17129
|
+
*/
|
|
17164
17130
|
}, {
|
|
17165
17131
|
readonly type: "error";
|
|
17166
17132
|
readonly name: "FeeMath__InvalidFeeAssetPriceModifier";
|
|
@@ -17236,12 +17202,12 @@ export declare const l1Artifacts: {
|
|
|
17236
17202
|
readonly name: "GovernanceProposer__OnlyProposerCanVote";
|
|
17237
17203
|
readonly inputs: readonly [{
|
|
17238
17204
|
readonly name: "caller";
|
|
17239
|
-
readonly type: "address";
|
|
17205
|
+
readonly type: "address";
|
|
17240
17206
|
readonly internalType: "address";
|
|
17241
17207
|
}, {
|
|
17242
17208
|
readonly name: "proposer";
|
|
17243
17209
|
readonly type: "address";
|
|
17244
|
-
readonly internalType: "address";
|
|
17210
|
+
readonly internalType: "address";
|
|
17245
17211
|
}];
|
|
17246
17212
|
}, {
|
|
17247
17213
|
readonly type: "error";
|
|
@@ -17955,6 +17921,16 @@ export declare const l1Artifacts: {
|
|
|
17955
17921
|
}, {
|
|
17956
17922
|
readonly type: "error";
|
|
17957
17923
|
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
|
+
*/
|
|
17958
17934
|
readonly inputs: readonly [];
|
|
17959
17935
|
}, {
|
|
17960
17936
|
readonly type: "error";
|
|
@@ -18842,10 +18818,10 @@ export declare const l1Artifacts: {
|
|
|
18842
18818
|
readonly inputs: readonly [{
|
|
18843
18819
|
readonly name: "proposal";
|
|
18844
18820
|
readonly type: "address";
|
|
18845
|
-
readonly internalType: "contract IPayload";
|
|
18846
|
-
|
|
18847
|
-
|
|
18848
|
-
|
|
18821
|
+
readonly internalType: "contract IPayload";
|
|
18822
|
+
}]; /**
|
|
18823
|
+
* Wallet Client Type.
|
|
18824
|
+
*/
|
|
18849
18825
|
}, {
|
|
18850
18826
|
readonly type: "error";
|
|
18851
18827
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
@@ -18870,6 +18846,9 @@ export declare const l1Artifacts: {
|
|
|
18870
18846
|
readonly type: "error";
|
|
18871
18847
|
readonly name: "GovernanceProposer__InvalidNAndMValues";
|
|
18872
18848
|
readonly inputs: readonly [{
|
|
18849
|
+
/**
|
|
18850
|
+
* The contract libraries
|
|
18851
|
+
*/
|
|
18873
18852
|
readonly name: "n";
|
|
18874
18853
|
readonly type: "uint256";
|
|
18875
18854
|
readonly internalType: "uint256";
|
|
@@ -18930,11 +18909,7 @@ export declare const l1Artifacts: {
|
|
|
18930
18909
|
readonly type: "uint256";
|
|
18931
18910
|
readonly internalType: "uint256";
|
|
18932
18911
|
}, {
|
|
18933
|
-
readonly name: "currentRoundNumber";
|
|
18934
|
-
* The address of the L2 Fee Juice contract.
|
|
18935
|
-
* It should be an AztecAddress, but the type is defined in stdlib,
|
|
18936
|
-
* which would create a circular import
|
|
18937
|
-
* */
|
|
18912
|
+
readonly name: "currentRoundNumber";
|
|
18938
18913
|
readonly type: "uint256";
|
|
18939
18914
|
readonly internalType: "uint256";
|
|
18940
18915
|
}];
|
|
@@ -18950,7 +18925,7 @@ export declare const l1Artifacts: {
|
|
|
18950
18925
|
readonly type: "error";
|
|
18951
18926
|
readonly name: "Governance__CallFailed";
|
|
18952
18927
|
readonly inputs: readonly [{
|
|
18953
|
-
readonly name: "target";
|
|
18928
|
+
readonly name: "target"; /** The hash of the genesis block header. */
|
|
18954
18929
|
readonly type: "address";
|
|
18955
18930
|
readonly internalType: "address";
|
|
18956
18931
|
}];
|
|
@@ -18959,14 +18934,6 @@ export declare const l1Artifacts: {
|
|
|
18959
18934
|
readonly name: "Governance__CallerNotGovernanceProposer";
|
|
18960
18935
|
readonly inputs: readonly [{
|
|
18961
18936
|
readonly name: "caller";
|
|
18962
|
-
/**
|
|
18963
|
-
* Creates a wallet and a public viem client for interacting with L1.
|
|
18964
|
-
* @param rpcUrls - List of RPC URLs to connect to L1.
|
|
18965
|
-
* @param mnemonicOrPrivateKeyOrHdAccount - Mnemonic or account for the wallet client.
|
|
18966
|
-
* @param chain - Optional chain spec (defaults to local foundry).
|
|
18967
|
-
* @param addressIndex - Optional index of the address to use from the mnemonic.
|
|
18968
|
-
* @returns - A wallet and a public client.
|
|
18969
|
-
*/
|
|
18970
18937
|
readonly type: "address";
|
|
18971
18938
|
readonly internalType: "address";
|
|
18972
18939
|
}, {
|
|
@@ -19234,6 +19201,15 @@ export declare const l1Artifacts: {
|
|
|
19234
19201
|
readonly type: "uint32";
|
|
19235
19202
|
readonly internalType: "uint32";
|
|
19236
19203
|
}, {
|
|
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
|
+
*/
|
|
19237
19213
|
readonly name: "versionPassed";
|
|
19238
19214
|
readonly type: "uint32";
|
|
19239
19215
|
readonly internalType: "uint32";
|
|
@@ -20062,7 +20038,9 @@ export declare const l1Artifacts: {
|
|
|
20062
20038
|
}, {
|
|
20063
20039
|
readonly name: "votesNeeded";
|
|
20064
20040
|
readonly type: "uint256";
|
|
20065
|
-
readonly internalType: "uint256";
|
|
20041
|
+
readonly internalType: "uint256"; /**
|
|
20042
|
+
* The contract libraries
|
|
20043
|
+
*/
|
|
20066
20044
|
}];
|
|
20067
20045
|
}, {
|
|
20068
20046
|
readonly type: "error";
|
|
@@ -20142,7 +20120,7 @@ export declare const l1Artifacts: {
|
|
|
20142
20120
|
}];
|
|
20143
20121
|
}, {
|
|
20144
20122
|
readonly type: "error";
|
|
20145
|
-
readonly name: "Governance__CallFailed";
|
|
20123
|
+
readonly name: "Governance__CallFailed"; /** The salt for CREATE2 deployment. */
|
|
20146
20124
|
readonly inputs: readonly [{
|
|
20147
20125
|
readonly name: "target";
|
|
20148
20126
|
readonly type: "address";
|
|
@@ -20382,15 +20360,7 @@ export declare const l1Artifacts: {
|
|
|
20382
20360
|
}];
|
|
20383
20361
|
}, {
|
|
20384
20362
|
readonly type: "error";
|
|
20385
|
-
readonly name: "Outbox__AlreadyNullified";
|
|
20386
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
20387
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
20388
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
20389
|
-
* @param chain - The chain instance to deploy to.
|
|
20390
|
-
* @param logger - A logger object.
|
|
20391
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
20392
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
20393
|
-
*/
|
|
20363
|
+
readonly name: "Outbox__AlreadyNullified";
|
|
20394
20364
|
readonly inputs: readonly [{
|
|
20395
20365
|
readonly name: "l2BlockNumber";
|
|
20396
20366
|
readonly type: "uint256";
|
|
@@ -20869,7 +20839,16 @@ export declare const l1Artifacts: {
|
|
|
20869
20839
|
readonly internalType: "Slot";
|
|
20870
20840
|
}, {
|
|
20871
20841
|
readonly name: "proposedSlot";
|
|
20872
|
-
readonly type: "uint256";
|
|
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
|
+
*/
|
|
20873
20852
|
readonly internalType: "Slot";
|
|
20874
20853
|
}];
|
|
20875
20854
|
}, {
|
|
@@ -21160,6 +21139,8 @@ export interface DeployL1ContractsArgs extends L1ContractsConfig {
|
|
|
21160
21139
|
initialValidators?: EthAddress[];
|
|
21161
21140
|
/** Configuration for the L1 tx utils module. */
|
|
21162
21141
|
l1TxConfig?: Partial<L1TxUtilsConfig>;
|
|
21142
|
+
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
21143
|
+
acceleratedTestDeployments?: boolean;
|
|
21163
21144
|
}
|
|
21164
21145
|
/**
|
|
21165
21146
|
* Creates a wallet and a public viem client for interacting with L1.
|
|
@@ -21189,16 +21170,22 @@ export declare const deployRollup: (clients: L1Clients, deployer: L1Deployer, ar
|
|
|
21189
21170
|
*/
|
|
21190
21171
|
export declare const deployL1Contracts: (rpcUrls: string[], account: HDAccount | PrivateKeyAccount, chain: Chain, logger: Logger, args: DeployL1ContractsArgs, txUtilsConfig?: L1TxUtilsConfig) => Promise<DeployL1ContractsReturnType>;
|
|
21191
21172
|
declare class L1Deployer {
|
|
21192
|
-
|
|
21173
|
+
readonly walletClient: ViemWalletClient;
|
|
21193
21174
|
private publicClient;
|
|
21175
|
+
private acceleratedTestDeployments;
|
|
21194
21176
|
private logger;
|
|
21195
21177
|
private txUtilsConfig?;
|
|
21196
21178
|
private salt;
|
|
21197
21179
|
private txHashes;
|
|
21198
|
-
|
|
21199
|
-
constructor(walletClient: ViemWalletClient, publicClient: ViemPublicClient, maybeSalt: number | undefined, logger
|
|
21180
|
+
readonly l1TxUtils: L1TxUtils;
|
|
21181
|
+
constructor(walletClient: ViemWalletClient, publicClient: ViemPublicClient, maybeSalt: number | undefined, acceleratedTestDeployments?: boolean, logger?: Logger, txUtilsConfig?: L1TxUtilsConfig | undefined);
|
|
21200
21182
|
deploy(params: ContractArtifacts, args?: readonly unknown[]): Promise<EthAddress>;
|
|
21201
21183
|
waitForDeployments(): Promise<void>;
|
|
21184
|
+
sendTransaction(tx: L1TxRequest): Promise<{
|
|
21185
|
+
txHash: Hex;
|
|
21186
|
+
gasLimit: bigint;
|
|
21187
|
+
gasPrice: GasPrice;
|
|
21188
|
+
}>;
|
|
21202
21189
|
}
|
|
21203
21190
|
/**
|
|
21204
21191
|
* Helper function to deploy ETH contracts.
|
|
@@ -21210,7 +21197,7 @@ declare class L1Deployer {
|
|
|
21210
21197
|
* @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).
|
|
21211
21198
|
* @returns The ETH address the contract was deployed to.
|
|
21212
21199
|
*/
|
|
21213
|
-
export declare function deployL1Contract(walletClient: ViemWalletClient, publicClient: ViemPublicClient, abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args?: readonly unknown[], maybeSalt?: Hex, libraries?: Libraries, logger?: Logger,
|
|
21200
|
+
export declare function deployL1Contract(walletClient: ViemWalletClient, publicClient: ViemPublicClient, abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args?: readonly unknown[], maybeSalt?: Hex, libraries?: Libraries, logger?: Logger, l1TxUtils?: L1TxUtils, acceleratedTestDeployments?: boolean): Promise<{
|
|
21214
21201
|
address: EthAddress;
|
|
21215
21202
|
txHash: Hex | undefined;
|
|
21216
21203
|
}>;
|