@aztec/ethereum 4.0.0-nightly.20250907 → 4.0.0-nightly.20260107
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/account.d.ts +1 -1
- package/dest/chain.d.ts +1 -1
- package/dest/client.d.ts +2 -2
- package/dest/client.d.ts.map +1 -1
- package/dest/client.js +6 -2
- package/dest/config.d.ts +18 -46
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +40 -285
- package/dest/constants.d.ts +1 -1
- package/dest/contracts/empire_base.d.ts +8 -6
- package/dest/contracts/empire_base.d.ts.map +1 -1
- package/dest/contracts/empire_base.js +1 -1
- package/dest/contracts/empire_slashing_proposer.d.ts +8 -6
- package/dest/contracts/empire_slashing_proposer.d.ts.map +1 -1
- package/dest/contracts/empire_slashing_proposer.js +18 -3
- package/dest/contracts/errors.d.ts +1 -1
- package/dest/contracts/errors.d.ts.map +1 -1
- package/dest/contracts/fee_asset_handler.d.ts +4 -4
- package/dest/contracts/fee_asset_handler.d.ts.map +1 -1
- package/dest/contracts/fee_juice.d.ts +1 -1
- package/dest/contracts/fee_juice.d.ts.map +1 -1
- package/dest/contracts/governance.d.ts +16 -16
- package/dest/contracts/governance.d.ts.map +1 -1
- package/dest/contracts/governance.js +7 -3
- package/dest/contracts/governance_proposer.d.ts +7 -6
- package/dest/contracts/governance_proposer.d.ts.map +1 -1
- package/dest/contracts/governance_proposer.js +400 -12
- package/dest/contracts/gse.d.ts +1 -1
- package/dest/contracts/gse.d.ts.map +1 -1
- package/dest/contracts/inbox.d.ts +7 -3
- package/dest/contracts/inbox.d.ts.map +1 -1
- package/dest/contracts/inbox.js +4 -0
- package/dest/contracts/index.d.ts +1 -1
- package/dest/contracts/multicall.d.ts +5 -7
- package/dest/contracts/multicall.d.ts.map +1 -1
- package/dest/contracts/multicall.js +6 -4
- package/dest/contracts/registry.d.ts +1 -1
- package/dest/contracts/registry.d.ts.map +1 -1
- package/dest/contracts/rollup.d.ts +168 -117
- package/dest/contracts/rollup.d.ts.map +1 -1
- package/dest/contracts/rollup.js +712 -241
- package/dest/contracts/slasher_contract.d.ts +11 -1
- package/dest/contracts/slasher_contract.d.ts.map +1 -1
- package/dest/contracts/slasher_contract.js +18 -0
- package/dest/contracts/tally_slashing_proposer.d.ts +15 -7
- package/dest/contracts/tally_slashing_proposer.d.ts.map +1 -1
- package/dest/contracts/tally_slashing_proposer.js +15 -5
- package/dest/contracts/utils.d.ts +1 -1
- package/dest/deploy_aztec_l1_contracts.d.ts +247 -0
- package/dest/deploy_aztec_l1_contracts.d.ts.map +1 -0
- package/dest/deploy_aztec_l1_contracts.js +336 -0
- package/dest/deploy_l1_contract.d.ts +68 -0
- package/dest/deploy_l1_contract.d.ts.map +1 -0
- package/dest/deploy_l1_contract.js +312 -0
- package/dest/eth-signer/eth-signer.d.ts +1 -1
- package/dest/eth-signer/index.d.ts +1 -1
- package/dest/forwarder_proxy.d.ts +32 -0
- package/dest/forwarder_proxy.d.ts.map +1 -0
- package/dest/forwarder_proxy.js +93 -0
- package/dest/l1_artifacts.d.ts +17698 -6245
- package/dest/l1_artifacts.d.ts.map +1 -1
- package/dest/l1_artifacts.js +10 -5
- package/dest/l1_contract_addresses.d.ts +8 -4
- package/dest/l1_contract_addresses.d.ts.map +1 -1
- package/dest/l1_contract_addresses.js +5 -4
- package/dest/l1_reader.d.ts +4 -2
- package/dest/l1_reader.d.ts.map +1 -1
- package/dest/l1_reader.js +7 -1
- package/dest/l1_tx_utils/config.d.ts +59 -0
- package/dest/l1_tx_utils/config.d.ts.map +1 -0
- package/dest/l1_tx_utils/config.js +96 -0
- package/dest/l1_tx_utils/constants.d.ts +12 -0
- package/dest/l1_tx_utils/constants.d.ts.map +1 -0
- package/dest/l1_tx_utils/constants.js +39 -0
- package/dest/l1_tx_utils/factory.d.ts +24 -0
- package/dest/l1_tx_utils/factory.d.ts.map +1 -0
- package/dest/l1_tx_utils/factory.js +12 -0
- package/dest/l1_tx_utils/fee-strategies/index.d.ts +10 -0
- package/dest/l1_tx_utils/fee-strategies/index.d.ts.map +1 -0
- package/dest/l1_tx_utils/fee-strategies/index.js +12 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive.d.ts +8 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive.d.ts.map +1 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive.js +129 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.d.ts +23 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.d.ts.map +1 -0
- package/dest/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.js +191 -0
- package/dest/l1_tx_utils/fee-strategies/types.d.ts +51 -0
- package/dest/l1_tx_utils/fee-strategies/types.d.ts.map +1 -0
- package/dest/l1_tx_utils/fee-strategies/types.js +3 -0
- package/dest/l1_tx_utils/forwarder_l1_tx_utils.d.ts +41 -0
- package/dest/l1_tx_utils/forwarder_l1_tx_utils.d.ts.map +1 -0
- package/dest/l1_tx_utils/forwarder_l1_tx_utils.js +48 -0
- package/dest/l1_tx_utils/index-blobs.d.ts +3 -0
- package/dest/l1_tx_utils/index-blobs.d.ts.map +1 -0
- package/dest/l1_tx_utils/index-blobs.js +2 -0
- package/dest/l1_tx_utils/index.d.ts +12 -0
- package/dest/l1_tx_utils/index.d.ts.map +1 -0
- package/dest/l1_tx_utils/index.js +12 -0
- package/dest/l1_tx_utils/interfaces.d.ts +76 -0
- package/dest/l1_tx_utils/interfaces.d.ts.map +1 -0
- package/dest/l1_tx_utils/interfaces.js +4 -0
- package/dest/l1_tx_utils/l1_fee_analyzer.d.ts +233 -0
- package/dest/l1_tx_utils/l1_fee_analyzer.d.ts.map +1 -0
- package/dest/l1_tx_utils/l1_fee_analyzer.js +506 -0
- package/dest/l1_tx_utils/l1_tx_utils.d.ts +94 -0
- package/dest/l1_tx_utils/l1_tx_utils.d.ts.map +1 -0
- package/dest/l1_tx_utils/l1_tx_utils.js +623 -0
- package/dest/l1_tx_utils/l1_tx_utils_with_blobs.d.ts +26 -0
- package/dest/l1_tx_utils/l1_tx_utils_with_blobs.d.ts.map +1 -0
- package/dest/l1_tx_utils/l1_tx_utils_with_blobs.js +26 -0
- package/dest/l1_tx_utils/readonly_l1_tx_utils.d.ts +83 -0
- package/dest/l1_tx_utils/readonly_l1_tx_utils.d.ts.map +1 -0
- package/dest/l1_tx_utils/readonly_l1_tx_utils.js +323 -0
- package/dest/l1_tx_utils/signer.d.ts +4 -0
- package/dest/l1_tx_utils/signer.d.ts.map +1 -0
- package/dest/l1_tx_utils/signer.js +16 -0
- package/dest/l1_tx_utils/types.d.ts +67 -0
- package/dest/l1_tx_utils/types.d.ts.map +1 -0
- package/dest/l1_tx_utils/types.js +26 -0
- package/dest/l1_tx_utils/utils.d.ts +4 -0
- package/dest/l1_tx_utils/utils.d.ts.map +1 -0
- package/dest/l1_tx_utils/utils.js +14 -0
- package/dest/l1_types.d.ts +1 -1
- package/dest/publisher_manager.d.ts +8 -3
- package/dest/publisher_manager.d.ts.map +1 -1
- package/dest/publisher_manager.js +36 -8
- package/dest/queries.d.ts +1 -1
- package/dest/queries.d.ts.map +1 -1
- package/dest/queries.js +20 -14
- package/dest/test/chain_monitor.d.ts +29 -22
- package/dest/test/chain_monitor.d.ts.map +1 -1
- package/dest/test/chain_monitor.js +81 -38
- package/dest/test/delayed_tx_utils.d.ts +3 -3
- package/dest/test/delayed_tx_utils.d.ts.map +1 -1
- package/dest/test/delayed_tx_utils.js +2 -2
- package/dest/test/eth_cheat_codes.d.ts +36 -14
- package/dest/test/eth_cheat_codes.d.ts.map +1 -1
- package/dest/test/eth_cheat_codes.js +126 -31
- package/dest/test/eth_cheat_codes_with_state.d.ts +1 -1
- package/dest/test/eth_cheat_codes_with_state.d.ts.map +1 -1
- package/dest/test/index.d.ts +1 -1
- package/dest/test/rollup_cheat_codes.d.ts +23 -20
- package/dest/test/rollup_cheat_codes.d.ts.map +1 -1
- package/dest/test/rollup_cheat_codes.js +82 -43
- package/dest/test/start_anvil.d.ts +4 -1
- package/dest/test/start_anvil.d.ts.map +1 -1
- package/dest/test/start_anvil.js +2 -1
- package/dest/test/tx_delayer.d.ts +1 -1
- package/dest/test/tx_delayer.d.ts.map +1 -1
- package/dest/test/tx_delayer.js +4 -3
- package/dest/test/upgrade_utils.d.ts +1 -1
- package/dest/test/upgrade_utils.d.ts.map +1 -1
- package/dest/test/upgrade_utils.js +3 -2
- package/dest/types.d.ts +57 -2
- package/dest/types.d.ts.map +1 -1
- package/dest/utils.d.ts +15 -3
- package/dest/utils.d.ts.map +1 -1
- package/dest/utils.js +28 -161
- package/dest/zkPassportVerifierAddress.d.ts +1 -1
- package/dest/zkPassportVerifierAddress.js +1 -1
- package/package.json +33 -14
- package/src/client.ts +3 -3
- package/src/config.ts +49 -358
- package/src/contracts/empire_base.ts +7 -6
- package/src/contracts/empire_slashing_proposer.ts +23 -8
- package/src/contracts/fee_asset_handler.ts +1 -1
- package/src/contracts/governance.ts +3 -3
- package/src/contracts/governance_proposer.ts +19 -9
- package/src/contracts/inbox.ts +7 -2
- package/src/contracts/multicall.ts +12 -10
- package/src/contracts/rollup.ts +373 -235
- package/src/contracts/slasher_contract.ts +22 -0
- package/src/contracts/tally_slashing_proposer.ts +21 -9
- package/src/deploy_aztec_l1_contracts.ts +557 -0
- package/src/deploy_l1_contract.ts +362 -0
- package/src/forwarder_proxy.ts +108 -0
- package/src/l1_artifacts.ts +14 -6
- package/src/l1_contract_addresses.ts +24 -20
- package/src/l1_reader.ts +10 -2
- package/src/l1_tx_utils/README.md +177 -0
- package/src/l1_tx_utils/config.ts +161 -0
- package/src/l1_tx_utils/constants.ts +29 -0
- package/src/l1_tx_utils/factory.ts +64 -0
- package/src/l1_tx_utils/fee-strategies/index.ts +22 -0
- package/src/l1_tx_utils/fee-strategies/p75_competitive.ts +163 -0
- package/src/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.ts +245 -0
- package/src/l1_tx_utils/fee-strategies/types.ts +56 -0
- package/src/l1_tx_utils/forwarder_l1_tx_utils.ts +119 -0
- package/src/l1_tx_utils/index-blobs.ts +2 -0
- package/src/l1_tx_utils/index.ts +14 -0
- package/src/l1_tx_utils/interfaces.ts +86 -0
- package/src/l1_tx_utils/l1_fee_analyzer.ts +803 -0
- package/src/l1_tx_utils/l1_tx_utils.ts +738 -0
- package/src/l1_tx_utils/l1_tx_utils_with_blobs.ts +77 -0
- package/src/l1_tx_utils/readonly_l1_tx_utils.ts +419 -0
- package/src/l1_tx_utils/signer.ts +28 -0
- package/src/l1_tx_utils/types.ts +85 -0
- package/src/l1_tx_utils/utils.ts +16 -0
- package/src/publisher_manager.ts +51 -9
- package/src/queries.ts +24 -10
- package/src/test/chain_monitor.ts +102 -44
- package/src/test/delayed_tx_utils.ts +2 -2
- package/src/test/eth_cheat_codes.ts +150 -31
- package/src/test/rollup_cheat_codes.ts +95 -53
- package/src/test/start_anvil.ts +4 -0
- package/src/test/tx_delayer.ts +5 -3
- package/src/test/upgrade_utils.ts +3 -2
- package/src/types.ts +62 -0
- package/src/utils.ts +41 -184
- package/src/zkPassportVerifierAddress.ts +1 -1
- package/dest/deploy_l1_contracts.d.ts +0 -211
- package/dest/deploy_l1_contracts.d.ts.map +0 -1
- package/dest/deploy_l1_contracts.js +0 -1267
- package/dest/index.d.ts +0 -18
- package/dest/index.d.ts.map +0 -1
- package/dest/index.js +0 -17
- package/dest/l1_tx_utils.d.ts +0 -250
- package/dest/l1_tx_utils.d.ts.map +0 -1
- package/dest/l1_tx_utils.js +0 -826
- package/dest/l1_tx_utils_with_blobs.d.ts +0 -19
- package/dest/l1_tx_utils_with_blobs.d.ts.map +0 -1
- package/dest/l1_tx_utils_with_blobs.js +0 -85
- package/src/deploy_l1_contracts.ts +0 -1596
- package/src/index.ts +0 -17
- package/src/l1_tx_utils.ts +0 -1105
- package/src/l1_tx_utils_with_blobs.ts +0 -144
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Logger } from '@aztec/foundation/log';
|
|
2
|
+
import { DateProvider } from '@aztec/foundation/timer';
|
|
2
3
|
import { GovernanceAbi } from '@aztec/l1-artifacts/GovernanceAbi';
|
|
3
4
|
import { TestERC20Abi as StakingAssetAbi } from '@aztec/l1-artifacts/TestERC20Abi';
|
|
4
5
|
|
|
@@ -6,7 +7,7 @@ import { type GetContractReturnType, type PrivateKeyAccount, getContract } from
|
|
|
6
7
|
|
|
7
8
|
import { extractProposalIdFromLogs } from '../contracts/governance.js';
|
|
8
9
|
import type { L1ContractAddresses } from '../l1_contract_addresses.js';
|
|
9
|
-
import { createL1TxUtilsFromViemWallet } from '../l1_tx_utils.js';
|
|
10
|
+
import { createL1TxUtilsFromViemWallet } from '../l1_tx_utils/index.js';
|
|
10
11
|
import type { ExtendedViemWalletClient, ViemPublicClient } from '../types.js';
|
|
11
12
|
import { EthCheatCodes } from './eth_cheat_codes.js';
|
|
12
13
|
|
|
@@ -30,7 +31,7 @@ export async function executeGovernanceProposal(
|
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
const cheatCodes = new EthCheatCodes(rpcUrls, logger);
|
|
34
|
+
const cheatCodes = new EthCheatCodes(rpcUrls, new DateProvider(), logger);
|
|
34
35
|
|
|
35
36
|
const timeToActive = proposal.creation + proposal.config.votingDelay;
|
|
36
37
|
logger.info(`Warping to ${timeToActive + 1n}`);
|
package/src/types.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
Client,
|
|
6
6
|
FallbackTransport,
|
|
7
7
|
GetContractReturnType,
|
|
8
|
+
Hex,
|
|
8
9
|
HttpTransport,
|
|
9
10
|
PublicActions,
|
|
10
11
|
PublicClient,
|
|
@@ -16,6 +17,67 @@ import type {
|
|
|
16
17
|
/** Type for a viem public client */
|
|
17
18
|
export type ViemPublicClient = PublicClient<FallbackTransport<HttpTransport[]>, Chain>;
|
|
18
19
|
|
|
20
|
+
export type PublicRpcDebugSchema = [
|
|
21
|
+
{
|
|
22
|
+
Method: 'debug_traceTransaction';
|
|
23
|
+
Parameters: [txHash: `0x${string}`, options: { tracer: 'callTracer' }];
|
|
24
|
+
ReturnType: DebugCallTrace;
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
Method: 'trace_transaction';
|
|
28
|
+
Parameters: [txHash: `0x${string}`];
|
|
29
|
+
ReturnType: TraceTransactionResponse[];
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
/** Return type for a debug_traceTransaction call */
|
|
34
|
+
export type DebugCallTrace = {
|
|
35
|
+
from: Hex;
|
|
36
|
+
to?: Hex;
|
|
37
|
+
type: string;
|
|
38
|
+
input?: Hex;
|
|
39
|
+
output?: Hex;
|
|
40
|
+
gas?: Hex;
|
|
41
|
+
gasUsed?: Hex;
|
|
42
|
+
value?: Hex;
|
|
43
|
+
error?: string;
|
|
44
|
+
calls?: DebugCallTrace[];
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** Action object for a trace_transaction call */
|
|
48
|
+
export type TraceAction = {
|
|
49
|
+
from: Hex;
|
|
50
|
+
to?: Hex;
|
|
51
|
+
callType: string;
|
|
52
|
+
gas?: Hex;
|
|
53
|
+
input?: Hex;
|
|
54
|
+
value?: Hex;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** Result object for a trace_transaction call */
|
|
58
|
+
export type TraceResult = {
|
|
59
|
+
gasUsed?: Hex;
|
|
60
|
+
output?: Hex;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** Return type for a single trace in trace_transaction response */
|
|
64
|
+
export type TraceTransactionResponse = {
|
|
65
|
+
action: TraceAction;
|
|
66
|
+
result?: TraceResult;
|
|
67
|
+
error?: string;
|
|
68
|
+
subtraces: number;
|
|
69
|
+
traceAddress: number[];
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** Type for a viem public client with support for debug methods */
|
|
74
|
+
export type ViemPublicDebugClient = PublicClient<
|
|
75
|
+
FallbackTransport<HttpTransport[]>,
|
|
76
|
+
Chain,
|
|
77
|
+
undefined,
|
|
78
|
+
[...PublicRpcSchema, ...PublicRpcDebugSchema]
|
|
79
|
+
>;
|
|
80
|
+
|
|
19
81
|
export type ExtendedViemWalletClient = Client<
|
|
20
82
|
FallbackTransport<readonly HttpTransport[]>,
|
|
21
83
|
Chain,
|
package/src/utils.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fr } from '@aztec/foundation/
|
|
1
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import type { Logger } from '@aztec/foundation/log';
|
|
3
3
|
import { ErrorsAbi } from '@aztec/l1-artifacts/ErrorsAbi';
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
type ContractEventName,
|
|
9
9
|
ContractFunctionRevertedError,
|
|
10
10
|
type DecodeEventLogReturnType,
|
|
11
|
+
type FormattedTransaction,
|
|
11
12
|
type Hex,
|
|
12
13
|
type Log,
|
|
13
14
|
decodeErrorResult,
|
|
@@ -181,41 +182,19 @@ export function formatViemError(error: any, abi: Abi = ErrorsAbi): FormattedViem
|
|
|
181
182
|
return new FormattedViemError(error.message, (error as any)?.metaMessages);
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
// Check for shortMessage which is often available in Viem errors
|
|
195
|
-
else if (typeof error.shortMessage === 'string' && error.shortMessage) {
|
|
196
|
-
errorDetail = error.shortMessage;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// If we found a specific error detail, format it clearly
|
|
201
|
-
if (errorDetail) {
|
|
202
|
-
// Look for key sections of the formatted result to replace with highlighted error
|
|
203
|
-
let replaced = false;
|
|
204
|
-
|
|
205
|
-
// Try to find the Details: section
|
|
206
|
-
const detailsMatch = formattedRes.match(/Details: ([^\n]+)/);
|
|
207
|
-
if (detailsMatch) {
|
|
208
|
-
formattedRes = formattedRes.replace(detailsMatch[0], `Details: *${errorDetail}*`);
|
|
209
|
-
replaced = true;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// If we didn't find a Details section, add the error at the beginning
|
|
213
|
-
if (!replaced) {
|
|
214
|
-
formattedRes = `Error: *${errorDetail}*\n\n${formattedRes}`;
|
|
215
|
-
}
|
|
185
|
+
const body = String(error);
|
|
186
|
+
const length = body.length;
|
|
187
|
+
// LogExplorer can only render up to 2500 characters in it's summary view. Try to keep the whole message below this number
|
|
188
|
+
// Limit the error to 2000 chacaters in order to allow code higher up to decorate this error with extra details (up to 500 characters)
|
|
189
|
+
if (length > 2000) {
|
|
190
|
+
const chunk = 950;
|
|
191
|
+
const truncated = length - 2 * chunk;
|
|
192
|
+
return new FormattedViemError(
|
|
193
|
+
body.slice(0, chunk) + `...${truncated} characters truncated...` + body.slice(-1 * chunk),
|
|
194
|
+
);
|
|
216
195
|
}
|
|
217
196
|
|
|
218
|
-
return new FormattedViemError(
|
|
197
|
+
return new FormattedViemError(body);
|
|
219
198
|
}
|
|
220
199
|
|
|
221
200
|
function stripAbis(obj: any) {
|
|
@@ -241,156 +220,6 @@ function stripAbis(obj: any) {
|
|
|
241
220
|
});
|
|
242
221
|
}
|
|
243
222
|
|
|
244
|
-
function extractAndFormatRequestBody(message: string): string {
|
|
245
|
-
// First check if message is extremely large and contains very large hex strings
|
|
246
|
-
if (message.length > 50000) {
|
|
247
|
-
message = replaceHexStrings(message, { minLength: 10000, truncateLength: 200 });
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Add a specific check for RPC calls with large params
|
|
251
|
-
if (message.includes('"method":"eth_sendRawTransaction"')) {
|
|
252
|
-
message = replaceHexStrings(message, {
|
|
253
|
-
pattern: /"params":\s*\[\s*"(0x[a-fA-F0-9]{1000,})"\s*\]/g,
|
|
254
|
-
transform: hex => `"params":["${truncateHex(hex, 200)}"]`,
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// First handle Request body JSON
|
|
259
|
-
const requestBodyRegex = /Request body: ({[\s\S]*?})\n/g;
|
|
260
|
-
let result = message.replace(requestBodyRegex, (match, body) => {
|
|
261
|
-
return `Request body: ${formatRequestBody(body)}\n`;
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
// Then handle Arguments section
|
|
265
|
-
const argsRegex = /((?:Request |Estimate Gas )?Arguments:[\s\S]*?(?=\n\n|$))/g;
|
|
266
|
-
result = result.replace(argsRegex, section => {
|
|
267
|
-
const lines = section.split('\n');
|
|
268
|
-
const processedLines = lines.map(line => {
|
|
269
|
-
// Check if line contains a colon followed by content
|
|
270
|
-
const colonIndex = line.indexOf(':');
|
|
271
|
-
if (colonIndex !== -1) {
|
|
272
|
-
const [prefix, content] = [line.slice(0, colonIndex + 1), line.slice(colonIndex + 1).trim()];
|
|
273
|
-
// If content contains a hex string, truncate it
|
|
274
|
-
if (content.includes('0x')) {
|
|
275
|
-
const processedContent = replaceHexStrings(content);
|
|
276
|
-
return `${prefix} ${processedContent}`;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return line;
|
|
280
|
-
});
|
|
281
|
-
return processedLines.join('\n');
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
// Finally, catch any remaining hex strings in the message
|
|
285
|
-
result = replaceHexStrings(result);
|
|
286
|
-
|
|
287
|
-
return result;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
function truncateHex(hex: string, length = 100) {
|
|
291
|
-
if (!hex || typeof hex !== 'string') {
|
|
292
|
-
return hex;
|
|
293
|
-
}
|
|
294
|
-
if (!hex.startsWith('0x')) {
|
|
295
|
-
return hex;
|
|
296
|
-
}
|
|
297
|
-
if (hex.length <= length * 2) {
|
|
298
|
-
return hex;
|
|
299
|
-
}
|
|
300
|
-
// For extremely large hex strings, use more aggressive truncation
|
|
301
|
-
if (hex.length > 10000) {
|
|
302
|
-
return `${hex.slice(0, length)}...<${hex.length - length * 2} chars omitted>...${hex.slice(-length)}`;
|
|
303
|
-
}
|
|
304
|
-
return `${hex.slice(0, length)}...${hex.slice(-length)}`;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
function replaceHexStrings(
|
|
308
|
-
text: string,
|
|
309
|
-
options: {
|
|
310
|
-
minLength?: number;
|
|
311
|
-
maxLength?: number;
|
|
312
|
-
truncateLength?: number;
|
|
313
|
-
pattern?: RegExp;
|
|
314
|
-
transform?: (hex: string) => string;
|
|
315
|
-
} = {},
|
|
316
|
-
): string {
|
|
317
|
-
const {
|
|
318
|
-
minLength = 10,
|
|
319
|
-
maxLength = Infinity,
|
|
320
|
-
truncateLength = 100,
|
|
321
|
-
pattern,
|
|
322
|
-
transform = hex => truncateHex(hex, truncateLength),
|
|
323
|
-
} = options;
|
|
324
|
-
|
|
325
|
-
const hexRegex = pattern ?? new RegExp(`(0x[a-fA-F0-9]{${minLength},${maxLength}})`, 'g');
|
|
326
|
-
return text.replace(hexRegex, match => transform(match));
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function formatRequestBody(body: string) {
|
|
330
|
-
try {
|
|
331
|
-
// Special handling for eth_sendRawTransaction
|
|
332
|
-
if (body.includes('"method":"eth_sendRawTransaction"')) {
|
|
333
|
-
try {
|
|
334
|
-
const parsed = JSON.parse(body);
|
|
335
|
-
if (parsed.params && Array.isArray(parsed.params) && parsed.params.length > 0) {
|
|
336
|
-
// These are likely large transaction hex strings
|
|
337
|
-
parsed.params = parsed.params.map((param: any) => {
|
|
338
|
-
if (typeof param === 'string' && param.startsWith('0x') && param.length > 1000) {
|
|
339
|
-
return truncateHex(param, 200);
|
|
340
|
-
}
|
|
341
|
-
return param;
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
return JSON.stringify(parsed, null, 2);
|
|
345
|
-
} catch {
|
|
346
|
-
// If specific parsing fails, fall back to regex-based truncation
|
|
347
|
-
return replaceHexStrings(body, {
|
|
348
|
-
pattern: /"params":\s*\[\s*"(0x[a-fA-F0-9]{1000,})"\s*\]/g,
|
|
349
|
-
transform: hex => `"params":["${truncateHex(hex, 200)}"]`,
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
// For extremely large request bodies, use simple truncation instead of parsing
|
|
355
|
-
if (body.length > 50000) {
|
|
356
|
-
const jsonStart = body.indexOf('{');
|
|
357
|
-
const jsonEnd = body.lastIndexOf('}');
|
|
358
|
-
if (jsonStart >= 0 && jsonEnd > jsonStart) {
|
|
359
|
-
return replaceHexStrings(body, { minLength: 10000, truncateLength: 200 });
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
const parsed = JSON.parse(body);
|
|
364
|
-
|
|
365
|
-
// Process the entire request body
|
|
366
|
-
const processed = processParams(parsed);
|
|
367
|
-
return JSON.stringify(processed, null, 2);
|
|
368
|
-
} catch {
|
|
369
|
-
// If JSON parsing fails, do a simple truncation of any large hex strings
|
|
370
|
-
return replaceHexStrings(body, { minLength: 1000, truncateLength: 150 });
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// Recursively process all parameters that might contain hex strings
|
|
375
|
-
function processParams(obj: any): any {
|
|
376
|
-
if (Array.isArray(obj)) {
|
|
377
|
-
return obj.map(item => processParams(item));
|
|
378
|
-
}
|
|
379
|
-
if (typeof obj === 'object' && obj !== null) {
|
|
380
|
-
const result: any = {};
|
|
381
|
-
for (const [key, value] of Object.entries(obj)) {
|
|
382
|
-
result[key] = processParams(value);
|
|
383
|
-
}
|
|
384
|
-
return result;
|
|
385
|
-
}
|
|
386
|
-
if (typeof obj === 'string') {
|
|
387
|
-
if (obj.startsWith('0x')) {
|
|
388
|
-
return truncateHex(obj);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return obj;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
223
|
export function tryGetCustomErrorName(err: any) {
|
|
395
224
|
try {
|
|
396
225
|
// See https://viem.sh/docs/contract/simulateContract#handling-custom-errors
|
|
@@ -405,3 +234,31 @@ export function tryGetCustomErrorName(err: any) {
|
|
|
405
234
|
return undefined;
|
|
406
235
|
}
|
|
407
236
|
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Type guard to check if a transaction is a blob transaction (EIP-4844).
|
|
240
|
+
* Blob transactions have maxFeePerBlobGas and blobVersionedHashes fields.
|
|
241
|
+
*/
|
|
242
|
+
export function isBlobTransaction(tx: FormattedTransaction): tx is FormattedTransaction & {
|
|
243
|
+
maxFeePerBlobGas: bigint;
|
|
244
|
+
blobVersionedHashes: readonly Hex[];
|
|
245
|
+
} {
|
|
246
|
+
return (
|
|
247
|
+
'maxFeePerBlobGas' in tx &&
|
|
248
|
+
tx.maxFeePerBlobGas !== undefined &&
|
|
249
|
+
'blobVersionedHashes' in tx &&
|
|
250
|
+
tx.blobVersionedHashes !== undefined
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Calculates a percentile from an array of bigints
|
|
256
|
+
*/
|
|
257
|
+
export function calculatePercentile(values: bigint[], percentile: number): bigint {
|
|
258
|
+
if (values.length === 0) {
|
|
259
|
+
return 0n;
|
|
260
|
+
}
|
|
261
|
+
const sorted = [...values].sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
|
|
262
|
+
const index = Math.ceil((sorted.length - 1) * (percentile / 100));
|
|
263
|
+
return sorted[index];
|
|
264
|
+
}
|
|
@@ -4,7 +4,7 @@ import { EthAddress } from '@aztec/foundation/eth-address';
|
|
|
4
4
|
* The address of the zk passport verifier on sepolia
|
|
5
5
|
* get address from: ROOT/l1-contracts/lib/circuits/src/solidity/deployments/deployment-11155111.json
|
|
6
6
|
*/
|
|
7
|
-
export const ZK_PASSPORT_VERIFIER_ADDRESS = EthAddress.fromString('
|
|
7
|
+
export const ZK_PASSPORT_VERIFIER_ADDRESS = EthAddress.fromString('0x3101Bad9eA5fACadA5554844a1a88F7Fe48D4DE0');
|
|
8
8
|
/**
|
|
9
9
|
* The default domain of the zk passport site
|
|
10
10
|
*/
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { SecretValue } from '@aztec/foundation/config';
|
|
2
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
|
-
import type { Fr } from '@aztec/foundation/fields';
|
|
4
|
-
import { type Logger } from '@aztec/foundation/log';
|
|
5
|
-
import { DateProvider } from '@aztec/foundation/timer';
|
|
6
|
-
import type { Abi, Narrow } from 'abitype';
|
|
7
|
-
import { type Chain, type ContractConstructorArgs, type HDAccount, type Hex, type PrivateKeyAccount } from 'viem';
|
|
8
|
-
import { type L1ContractsConfig } from './config.js';
|
|
9
|
-
import { RollupContract } from './contracts/rollup.js';
|
|
10
|
-
import type { L1ContractAddresses } from './l1_contract_addresses.js';
|
|
11
|
-
import { type GasPrice, type L1GasConfig, type L1TxRequest, L1TxUtils, type L1TxUtilsConfig } from './l1_tx_utils.js';
|
|
12
|
-
import type { ExtendedViemWalletClient } from './types.js';
|
|
13
|
-
export declare const DEPLOYER_ADDRESS: Hex;
|
|
14
|
-
export type Operator = {
|
|
15
|
-
attester: EthAddress;
|
|
16
|
-
withdrawer: EthAddress;
|
|
17
|
-
bn254SecretKey: SecretValue<bigint>;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Return type of the deployL1Contract function.
|
|
21
|
-
*/
|
|
22
|
-
export type DeployL1ContractsReturnType = {
|
|
23
|
-
/** Extended Wallet Client Type. */
|
|
24
|
-
l1Client: ExtendedViemWalletClient;
|
|
25
|
-
/** The currently deployed l1 contract addresses */
|
|
26
|
-
l1ContractAddresses: L1ContractAddresses;
|
|
27
|
-
/** Version of the current rollup contract. */
|
|
28
|
-
rollupVersion: number;
|
|
29
|
-
};
|
|
30
|
-
export interface LinkReferences {
|
|
31
|
-
[fileName: string]: {
|
|
32
|
-
[contractName: string]: ReadonlyArray<{
|
|
33
|
-
start: number;
|
|
34
|
-
length: number;
|
|
35
|
-
}>;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface Libraries {
|
|
39
|
-
linkReferences: LinkReferences;
|
|
40
|
-
libraryCode: Record<string, ContractArtifacts>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Contract artifacts
|
|
44
|
-
*/
|
|
45
|
-
export interface ContractArtifacts<TAbi extends Abi | readonly unknown[] = Abi> {
|
|
46
|
-
/**
|
|
47
|
-
* The contract name.
|
|
48
|
-
*/
|
|
49
|
-
name: string;
|
|
50
|
-
/**
|
|
51
|
-
* The contract abi.
|
|
52
|
-
*/
|
|
53
|
-
contractAbi: Narrow<TAbi>;
|
|
54
|
-
/**
|
|
55
|
-
* The contract bytecode
|
|
56
|
-
*/
|
|
57
|
-
contractBytecode: Hex;
|
|
58
|
-
/**
|
|
59
|
-
* The contract libraries
|
|
60
|
-
*/
|
|
61
|
-
libraries?: Libraries;
|
|
62
|
-
}
|
|
63
|
-
export type VerificationLibraryEntry = {
|
|
64
|
-
file: string;
|
|
65
|
-
contract: string;
|
|
66
|
-
address: string;
|
|
67
|
-
};
|
|
68
|
-
export type VerificationRecord = {
|
|
69
|
-
name: string;
|
|
70
|
-
address: string;
|
|
71
|
-
constructorArgsHex: Hex;
|
|
72
|
-
libraries: VerificationLibraryEntry[];
|
|
73
|
-
};
|
|
74
|
-
export interface DeployL1ContractsArgs extends Omit<L1ContractsConfig, keyof L1TxUtilsConfig> {
|
|
75
|
-
/** The vk tree root. */
|
|
76
|
-
vkTreeRoot: Fr;
|
|
77
|
-
/** The protocol contract tree root. */
|
|
78
|
-
protocolContractTreeRoot: Fr;
|
|
79
|
-
/** The genesis root of the archive tree. */
|
|
80
|
-
genesisArchiveRoot: Fr;
|
|
81
|
-
/** The salt for CREATE2 deployment. */
|
|
82
|
-
salt: number | undefined;
|
|
83
|
-
/** The initial validators for the rollup contract. */
|
|
84
|
-
initialValidators?: Operator[];
|
|
85
|
-
/** Configuration for the L1 tx utils module. */
|
|
86
|
-
l1TxConfig?: Partial<L1TxUtilsConfig>;
|
|
87
|
-
/** Enable fast mode for deployments (fire and forget transactions) */
|
|
88
|
-
acceleratedTestDeployments?: boolean;
|
|
89
|
-
/** The initial balance of the fee juice portal. This is the amount of fee juice that is prefunded to accounts */
|
|
90
|
-
feeJuicePortalInitialBalance?: bigint;
|
|
91
|
-
/** Whether to deploy the real verifier or the mock verifier */
|
|
92
|
-
realVerifier: boolean;
|
|
93
|
-
/** The zk passport args */
|
|
94
|
-
zkPassportArgs?: ZKPassportArgs;
|
|
95
|
-
}
|
|
96
|
-
export interface ZKPassportArgs {
|
|
97
|
-
/** Whether to use the mock zk passport verifier */
|
|
98
|
-
mockZkPassportVerifier?: boolean;
|
|
99
|
-
/** The domain of the zk passport (url) */
|
|
100
|
-
zkPassportDomain?: string;
|
|
101
|
-
/** The scope of the zk passport (personhood, etc) */
|
|
102
|
-
zkPassportScope?: string;
|
|
103
|
-
}
|
|
104
|
-
export declare const deploySharedContracts: (l1Client: ExtendedViemWalletClient, deployer: L1Deployer, args: DeployL1ContractsArgs, logger: Logger) => Promise<{
|
|
105
|
-
feeAssetAddress: EthAddress;
|
|
106
|
-
feeAssetHandlerAddress: EthAddress | undefined;
|
|
107
|
-
stakingAssetAddress: EthAddress;
|
|
108
|
-
stakingAssetHandlerAddress: EthAddress | undefined;
|
|
109
|
-
zkPassportVerifierAddress: EthAddress | undefined;
|
|
110
|
-
registryAddress: EthAddress;
|
|
111
|
-
gseAddress: EthAddress;
|
|
112
|
-
governanceAddress: EthAddress;
|
|
113
|
-
governanceProposerAddress: EthAddress;
|
|
114
|
-
coinIssuerAddress: EthAddress;
|
|
115
|
-
rewardDistributorAddress: EthAddress;
|
|
116
|
-
}>;
|
|
117
|
-
/**
|
|
118
|
-
* Deploys a new rollup, using the existing canonical version to derive certain values (addresses of assets etc).
|
|
119
|
-
* @param clients - The L1 clients.
|
|
120
|
-
* @param args - The deployment arguments.
|
|
121
|
-
* @param registryAddress - The address of the registry.
|
|
122
|
-
* @param logger - The logger.
|
|
123
|
-
* @param txUtilsConfig - The L1 tx utils config.
|
|
124
|
-
*/
|
|
125
|
-
export declare const deployRollupForUpgrade: (extendedClient: ExtendedViemWalletClient, args: Omit<DeployL1ContractsArgs, "governanceProposerQuorum" | "governanceProposerRoundSize" | "ejectionThreshold" | "activationThreshold">, registryAddress: EthAddress, logger: Logger, txUtilsConfig: L1TxUtilsConfig) => Promise<{
|
|
126
|
-
rollup: RollupContract;
|
|
127
|
-
slashFactoryAddress: EthAddress;
|
|
128
|
-
}>;
|
|
129
|
-
export declare const deploySlashFactory: (deployer: L1Deployer, rollupAddress: Hex, logger: Logger) => Promise<EthAddress>;
|
|
130
|
-
export declare const deployUpgradePayload: (deployer: L1Deployer, addresses: Pick<L1ContractAddresses, "registryAddress" | "rollupAddress">) => Promise<EthAddress>;
|
|
131
|
-
/**
|
|
132
|
-
* Deploys a new rollup contract, funds and initializes the fee juice portal, and initializes the validator set.
|
|
133
|
-
*/
|
|
134
|
-
export declare const deployRollup: (extendedClient: ExtendedViemWalletClient, deployer: L1Deployer, args: Omit<DeployL1ContractsArgs, "governanceProposerQuorum" | "governanceProposerRoundSize" | "ejectionThreshold" | "activationThreshold">, addresses: Pick<L1ContractAddresses, "feeJuiceAddress" | "registryAddress" | "rewardDistributorAddress" | "stakingAssetAddress" | "gseAddress" | "governanceAddress">, logger: Logger) => Promise<{
|
|
135
|
-
rollup: RollupContract;
|
|
136
|
-
slashFactoryAddress: EthAddress;
|
|
137
|
-
}>;
|
|
138
|
-
export declare const handoverToGovernance: (extendedClient: ExtendedViemWalletClient, deployer: L1Deployer, registryAddress: EthAddress, gseAddress: EthAddress, coinIssuerAddress: EthAddress, feeAssetAddress: EthAddress, governanceAddress: EthAddress, logger: Logger, acceleratedTestDeployments: boolean | undefined) => Promise<void>;
|
|
139
|
-
export declare const addMultipleValidators: (extendedClient: ExtendedViemWalletClient, deployer: L1Deployer, gseAddress: Hex, rollupAddress: Hex, stakingAssetAddress: Hex, validators: Operator[], acceleratedTestDeployments: boolean | undefined, logger: Logger) => Promise<void>;
|
|
140
|
-
/**
|
|
141
|
-
* Initialize the fee asset handler and make it a minter on the fee asset.
|
|
142
|
-
* @note This function will only be used for testing purposes.
|
|
143
|
-
*
|
|
144
|
-
* @param extendedClient - The L1 clients.
|
|
145
|
-
* @param deployer - The L1 deployer.
|
|
146
|
-
* @param feeAssetAddress - The address of the fee asset.
|
|
147
|
-
* @param logger - The logger.
|
|
148
|
-
*/
|
|
149
|
-
export declare const cheat_initializeFeeAssetHandler: (extendedClient: ExtendedViemWalletClient, deployer: L1Deployer, feeAssetAddress: EthAddress, logger: Logger) => Promise<{
|
|
150
|
-
feeAssetHandlerAddress: EthAddress;
|
|
151
|
-
txHash: Hex;
|
|
152
|
-
}>;
|
|
153
|
-
/**
|
|
154
|
-
* Deploys the aztec L1 contracts; Rollup & (optionally) Decoder Helper.
|
|
155
|
-
* @param rpcUrls - List of URLs of the ETH RPC to use for deployment.
|
|
156
|
-
* @param account - Private Key or HD Account that will deploy the contracts.
|
|
157
|
-
* @param chain - The chain instance to deploy to.
|
|
158
|
-
* @param logger - A logger object.
|
|
159
|
-
* @param args - Arguments for initialization of L1 contracts
|
|
160
|
-
* @returns A list of ETH addresses of the deployed contracts.
|
|
161
|
-
*/
|
|
162
|
-
export declare const deployL1Contracts: (rpcUrls: string[], account: HDAccount | PrivateKeyAccount, chain: Chain, logger: Logger, args: DeployL1ContractsArgs, txUtilsConfig?: L1TxUtilsConfig, createVerificationJson?: string | false) => Promise<DeployL1ContractsReturnType>;
|
|
163
|
-
export declare class L1Deployer {
|
|
164
|
-
readonly client: ExtendedViemWalletClient;
|
|
165
|
-
private acceleratedTestDeployments;
|
|
166
|
-
private logger;
|
|
167
|
-
private txUtilsConfig?;
|
|
168
|
-
private createVerificationJson;
|
|
169
|
-
private salt;
|
|
170
|
-
private txHashes;
|
|
171
|
-
readonly l1TxUtils: L1TxUtils;
|
|
172
|
-
readonly verificationRecords: VerificationRecord[];
|
|
173
|
-
constructor(client: ExtendedViemWalletClient, maybeSalt: number | undefined, dateProvider?: DateProvider, acceleratedTestDeployments?: boolean, logger?: Logger, txUtilsConfig?: L1TxUtilsConfig | undefined, createVerificationJson?: boolean);
|
|
174
|
-
deploy<const TAbi extends Abi>(params: ContractArtifacts<TAbi>, args?: ContractConstructorArgs<TAbi>, opts?: {
|
|
175
|
-
gasLimit?: bigint;
|
|
176
|
-
}): Promise<EthAddress>;
|
|
177
|
-
waitForDeployments(): Promise<void>;
|
|
178
|
-
sendTransaction(tx: L1TxRequest, options?: L1GasConfig): Promise<{
|
|
179
|
-
txHash: Hex;
|
|
180
|
-
gasLimit: bigint;
|
|
181
|
-
gasPrice: GasPrice;
|
|
182
|
-
}>;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Helper function to deploy ETH contracts.
|
|
186
|
-
* @param walletClient - A viem WalletClient.
|
|
187
|
-
* @param publicClient - A viem PublicClient.
|
|
188
|
-
* @param abi - The ETH contract's ABI (as abitype's Abi).
|
|
189
|
-
* @param bytecode - The ETH contract's bytecode.
|
|
190
|
-
* @param args - Constructor arguments for the contract.
|
|
191
|
-
* @param salt - Optional salt for CREATE2 deployment (does not wait for deployment tx to be mined if set, does not send tx if contract already exists).
|
|
192
|
-
* @returns The ETH address the contract was deployed to.
|
|
193
|
-
*/
|
|
194
|
-
export declare function deployL1Contract(extendedClient: ExtendedViemWalletClient, abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args?: readonly unknown[], opts?: {
|
|
195
|
-
salt?: Hex;
|
|
196
|
-
libraries?: Libraries;
|
|
197
|
-
logger?: Logger;
|
|
198
|
-
l1TxUtils?: L1TxUtils;
|
|
199
|
-
gasLimit?: bigint;
|
|
200
|
-
acceleratedTestDeployments?: boolean;
|
|
201
|
-
}): Promise<{
|
|
202
|
-
address: EthAddress;
|
|
203
|
-
txHash: Hex | undefined;
|
|
204
|
-
deployedLibraries?: VerificationLibraryEntry[];
|
|
205
|
-
}>;
|
|
206
|
-
export declare function getExpectedAddress(abi: Narrow<Abi | readonly unknown[]>, bytecode: Hex, args: readonly unknown[], salt: Hex): {
|
|
207
|
-
address: `0x${string}`;
|
|
208
|
-
paddedSalt: `0x${string}`;
|
|
209
|
-
calldata: `0x${string}`;
|
|
210
|
-
};
|
|
211
|
-
//# sourceMappingURL=deploy_l1_contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy_l1_contracts.d.ts","sourceRoot":"","sources":["../src/deploy_l1_contracts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAwB,MAAM,0BAA0B,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EACL,KAAK,KAAK,EACV,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,iBAAiB,EAUvB,MAAM,MAAM,CAAC;AAKd,OAAO,EACL,KAAK,iBAAiB,EAOvB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAkB7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,SAAS,EACT,KAAK,eAAe,EAGrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAA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