@aztec/end-to-end 0.85.0-nightly.20250422 → 0.85.0-nightly.20250424
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/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/client_flows_benchmark.js +6 -7
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +2 -2
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +11 -11
- package/dest/e2e_epochs/epochs_test.d.ts +2 -2
- package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.js +1 -1
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +7 -11
- package/dest/e2e_p2p/p2p_network.d.ts +62 -62
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +12 -12
- package/dest/e2e_prover/e2e_prover_test.d.ts.map +1 -1
- package/dest/e2e_prover/e2e_prover_test.js +5 -5
- package/dest/fixtures/l1_to_l2_messaging.d.ts +2 -3
- package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
- package/dest/fixtures/l1_to_l2_messaging.js +3 -3
- package/dest/fixtures/setup_l1_contracts.d.ts +1 -1
- package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
- package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
- package/dest/fixtures/snapshot_manager.js +9 -11
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +14 -17
- package/dest/shared/cross_chain_test_harness.d.ts +7 -11
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +14 -16
- package/dest/shared/gas_portal_test_harness.d.ts +6 -11
- package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
- package/dest/shared/gas_portal_test_harness.js +8 -10
- package/dest/shared/uniswap_l1_l2.d.ts +3 -5
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/shared/uniswap_l1_l2.js +18 -19
- package/dest/spartan/setup_test_wallets.js +3 -3
- package/package.json +33 -33
- package/src/bench/client_flows/client_flows_benchmark.ts +6 -8
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +14 -18
- package/src/e2e_epochs/epochs_test.ts +4 -3
- package/src/e2e_fees/fees_test.ts +7 -11
- package/src/e2e_p2p/p2p_network.ts +13 -24
- package/src/e2e_prover/e2e_prover_test.ts +5 -10
- package/src/fixtures/l1_to_l2_messaging.ts +5 -14
- package/src/fixtures/setup_l1_contracts.ts +1 -2
- package/src/fixtures/snapshot_manager.ts +9 -11
- package/src/fixtures/utils.ts +16 -19
- package/src/shared/cross_chain_test_harness.ts +14 -31
- package/src/shared/gas_portal_test_harness.ts +9 -14
- package/src/shared/uniswap_l1_l2.ts +25 -43
- package/src/spartan/setup_test_wallets.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_flows_benchmark.d.ts","sourceRoot":"","sources":["../../../src/bench/client_flows/client_flows_benchmark.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,SAAS,EACd,qBAAqB,EACrB,8BAA8B,EAC9B,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,KAAK,GAAG,EACR,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,MAAM,EAEZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"client_flows_benchmark.d.ts","sourceRoot":"","sources":["../../../src/bench/client_flows/client_flows_benchmark.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,SAAS,EAC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BhD,+BAA+B,CAAC,WAAW,EAAE,WAAW;IAmBxD,sBAAsB;IA0BtB,wCAAwC,CAAC,MAAM,EAAE,MAAM;IAQ7D,mCAAmC,CAAC,MAAM,EAAE,MAAM;IAIlD,qCAAqC,CAAC,OAAO,EAAE,MAAM;IAIrD,iCAAiC,CAAC,MAAM,EAAE,MAAM;CAGxD"}
|
|
@@ -3,7 +3,7 @@ import { SchnorrAccountContractArtifact, getSchnorrAccount, getSchnorrWallet } f
|
|
|
3
3
|
import { FeeJuicePaymentMethod, FeeJuicePaymentMethodWithClaim, PrivateFeePaymentMethod, SponsoredFeePaymentMethod, createLogger } from '@aztec/aztec.js';
|
|
4
4
|
import { CheatCodes } from '@aztec/aztec.js/testing';
|
|
5
5
|
import { FEE_FUNDING_FOR_TESTER_ACCOUNT } from '@aztec/constants';
|
|
6
|
-
import { RollupContract,
|
|
6
|
+
import { RollupContract, createExtendedL1Client, deployL1Contract } from '@aztec/ethereum';
|
|
7
7
|
import { ChainMonitor } from '@aztec/ethereum/test';
|
|
8
8
|
import { randomBytes } from '@aztec/foundation/crypto';
|
|
9
9
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
@@ -172,8 +172,7 @@ export class ClientFlowsBenchmark {
|
|
|
172
172
|
aztecNode: context.aztecNode,
|
|
173
173
|
aztecNodeAdmin: context.aztecNode,
|
|
174
174
|
pxeService: context.pxe,
|
|
175
|
-
|
|
176
|
-
walletClient: context.deployL1ContractsValues.walletClient,
|
|
175
|
+
l1Client: context.deployL1ContractsValues.l1Client,
|
|
177
176
|
wallet: this.adminWallet,
|
|
178
177
|
logger: this.logger
|
|
179
178
|
});
|
|
@@ -228,14 +227,14 @@ export class ClientFlowsBenchmark {
|
|
|
228
227
|
});
|
|
229
228
|
}
|
|
230
229
|
async createCrossChainTestHarness(owner) {
|
|
231
|
-
const
|
|
232
|
-
const underlyingERC20Address = await deployL1Contract(
|
|
230
|
+
const l1Client = createExtendedL1Client(this.context.aztecNodeConfig.l1RpcUrls, MNEMONIC);
|
|
231
|
+
const underlyingERC20Address = await deployL1Contract(l1Client, TestERC20Abi, TestERC20Bytecode, [
|
|
233
232
|
'Underlying',
|
|
234
233
|
'UND',
|
|
235
|
-
|
|
234
|
+
l1Client.account.address
|
|
236
235
|
]).then(({ address })=>address);
|
|
237
236
|
this.logger.verbose(`Setting up cross chain harness...`);
|
|
238
|
-
const crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.pxe,
|
|
237
|
+
const crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.pxe, l1Client, owner, this.logger, underlyingERC20Address);
|
|
239
238
|
this.logger.verbose(`L2 token deployed to: ${crossChainTestHarness.l2Token.address}`);
|
|
240
239
|
return crossChainTestHarness;
|
|
241
240
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AztecNodeConfig } from '@aztec/aztec-node';
|
|
2
2
|
import { type AccountWallet, AztecAddress, type AztecNode, type CompleteAddress, EthAddress, type Logger, type PXE } from '@aztec/aztec.js';
|
|
3
3
|
import { CheatCodes } from '@aztec/aztec.js/testing';
|
|
4
|
-
import { type
|
|
4
|
+
import { type ExtendedViemWalletClient } from '@aztec/ethereum';
|
|
5
5
|
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
6
6
|
import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
|
|
7
7
|
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
@@ -14,7 +14,7 @@ export declare class CrossChainMessagingTest {
|
|
|
14
14
|
aztecNode: AztecNode;
|
|
15
15
|
pxe: PXE;
|
|
16
16
|
aztecNodeConfig: AztecNodeConfig;
|
|
17
|
-
|
|
17
|
+
l1Client: ExtendedViemWalletClient | undefined;
|
|
18
18
|
user1Wallet: AccountWallet;
|
|
19
19
|
user2Wallet: AccountWallet;
|
|
20
20
|
crossChainTestHarness: CrossChainTestHarness;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross_chain_messaging_test.d.ts","sourceRoot":"","sources":["../../src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EAET,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"cross_chain_messaging_test.d.ts","sourceRoot":"","sources":["../../src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EAET,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,wBAAwB,EAA4C,MAAM,iBAAiB,CAAC;AAE1G,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAK3E,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAI9E,qBAAa,uBAAuB;IAClC,OAAO,CAAC,eAAe,CAAmB;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,EAAE,CAAM;IAC9B,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,SAAS,EAAG,SAAS,CAAC;IACtB,GAAG,EAAG,GAAG,CAAC;IACV,eAAe,EAAG,eAAe,CAAC;IAElC,QAAQ,EAAG,wBAAwB,GAAG,SAAS,CAAC;IAEhD,WAAW,EAAG,aAAa,CAAC;IAC5B,WAAW,EAAG,aAAa,CAAC;IAC5B,qBAAqB,EAAG,qBAAqB,CAAC;IAC9C,UAAU,EAAG,UAAU,CAAC;IACxB,YAAY,EAAG,YAAY,CAAC;IAC5B,OAAO,EAAG,aAAa,CAAC;IACxB,QAAQ,EAAG,mBAAmB,CAAC;IAE/B,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,UAAU,EAAG,UAAU,CAAC;gBAEZ,QAAQ,EAAE,MAAM;IAKtB,YAAY;IAIZ,KAAK;IAQX,QAAQ,YACA,MAAM,SACL,CAAC,OAAO,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,YACxC,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KACtE,QAAQ,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAIR,kBAAkB;CA6FzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSchnorrWallet } from '@aztec/accounts/schnorr';
|
|
2
2
|
import { AztecAddress, EthAddress, createLogger } from '@aztec/aztec.js';
|
|
3
3
|
import { CheatCodes } from '@aztec/aztec.js/testing';
|
|
4
|
-
import {
|
|
4
|
+
import { createExtendedL1Client, deployL1Contract } from '@aztec/ethereum';
|
|
5
5
|
import { InboxAbi, OutboxAbi, TestERC20Abi, TestERC20Bytecode } from '@aztec/l1-artifacts';
|
|
6
6
|
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
7
7
|
import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
|
|
@@ -18,7 +18,7 @@ export class CrossChainMessagingTest {
|
|
|
18
18
|
aztecNode;
|
|
19
19
|
pxe;
|
|
20
20
|
aztecNodeConfig;
|
|
21
|
-
|
|
21
|
+
l1Client;
|
|
22
22
|
user1Wallet;
|
|
23
23
|
user2Wallet;
|
|
24
24
|
crossChainTestHarness;
|
|
@@ -65,14 +65,14 @@ export class CrossChainMessagingTest {
|
|
|
65
65
|
// Move this account thing to addAccounts above?
|
|
66
66
|
this.logger.verbose(`Public deploy accounts...`);
|
|
67
67
|
await publicDeployAccounts(this.wallets[0], this.accounts.slice(0, 3));
|
|
68
|
-
|
|
69
|
-
const underlyingERC20Address = await deployL1Contract(
|
|
68
|
+
this.l1Client = createExtendedL1Client(this.aztecNodeConfig.l1RpcUrls, MNEMONIC);
|
|
69
|
+
const underlyingERC20Address = await deployL1Contract(this.l1Client, TestERC20Abi, TestERC20Bytecode, [
|
|
70
70
|
'Underlying',
|
|
71
71
|
'UND',
|
|
72
|
-
|
|
72
|
+
this.l1Client.account.address
|
|
73
73
|
]).then(({ address })=>address);
|
|
74
74
|
this.logger.verbose(`Setting up cross chain harness...`);
|
|
75
|
-
this.crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.pxe,
|
|
75
|
+
this.crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.pxe, this.l1Client, this.wallets[0], this.logger, underlyingERC20Address);
|
|
76
76
|
this.logger.verbose(`L2 token deployed to: ${this.crossChainTestHarness.l2Token.address}`);
|
|
77
77
|
return this.crossChainTestHarness.toCrossChainContext();
|
|
78
78
|
}, async (crossChainContext)=>{
|
|
@@ -82,19 +82,19 @@ export class CrossChainMessagingTest {
|
|
|
82
82
|
this.ethAccount = EthAddress.fromString(crossChainContext.ethAccount.toString());
|
|
83
83
|
this.ownerAddress = AztecAddress.fromString(crossChainContext.ownerAddress.toString());
|
|
84
84
|
const tokenPortalAddress = EthAddress.fromString(crossChainContext.tokenPortal.toString());
|
|
85
|
-
const
|
|
85
|
+
const l1Client = createExtendedL1Client(this.aztecNodeConfig.l1RpcUrls, MNEMONIC);
|
|
86
86
|
const inbox = getContract({
|
|
87
87
|
address: this.aztecNodeConfig.l1Contracts.inboxAddress.toString(),
|
|
88
88
|
abi: InboxAbi,
|
|
89
|
-
client:
|
|
89
|
+
client: l1Client
|
|
90
90
|
});
|
|
91
91
|
const outbox = getContract({
|
|
92
92
|
address: this.aztecNodeConfig.l1Contracts.outboxAddress.toString(),
|
|
93
93
|
abi: OutboxAbi,
|
|
94
|
-
client:
|
|
94
|
+
client: l1Client
|
|
95
95
|
});
|
|
96
|
-
this.crossChainTestHarness = new CrossChainTestHarness(this.aztecNode, this.pxe, this.logger, this.l2Token, this.l2Bridge, this.ethAccount, tokenPortalAddress, crossChainContext.underlying,
|
|
97
|
-
this.
|
|
96
|
+
this.crossChainTestHarness = new CrossChainTestHarness(this.aztecNode, this.pxe, this.logger, this.l2Token, this.l2Bridge, this.ethAccount, tokenPortalAddress, crossChainContext.underlying, l1Client, this.aztecNodeConfig.l1Contracts, this.user1Wallet);
|
|
97
|
+
this.l1Client = l1Client;
|
|
98
98
|
this.inbox = inbox;
|
|
99
99
|
this.outbox = outbox;
|
|
100
100
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AztecNodeService } from '@aztec/aztec-node';
|
|
2
2
|
import { type Logger } from '@aztec/aztec.js';
|
|
3
|
+
import type { ViemClient } from '@aztec/ethereum';
|
|
3
4
|
import { RollupContract } from '@aztec/ethereum/contracts';
|
|
4
5
|
import { ChainMonitor, type Delayer } from '@aztec/ethereum/test';
|
|
5
6
|
import { ProverNode } from '@aztec/prover-node';
|
|
6
7
|
import type { L2BlockNumber } from '@aztec/stdlib/block';
|
|
7
8
|
import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
|
|
8
|
-
import type { PublicClient } from 'viem';
|
|
9
9
|
import { type EndToEndContext, type SetupOptions } from '../fixtures/utils.js';
|
|
10
10
|
export declare const L1_BLOCK_TIME_IN_S: number;
|
|
11
11
|
export declare const L2_SLOT_DURATION_IN_L1_SLOTS = 2;
|
|
@@ -20,7 +20,7 @@ export type EpochsTestOpts = Partial<Pick<SetupOptions, 'startProverNode' | 'azt
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class EpochsTestContext {
|
|
22
22
|
context: EndToEndContext;
|
|
23
|
-
l1Client:
|
|
23
|
+
l1Client: ViemClient;
|
|
24
24
|
rollup: RollupContract;
|
|
25
25
|
constants: L1RollupConstants;
|
|
26
26
|
logger: Logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epochs_test.d.ts","sourceRoot":"","sources":["../../src/e2e_epochs/epochs_test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAM,KAAK,MAAM,EAA8D,MAAM,iBAAiB,CAAC;AAC9G,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAkB,KAAK,OAAO,EAAwB,MAAM,sBAAsB,CAAC;AAGxG,OAAO,EAAE,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AAIrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"epochs_test.d.ts","sourceRoot":"","sources":["../../src/e2e_epochs/epochs_test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAM,KAAK,MAAM,EAA8D,MAAM,iBAAiB,CAAC;AAC9G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAkB,KAAK,OAAO,EAAwB,MAAM,sBAAsB,CAAC;AAGxG,OAAO,EAAE,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AAIrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAi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M,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU;IAclF,0EAA0E;IAC7D,mBAAmB,CAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,OAAO;CAUtF"}
|
|
@@ -69,7 +69,7 @@ export const ARCHIVER_POLL_INTERVAL = 50;
|
|
|
69
69
|
context.aztecNode
|
|
70
70
|
] : [];
|
|
71
71
|
this.logger = context.logger;
|
|
72
|
-
this.l1Client = context.deployL1ContractsValues.
|
|
72
|
+
this.l1Client = context.deployL1ContractsValues.l1Client;
|
|
73
73
|
this.rollup = RollupContract.getFromConfig(context.config);
|
|
74
74
|
// Loop that tracks L1 and L2 block numbers and logs whenever there's a new one.
|
|
75
75
|
this.monitor = new ChainMonitor(this.rollup, this.logger).start();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fees_test.d.ts","sourceRoot":"","sources":["../../src/e2e_fees/fees_test.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,GAAG,EAGT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EACL,KAAK,qBAAqB,EAK3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,gCAAgC,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AC;IAC3C,2BAA2B,EAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACpD,eAAe,EAAG,UAAU,CAAC;IAC7B,wBAAwB,EAAG,UAAU,CAAC;IACtC,yBAAyB,EAAG,UAAU,CAAC;IACvC,YAAY,EAAG,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAE/D,SAAgB,qBAAqB,SAAgB;IACrD,SAAgB,mBAAmB,SAAgB;IACnD,SAAgB,0BAA0B,SAAgB;gBAGxD,QAAQ,EAAE,MAAM,EACR,gBAAgB,SAAI,EAC5B,YAAY,GAAE,OAAO,CAAC,YAAY,GAAG,qBAAqB,CAAM;IAc5D,KAAK;IAUL,QAAQ;IAKd,oBAAoB,CAAC,CAAC,EAAE,OAAO;IAIzB,kBAAkB;IAOlB,eAAe;;;;IAoBf,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAMjE,sFAAsF;IAChF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IASjD,kBAAkB;IAOzB,4BAA4B;IAyB5B,iCAAiC;IAMjC,0BAA0B;IAuB1B,8BAA8B;IAuBvB,qBAAqB;IA4DrB,8BAA8B;IAqB9B,yBAAyB;IAWzB,gCAAgC;IAUhC,sBAAsB;CAgCpC"}
|
|
@@ -2,7 +2,7 @@ import { getSchnorrWallet } from '@aztec/accounts/schnorr';
|
|
|
2
2
|
import { createLogger, sleep } from '@aztec/aztec.js';
|
|
3
3
|
import { CheatCodes } from '@aztec/aztec.js/testing';
|
|
4
4
|
import { FEE_FUNDING_FOR_TESTER_ACCOUNT } from '@aztec/constants';
|
|
5
|
-
import { RollupContract,
|
|
5
|
+
import { RollupContract, createExtendedL1Client, getPublicClient, l1Artifacts } from '@aztec/ethereum';
|
|
6
6
|
import { ChainMonitor } from '@aztec/ethereum/test';
|
|
7
7
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
8
8
|
import { TestERC20Abi } from '@aztec/l1-artifacts';
|
|
@@ -109,7 +109,7 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
109
109
|
const rewardDistributor = getContract({
|
|
110
110
|
address: this.context.deployL1ContractsValues.l1ContractAddresses.rewardDistributorAddress.toString(),
|
|
111
111
|
abi: l1Artifacts.rewardDistributor.contractAbi,
|
|
112
|
-
client: this.context.deployL1ContractsValues.
|
|
112
|
+
client: this.context.deployL1ContractsValues.l1Client
|
|
113
113
|
});
|
|
114
114
|
const blockReward = await rewardDistributor.read.BLOCK_REWARD();
|
|
115
115
|
const balance = await this.feeJuiceBridgeTestHarness.getL1FeeJuiceBalance(EthAddress.fromString(rewardDistributor.address));
|
|
@@ -169,8 +169,7 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
169
169
|
aztecNode: context.aztecNode,
|
|
170
170
|
aztecNodeAdmin: context.aztecNode,
|
|
171
171
|
pxeService: context.pxe,
|
|
172
|
-
|
|
173
|
-
walletClient: context.deployL1ContractsValues.walletClient,
|
|
172
|
+
l1Client: context.deployL1ContractsValues.l1Client,
|
|
174
173
|
wallet: this.aliceWallet,
|
|
175
174
|
logger: this.logger
|
|
176
175
|
});
|
|
@@ -208,22 +207,19 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
208
207
|
const bananaFPC = await FPCContract.at(data.bananaFPCAddress, this.aliceWallet);
|
|
209
208
|
this.bananaFPC = bananaFPC;
|
|
210
209
|
this.getCoinbaseBalance = async ()=>{
|
|
211
|
-
const
|
|
210
|
+
const l1Client = createExtendedL1Client(context.aztecNodeConfig.l1RpcUrls, MNEMONIC);
|
|
212
211
|
const gasL1 = getContract({
|
|
213
212
|
address: data.l1FeeJuiceAddress.toString(),
|
|
214
213
|
abi: TestERC20Abi,
|
|
215
|
-
client:
|
|
214
|
+
client: l1Client
|
|
216
215
|
});
|
|
217
216
|
return await gasL1.read.balanceOf([
|
|
218
217
|
this.coinbase.toString()
|
|
219
218
|
]);
|
|
220
219
|
};
|
|
221
220
|
this.getCoinbaseSequencerRewards = async ()=>{
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
l1ChainId: context.aztecNodeConfig.l1ChainId
|
|
225
|
-
});
|
|
226
|
-
const rollup = new RollupContract(publicClient, data.rollupAddress);
|
|
221
|
+
const l1Client = createExtendedL1Client(context.aztecNodeConfig.l1RpcUrls, MNEMONIC);
|
|
222
|
+
const rollup = new RollupContract(l1Client, data.rollupAddress);
|
|
227
223
|
return await rollup.getSequencerRewards(this.coinbase);
|
|
228
224
|
};
|
|
229
225
|
this.getProverFee = async (blockNumber)=>{
|
|
@@ -44,39 +44,39 @@ export declare class P2PNetworkTest {
|
|
|
44
44
|
[x: `bytes4[${string}]`]: undefined;
|
|
45
45
|
[x: `bytes1[${string}]`]: undefined;
|
|
46
46
|
[x: `bytes23[${string}]`]: undefined;
|
|
47
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
48
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
49
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
50
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
51
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
52
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
53
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
54
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
55
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
56
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
57
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
58
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
47
59
|
[x: `bytes2[${string}]`]: undefined;
|
|
48
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
49
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
50
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
51
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
52
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
53
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
54
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
55
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
56
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
57
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
58
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
59
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
60
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
61
60
|
[x: `bytes19[${string}]`]: undefined;
|
|
62
|
-
[x: `
|
|
63
|
-
[x: `
|
|
64
|
-
[x: `
|
|
65
|
-
[x: `
|
|
66
|
-
[x: `
|
|
67
|
-
[x: `
|
|
68
|
-
[x: `
|
|
69
|
-
[x: `
|
|
70
|
-
[x: `
|
|
71
|
-
[x: `
|
|
72
|
-
[x: `
|
|
73
|
-
[x: `
|
|
61
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
62
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
63
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
65
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
66
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
67
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
68
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
69
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
70
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
71
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
73
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
74
74
|
[x: `int[${string}]`]: undefined;
|
|
75
75
|
[x: `int8[${string}]`]: undefined;
|
|
76
|
-
[x: `int16[${string}]`]: undefined;
|
|
77
|
-
[x: `int24[${string}]`]: undefined;
|
|
78
|
-
[x: `int32[${string}]`]: undefined;
|
|
79
76
|
[x: `int40[${string}]`]: undefined;
|
|
77
|
+
[x: `int32[${string}]`]: undefined;
|
|
78
|
+
[x: `int24[${string}]`]: undefined;
|
|
79
|
+
[x: `int16[${string}]`]: undefined;
|
|
80
80
|
[x: `int48[${string}]`]: undefined;
|
|
81
81
|
[x: `int56[${string}]`]: undefined;
|
|
82
82
|
[x: `int64[${string}]`]: undefined;
|
|
@@ -106,10 +106,10 @@ export declare class P2PNetworkTest {
|
|
|
106
106
|
[x: `int256[${string}]`]: undefined;
|
|
107
107
|
[x: `uint[${string}]`]: undefined;
|
|
108
108
|
[x: `uint8[${string}]`]: undefined;
|
|
109
|
-
[x: `uint16[${string}]`]: undefined;
|
|
110
|
-
[x: `uint24[${string}]`]: undefined;
|
|
111
|
-
[x: `uint32[${string}]`]: undefined;
|
|
112
109
|
[x: `uint40[${string}]`]: undefined;
|
|
110
|
+
[x: `uint32[${string}]`]: undefined;
|
|
111
|
+
[x: `uint24[${string}]`]: undefined;
|
|
112
|
+
[x: `uint16[${string}]`]: undefined;
|
|
113
113
|
[x: `uint48[${string}]`]: undefined;
|
|
114
114
|
[x: `uint56[${string}]`]: undefined;
|
|
115
115
|
[x: `uint64[${string}]`]: undefined;
|
|
@@ -146,38 +146,38 @@ export declare class P2PNetworkTest {
|
|
|
146
146
|
bytes4?: undefined;
|
|
147
147
|
bytes1?: undefined;
|
|
148
148
|
bytes23?: undefined;
|
|
149
|
+
bytes32?: undefined;
|
|
150
|
+
bytes31?: undefined;
|
|
151
|
+
bytes30?: undefined;
|
|
152
|
+
bytes29?: undefined;
|
|
153
|
+
bytes28?: undefined;
|
|
154
|
+
bytes27?: undefined;
|
|
155
|
+
bytes26?: undefined;
|
|
156
|
+
bytes25?: undefined;
|
|
157
|
+
bytes24?: undefined;
|
|
158
|
+
bytes22?: undefined;
|
|
159
|
+
bytes21?: undefined;
|
|
160
|
+
bytes20?: undefined;
|
|
149
161
|
bytes2?: undefined;
|
|
150
|
-
bytes3?: undefined;
|
|
151
|
-
bytes5?: undefined;
|
|
152
|
-
bytes6?: undefined;
|
|
153
|
-
bytes7?: undefined;
|
|
154
|
-
bytes9?: undefined;
|
|
155
|
-
bytes10?: undefined;
|
|
156
|
-
bytes11?: undefined;
|
|
157
|
-
bytes12?: undefined;
|
|
158
|
-
bytes13?: undefined;
|
|
159
|
-
bytes14?: undefined;
|
|
160
|
-
bytes15?: undefined;
|
|
161
|
-
bytes16?: undefined;
|
|
162
|
-
bytes17?: undefined;
|
|
163
162
|
bytes19?: undefined;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
163
|
+
bytes17?: undefined;
|
|
164
|
+
bytes16?: undefined;
|
|
165
|
+
bytes15?: undefined;
|
|
166
|
+
bytes14?: undefined;
|
|
167
|
+
bytes13?: undefined;
|
|
168
|
+
bytes12?: undefined;
|
|
169
|
+
bytes11?: undefined;
|
|
170
|
+
bytes10?: undefined;
|
|
171
|
+
bytes9?: undefined;
|
|
172
|
+
bytes7?: undefined;
|
|
173
|
+
bytes6?: undefined;
|
|
174
|
+
bytes5?: undefined;
|
|
175
|
+
bytes3?: undefined;
|
|
176
176
|
int8?: undefined;
|
|
177
|
-
int16?: undefined;
|
|
178
|
-
int24?: undefined;
|
|
179
|
-
int32?: undefined;
|
|
180
177
|
int40?: undefined;
|
|
178
|
+
int32?: undefined;
|
|
179
|
+
int24?: undefined;
|
|
180
|
+
int16?: undefined;
|
|
181
181
|
int48?: undefined;
|
|
182
182
|
int56?: undefined;
|
|
183
183
|
int64?: undefined;
|
|
@@ -206,10 +206,10 @@ export declare class P2PNetworkTest {
|
|
|
206
206
|
int248?: undefined;
|
|
207
207
|
int256?: undefined;
|
|
208
208
|
uint8?: undefined;
|
|
209
|
-
uint16?: undefined;
|
|
210
|
-
uint24?: undefined;
|
|
211
|
-
uint32?: undefined;
|
|
212
209
|
uint40?: undefined;
|
|
210
|
+
uint32?: undefined;
|
|
211
|
+
uint24?: undefined;
|
|
212
|
+
uint16?: undefined;
|
|
213
213
|
uint48?: undefined;
|
|
214
214
|
uint56?: undefined;
|
|
215
215
|
uint64?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p2p_network.d.ts","sourceRoot":"","sources":["../../src/e2e_p2p/p2p_network.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"p2p_network.d.ts","sourceRoot":"","sources":["../../src/e2e_p2p/p2p_network.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAQlE,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAa9D,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,iCAAiC,CAAC;AAOzC,eAAO,MAAM,mBAAmB,QAA0C,CAAC;AAE3E,eAAO,MAAM,2BAA2B;;;CAGvC,CAAC;AAEF,qBAAa,cAAc;IA0BhB,gBAAgB,EAAE,MAAM;IACxB,YAAY,EAAE,MAAM;IAC3B,OAAO,CA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B,MAAM,CAAC,EAClB,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,GACd,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1C;IAcD,IAAI,aAAa,uBAKhB;IAEK,gBAAgB;IActB,aAAa;;;;;;;;;IA0BP,kBAAkB;IAuDlB,YAAY;IAYZ,kBAAkB;IAoBlB,iBAAiB;IAgBjB,WAAW;;;;YAIH,YAAY;IAQpB,KAAK;IAaL,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE;IAanC,QAAQ;CAKf"}
|
|
@@ -131,30 +131,30 @@ export class P2PNetworkTest {
|
|
|
131
131
|
const rollup = getContract({
|
|
132
132
|
address: deployL1ContractsValues.l1ContractAddresses.rollupAddress.toString(),
|
|
133
133
|
abi: RollupAbi,
|
|
134
|
-
client: deployL1ContractsValues.
|
|
134
|
+
client: deployL1ContractsValues.l1Client
|
|
135
135
|
});
|
|
136
136
|
this.logger.verbose(`Adding ${this.numberOfNodes} validators`);
|
|
137
137
|
const stakingAsset = getContract({
|
|
138
138
|
address: deployL1ContractsValues.l1ContractAddresses.stakingAssetAddress.toString(),
|
|
139
139
|
abi: TestERC20Abi,
|
|
140
|
-
client: deployL1ContractsValues.
|
|
140
|
+
client: deployL1ContractsValues.l1Client
|
|
141
141
|
});
|
|
142
142
|
const stakeNeeded = l1ContractsConfig.minimumStake * BigInt(this.numberOfNodes);
|
|
143
143
|
await Promise.all([
|
|
144
144
|
await stakingAsset.write.mint([
|
|
145
|
-
deployL1ContractsValues.
|
|
145
|
+
deployL1ContractsValues.l1Client.account.address,
|
|
146
146
|
stakeNeeded
|
|
147
147
|
], {}),
|
|
148
148
|
await stakingAsset.write.approve([
|
|
149
149
|
deployL1ContractsValues.l1ContractAddresses.rollupAddress.toString(),
|
|
150
150
|
stakeNeeded
|
|
151
151
|
], {})
|
|
152
|
-
].map((txHash)=>deployL1ContractsValues.
|
|
152
|
+
].map((txHash)=>deployL1ContractsValues.l1Client.waitForTransactionReceipt({
|
|
153
153
|
hash: txHash
|
|
154
154
|
})));
|
|
155
155
|
const { validators } = this.getValidators();
|
|
156
156
|
this.validators = validators;
|
|
157
|
-
await deployL1ContractsValues.
|
|
157
|
+
await deployL1ContractsValues.l1Client.waitForTransactionReceipt({
|
|
158
158
|
hash: await rollup.write.cheat__InitialiseValidatorSet([
|
|
159
159
|
this.validators
|
|
160
160
|
])
|
|
@@ -170,7 +170,7 @@ export class P2PNetworkTest {
|
|
|
170
170
|
this.logger.debug('Warp failed, time already satisfied');
|
|
171
171
|
}
|
|
172
172
|
// Send and await a tx to make sure we mine a block for the warp to correctly progress.
|
|
173
|
-
await this._sendDummyTx(deployL1ContractsValues.
|
|
173
|
+
await this._sendDummyTx(deployL1ContractsValues.l1Client);
|
|
174
174
|
// Set the system time in the node, only after we have warped the time and waited for a block
|
|
175
175
|
// Time is only set in the NEXT block
|
|
176
176
|
dateProvider.setTime(Number(timestamp) * 1000);
|
|
@@ -202,8 +202,8 @@ export class P2PNetworkTest {
|
|
|
202
202
|
async removeInitialNode() {
|
|
203
203
|
await this.snapshotManager.snapshot('remove-inital-validator', async ({ deployL1ContractsValues, aztecNode, dateProvider })=>{
|
|
204
204
|
// Send and await a tx to make sure we mine a block for the warp to correctly progress.
|
|
205
|
-
const { receipt } = await this._sendDummyTx(deployL1ContractsValues.
|
|
206
|
-
const block = await deployL1ContractsValues.
|
|
205
|
+
const { receipt } = await this._sendDummyTx(deployL1ContractsValues.l1Client);
|
|
206
|
+
const block = await deployL1ContractsValues.l1Client.getBlock({
|
|
207
207
|
blockNumber: receipt.blockNumber
|
|
208
208
|
});
|
|
209
209
|
dateProvider.setTime(Number(block.timestamp) * 1000);
|
|
@@ -211,12 +211,12 @@ export class P2PNetworkTest {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
async sendDummyTx() {
|
|
214
|
-
return await this._sendDummyTx(this.ctx.deployL1ContractsValues.
|
|
214
|
+
return await this._sendDummyTx(this.ctx.deployL1ContractsValues.l1Client);
|
|
215
215
|
}
|
|
216
|
-
async _sendDummyTx(
|
|
217
|
-
const l1TxUtils = new L1TxUtils(
|
|
216
|
+
async _sendDummyTx(l1Client) {
|
|
217
|
+
const l1TxUtils = new L1TxUtils(l1Client);
|
|
218
218
|
return await l1TxUtils.sendAndMonitorTransaction({
|
|
219
|
-
to:
|
|
219
|
+
to: l1Client.account.address,
|
|
220
220
|
value: 1n
|
|
221
221
|
});
|
|
222
222
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e_prover_test.d.ts","sourceRoot":"","sources":["../../src/e2e_prover/e2e_prover_test.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,MAAM,EAGZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAqB,KAAK,6BAA6B,EAAuB,MAAM,kBAAkB,CAAC;AAE9G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,2BAA2B,EAAoB,MAAM,iBAAiB,CAAC;AAGrF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAQtE,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAA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B,EAAE,CAAM;IAC3C,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,eAAe,EAAG,aAAa,CAAC;IAChC,QAAQ,EAAG,cAAc,CAAC;IAC1B,SAAS,EAAG,SAAS,CAAC;IACtB,cAAc,EAAG,cAAc,CAAC;IAChC,GAAG,EAAG,UAAU,CAAC;IACjB,UAAU,EAAG,UAAU,CAAC;IACxB,QAAQ,EAAG,cAAc,CAAC;IAC1B,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,OAAO,CAAC,eAAe,CAAC,CAAsB;IAC9C,OAAO,CAAC,iBAAiB,CAAC,CAAsB;IAChD,oBAAoB,CAAC,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,aAAa,EAAE,CAAM;IACnC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,mBAAmB,CAAc;IAClC,WAAW,EAAG,2BAA2B,CAAC;IAC1C,aAAa,EAAG,UAAU,CAAC;gBAGhC,QAAQ,EAAE,MAAM,EACR,sBAAsB,EAAE,MAAM,EACtC,QAAQ,EAAE,UAAU,EACZ,UAAU,UAAO;IAW3B;;;;OAIG;IACG,kBAAkB;IAqDlB,KAAK;YA8JG,WAAW;IAQzB,QAAQ,YACA,MAAM,SACL,CAAC,OAAO,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,YACxC,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KACtE,QAAQ,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAeR,iBAAiB;IA+CjB,cAAc;CAuBrB"}
|
|
@@ -214,7 +214,7 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
214
214
|
}
|
|
215
215
|
async mintL1ERC20(recipient, amount) {
|
|
216
216
|
const erc20Address = this.context.deployL1ContractsValues.l1ContractAddresses.feeJuiceAddress;
|
|
217
|
-
const client = this.context.deployL1ContractsValues.
|
|
217
|
+
const client = this.context.deployL1ContractsValues.l1Client;
|
|
218
218
|
const erc20 = getContract({
|
|
219
219
|
abi: TestERC20Abi,
|
|
220
220
|
address: erc20Address.toString(),
|
|
@@ -224,7 +224,7 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
224
224
|
recipient,
|
|
225
225
|
amount
|
|
226
226
|
]);
|
|
227
|
-
await this.context.deployL1ContractsValues.
|
|
227
|
+
await this.context.deployL1ContractsValues.l1Client.waitForTransactionReceipt({
|
|
228
228
|
hash
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -276,13 +276,13 @@ const { E2E_DATA_PATH: dataPath } = process.env;
|
|
|
276
276
|
if (!this.circuitProofVerifier) {
|
|
277
277
|
throw new Error('No verifier');
|
|
278
278
|
}
|
|
279
|
-
const {
|
|
279
|
+
const { l1Client, l1ContractAddresses } = this.context.deployL1ContractsValues;
|
|
280
280
|
const rollup = getContract({
|
|
281
281
|
abi: RollupAbi,
|
|
282
282
|
address: l1ContractAddresses.rollupAddress.toString(),
|
|
283
|
-
client:
|
|
283
|
+
client: l1Client
|
|
284
284
|
});
|
|
285
|
-
const { address: verifierAddress } = await deployL1Contract(
|
|
285
|
+
const { address: verifierAddress } = await deployL1Contract(l1Client, HonkVerifierAbi, HonkVerifierBytecode);
|
|
286
286
|
this.logger.info(`Deployed honk verifier at ${verifierAddress}`);
|
|
287
287
|
await rollup.write.setEpochVerifier([
|
|
288
288
|
verifierAddress.toString()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ExtendedViemWalletClient, type L1ContractAddresses } from '@aztec/ethereum';
|
|
2
2
|
import { Fr } from '@aztec/foundation/fields';
|
|
3
3
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
export declare function sendL1ToL2Message(message: {
|
|
@@ -6,8 +6,7 @@ export declare function sendL1ToL2Message(message: {
|
|
|
6
6
|
content: Fr;
|
|
7
7
|
secretHash: Fr;
|
|
8
8
|
}, ctx: {
|
|
9
|
-
|
|
10
|
-
publicClient: ViemPublicClient;
|
|
9
|
+
l1Client: ExtendedViemWalletClient;
|
|
11
10
|
l1ContractAddresses: Pick<L1ContractAddresses, 'inboxAddress' | 'rollupAddress'>;
|
|
12
11
|
}): Promise<Fr[]>;
|
|
13
12
|
//# sourceMappingURL=l1_to_l2_messaging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l1_to_l2_messaging.d.ts","sourceRoot":"","sources":["../../src/fixtures/l1_to_l2_messaging.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"l1_to_l2_messaging.d.ts","sourceRoot":"","sources":["../../src/fixtures/l1_to_l2_messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,mBAAmB,EAAkB,MAAM,iBAAiB,CAAC;AAC1G,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,wBAAsB,iBAAiB,CACrC,OAAO,EAAE;IAAE,SAAS,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;IAAC,UAAU,EAAE,EAAE,CAAA;CAAE,EACjE,GAAG,EAAE;IACH,QAAQ,EAAE,wBAAwB,CAAC;IACnC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,cAAc,GAAG,eAAe,CAAC,CAAC;CAClF,iBAoCF"}
|
|
@@ -7,10 +7,10 @@ export async function sendL1ToL2Message(message, ctx) {
|
|
|
7
7
|
const inbox = getContract({
|
|
8
8
|
address: ctx.l1ContractAddresses.inboxAddress.toString(),
|
|
9
9
|
abi: InboxAbi,
|
|
10
|
-
client: ctx.
|
|
10
|
+
client: ctx.l1Client
|
|
11
11
|
});
|
|
12
12
|
const { recipient, content, secretHash } = message;
|
|
13
|
-
const version = await new RollupContract(ctx.
|
|
13
|
+
const version = await new RollupContract(ctx.l1Client, ctx.l1ContractAddresses.rollupAddress.toString()).getVersion();
|
|
14
14
|
// We inject the message to Inbox
|
|
15
15
|
const txHash = await inbox.write.sendL2Message([
|
|
16
16
|
{
|
|
@@ -21,7 +21,7 @@ export async function sendL1ToL2Message(message, ctx) {
|
|
|
21
21
|
secretHash.toString()
|
|
22
22
|
]);
|
|
23
23
|
// We check that the message was correctly injected by checking the emitted event
|
|
24
|
-
const txReceipt = await ctx.
|
|
24
|
+
const txReceipt = await ctx.l1Client.waitForTransactionReceipt({
|
|
25
25
|
hash: txHash
|
|
26
26
|
});
|
|
27
27
|
// Exactly 1 event should be emitted in the transaction
|
|
@@ -2,5 +2,5 @@ import type { Logger } from '@aztec/aztec.js';
|
|
|
2
2
|
import { type DeployL1ContractsArgs, type L1ContractsConfig } from '@aztec/ethereum';
|
|
3
3
|
import type { HDAccount, PrivateKeyAccount } from 'viem';
|
|
4
4
|
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
5
|
-
export declare const setupL1Contracts: (l1RpcUrl: string, account: HDAccount | PrivateKeyAccount, logger: Logger, args: Pick<DeployL1ContractsArgs, 'genesisArchiveRoot' | '
|
|
5
|
+
export declare const setupL1Contracts: (l1RpcUrl: string, account: HDAccount | PrivateKeyAccount, logger: Logger, args: Pick<DeployL1ContractsArgs, 'genesisArchiveRoot' | 'initialValidators'> & L1ContractsConfig) => Promise<import("@aztec/ethereum").DeployL1ContractsReturnType>;
|
|
6
6
|
//# sourceMappingURL=setup_l1_contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup_l1_contracts.d.ts","sourceRoot":"","sources":["../../src/fixtures/setup_l1_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAqB,MAAM,iBAAiB,CAAC;AAIxG,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AAEnG,eAAO,MAAM,gBAAgB,aACjB,MAAM,WACP,SAAS,GAAG,iBAAiB,UAC9B,MAAM,QACR,KAAK,qBAAqB,EAAE,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"setup_l1_contracts.d.ts","sourceRoot":"","sources":["../../src/fixtures/setup_l1_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAqB,MAAM,iBAAiB,CAAC;AAIxG,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AAEnG,eAAO,MAAM,gBAAgB,aACjB,MAAM,WACP,SAAS,GAAG,iBAAiB,UAC9B,MAAM,QACR,KAAK,qBAAqB,EAAE,oBAAoB,GAAG,mBAAmB,CAAC,GAAG,iBAAiB,mEAUlG,CAAC"}
|