@aztec/ethereum 0.75.0 → 0.76.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/config.d.ts +2 -1
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +3 -1
- package/dest/deploy_l1_contracts.d.ts +101 -115
- package/dest/deploy_l1_contracts.d.ts.map +1 -1
- package/dest/deploy_l1_contracts.js +14 -9
- package/dest/l1_tx_utils.d.ts.map +1 -1
- package/dest/l1_tx_utils.js +11 -8
- package/dest/l1_tx_utils_with_blobs.js +2 -2
- package/package.json +4 -3
- package/src/config.ts +4 -1
- package/src/deploy_l1_contracts.ts +13 -3
- package/src/l1_tx_utils.ts +9 -6
- package/src/l1_tx_utils_with_blobs.ts +1 -1
package/dest/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
2
|
+
import { type L1TxUtilsConfig } from './l1_tx_utils.js';
|
|
2
3
|
export type L1ContractsConfig = {
|
|
3
4
|
/** How many seconds an L1 slot lasts. */
|
|
4
5
|
ethereumSlotDuration: number;
|
|
@@ -20,7 +21,7 @@ export type L1ContractsConfig = {
|
|
|
20
21
|
governanceProposerQuorum: number;
|
|
21
22
|
/** Governance proposing round size */
|
|
22
23
|
governanceProposerRoundSize: number;
|
|
23
|
-
};
|
|
24
|
+
} & L1TxUtilsConfig;
|
|
24
25
|
export declare const DefaultL1ContractsConfig: {
|
|
25
26
|
ethereumSlotDuration: number;
|
|
26
27
|
aztecSlotDuration: number;
|
package/dest/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yCAAyC;IACzC,oBAAoB,EAAE,MAAM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O,MAAM,yBAAyB,EAAE,kBAAkB,CAAC,iBAAiB,CAoD3E,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,iBAAiB,CAE/D"}
|
package/dest/config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { bigintConfigHelper, getConfigFromMappings, numberConfigHelper, } from '@aztec/foundation/config';
|
|
2
|
+
import { l1TxUtilsConfigMappings } from './l1_tx_utils.js';
|
|
2
3
|
export const DefaultL1ContractsConfig = {
|
|
3
4
|
ethereumSlotDuration: 12,
|
|
4
5
|
aztecSlotDuration: 24,
|
|
@@ -62,8 +63,9 @@ export const l1ContractsConfigMappings = {
|
|
|
62
63
|
description: 'The governance proposing round size',
|
|
63
64
|
...numberConfigHelper(DefaultL1ContractsConfig.governanceProposerRoundSize),
|
|
64
65
|
},
|
|
66
|
+
...l1TxUtilsConfigMappings,
|
|
65
67
|
};
|
|
66
68
|
export function getL1ContractsConfigEnvVars() {
|
|
67
69
|
return getConfigFromMappings(l1ContractsConfigMappings);
|
|
68
70
|
}
|
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsa0JBQWtCLEVBQ2xCLHFCQUFxQixFQUNyQixrQkFBa0IsR0FDbkIsTUFBTSwwQkFBMEIsQ0FBQztBQUVsQyxPQUFPLEVBQXdCLHVCQUF1QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUF5QmpGLE1BQU0sQ0FBQyxNQUFNLHdCQUF3QixHQUFHO0lBQ3RDLG9CQUFvQixFQUFFLEVBQUU7SUFDeEIsaUJBQWlCLEVBQUUsRUFBRTtJQUNyQixrQkFBa0IsRUFBRSxFQUFFO0lBQ3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DLENBQUM7S0FDcEY7SUFDRCxZQUFZLEVBQUU7UUFDWixHQUFHLEVBQUUscUJBQXFCO1FBQzFCLFdBQVcsRUFBRSxvQ0FBb0M7UUFDakQsR0FBRyxrQkFBa0IsQ0FBQyx3QkFBd0IsQ0FBQyxZQUFZLENBQUM7S0FDN0Q7SUFDRCxjQUFjLEVBQUU7UUFDZCxHQUFHLEVBQUUsdUJBQXVCO1FBQzVCLFdBQVcsRUFBRSxxQkFBcUI7UUFDbEMsR0FBRyxrQkFBa0IsQ0FBQyx3QkFBd0IsQ0FBQyxjQUFjLENBQUM7S0FDL0Q7SUFDRCxpQkFBaUIsRUFBRTtRQUNqQixHQUFHLEVBQUUsMkJBQTJCO1FBQ2hDLFdBQVcsRUFBRSx5QkFBeUI7UUFDdEMsR0FBRyxrQkFBa0IsQ0FBQyx3QkFBd0IsQ0FBQyxpQkFBaUIsQ0FBQztLQUNsRTtJQUNELHdCQUF3QixFQUFFO1FBQ3hCLEdBQUcsRUFBRSxrQ0FBa0M7UUFDdkMsV0FBVyxFQUFFLGlDQUFpQztRQUM5QyxHQUFHLGtCQUFrQixDQUFDLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDO0tBQ3pFO0lBQ0QsMkJBQTJCLEVBQUU7UUFDM0IsR0FBRyxFQUFFLHNDQUFzQztRQUMzQyxXQUFXLEVBQUUscUNBQXFDO1FBQ2xELEdBQUcsa0JBQWtCLENBQUMsd0JBQXdCLENBQUMsMkJBQTJCLENBQUM7S0FDNUU7SUFDRCxHQUFHLHVCQUF1QjtDQUMzQixDQUFDO0FBRUYsTUFBTSxVQUFVLDJCQUEyQjtJQUN6QyxPQUFPLHFCQUFxQixDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFDMUQsQ0FBQyJ9
|
|
@@ -7,6 +7,7 @@ import { type Account, type Chain, type Client, type Hex, type HttpTransport, ty
|
|
|
7
7
|
import { type HDAccount, type PrivateKeyAccount } from 'viem/accounts';
|
|
8
8
|
import { type L1ContractsConfig } from './config.js';
|
|
9
9
|
import { type L1ContractAddresses } from './l1_contract_addresses.js';
|
|
10
|
+
import { L1TxUtils, type L1TxUtilsConfig } from './l1_tx_utils.js';
|
|
10
11
|
export declare const DEPLOYER_ADDRESS: Hex;
|
|
11
12
|
/**
|
|
12
13
|
* Return type of the deployL1Contract function.
|
|
@@ -205,13 +206,12 @@ export declare const l1Artifacts: {
|
|
|
205
206
|
readonly name: "GovernanceProposer__ProposalTooOld";
|
|
206
207
|
readonly inputs: readonly [{
|
|
207
208
|
readonly name: "roundNumber";
|
|
208
|
-
/** The address of the L2 Fee Juice contract. */
|
|
209
209
|
readonly type: "uint256";
|
|
210
210
|
readonly internalType: "uint256";
|
|
211
211
|
}, {
|
|
212
212
|
readonly name: "currentRoundNumber";
|
|
213
213
|
readonly type: "uint256";
|
|
214
|
-
readonly internalType: "uint256";
|
|
214
|
+
readonly internalType: "uint256";
|
|
215
215
|
}];
|
|
216
216
|
}, {
|
|
217
217
|
readonly type: "error";
|
|
@@ -1403,7 +1403,9 @@ export declare const l1Artifacts: {
|
|
|
1403
1403
|
readonly type: "error";
|
|
1404
1404
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
1405
1405
|
readonly inputs: readonly [{
|
|
1406
|
-
readonly name: "proposal";
|
|
1406
|
+
readonly name: "proposal"; /**
|
|
1407
|
+
* The currently deployed l1 contract addresses
|
|
1408
|
+
*/
|
|
1407
1409
|
readonly type: "address";
|
|
1408
1410
|
readonly internalType: "contract IPayload";
|
|
1409
1411
|
}];
|
|
@@ -1420,7 +1422,9 @@ export declare const l1Artifacts: {
|
|
|
1420
1422
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
1421
1423
|
readonly inputs: readonly [{
|
|
1422
1424
|
readonly name: "votesCast";
|
|
1423
|
-
readonly type: "uint256";
|
|
1425
|
+
readonly type: "uint256"; /**
|
|
1426
|
+
* The contract bytecode
|
|
1427
|
+
*/
|
|
1424
1428
|
readonly internalType: "uint256";
|
|
1425
1429
|
}, {
|
|
1426
1430
|
readonly name: "votesNeeded";
|
|
@@ -1496,7 +1500,7 @@ export declare const l1Artifacts: {
|
|
|
1496
1500
|
readonly internalType: "uint256";
|
|
1497
1501
|
}];
|
|
1498
1502
|
}, {
|
|
1499
|
-
readonly type: "error";
|
|
1503
|
+
readonly type: "error";
|
|
1500
1504
|
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
1501
1505
|
readonly inputs: readonly [{
|
|
1502
1506
|
readonly name: "slot";
|
|
@@ -2026,16 +2030,6 @@ export declare const l1Artifacts: {
|
|
|
2026
2030
|
readonly internalType: "bytes32";
|
|
2027
2031
|
}];
|
|
2028
2032
|
}, {
|
|
2029
|
-
/**
|
|
2030
|
-
* Helper function to deploy ETH contracts.
|
|
2031
|
-
* @param walletClient - A viem WalletClient.
|
|
2032
|
-
* @param publicClient - A viem PublicClient.
|
|
2033
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
2034
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
2035
|
-
* @param args - Constructor arguments for the contract.
|
|
2036
|
-
* @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).
|
|
2037
|
-
* @returns The ETH address the contract was deployed to.
|
|
2038
|
-
*/
|
|
2039
2033
|
readonly type: "error";
|
|
2040
2034
|
readonly name: "Rollup__InvalidBlockHash";
|
|
2041
2035
|
readonly inputs: readonly [{
|
|
@@ -2045,6 +2039,16 @@ export declare const l1Artifacts: {
|
|
|
2045
2039
|
}, {
|
|
2046
2040
|
readonly name: "actual";
|
|
2047
2041
|
readonly type: "bytes32";
|
|
2042
|
+
/**
|
|
2043
|
+
* Helper function to deploy ETH contracts.
|
|
2044
|
+
* @param walletClient - A viem WalletClient.
|
|
2045
|
+
* @param publicClient - A viem PublicClient.
|
|
2046
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
2047
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
2048
|
+
* @param args - Constructor arguments for the contract.
|
|
2049
|
+
* @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).
|
|
2050
|
+
* @returns The ETH address the contract was deployed to.
|
|
2051
|
+
*/
|
|
2048
2052
|
readonly internalType: "bytes32";
|
|
2049
2053
|
}];
|
|
2050
2054
|
}, {
|
|
@@ -2648,7 +2652,9 @@ export declare const l1Artifacts: {
|
|
|
2648
2652
|
readonly type: "error";
|
|
2649
2653
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
2650
2654
|
readonly inputs: readonly [{
|
|
2651
|
-
readonly name: "votesCast";
|
|
2655
|
+
readonly name: "votesCast"; /**
|
|
2656
|
+
* Contract artifacts
|
|
2657
|
+
*/
|
|
2652
2658
|
readonly type: "uint256";
|
|
2653
2659
|
readonly internalType: "uint256";
|
|
2654
2660
|
}, {
|
|
@@ -2729,7 +2735,7 @@ export declare const l1Artifacts: {
|
|
|
2729
2735
|
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
2730
2736
|
readonly inputs: readonly [{
|
|
2731
2737
|
readonly name: "slot";
|
|
2732
|
-
readonly type: "uint256";
|
|
2738
|
+
readonly type: "uint256"; /** The initial validators for the rollup contract. */
|
|
2733
2739
|
readonly internalType: "Slot";
|
|
2734
2740
|
}];
|
|
2735
2741
|
}, {
|
|
@@ -2790,15 +2796,6 @@ export declare const l1Artifacts: {
|
|
|
2790
2796
|
readonly inputs: readonly [];
|
|
2791
2797
|
}, {
|
|
2792
2798
|
readonly type: "error";
|
|
2793
|
-
/**
|
|
2794
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
2795
|
-
* @param rpcUrl - URL of the ETH RPC to use for deployment.
|
|
2796
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
2797
|
-
* @param chain - The chain instance to deploy to.
|
|
2798
|
-
* @param logger - A logger object.
|
|
2799
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
2800
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
2801
|
-
*/
|
|
2802
2799
|
readonly name: "Governance__ConfigurationLib__QuorumTooSmall";
|
|
2803
2800
|
readonly inputs: readonly [];
|
|
2804
2801
|
}, {
|
|
@@ -3903,9 +3900,7 @@ export declare const l1Artifacts: {
|
|
|
3903
3900
|
}];
|
|
3904
3901
|
readonly stateMutability: "view";
|
|
3905
3902
|
}, {
|
|
3906
|
-
readonly type: "function";
|
|
3907
|
-
* Contract artifacts
|
|
3908
|
-
*/
|
|
3903
|
+
readonly type: "function";
|
|
3909
3904
|
readonly name: "CLAIM_DURATION_IN_L2_SLOTS";
|
|
3910
3905
|
readonly inputs: readonly [];
|
|
3911
3906
|
readonly outputs: readonly [{
|
|
@@ -3987,7 +3982,7 @@ export declare const l1Artifacts: {
|
|
|
3987
3982
|
readonly name: "FEE_JUICE_PORTAL";
|
|
3988
3983
|
readonly inputs: readonly [];
|
|
3989
3984
|
readonly outputs: readonly [{
|
|
3990
|
-
readonly name: "";
|
|
3985
|
+
readonly name: "";
|
|
3991
3986
|
readonly type: "address";
|
|
3992
3987
|
readonly internalType: "contract IFeeJuicePortal";
|
|
3993
3988
|
}];
|
|
@@ -4050,7 +4045,15 @@ export declare const l1Artifacts: {
|
|
|
4050
4045
|
readonly inputs: readonly [{
|
|
4051
4046
|
readonly name: "n";
|
|
4052
4047
|
readonly type: "uint256";
|
|
4053
|
-
readonly internalType: "uint256";
|
|
4048
|
+
readonly internalType: "uint256"; /**
|
|
4049
|
+
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
4050
|
+
* @param rpcUrl - URL of the ETH RPC to use for deployment.
|
|
4051
|
+
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
4052
|
+
* @param chain - The chain instance to deploy to.
|
|
4053
|
+
* @param logger - A logger object.
|
|
4054
|
+
* @param args - Arguments for initialization of L1 contracts
|
|
4055
|
+
* @returns A list of ETH addresses of the deployed contracts.
|
|
4056
|
+
*/
|
|
4054
4057
|
}, {
|
|
4055
4058
|
readonly name: "m";
|
|
4056
4059
|
readonly type: "uint256";
|
|
@@ -6998,9 +7001,7 @@ export declare const l1Artifacts: {
|
|
|
6998
7001
|
readonly inputs: readonly [{
|
|
6999
7002
|
readonly name: "proposal";
|
|
7000
7003
|
readonly type: "address";
|
|
7001
|
-
readonly internalType: "contract IPayload";
|
|
7002
|
-
* Wallet Client Type.
|
|
7003
|
-
*/
|
|
7004
|
+
readonly internalType: "contract IPayload";
|
|
7004
7005
|
}];
|
|
7005
7006
|
}, {
|
|
7006
7007
|
readonly type: "error";
|
|
@@ -7020,9 +7021,6 @@ export declare const l1Artifacts: {
|
|
|
7020
7021
|
}, {
|
|
7021
7022
|
readonly name: "votesNeeded";
|
|
7022
7023
|
readonly type: "uint256";
|
|
7023
|
-
/**
|
|
7024
|
-
* Contract artifacts
|
|
7025
|
-
*/
|
|
7026
7024
|
readonly internalType: "uint256";
|
|
7027
7025
|
}];
|
|
7028
7026
|
}, {
|
|
@@ -7633,16 +7631,7 @@ export declare const l1Artifacts: {
|
|
|
7633
7631
|
readonly type: "error";
|
|
7634
7632
|
readonly name: "Rollup__InvalidEpoch";
|
|
7635
7633
|
readonly inputs: readonly [{
|
|
7636
|
-
readonly name: "expected";
|
|
7637
|
-
* Helper function to deploy ETH contracts.
|
|
7638
|
-
* @param walletClient - A viem WalletClient.
|
|
7639
|
-
* @param publicClient - A viem PublicClient.
|
|
7640
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
7641
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
7642
|
-
* @param args - Constructor arguments for the contract.
|
|
7643
|
-
* @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).
|
|
7644
|
-
* @returns The ETH address the contract was deployed to.
|
|
7645
|
-
*/
|
|
7634
|
+
readonly name: "expected";
|
|
7646
7635
|
readonly type: "uint256";
|
|
7647
7636
|
readonly internalType: "Epoch";
|
|
7648
7637
|
}, {
|
|
@@ -8104,9 +8093,6 @@ export declare const l1Artifacts: {
|
|
|
8104
8093
|
readonly inputs: readonly [{
|
|
8105
8094
|
readonly name: "instance";
|
|
8106
8095
|
readonly type: "address";
|
|
8107
|
-
/**
|
|
8108
|
-
* The currently deployed l1 contract addresses
|
|
8109
|
-
*/
|
|
8110
8096
|
readonly internalType: "address";
|
|
8111
8097
|
}];
|
|
8112
8098
|
}, {
|
|
@@ -8127,7 +8113,9 @@ export declare const l1Artifacts: {
|
|
|
8127
8113
|
readonly inputs: readonly [{
|
|
8128
8114
|
readonly name: "n";
|
|
8129
8115
|
readonly type: "uint256";
|
|
8130
|
-
readonly internalType: "uint256";
|
|
8116
|
+
readonly internalType: "uint256"; /**
|
|
8117
|
+
* The contract libraries
|
|
8118
|
+
*/
|
|
8131
8119
|
}, {
|
|
8132
8120
|
readonly name: "m";
|
|
8133
8121
|
readonly type: "uint256";
|
|
@@ -8191,7 +8179,7 @@ export declare const l1Artifacts: {
|
|
|
8191
8179
|
}];
|
|
8192
8180
|
}, {
|
|
8193
8181
|
readonly type: "error";
|
|
8194
|
-
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
8182
|
+
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
8195
8183
|
readonly inputs: readonly [{
|
|
8196
8184
|
readonly name: "slot";
|
|
8197
8185
|
readonly type: "uint256";
|
|
@@ -8742,6 +8730,16 @@ export declare const l1Artifacts: {
|
|
|
8742
8730
|
readonly name: "Rollup__InvalidInHash";
|
|
8743
8731
|
readonly inputs: readonly [{
|
|
8744
8732
|
readonly name: "expected";
|
|
8733
|
+
/**
|
|
8734
|
+
* Helper function to deploy ETH contracts.
|
|
8735
|
+
* @param walletClient - A viem WalletClient.
|
|
8736
|
+
* @param publicClient - A viem PublicClient.
|
|
8737
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
8738
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
8739
|
+
* @param args - Constructor arguments for the contract.
|
|
8740
|
+
* @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).
|
|
8741
|
+
* @returns The ETH address the contract was deployed to.
|
|
8742
|
+
*/
|
|
8745
8743
|
readonly type: "bytes32";
|
|
8746
8744
|
readonly internalType: "bytes32";
|
|
8747
8745
|
}, {
|
|
@@ -9511,14 +9509,15 @@ export declare const l1Artifacts: {
|
|
|
9511
9509
|
}, {
|
|
9512
9510
|
readonly type: "error";
|
|
9513
9511
|
readonly name: "GovernanceProposer__ProposalCannotBeAddressZero";
|
|
9514
|
-
readonly inputs: readonly [];
|
|
9512
|
+
readonly inputs: readonly [];
|
|
9515
9513
|
}, {
|
|
9516
9514
|
readonly type: "error";
|
|
9517
9515
|
readonly name: "GovernanceProposer__ProposalHaveNoCode";
|
|
9518
9516
|
readonly inputs: readonly [{
|
|
9519
9517
|
readonly name: "proposal";
|
|
9518
|
+
/** The block number to assume proven through. */
|
|
9520
9519
|
readonly type: "address";
|
|
9521
|
-
readonly internalType: "contract IPayload";
|
|
9520
|
+
readonly internalType: "contract IPayload"; /** The salt for CREATE2 deployment. */
|
|
9522
9521
|
}];
|
|
9523
9522
|
}, {
|
|
9524
9523
|
readonly type: "error";
|
|
@@ -10591,7 +10590,9 @@ export declare const l1Artifacts: {
|
|
|
10591
10590
|
readonly name: "DevNet__NoPruningAllowed";
|
|
10592
10591
|
readonly inputs: readonly [];
|
|
10593
10592
|
}, {
|
|
10594
|
-
readonly type: "error";
|
|
10593
|
+
readonly type: "error"; /**
|
|
10594
|
+
* Wallet Client Type.
|
|
10595
|
+
*/
|
|
10595
10596
|
readonly name: "ERC20InsufficientAllowance";
|
|
10596
10597
|
readonly inputs: readonly [{
|
|
10597
10598
|
readonly name: "spender";
|
|
@@ -10681,7 +10682,6 @@ export declare const l1Artifacts: {
|
|
|
10681
10682
|
}, {
|
|
10682
10683
|
readonly type: "error";
|
|
10683
10684
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
10684
|
-
/** The address of the L2 Fee Juice contract. */
|
|
10685
10685
|
readonly inputs: readonly [{
|
|
10686
10686
|
readonly name: "proposal";
|
|
10687
10687
|
readonly type: "address";
|
|
@@ -10691,11 +10691,10 @@ export declare const l1Artifacts: {
|
|
|
10691
10691
|
readonly type: "error";
|
|
10692
10692
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
10693
10693
|
readonly inputs: readonly [{
|
|
10694
|
-
/** The salt for CREATE2 deployment. */
|
|
10695
10694
|
readonly name: "instance";
|
|
10696
10695
|
readonly type: "address";
|
|
10697
10696
|
readonly internalType: "address";
|
|
10698
|
-
}];
|
|
10697
|
+
}]; /** The initial validators for the rollup contract. */
|
|
10699
10698
|
}, {
|
|
10700
10699
|
readonly type: "error";
|
|
10701
10700
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
@@ -11220,16 +11219,6 @@ export declare const l1Artifacts: {
|
|
|
11220
11219
|
readonly name: "Registry__RollupNotRegistered";
|
|
11221
11220
|
readonly inputs: readonly [{
|
|
11222
11221
|
readonly name: "rollup";
|
|
11223
|
-
/**
|
|
11224
|
-
* Helper function to deploy ETH contracts.
|
|
11225
|
-
* @param walletClient - A viem WalletClient.
|
|
11226
|
-
* @param publicClient - A viem PublicClient.
|
|
11227
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
11228
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
11229
|
-
* @param args - Constructor arguments for the contract.
|
|
11230
|
-
* @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).
|
|
11231
|
-
* @returns The ETH address the contract was deployed to.
|
|
11232
|
-
*/
|
|
11233
11222
|
readonly type: "address";
|
|
11234
11223
|
readonly internalType: "address";
|
|
11235
11224
|
}];
|
|
@@ -12028,7 +12017,9 @@ export declare const l1Artifacts: {
|
|
|
12028
12017
|
readonly name: "DevNet__NoPruningAllowed";
|
|
12029
12018
|
readonly inputs: readonly [];
|
|
12030
12019
|
}, {
|
|
12031
|
-
readonly type: "error";
|
|
12020
|
+
readonly type: "error"; /**
|
|
12021
|
+
* Wallet Client Type.
|
|
12022
|
+
*/
|
|
12032
12023
|
readonly name: "ERC20InsufficientAllowance";
|
|
12033
12024
|
readonly inputs: readonly [{
|
|
12034
12025
|
readonly name: "spender";
|
|
@@ -12118,7 +12109,6 @@ export declare const l1Artifacts: {
|
|
|
12118
12109
|
}, {
|
|
12119
12110
|
readonly type: "error";
|
|
12120
12111
|
readonly name: "GovernanceProposer__FailedToPropose";
|
|
12121
|
-
/** The address of the L2 Fee Juice contract. */
|
|
12122
12112
|
readonly inputs: readonly [{
|
|
12123
12113
|
readonly name: "proposal";
|
|
12124
12114
|
readonly type: "address";
|
|
@@ -12128,11 +12118,10 @@ export declare const l1Artifacts: {
|
|
|
12128
12118
|
readonly type: "error";
|
|
12129
12119
|
readonly name: "GovernanceProposer__InstanceHaveNoCode";
|
|
12130
12120
|
readonly inputs: readonly [{
|
|
12131
|
-
/** The salt for CREATE2 deployment. */
|
|
12132
12121
|
readonly name: "instance";
|
|
12133
12122
|
readonly type: "address";
|
|
12134
12123
|
readonly internalType: "address";
|
|
12135
|
-
}];
|
|
12124
|
+
}]; /** The initial validators for the rollup contract. */
|
|
12136
12125
|
}, {
|
|
12137
12126
|
readonly type: "error";
|
|
12138
12127
|
readonly name: "GovernanceProposer__InsufficientVotes";
|
|
@@ -12657,16 +12646,6 @@ export declare const l1Artifacts: {
|
|
|
12657
12646
|
readonly name: "Registry__RollupNotRegistered";
|
|
12658
12647
|
readonly inputs: readonly [{
|
|
12659
12648
|
readonly name: "rollup";
|
|
12660
|
-
/**
|
|
12661
|
-
* Helper function to deploy ETH contracts.
|
|
12662
|
-
* @param walletClient - A viem WalletClient.
|
|
12663
|
-
* @param publicClient - A viem PublicClient.
|
|
12664
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
12665
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
12666
|
-
* @param args - Constructor arguments for the contract.
|
|
12667
|
-
* @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).
|
|
12668
|
-
* @returns The ETH address the contract was deployed to.
|
|
12669
|
-
*/
|
|
12670
12649
|
readonly type: "address";
|
|
12671
12650
|
readonly internalType: "address";
|
|
12672
12651
|
}];
|
|
@@ -13468,7 +13447,9 @@ export declare const l1Artifacts: {
|
|
|
13468
13447
|
}, {
|
|
13469
13448
|
readonly name: "actual";
|
|
13470
13449
|
readonly type: "address";
|
|
13471
|
-
readonly internalType: "address";
|
|
13450
|
+
readonly internalType: "address"; /**
|
|
13451
|
+
* The currently deployed l1 contract addresses
|
|
13452
|
+
*/
|
|
13472
13453
|
}];
|
|
13473
13454
|
}, {
|
|
13474
13455
|
readonly type: "error";
|
|
@@ -13480,18 +13461,12 @@ export declare const l1Artifacts: {
|
|
|
13480
13461
|
readonly inputs: readonly [];
|
|
13481
13462
|
}, {
|
|
13482
13463
|
readonly type: "error";
|
|
13483
|
-
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
13484
|
-
* Contract artifacts
|
|
13485
|
-
*/
|
|
13464
|
+
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
13486
13465
|
readonly inputs: readonly [];
|
|
13487
13466
|
}, {
|
|
13488
|
-
readonly type: "error";
|
|
13489
|
-
* The contract abi.
|
|
13490
|
-
*/
|
|
13467
|
+
readonly type: "error";
|
|
13491
13468
|
readonly name: "FeeJuicePortal__Unauthorized";
|
|
13492
|
-
readonly inputs: readonly [];
|
|
13493
|
-
* The contract bytecode
|
|
13494
|
-
*/
|
|
13469
|
+
readonly inputs: readonly [];
|
|
13495
13470
|
}, {
|
|
13496
13471
|
readonly type: "error";
|
|
13497
13472
|
readonly name: "FeeMath__InvalidFeeAssetPriceModifier";
|
|
@@ -13565,10 +13540,10 @@ export declare const l1Artifacts: {
|
|
|
13565
13540
|
readonly inputs: readonly [{
|
|
13566
13541
|
readonly name: "n";
|
|
13567
13542
|
readonly type: "uint256";
|
|
13568
|
-
readonly internalType: "uint256";
|
|
13543
|
+
readonly internalType: "uint256";
|
|
13569
13544
|
}, {
|
|
13570
13545
|
readonly name: "m";
|
|
13571
|
-
readonly type: "uint256";
|
|
13546
|
+
readonly type: "uint256";
|
|
13572
13547
|
readonly internalType: "uint256";
|
|
13573
13548
|
}];
|
|
13574
13549
|
}, {
|
|
@@ -14721,7 +14696,9 @@ export declare const l1Artifacts: {
|
|
|
14721
14696
|
readonly inputs: readonly [];
|
|
14722
14697
|
}, {
|
|
14723
14698
|
readonly type: "error";
|
|
14724
|
-
readonly name: "FeeJuicePortal__AlreadyInitialized";
|
|
14699
|
+
readonly name: "FeeJuicePortal__AlreadyInitialized"; /**
|
|
14700
|
+
* Public Client Type.
|
|
14701
|
+
*/
|
|
14725
14702
|
readonly inputs: readonly [];
|
|
14726
14703
|
}, {
|
|
14727
14704
|
readonly type: "error";
|
|
@@ -14737,9 +14714,7 @@ export declare const l1Artifacts: {
|
|
|
14737
14714
|
readonly inputs: readonly [];
|
|
14738
14715
|
}, {
|
|
14739
14716
|
readonly type: "error";
|
|
14740
|
-
readonly name: "FeeMath__InvalidProvingCostModifier";
|
|
14741
|
-
* The contract abi.
|
|
14742
|
-
*/
|
|
14717
|
+
readonly name: "FeeMath__InvalidProvingCostModifier";
|
|
14743
14718
|
readonly inputs: readonly [];
|
|
14744
14719
|
}, {
|
|
14745
14720
|
readonly type: "error";
|
|
@@ -14813,9 +14788,10 @@ export declare const l1Artifacts: {
|
|
|
14813
14788
|
readonly type: "error";
|
|
14814
14789
|
readonly name: "GovernanceProposer__ProposalAlreadyExecuted";
|
|
14815
14790
|
readonly inputs: readonly [{
|
|
14791
|
+
/** The protocol contract tree root. */
|
|
14816
14792
|
readonly name: "roundNumber";
|
|
14817
14793
|
readonly type: "uint256";
|
|
14818
|
-
readonly internalType: "uint256";
|
|
14794
|
+
readonly internalType: "uint256";
|
|
14819
14795
|
}];
|
|
14820
14796
|
}, {
|
|
14821
14797
|
readonly type: "error";
|
|
@@ -16049,7 +16025,7 @@ export declare const l1Artifacts: {
|
|
|
16049
16025
|
}, {
|
|
16050
16026
|
readonly type: "error";
|
|
16051
16027
|
readonly name: "GovernanceProposer__ProposalCannotBeAddressZero";
|
|
16052
|
-
readonly inputs: readonly [];
|
|
16028
|
+
readonly inputs: readonly []; /** The vk tree root. */
|
|
16053
16029
|
}, {
|
|
16054
16030
|
readonly type: "error";
|
|
16055
16031
|
readonly name: "GovernanceProposer__ProposalHaveNoCode";
|
|
@@ -17260,12 +17236,12 @@ export declare const l1Artifacts: {
|
|
|
17260
17236
|
readonly internalType: "contract IPayload";
|
|
17261
17237
|
}];
|
|
17262
17238
|
}, {
|
|
17263
|
-
readonly type: "error"; /** The
|
|
17239
|
+
readonly type: "error"; /** The vk tree root. */
|
|
17264
17240
|
readonly name: "GovernanceProposer__ProposalTooOld";
|
|
17265
17241
|
readonly inputs: readonly [{
|
|
17266
17242
|
readonly name: "roundNumber";
|
|
17267
17243
|
readonly type: "uint256";
|
|
17268
|
-
readonly internalType: "uint256";
|
|
17244
|
+
readonly internalType: "uint256"; /** The salt for CREATE2 deployment. */
|
|
17269
17245
|
}, {
|
|
17270
17246
|
readonly name: "currentRoundNumber";
|
|
17271
17247
|
readonly type: "uint256";
|
|
@@ -18478,9 +18454,7 @@ export declare const l1Artifacts: {
|
|
|
18478
18454
|
readonly inputs: readonly [];
|
|
18479
18455
|
}, {
|
|
18480
18456
|
readonly type: "error";
|
|
18481
|
-
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
18482
|
-
* The contract bytecode
|
|
18483
|
-
*/
|
|
18457
|
+
readonly name: "FeeJuicePortal__InvalidInitialization";
|
|
18484
18458
|
readonly inputs: readonly [];
|
|
18485
18459
|
}, {
|
|
18486
18460
|
readonly type: "error";
|
|
@@ -18545,13 +18519,12 @@ export declare const l1Artifacts: {
|
|
|
18545
18519
|
readonly internalType: "uint256";
|
|
18546
18520
|
}, {
|
|
18547
18521
|
readonly name: "m";
|
|
18548
|
-
/** The address of the L2 Fee Juice contract. */
|
|
18549
18522
|
readonly type: "uint256";
|
|
18550
18523
|
readonly internalType: "uint256";
|
|
18551
18524
|
}];
|
|
18552
18525
|
}, {
|
|
18553
18526
|
readonly type: "error";
|
|
18554
|
-
readonly name: "GovernanceProposer__NCannotBeLargerTHanM";
|
|
18527
|
+
readonly name: "GovernanceProposer__NCannotBeLargerTHanM"; /** The protocol contract tree root. */
|
|
18555
18528
|
readonly inputs: readonly [{
|
|
18556
18529
|
readonly name: "n";
|
|
18557
18530
|
readonly type: "uint256";
|
|
@@ -18619,7 +18592,15 @@ export declare const l1Artifacts: {
|
|
|
18619
18592
|
readonly inputs: readonly [{
|
|
18620
18593
|
readonly name: "target";
|
|
18621
18594
|
readonly type: "address";
|
|
18622
|
-
readonly internalType: "address";
|
|
18595
|
+
readonly internalType: "address"; /**
|
|
18596
|
+
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
18597
|
+
* @param rpcUrl - URL of the ETH RPC to use for deployment.
|
|
18598
|
+
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
18599
|
+
* @param chain - The chain instance to deploy to.
|
|
18600
|
+
* @param logger - A logger object.
|
|
18601
|
+
* @param args - Arguments for initialization of L1 contracts
|
|
18602
|
+
* @returns A list of ETH addresses of the deployed contracts.
|
|
18603
|
+
*/
|
|
18623
18604
|
}];
|
|
18624
18605
|
}, {
|
|
18625
18606
|
readonly type: "error";
|
|
@@ -20171,9 +20152,6 @@ export declare const l1Artifacts: {
|
|
|
20171
20152
|
readonly internalType: "uint256";
|
|
20172
20153
|
}, {
|
|
20173
20154
|
readonly name: "votesNeeded";
|
|
20174
|
-
/**
|
|
20175
|
-
* The contract libraries
|
|
20176
|
-
*/
|
|
20177
20155
|
readonly type: "uint256";
|
|
20178
20156
|
readonly internalType: "uint256";
|
|
20179
20157
|
}];
|
|
@@ -20242,12 +20220,11 @@ export declare const l1Artifacts: {
|
|
|
20242
20220
|
readonly internalType: "uint256";
|
|
20243
20221
|
}, {
|
|
20244
20222
|
readonly name: "currentRoundNumber";
|
|
20245
|
-
readonly type: "uint256";
|
|
20223
|
+
readonly type: "uint256";
|
|
20246
20224
|
readonly internalType: "uint256";
|
|
20247
20225
|
}];
|
|
20248
20226
|
}, {
|
|
20249
20227
|
readonly type: "error";
|
|
20250
|
-
/** The salt for CREATE2 deployment. */
|
|
20251
20228
|
readonly name: "GovernanceProposer__VoteAlreadyCastForSlot";
|
|
20252
20229
|
readonly inputs: readonly [{
|
|
20253
20230
|
readonly name: "slot";
|
|
@@ -20312,6 +20289,15 @@ export declare const l1Artifacts: {
|
|
|
20312
20289
|
readonly inputs: readonly [];
|
|
20313
20290
|
}, {
|
|
20314
20291
|
readonly type: "error";
|
|
20292
|
+
/**
|
|
20293
|
+
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
20294
|
+
* @param rpcUrl - URL of the ETH RPC to use for deployment.
|
|
20295
|
+
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
20296
|
+
* @param chain - The chain instance to deploy to.
|
|
20297
|
+
* @param logger - A logger object.
|
|
20298
|
+
* @param args - Arguments for initialization of L1 contracts
|
|
20299
|
+
* @returns A list of ETH addresses of the deployed contracts.
|
|
20300
|
+
*/
|
|
20315
20301
|
readonly name: "Governance__ConfigurationLib__QuorumTooSmall";
|
|
20316
20302
|
readonly inputs: readonly [];
|
|
20317
20303
|
}, {
|
|
@@ -21290,7 +21276,7 @@ export declare function createL1Clients(rpcUrl: string, mnemonicOrPrivateKeyOrHd
|
|
|
21290
21276
|
* @param args - Arguments for initialization of L1 contracts
|
|
21291
21277
|
* @returns A list of ETH addresses of the deployed contracts.
|
|
21292
21278
|
*/
|
|
21293
|
-
export declare const deployL1Contracts: (rpcUrl: string, account: HDAccount | PrivateKeyAccount, chain: Chain, logger: Logger, args: DeployL1ContractsArgs) => Promise<DeployL1Contracts>;
|
|
21279
|
+
export declare const deployL1Contracts: (rpcUrl: string, account: HDAccount | PrivateKeyAccount, chain: Chain, logger: Logger, args: DeployL1ContractsArgs, txUtilsConfig?: L1TxUtilsConfig) => Promise<DeployL1Contracts>;
|
|
21294
21280
|
/**
|
|
21295
21281
|
* Helper function to deploy ETH contracts.
|
|
21296
21282
|
* @param walletClient - A viem WalletClient.
|
|
@@ -21301,7 +21287,7 @@ export declare const deployL1Contracts: (rpcUrl: string, account: HDAccount | Pr
|
|
|
21301
21287
|
* @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).
|
|
21302
21288
|
* @returns The ETH address the contract was deployed to.
|
|
21303
21289
|
*/
|
|
21304
|
-
export declare function deployL1Contract(walletClient: WalletClient<HttpTransport, Chain, Account>, publicClient: PublicClient<HttpTransport, Chain>, abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args?: readonly unknown[], maybeSalt?: Hex, libraries?: Libraries, logger?: Logger): Promise<{
|
|
21290
|
+
export declare function deployL1Contract(walletClient: WalletClient<HttpTransport, Chain, Account>, publicClient: PublicClient<HttpTransport, Chain>, abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args?: readonly unknown[], maybeSalt?: Hex, libraries?: Libraries, logger?: Logger, _l1TxUtils?: L1TxUtils): Promise<{
|
|
21305
21291
|
address: EthAddress;
|
|
21306
21292
|
txHash: Hex | undefined;
|
|
21307
21293
|
}>;
|