@aztec/ethereum 0.84.0 → 0.85.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/rollup.d.ts +2 -1
- package/dest/contracts/rollup.d.ts.map +1 -1
- package/dest/contracts/rollup.js +9 -0
- package/dest/deploy_l1_contracts.d.ts +162 -219
- package/dest/deploy_l1_contracts.d.ts.map +1 -1
- package/dest/deploy_l1_contracts.js +55 -42
- package/dest/eth_cheat_codes.d.ts +17 -0
- package/dest/eth_cheat_codes.d.ts.map +1 -1
- package/dest/eth_cheat_codes.js +40 -1
- package/dest/l1_tx_utils.js +1 -1
- package/dest/queries.d.ts +1 -0
- package/dest/queries.d.ts.map +1 -1
- package/dest/queries.js +5 -3
- package/dest/utils.d.ts.map +1 -1
- package/dest/utils.js +120 -14
- package/package.json +4 -4
- package/src/contracts/rollup.ts +7 -1
- package/src/deploy_l1_contracts.ts +55 -45
- package/src/eth_cheat_codes.ts +36 -1
- package/src/l1_tx_utils.ts +1 -1
- package/src/queries.ts +4 -0
- package/src/utils.ts +145 -15
|
@@ -888,15 +888,6 @@ export declare const l1Artifacts: {
|
|
|
888
888
|
readonly inputs: readonly [{
|
|
889
889
|
readonly name: "expected";
|
|
890
890
|
readonly type: "bytes32";
|
|
891
|
-
/**
|
|
892
|
-
* Initialize the fee asset handler and make it a minter on the fee asset.
|
|
893
|
-
* @note This function will only be used for testing purposes.
|
|
894
|
-
*
|
|
895
|
-
* @param clients - The L1 clients.
|
|
896
|
-
* @param deployer - The L1 deployer.
|
|
897
|
-
* @param feeAssetAddress - The address of the fee asset.
|
|
898
|
-
* @param logger - The logger.
|
|
899
|
-
*/
|
|
900
891
|
readonly internalType: "bytes32";
|
|
901
892
|
}, {
|
|
902
893
|
readonly name: "actual";
|
|
@@ -916,6 +907,15 @@ export declare const l1Artifacts: {
|
|
|
916
907
|
readonly internalType: "bytes32";
|
|
917
908
|
}, {
|
|
918
909
|
readonly name: "actual";
|
|
910
|
+
/**
|
|
911
|
+
* Initialize the fee asset handler and make it a minter on the fee asset.
|
|
912
|
+
* @note This function will only be used for testing purposes.
|
|
913
|
+
*
|
|
914
|
+
* @param clients - The L1 clients.
|
|
915
|
+
* @param deployer - The L1 deployer.
|
|
916
|
+
* @param feeAssetAddress - The address of the fee asset.
|
|
917
|
+
* @param logger - The logger.
|
|
918
|
+
*/
|
|
919
919
|
readonly type: "bytes32";
|
|
920
920
|
readonly internalType: "bytes32";
|
|
921
921
|
}];
|
|
@@ -940,15 +940,6 @@ export declare const l1Artifacts: {
|
|
|
940
940
|
readonly internalType: "uint256";
|
|
941
941
|
}, {
|
|
942
942
|
readonly name: "actual";
|
|
943
|
-
/**
|
|
944
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
945
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
946
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
947
|
-
* @param chain - The chain instance to deploy to.
|
|
948
|
-
* @param logger - A logger object.
|
|
949
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
950
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
951
|
-
*/
|
|
952
943
|
readonly type: "uint256";
|
|
953
944
|
readonly internalType: "uint256";
|
|
954
945
|
}];
|
|
@@ -3753,16 +3744,7 @@ export declare const l1Artifacts: {
|
|
|
3753
3744
|
}];
|
|
3754
3745
|
}, {
|
|
3755
3746
|
readonly type: "error";
|
|
3756
|
-
readonly name: "Staking__InsufficientStake";
|
|
3757
|
-
* Helper function to deploy ETH contracts.
|
|
3758
|
-
* @param walletClient - A viem WalletClient.
|
|
3759
|
-
* @param publicClient - A viem PublicClient.
|
|
3760
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
3761
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
3762
|
-
* @param args - Constructor arguments for the contract.
|
|
3763
|
-
* @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).
|
|
3764
|
-
* @returns The ETH address the contract was deployed to.
|
|
3765
|
-
*/
|
|
3747
|
+
readonly name: "Staking__InsufficientStake";
|
|
3766
3748
|
readonly inputs: readonly [{
|
|
3767
3749
|
readonly name: "";
|
|
3768
3750
|
readonly type: "uint256";
|
|
@@ -5914,10 +5896,6 @@ export declare const l1Artifacts: {
|
|
|
5914
5896
|
readonly name: "_blobPublicInputs";
|
|
5915
5897
|
readonly type: "bytes";
|
|
5916
5898
|
readonly internalType: "bytes";
|
|
5917
|
-
}, {
|
|
5918
|
-
readonly name: "_aggregationObject";
|
|
5919
|
-
readonly type: "bytes";
|
|
5920
|
-
readonly internalType: "bytes";
|
|
5921
5899
|
}];
|
|
5922
5900
|
readonly outputs: readonly [{
|
|
5923
5901
|
readonly name: "";
|
|
@@ -6735,10 +6713,6 @@ export declare const l1Artifacts: {
|
|
|
6735
6713
|
readonly name: "blobPublicInputs";
|
|
6736
6714
|
readonly type: "bytes";
|
|
6737
6715
|
readonly internalType: "bytes";
|
|
6738
|
-
}, {
|
|
6739
|
-
readonly name: "aggregationObject";
|
|
6740
|
-
readonly type: "bytes";
|
|
6741
|
-
readonly internalType: "bytes";
|
|
6742
6716
|
}, {
|
|
6743
6717
|
readonly name: "proof";
|
|
6744
6718
|
readonly type: "bytes";
|
|
@@ -6860,19 +6834,19 @@ export declare const l1Artifacts: {
|
|
|
6860
6834
|
readonly start: 605;
|
|
6861
6835
|
readonly length: 20;
|
|
6862
6836
|
}, {
|
|
6863
|
-
readonly start:
|
|
6837
|
+
readonly start: 7116;
|
|
6864
6838
|
readonly length: 20;
|
|
6865
6839
|
}, {
|
|
6866
|
-
readonly start:
|
|
6840
|
+
readonly start: 8214;
|
|
6867
6841
|
readonly length: 20;
|
|
6868
6842
|
}, {
|
|
6869
|
-
readonly start:
|
|
6843
|
+
readonly start: 8409;
|
|
6870
6844
|
readonly length: 20;
|
|
6871
6845
|
}, {
|
|
6872
|
-
readonly start:
|
|
6846
|
+
readonly start: 9761;
|
|
6873
6847
|
readonly length: 20;
|
|
6874
6848
|
}, {
|
|
6875
|
-
readonly start:
|
|
6849
|
+
readonly start: 10374;
|
|
6876
6850
|
readonly length: 20;
|
|
6877
6851
|
}];
|
|
6878
6852
|
};
|
|
@@ -7740,15 +7714,7 @@ export declare const l1Artifacts: {
|
|
|
7740
7714
|
readonly type: "uint256";
|
|
7741
7715
|
readonly internalType: "Slot";
|
|
7742
7716
|
}, {
|
|
7743
|
-
readonly name: "proposedSlot";
|
|
7744
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
7745
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
7746
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
7747
|
-
* @param chain - The chain instance to deploy to.
|
|
7748
|
-
* @param logger - A logger object.
|
|
7749
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
7750
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
7751
|
-
*/
|
|
7717
|
+
readonly name: "proposedSlot";
|
|
7752
7718
|
readonly type: "uint256";
|
|
7753
7719
|
readonly internalType: "Slot";
|
|
7754
7720
|
}];
|
|
@@ -8892,6 +8858,15 @@ export declare const l1Artifacts: {
|
|
|
8892
8858
|
readonly inputs: readonly [];
|
|
8893
8859
|
}, {
|
|
8894
8860
|
readonly type: "error";
|
|
8861
|
+
/**
|
|
8862
|
+
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
8863
|
+
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
8864
|
+
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
8865
|
+
* @param chain - The chain instance to deploy to.
|
|
8866
|
+
* @param logger - A logger object.
|
|
8867
|
+
* @param args - Arguments for initialization of L1 contracts
|
|
8868
|
+
* @returns A list of ETH addresses of the deployed contracts.
|
|
8869
|
+
*/
|
|
8895
8870
|
readonly name: "Rollup__PastDeadline";
|
|
8896
8871
|
readonly inputs: readonly [{
|
|
8897
8872
|
readonly name: "deadline";
|
|
@@ -9083,6 +9058,16 @@ export declare const l1Artifacts: {
|
|
|
9083
9058
|
readonly name: "Staking__InvalidDeposit";
|
|
9084
9059
|
readonly inputs: readonly [{
|
|
9085
9060
|
readonly name: "attester";
|
|
9061
|
+
/**
|
|
9062
|
+
* Helper function to deploy ETH contracts.
|
|
9063
|
+
* @param walletClient - A viem WalletClient.
|
|
9064
|
+
* @param publicClient - A viem PublicClient.
|
|
9065
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
9066
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
9067
|
+
* @param args - Constructor arguments for the contract.
|
|
9068
|
+
* @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).
|
|
9069
|
+
* @returns The ETH address the contract was deployed to.
|
|
9070
|
+
*/
|
|
9086
9071
|
readonly type: "address";
|
|
9087
9072
|
readonly internalType: "address";
|
|
9088
9073
|
}, {
|
|
@@ -9264,10 +9249,6 @@ export declare const l1Artifacts: {
|
|
|
9264
9249
|
readonly name: "_blobPublicInputs";
|
|
9265
9250
|
readonly type: "bytes";
|
|
9266
9251
|
readonly internalType: "bytes";
|
|
9267
|
-
}, {
|
|
9268
|
-
readonly name: "_aggregationObject";
|
|
9269
|
-
readonly type: "bytes";
|
|
9270
|
-
readonly internalType: "bytes";
|
|
9271
9252
|
}];
|
|
9272
9253
|
readonly outputs: readonly [{
|
|
9273
9254
|
readonly name: "";
|
|
@@ -12772,14 +12753,6 @@ export declare const l1Artifacts: {
|
|
|
12772
12753
|
readonly name: "Inbox__MustBuildBeforeConsume";
|
|
12773
12754
|
readonly inputs: readonly [];
|
|
12774
12755
|
}, {
|
|
12775
|
-
/**
|
|
12776
|
-
* Deploys a new rollup, using the existing canonical version to derive certain values (addresses of assets etc).
|
|
12777
|
-
* @param clients - The L1 clients.
|
|
12778
|
-
* @param args - The deployment arguments.
|
|
12779
|
-
* @param registryAddress - The address of the registry.
|
|
12780
|
-
* @param logger - The logger.
|
|
12781
|
-
* @param txUtilsConfig - The L1 tx utils config.
|
|
12782
|
-
*/
|
|
12783
12756
|
readonly type: "error";
|
|
12784
12757
|
readonly name: "Inbox__SecretHashTooLarge";
|
|
12785
12758
|
readonly inputs: readonly [{
|
|
@@ -12837,9 +12810,6 @@ export declare const l1Artifacts: {
|
|
|
12837
12810
|
readonly type: "error";
|
|
12838
12811
|
readonly name: "Outbox__AlreadyNullified";
|
|
12839
12812
|
readonly inputs: readonly [{
|
|
12840
|
-
/**
|
|
12841
|
-
* Deploys a new rollup contract, funds and initializes the fee juice portal, and initializes the validator set.
|
|
12842
|
-
*/
|
|
12843
12813
|
readonly name: "l2BlockNumber";
|
|
12844
12814
|
readonly type: "uint256";
|
|
12845
12815
|
readonly internalType: "uint256";
|
|
@@ -14125,9 +14095,7 @@ export declare const l1Artifacts: {
|
|
|
14125
14095
|
}, {
|
|
14126
14096
|
readonly name: "deadlinePassed";
|
|
14127
14097
|
readonly type: "uint32";
|
|
14128
|
-
readonly internalType: "uint32";
|
|
14129
|
-
* Deploys a new rollup contract, funds and initializes the fee juice portal, and initializes the validator set.
|
|
14130
|
-
*/
|
|
14098
|
+
readonly internalType: "uint32";
|
|
14131
14099
|
}];
|
|
14132
14100
|
}, {
|
|
14133
14101
|
readonly type: "error";
|
|
@@ -14147,7 +14115,9 @@ export declare const l1Artifacts: {
|
|
|
14147
14115
|
}];
|
|
14148
14116
|
}, {
|
|
14149
14117
|
readonly type: "error";
|
|
14150
|
-
readonly name: "Outbox__InvalidRecipient";
|
|
14118
|
+
readonly name: "Outbox__InvalidRecipient"; /**
|
|
14119
|
+
* Deploys a new rollup contract, funds and initializes the fee juice portal, and initializes the validator set.
|
|
14120
|
+
*/
|
|
14151
14121
|
readonly inputs: readonly [{
|
|
14152
14122
|
readonly name: "expected";
|
|
14153
14123
|
readonly type: "address";
|
|
@@ -16000,7 +15970,16 @@ export declare const l1Artifacts: {
|
|
|
16000
15970
|
readonly internalType: "address";
|
|
16001
15971
|
}, {
|
|
16002
15972
|
readonly name: "proposer";
|
|
16003
|
-
readonly type: "address";
|
|
15973
|
+
readonly type: "address"; /**
|
|
15974
|
+
* Helper function to deploy ETH contracts.
|
|
15975
|
+
* @param walletClient - A viem WalletClient.
|
|
15976
|
+
* @param publicClient - A viem PublicClient.
|
|
15977
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
15978
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
15979
|
+
* @param args - Constructor arguments for the contract.
|
|
15980
|
+
* @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).
|
|
15981
|
+
* @returns The ETH address the contract was deployed to.
|
|
15982
|
+
*/
|
|
16004
15983
|
readonly internalType: "address";
|
|
16005
15984
|
}];
|
|
16006
15985
|
}, {
|
|
@@ -17062,6 +17041,15 @@ export declare const l1Artifacts: {
|
|
|
17062
17041
|
readonly inputs: readonly [];
|
|
17063
17042
|
}, {
|
|
17064
17043
|
readonly type: "error";
|
|
17044
|
+
/**
|
|
17045
|
+
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
17046
|
+
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
17047
|
+
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
17048
|
+
* @param chain - The chain instance to deploy to.
|
|
17049
|
+
* @param logger - A logger object.
|
|
17050
|
+
* @param args - Arguments for initialization of L1 contracts
|
|
17051
|
+
* @returns A list of ETH addresses of the deployed contracts.
|
|
17052
|
+
*/
|
|
17065
17053
|
readonly name: "Rollup__NonZeroDaFee";
|
|
17066
17054
|
readonly inputs: readonly [];
|
|
17067
17055
|
}, {
|
|
@@ -18581,6 +18569,16 @@ export declare const l1Artifacts: {
|
|
|
18581
18569
|
readonly internalType: "address";
|
|
18582
18570
|
}];
|
|
18583
18571
|
}, {
|
|
18572
|
+
/**
|
|
18573
|
+
* Helper function to deploy ETH contracts.
|
|
18574
|
+
* @param walletClient - A viem WalletClient.
|
|
18575
|
+
* @param publicClient - A viem PublicClient.
|
|
18576
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
18577
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
18578
|
+
* @param args - Constructor arguments for the contract.
|
|
18579
|
+
* @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).
|
|
18580
|
+
* @returns The ETH address the contract was deployed to.
|
|
18581
|
+
*/
|
|
18584
18582
|
readonly type: "error";
|
|
18585
18583
|
readonly name: "Staking__FailedToRemove";
|
|
18586
18584
|
readonly inputs: readonly [{
|
|
@@ -20313,6 +20311,16 @@ export declare const l1Artifacts: {
|
|
|
20313
20311
|
readonly internalType: "address";
|
|
20314
20312
|
}, {
|
|
20315
20313
|
readonly name: "";
|
|
20314
|
+
/**
|
|
20315
|
+
* Helper function to deploy ETH contracts.
|
|
20316
|
+
* @param walletClient - A viem WalletClient.
|
|
20317
|
+
* @param publicClient - A viem PublicClient.
|
|
20318
|
+
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
20319
|
+
* @param bytecode - The ETH contract's bytecode.
|
|
20320
|
+
* @param args - Constructor arguments for the contract.
|
|
20321
|
+
* @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).
|
|
20322
|
+
* @returns The ETH address the contract was deployed to.
|
|
20323
|
+
*/
|
|
20316
20324
|
readonly type: "address";
|
|
20317
20325
|
readonly internalType: "address";
|
|
20318
20326
|
}];
|
|
@@ -22876,17 +22884,13 @@ export declare const l1Artifacts: {
|
|
|
22876
22884
|
readonly type: "address";
|
|
22877
22885
|
readonly internalType: "address";
|
|
22878
22886
|
}, {
|
|
22879
|
-
readonly name: "
|
|
22887
|
+
readonly name: "_registry";
|
|
22880
22888
|
readonly type: "address";
|
|
22881
|
-
readonly internalType: "
|
|
22889
|
+
readonly internalType: "contract IRegistry";
|
|
22882
22890
|
}, {
|
|
22883
22891
|
readonly name: "_withdrawer";
|
|
22884
22892
|
readonly type: "address";
|
|
22885
22893
|
readonly internalType: "address";
|
|
22886
|
-
}, {
|
|
22887
|
-
readonly name: "_depositAmount";
|
|
22888
|
-
readonly type: "uint256";
|
|
22889
|
-
readonly internalType: "uint256";
|
|
22890
22894
|
}, {
|
|
22891
22895
|
readonly name: "_mintInterval";
|
|
22892
22896
|
readonly type: "uint256";
|
|
@@ -22896,31 +22900,11 @@ export declare const l1Artifacts: {
|
|
|
22896
22900
|
readonly type: "uint256";
|
|
22897
22901
|
readonly internalType: "uint256";
|
|
22898
22902
|
}, {
|
|
22899
|
-
readonly name: "
|
|
22903
|
+
readonly name: "_unhinged";
|
|
22900
22904
|
readonly type: "address[]";
|
|
22901
22905
|
readonly internalType: "address[]";
|
|
22902
22906
|
}];
|
|
22903
22907
|
readonly stateMutability: "nonpayable";
|
|
22904
|
-
}, {
|
|
22905
|
-
readonly type: "event";
|
|
22906
|
-
readonly name: "AddValidatorPermissionGranted";
|
|
22907
|
-
readonly inputs: readonly [{
|
|
22908
|
-
readonly name: "_address";
|
|
22909
|
-
readonly type: "address";
|
|
22910
|
-
readonly indexed: true;
|
|
22911
|
-
readonly internalType: "address";
|
|
22912
|
-
}];
|
|
22913
|
-
readonly anonymous: false;
|
|
22914
|
-
}, {
|
|
22915
|
-
readonly type: "event";
|
|
22916
|
-
readonly name: "AddValidatorPermissionRevoked";
|
|
22917
|
-
readonly inputs: readonly [{
|
|
22918
|
-
readonly name: "_address";
|
|
22919
|
-
readonly type: "address";
|
|
22920
|
-
readonly indexed: true;
|
|
22921
|
-
readonly internalType: "address";
|
|
22922
|
-
}];
|
|
22923
|
-
readonly anonymous: false;
|
|
22924
22908
|
}, {
|
|
22925
22909
|
readonly type: "error";
|
|
22926
22910
|
readonly name: "CannotMintZeroAmount";
|
|
@@ -22937,38 +22921,18 @@ export declare const l1Artifacts: {
|
|
|
22937
22921
|
readonly type: "uint256";
|
|
22938
22922
|
readonly internalType: "uint256";
|
|
22939
22923
|
}];
|
|
22940
|
-
}, {
|
|
22941
|
-
readonly type: "event"; /**
|
|
22942
|
-
* The currently deployed l1 contract addresses
|
|
22943
|
-
*/
|
|
22944
|
-
readonly name: "DepositAmountUpdated";
|
|
22945
|
-
readonly inputs: readonly [{
|
|
22946
|
-
readonly name: "_depositAmount";
|
|
22947
|
-
readonly type: "uint256";
|
|
22948
|
-
readonly indexed: false;
|
|
22949
|
-
readonly internalType: "uint256";
|
|
22950
|
-
}];
|
|
22951
|
-
readonly anonymous: false;
|
|
22952
22924
|
}, {
|
|
22953
22925
|
readonly type: "event";
|
|
22954
22926
|
readonly name: "DepositsPerMintUpdated";
|
|
22955
22927
|
readonly inputs: readonly [{
|
|
22956
22928
|
readonly name: "_depositsPerMint";
|
|
22957
|
-
readonly type: "uint256";
|
|
22958
|
-
* The contract abi.
|
|
22959
|
-
*/
|
|
22929
|
+
readonly type: "uint256";
|
|
22960
22930
|
readonly indexed: false;
|
|
22961
22931
|
readonly internalType: "uint256";
|
|
22962
22932
|
}];
|
|
22963
|
-
/**
|
|
22964
|
-
* The contract bytecode
|
|
22965
|
-
*/
|
|
22966
22933
|
readonly anonymous: false;
|
|
22967
22934
|
}, {
|
|
22968
22935
|
readonly type: "error";
|
|
22969
|
-
/**
|
|
22970
|
-
* The contract libraries
|
|
22971
|
-
*/
|
|
22972
22936
|
readonly name: "DevNet__InvalidProposer";
|
|
22973
22937
|
readonly inputs: readonly [{
|
|
22974
22938
|
readonly name: "expected";
|
|
@@ -23082,6 +23046,7 @@ export declare const l1Artifacts: {
|
|
|
23082
23046
|
}, {
|
|
23083
23047
|
readonly type: "error";
|
|
23084
23048
|
readonly name: "GovernanceProposer__ProposalHaveNoCode";
|
|
23049
|
+
/** The salt for CREATE2 deployment. */
|
|
23085
23050
|
readonly inputs: readonly [{
|
|
23086
23051
|
readonly name: "proposal";
|
|
23087
23052
|
readonly type: "address";
|
|
@@ -23097,7 +23062,14 @@ export declare const l1Artifacts: {
|
|
|
23097
23062
|
}, {
|
|
23098
23063
|
readonly name: "currentRoundNumber";
|
|
23099
23064
|
readonly type: "uint256";
|
|
23100
|
-
readonly internalType: "uint256";
|
|
23065
|
+
readonly internalType: "uint256"; /**
|
|
23066
|
+
* Creates a wallet and a public viem client for interacting with L1.
|
|
23067
|
+
* @param rpcUrls - List of RPC URLs to connect to L1.
|
|
23068
|
+
* @param mnemonicOrPrivateKeyOrHdAccount - Mnemonic or account for the wallet client.
|
|
23069
|
+
* @param chain - Optional chain spec (defaults to local foundry).
|
|
23070
|
+
* @param addressIndex - Optional index of the address to use from the mnemonic.
|
|
23071
|
+
* @returns - A wallet and a public client.
|
|
23072
|
+
*/
|
|
23101
23073
|
}];
|
|
23102
23074
|
}, {
|
|
23103
23075
|
readonly type: "error";
|
|
@@ -23349,18 +23321,6 @@ export declare const l1Artifacts: {
|
|
|
23349
23321
|
readonly internalType: "uint256";
|
|
23350
23322
|
}];
|
|
23351
23323
|
readonly anonymous: false;
|
|
23352
|
-
}, {
|
|
23353
|
-
readonly type: "error";
|
|
23354
|
-
readonly name: "MaxDepositsTooLarge";
|
|
23355
|
-
readonly inputs: readonly [{
|
|
23356
|
-
readonly name: "_depositAmount";
|
|
23357
|
-
readonly type: "uint256";
|
|
23358
|
-
readonly internalType: "uint256";
|
|
23359
|
-
}, {
|
|
23360
|
-
readonly name: "_maxDepositsPerMint";
|
|
23361
|
-
readonly type: "uint256";
|
|
23362
|
-
readonly internalType: "uint256";
|
|
23363
|
-
}];
|
|
23364
23324
|
}, {
|
|
23365
23325
|
readonly type: "error";
|
|
23366
23326
|
readonly name: "MerkleLib__InvalidRoot";
|
|
@@ -23381,26 +23341,6 @@ export declare const l1Artifacts: {
|
|
|
23381
23341
|
readonly type: "uint256";
|
|
23382
23342
|
readonly internalType: "uint256";
|
|
23383
23343
|
}];
|
|
23384
|
-
}, {
|
|
23385
|
-
readonly type: "error";
|
|
23386
|
-
readonly name: "NotCanAddValidator";
|
|
23387
|
-
readonly inputs: readonly [{
|
|
23388
|
-
readonly name: "_caller";
|
|
23389
|
-
readonly type: "address";
|
|
23390
|
-
readonly internalType: "address";
|
|
23391
|
-
}];
|
|
23392
|
-
}, {
|
|
23393
|
-
readonly type: "error";
|
|
23394
|
-
readonly name: "NotEnoughTimeSinceLastMint";
|
|
23395
|
-
readonly inputs: readonly [{
|
|
23396
|
-
readonly name: "_lastMintTimestamp";
|
|
23397
|
-
readonly type: "uint256";
|
|
23398
|
-
readonly internalType: "uint256";
|
|
23399
|
-
}, {
|
|
23400
|
-
readonly name: "_minMintInterval";
|
|
23401
|
-
readonly type: "uint256";
|
|
23402
|
-
readonly internalType: "uint256";
|
|
23403
|
-
}];
|
|
23404
23344
|
}, {
|
|
23405
23345
|
readonly type: "error";
|
|
23406
23346
|
readonly name: "Outbox__AlreadyNullified";
|
|
@@ -23584,6 +23524,16 @@ export declare const l1Artifacts: {
|
|
|
23584
23524
|
readonly type: "uint256";
|
|
23585
23525
|
readonly internalType: "Timestamp";
|
|
23586
23526
|
}];
|
|
23527
|
+
}, {
|
|
23528
|
+
readonly type: "function";
|
|
23529
|
+
readonly name: "REGISTRY";
|
|
23530
|
+
readonly inputs: readonly [];
|
|
23531
|
+
readonly outputs: readonly [{
|
|
23532
|
+
readonly name: "";
|
|
23533
|
+
readonly type: "address";
|
|
23534
|
+
readonly internalType: "contract IRegistry";
|
|
23535
|
+
}];
|
|
23536
|
+
readonly stateMutability: "view";
|
|
23587
23537
|
}, {
|
|
23588
23538
|
readonly type: "error";
|
|
23589
23539
|
readonly name: "Registry__NoRollupsRegistered";
|
|
@@ -23616,16 +23566,6 @@ export declare const l1Artifacts: {
|
|
|
23616
23566
|
readonly type: "address";
|
|
23617
23567
|
readonly internalType: "address";
|
|
23618
23568
|
}];
|
|
23619
|
-
}, {
|
|
23620
|
-
readonly type: "event";
|
|
23621
|
-
readonly name: "RollupUpdated";
|
|
23622
|
-
readonly inputs: readonly [{
|
|
23623
|
-
readonly name: "_rollup";
|
|
23624
|
-
readonly type: "address";
|
|
23625
|
-
readonly indexed: true;
|
|
23626
|
-
readonly internalType: "address";
|
|
23627
|
-
}];
|
|
23628
|
-
readonly anonymous: false;
|
|
23629
23569
|
}, {
|
|
23630
23570
|
readonly type: "error";
|
|
23631
23571
|
readonly name: "Rollup__AlreadyClaimed";
|
|
@@ -24126,10 +24066,35 @@ export declare const l1Artifacts: {
|
|
|
24126
24066
|
readonly internalType: "uint256";
|
|
24127
24067
|
}];
|
|
24128
24068
|
readonly anonymous: false;
|
|
24069
|
+
}, {
|
|
24070
|
+
readonly type: "event";
|
|
24071
|
+
readonly name: "UnhingedAdded";
|
|
24072
|
+
readonly inputs: readonly [{
|
|
24073
|
+
readonly name: "_address";
|
|
24074
|
+
readonly type: "address";
|
|
24075
|
+
readonly indexed: true;
|
|
24076
|
+
readonly internalType: "address";
|
|
24077
|
+
}];
|
|
24078
|
+
readonly anonymous: false;
|
|
24079
|
+
}, {
|
|
24080
|
+
readonly type: "event";
|
|
24081
|
+
readonly name: "UnhingedRemoved";
|
|
24082
|
+
readonly inputs: readonly [{
|
|
24083
|
+
readonly name: "_address";
|
|
24084
|
+
readonly type: "address";
|
|
24085
|
+
readonly indexed: true;
|
|
24086
|
+
readonly internalType: "address";
|
|
24087
|
+
}];
|
|
24088
|
+
readonly anonymous: false;
|
|
24129
24089
|
}, {
|
|
24130
24090
|
readonly type: "event";
|
|
24131
24091
|
readonly name: "ValidatorAdded";
|
|
24132
24092
|
readonly inputs: readonly [{
|
|
24093
|
+
readonly name: "_rollup";
|
|
24094
|
+
readonly type: "address";
|
|
24095
|
+
readonly indexed: true;
|
|
24096
|
+
readonly internalType: "address";
|
|
24097
|
+
}, {
|
|
24133
24098
|
readonly name: "_attester";
|
|
24134
24099
|
readonly type: "address";
|
|
24135
24100
|
readonly indexed: true;
|
|
@@ -24137,15 +24102,23 @@ export declare const l1Artifacts: {
|
|
|
24137
24102
|
}, {
|
|
24138
24103
|
readonly name: "_proposer";
|
|
24139
24104
|
readonly type: "address";
|
|
24140
|
-
readonly indexed:
|
|
24105
|
+
readonly indexed: false;
|
|
24141
24106
|
readonly internalType: "address";
|
|
24142
24107
|
}, {
|
|
24143
24108
|
readonly name: "_withdrawer";
|
|
24144
24109
|
readonly type: "address";
|
|
24145
|
-
readonly indexed:
|
|
24110
|
+
readonly indexed: false;
|
|
24146
24111
|
readonly internalType: "address";
|
|
24147
24112
|
}];
|
|
24148
24113
|
readonly anonymous: false;
|
|
24114
|
+
}, {
|
|
24115
|
+
readonly type: "error";
|
|
24116
|
+
readonly name: "ValidatorQuotaFilledUntil";
|
|
24117
|
+
readonly inputs: readonly [{
|
|
24118
|
+
readonly name: "_timestamp";
|
|
24119
|
+
readonly type: "uint256";
|
|
24120
|
+
readonly internalType: "uint256";
|
|
24121
|
+
}];
|
|
24149
24122
|
}, {
|
|
24150
24123
|
readonly type: "error";
|
|
24151
24124
|
readonly name: "ValidatorSelection__EpochNotSetup";
|
|
@@ -24210,13 +24183,9 @@ export declare const l1Artifacts: {
|
|
|
24210
24183
|
readonly anonymous: false;
|
|
24211
24184
|
}, {
|
|
24212
24185
|
readonly type: "function";
|
|
24213
|
-
readonly name: "
|
|
24186
|
+
readonly name: "addUnhinged";
|
|
24214
24187
|
readonly inputs: readonly [{
|
|
24215
|
-
readonly name: "
|
|
24216
|
-
readonly type: "address";
|
|
24217
|
-
readonly internalType: "address";
|
|
24218
|
-
}, {
|
|
24219
|
-
readonly name: "_proposer";
|
|
24188
|
+
readonly name: "_address";
|
|
24220
24189
|
readonly type: "address";
|
|
24221
24190
|
readonly internalType: "address";
|
|
24222
24191
|
}];
|
|
@@ -24224,21 +24193,21 @@ export declare const l1Artifacts: {
|
|
|
24224
24193
|
readonly stateMutability: "nonpayable";
|
|
24225
24194
|
}, {
|
|
24226
24195
|
readonly type: "function";
|
|
24227
|
-
readonly name: "
|
|
24196
|
+
readonly name: "addValidator";
|
|
24228
24197
|
readonly inputs: readonly [{
|
|
24229
|
-
readonly name: "";
|
|
24198
|
+
readonly name: "_attester";
|
|
24199
|
+
readonly type: "address";
|
|
24200
|
+
readonly internalType: "address";
|
|
24201
|
+
}, {
|
|
24202
|
+
readonly name: "_proposer";
|
|
24230
24203
|
readonly type: "address";
|
|
24231
24204
|
readonly internalType: "address";
|
|
24232
24205
|
}];
|
|
24233
|
-
readonly outputs: readonly [
|
|
24234
|
-
|
|
24235
|
-
readonly type: "bool";
|
|
24236
|
-
readonly internalType: "bool";
|
|
24237
|
-
}];
|
|
24238
|
-
readonly stateMutability: "view";
|
|
24206
|
+
readonly outputs: readonly [];
|
|
24207
|
+
readonly stateMutability: "nonpayable";
|
|
24239
24208
|
}, {
|
|
24240
24209
|
readonly type: "function";
|
|
24241
|
-
readonly name: "
|
|
24210
|
+
readonly name: "depositsPerMint";
|
|
24242
24211
|
readonly inputs: readonly [];
|
|
24243
24212
|
readonly outputs: readonly [{
|
|
24244
24213
|
readonly name: "";
|
|
@@ -24248,24 +24217,28 @@ export declare const l1Artifacts: {
|
|
|
24248
24217
|
readonly stateMutability: "view";
|
|
24249
24218
|
}, {
|
|
24250
24219
|
readonly type: "function";
|
|
24251
|
-
readonly name: "
|
|
24220
|
+
readonly name: "getRollup";
|
|
24252
24221
|
readonly inputs: readonly [];
|
|
24253
24222
|
readonly outputs: readonly [{
|
|
24254
24223
|
readonly name: "";
|
|
24255
|
-
readonly type: "
|
|
24256
|
-
readonly internalType: "
|
|
24224
|
+
readonly type: "address";
|
|
24225
|
+
readonly internalType: "address";
|
|
24257
24226
|
}];
|
|
24258
24227
|
readonly stateMutability: "view";
|
|
24259
24228
|
}, {
|
|
24260
24229
|
readonly type: "function";
|
|
24261
|
-
readonly name: "
|
|
24230
|
+
readonly name: "isUnhinged";
|
|
24262
24231
|
readonly inputs: readonly [{
|
|
24263
|
-
readonly name: "
|
|
24232
|
+
readonly name: "";
|
|
24264
24233
|
readonly type: "address";
|
|
24265
24234
|
readonly internalType: "address";
|
|
24266
24235
|
}];
|
|
24267
|
-
readonly outputs: readonly [
|
|
24268
|
-
|
|
24236
|
+
readonly outputs: readonly [{
|
|
24237
|
+
readonly name: "";
|
|
24238
|
+
readonly type: "bool";
|
|
24239
|
+
readonly internalType: "bool";
|
|
24240
|
+
}];
|
|
24241
|
+
readonly stateMutability: "view";
|
|
24269
24242
|
}, {
|
|
24270
24243
|
readonly type: "function";
|
|
24271
24244
|
readonly name: "lastMintTimestamp";
|
|
@@ -24298,13 +24271,7 @@ export declare const l1Artifacts: {
|
|
|
24298
24271
|
readonly stateMutability: "view";
|
|
24299
24272
|
}, {
|
|
24300
24273
|
readonly type: "function";
|
|
24301
|
-
readonly name: "
|
|
24302
|
-
readonly inputs: readonly [];
|
|
24303
|
-
readonly outputs: readonly [];
|
|
24304
|
-
readonly stateMutability: "nonpayable";
|
|
24305
|
-
}, {
|
|
24306
|
-
readonly type: "function";
|
|
24307
|
-
readonly name: "revokeAddValidatorPermission";
|
|
24274
|
+
readonly name: "removeUnhinged";
|
|
24308
24275
|
readonly inputs: readonly [{
|
|
24309
24276
|
readonly name: "_address";
|
|
24310
24277
|
readonly type: "address";
|
|
@@ -24314,22 +24281,8 @@ export declare const l1Artifacts: {
|
|
|
24314
24281
|
readonly stateMutability: "nonpayable";
|
|
24315
24282
|
}, {
|
|
24316
24283
|
readonly type: "function";
|
|
24317
|
-
readonly name: "
|
|
24284
|
+
readonly name: "renounceOwnership";
|
|
24318
24285
|
readonly inputs: readonly [];
|
|
24319
|
-
readonly outputs: readonly [{
|
|
24320
|
-
readonly name: "";
|
|
24321
|
-
readonly type: "address";
|
|
24322
|
-
readonly internalType: "contract IStaking";
|
|
24323
|
-
}];
|
|
24324
|
-
readonly stateMutability: "view";
|
|
24325
|
-
}, {
|
|
24326
|
-
readonly type: "function";
|
|
24327
|
-
readonly name: "setDepositAmount";
|
|
24328
|
-
readonly inputs: readonly [{
|
|
24329
|
-
readonly name: "_amount";
|
|
24330
|
-
readonly type: "uint256";
|
|
24331
|
-
readonly internalType: "uint256";
|
|
24332
|
-
}];
|
|
24333
24286
|
readonly outputs: readonly [];
|
|
24334
24287
|
readonly stateMutability: "nonpayable";
|
|
24335
24288
|
}, {
|
|
@@ -24352,16 +24305,6 @@ export declare const l1Artifacts: {
|
|
|
24352
24305
|
}];
|
|
24353
24306
|
readonly outputs: readonly [];
|
|
24354
24307
|
readonly stateMutability: "nonpayable";
|
|
24355
|
-
}, {
|
|
24356
|
-
readonly type: "function";
|
|
24357
|
-
readonly name: "setRollup";
|
|
24358
|
-
readonly inputs: readonly [{
|
|
24359
|
-
readonly name: "_rollup";
|
|
24360
|
-
readonly type: "address";
|
|
24361
|
-
readonly internalType: "address";
|
|
24362
|
-
}];
|
|
24363
|
-
readonly outputs: readonly [];
|
|
24364
|
-
readonly stateMutability: "nonpayable";
|
|
24365
24308
|
}, {
|
|
24366
24309
|
readonly type: "function";
|
|
24367
24310
|
readonly name: "setWithdrawer";
|
|
@@ -24427,9 +24370,9 @@ export interface DeployL1ContractsArgs extends L1ContractsConfig {
|
|
|
24427
24370
|
export declare function createL1Clients(rpcUrls: string[], mnemonicOrPrivateKeyOrHdAccount: string | `0x${string}` | HDAccount | PrivateKeyAccount, chain?: Chain, addressIndex?: number): L1Clients;
|
|
24428
24371
|
export declare const deploySharedContracts: (clients: L1Clients, deployer: L1Deployer, args: DeployL1ContractsArgs, logger: Logger) => Promise<{
|
|
24429
24372
|
feeAssetAddress: EthAddress;
|
|
24430
|
-
feeAssetHandlerAddress: EthAddress;
|
|
24373
|
+
feeAssetHandlerAddress: EthAddress | undefined;
|
|
24431
24374
|
stakingAssetAddress: EthAddress;
|
|
24432
|
-
stakingAssetHandlerAddress: EthAddress;
|
|
24375
|
+
stakingAssetHandlerAddress: EthAddress | undefined;
|
|
24433
24376
|
registryAddress: EthAddress;
|
|
24434
24377
|
governanceAddress: EthAddress;
|
|
24435
24378
|
governanceProposerAddress: EthAddress;
|