@aztec/end-to-end 0.78.1 → 0.79.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/bench/utils.d.ts +1 -13
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +6 -6
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +2 -1
- 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 +2 -1
- package/dest/e2e_epochs/epochs_test.d.ts +1 -1
- 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 +3 -1
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +3 -1
- package/dest/e2e_p2p/p2p_network.d.ts +1 -1
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +1 -2
- package/dest/e2e_prover/e2e_prover_test.d.ts +3 -1
- package/dest/e2e_prover/e2e_prover_test.d.ts.map +1 -1
- package/dest/e2e_prover/e2e_prover_test.js +2 -1
- package/dest/fixtures/setup_l1_contracts.d.ts +3 -3
- package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
- package/dest/fixtures/setup_l1_contracts.js +1 -1
- package/dest/fixtures/snapshot_manager.d.ts +3 -2
- package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
- package/dest/fixtures/snapshot_manager.js +27 -23
- package/dest/fixtures/utils.d.ts +3 -2
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +16 -14
- package/dest/shared/cross_chain_test_harness.d.ts +1 -1
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +2 -1
- package/dest/shared/uniswap_l1_l2.d.ts +2 -1
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.d.ts +2 -1
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/token_simulator.d.ts.map +1 -1
- package/dest/simulators/token_simulator.js +3 -8
- package/dest/spartan/setup_test_wallets.d.ts +1 -1
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +4 -6
- package/dest/spartan/utils.d.ts +1 -1
- package/dest/spartan/utils.d.ts.map +1 -1
- package/package.json +32 -32
- package/src/bench/utils.ts +6 -8
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +1 -1
- package/src/e2e_epochs/epochs_test.ts +1 -1
- package/src/e2e_fees/fees_test.ts +2 -2
- package/src/e2e_p2p/p2p_network.ts +1 -2
- package/src/e2e_prover/e2e_prover_test.ts +2 -3
- package/src/fixtures/setup_l1_contracts.ts +2 -2
- package/src/fixtures/snapshot_manager.ts +42 -30
- package/src/fixtures/utils.ts +21 -16
- package/src/shared/cross_chain_test_harness.ts +6 -2
- package/src/shared/uniswap_l1_l2.ts +1 -1
- package/src/simulators/lending_simulator.ts +2 -1
- package/src/simulators/token_simulator.ts +5 -8
- package/src/spartan/setup_test_wallets.ts +4 -4
- package/src/spartan/utils.ts +1 -1
|
@@ -50,7 +50,7 @@ export async function setupTestWalletsWithTokens(
|
|
|
50
50
|
export async function deployTestWalletWithTokens(
|
|
51
51
|
pxeUrl: string,
|
|
52
52
|
nodeUrl: string,
|
|
53
|
-
|
|
53
|
+
l1RpcUrls: string[],
|
|
54
54
|
mnemonicOrPrivateKey: string,
|
|
55
55
|
mintAmount: bigint,
|
|
56
56
|
logger: Logger,
|
|
@@ -71,7 +71,7 @@ export async function deployTestWalletWithTokens(
|
|
|
71
71
|
|
|
72
72
|
const claims = await Promise.all(
|
|
73
73
|
fundedAccounts.map(a =>
|
|
74
|
-
bridgeL1FeeJuice(
|
|
74
|
+
bridgeL1FeeJuice(l1RpcUrls, mnemonicOrPrivateKey, pxe, a.getAddress(), initialFeeJuice, logger),
|
|
75
75
|
),
|
|
76
76
|
);
|
|
77
77
|
|
|
@@ -97,7 +97,7 @@ export async function deployTestWalletWithTokens(
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
async function bridgeL1FeeJuice(
|
|
100
|
-
|
|
100
|
+
l1RpcUrls: string[],
|
|
101
101
|
mnemonicOrPrivateKey: string,
|
|
102
102
|
pxe: PXE,
|
|
103
103
|
recipient: AztecAddress,
|
|
@@ -105,7 +105,7 @@ async function bridgeL1FeeJuice(
|
|
|
105
105
|
log: Logger,
|
|
106
106
|
) {
|
|
107
107
|
const { l1ChainId } = await pxe.getNodeInfo();
|
|
108
|
-
const chain = createEthereumChain(
|
|
108
|
+
const chain = createEthereumChain(l1RpcUrls, l1ChainId);
|
|
109
109
|
const { publicClient, walletClient } = createL1Clients(chain.rpcUrls, mnemonicOrPrivateKey, chain.chainInfo);
|
|
110
110
|
|
|
111
111
|
const portal = await L1FeeJuicePortalManager.new(pxe, publicClient, walletClient, log);
|
package/src/spartan/utils.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAztecNodeClient, createLogger, sleep } from '@aztec/aztec.js';
|
|
2
|
-
import type { RollupCheatCodes } from '@aztec/aztec.js/
|
|
2
|
+
import type { RollupCheatCodes } from '@aztec/aztec.js/testing';
|
|
3
3
|
import type { Logger } from '@aztec/foundation/log';
|
|
4
4
|
import type { SequencerConfig } from '@aztec/sequencer-client';
|
|
5
5
|
|