@aztec/end-to-end 3.0.0-nightly.20251111 → 3.0.0-nightly.20251112
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/fixtures/utils.js
CHANGED
|
@@ -481,7 +481,7 @@ export const setupL1Contracts = async (l1RpcUrls, account, logger, args = {}, ch
|
|
|
481
481
|
* @param accountsToDeploy - Which accounts to publicly deploy.
|
|
482
482
|
*/ export async function ensureAccountContractsPublished(wallet, accountsToDeploy) {
|
|
483
483
|
// We have to check whether the accounts are already deployed. This can happen if the test runs against
|
|
484
|
-
// the
|
|
484
|
+
// the local network and the test accounts exist
|
|
485
485
|
const accountsAndAddresses = await Promise.all(accountsToDeploy.map(async (address)=>{
|
|
486
486
|
return {
|
|
487
487
|
address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup_test_wallets.d.ts","sourceRoot":"","sources":["../../src/spartan/setup_test_wallets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,KAAK,gBAAgB,EAA6B,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,sBAAsB,CAAC;AAG7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"setup_test_wallets.d.ts","sourceRoot":"","sources":["../../src/spartan/setup_test_wallets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,KAAK,gBAAgB,EAA6B,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,sBAAsB,CAAC;AAG7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAA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BA;AAED,wBAAsB,8BAA8B,CAClD,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC,CAqBrF"}
|
|
@@ -8,7 +8,7 @@ import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
|
8
8
|
import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
|
|
9
9
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
10
10
|
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
11
|
-
import { TestWallet, proveInteraction,
|
|
11
|
+
import { TestWallet, proveInteraction, registerInitialLocalNetworkAccountsInWallet } from '@aztec/test-wallet/server';
|
|
12
12
|
import { getACVMConfig } from '../fixtures/get_acvm_config.js';
|
|
13
13
|
import { getBBConfig } from '../fixtures/get_bb_config.js';
|
|
14
14
|
import { getSponsoredFPCAddress, registerSponsoredFPC } from '../fixtures/utils.js';
|
|
@@ -19,7 +19,7 @@ export async function setupTestAccountsWithTokens(nodeUrl, mintAmount, logger) {
|
|
|
19
19
|
const ACCOUNT_COUNT = 1; // TODO fix this to allow for 16 wallets again
|
|
20
20
|
const aztecNode = createAztecNodeClient(nodeUrl);
|
|
21
21
|
const wallet = await TestWallet.create(aztecNode);
|
|
22
|
-
const [recipientAccount, ...accounts] = (await
|
|
22
|
+
const [recipientAccount, ...accounts] = (await registerInitialLocalNetworkAccountsInWallet(wallet)).slice(0, ACCOUNT_COUNT + 1);
|
|
23
23
|
const tokenAdmin = accounts[0];
|
|
24
24
|
const tokenAddress = await deployTokenAndMint(wallet, accounts, tokenAdmin, mintAmount, undefined, logger);
|
|
25
25
|
const tokenContract = await TokenContract.at(tokenAddress, wallet);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251112",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -25,42 +25,42 @@
|
|
|
25
25
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
29
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
30
|
-
"@aztec/aztec": "3.0.0-nightly.
|
|
31
|
-
"@aztec/aztec-node": "3.0.0-nightly.
|
|
32
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
33
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
34
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
35
|
-
"@aztec/blob-sink": "3.0.0-nightly.
|
|
36
|
-
"@aztec/bot": "3.0.0-nightly.
|
|
37
|
-
"@aztec/cli": "3.0.0-nightly.
|
|
38
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
39
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
40
|
-
"@aztec/epoch-cache": "3.0.0-nightly.
|
|
41
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
42
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
43
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
44
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
45
|
-
"@aztec/merkle-tree": "3.0.0-nightly.
|
|
46
|
-
"@aztec/node-keystore": "3.0.0-nightly.
|
|
47
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
48
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
49
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
50
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
51
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
52
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
53
|
-
"@aztec/prover-client": "3.0.0-nightly.
|
|
54
|
-
"@aztec/prover-node": "3.0.0-nightly.
|
|
55
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
56
|
-
"@aztec/sequencer-client": "3.0.0-nightly.
|
|
57
|
-
"@aztec/simulator": "3.0.0-nightly.
|
|
58
|
-
"@aztec/slasher": "3.0.0-nightly.
|
|
59
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
60
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
61
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
62
|
-
"@aztec/validator-client": "3.0.0-nightly.
|
|
63
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
28
|
+
"@aztec/accounts": "3.0.0-nightly.20251112",
|
|
29
|
+
"@aztec/archiver": "3.0.0-nightly.20251112",
|
|
30
|
+
"@aztec/aztec": "3.0.0-nightly.20251112",
|
|
31
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251112",
|
|
32
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251112",
|
|
33
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251112",
|
|
34
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251112",
|
|
35
|
+
"@aztec/blob-sink": "3.0.0-nightly.20251112",
|
|
36
|
+
"@aztec/bot": "3.0.0-nightly.20251112",
|
|
37
|
+
"@aztec/cli": "3.0.0-nightly.20251112",
|
|
38
|
+
"@aztec/constants": "3.0.0-nightly.20251112",
|
|
39
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251112",
|
|
40
|
+
"@aztec/epoch-cache": "3.0.0-nightly.20251112",
|
|
41
|
+
"@aztec/ethereum": "3.0.0-nightly.20251112",
|
|
42
|
+
"@aztec/foundation": "3.0.0-nightly.20251112",
|
|
43
|
+
"@aztec/kv-store": "3.0.0-nightly.20251112",
|
|
44
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251112",
|
|
45
|
+
"@aztec/merkle-tree": "3.0.0-nightly.20251112",
|
|
46
|
+
"@aztec/node-keystore": "3.0.0-nightly.20251112",
|
|
47
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251112",
|
|
48
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251112",
|
|
49
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251112",
|
|
50
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251112",
|
|
51
|
+
"@aztec/p2p": "3.0.0-nightly.20251112",
|
|
52
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251112",
|
|
53
|
+
"@aztec/prover-client": "3.0.0-nightly.20251112",
|
|
54
|
+
"@aztec/prover-node": "3.0.0-nightly.20251112",
|
|
55
|
+
"@aztec/pxe": "3.0.0-nightly.20251112",
|
|
56
|
+
"@aztec/sequencer-client": "3.0.0-nightly.20251112",
|
|
57
|
+
"@aztec/simulator": "3.0.0-nightly.20251112",
|
|
58
|
+
"@aztec/slasher": "3.0.0-nightly.20251112",
|
|
59
|
+
"@aztec/stdlib": "3.0.0-nightly.20251112",
|
|
60
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251112",
|
|
61
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251112",
|
|
62
|
+
"@aztec/validator-client": "3.0.0-nightly.20251112",
|
|
63
|
+
"@aztec/world-state": "3.0.0-nightly.20251112",
|
|
64
64
|
"@iarna/toml": "^2.2.5",
|
|
65
65
|
"@jest/globals": "^30.0.0",
|
|
66
66
|
"@noble/curves": "=1.0.0",
|
package/src/fixtures/utils.ts
CHANGED
|
@@ -728,7 +728,7 @@ export async function setup(
|
|
|
728
728
|
|
|
729
729
|
export async function ensureAccountContractsPublished(wallet: Wallet, accountsToDeploy: AztecAddress[]) {
|
|
730
730
|
// We have to check whether the accounts are already deployed. This can happen if the test runs against
|
|
731
|
-
// the
|
|
731
|
+
// the local network and the test accounts exist
|
|
732
732
|
const accountsAndAddresses = await Promise.all(
|
|
733
733
|
accountsToDeploy.map(async address => {
|
|
734
734
|
return {
|
|
@@ -11,7 +11,7 @@ import type { Logger } from '@aztec/foundation/log';
|
|
|
11
11
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
12
12
|
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
13
13
|
import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
|
|
14
|
-
import { TestWallet, proveInteraction,
|
|
14
|
+
import { TestWallet, proveInteraction, registerInitialLocalNetworkAccountsInWallet } from '@aztec/test-wallet/server';
|
|
15
15
|
|
|
16
16
|
import { getACVMConfig } from '../fixtures/get_acvm_config.js';
|
|
17
17
|
import { getBBConfig } from '../fixtures/get_bb_config.js';
|
|
@@ -42,7 +42,7 @@ export async function setupTestAccountsWithTokens(
|
|
|
42
42
|
const aztecNode = createAztecNodeClient(nodeUrl);
|
|
43
43
|
const wallet = await TestWallet.create(aztecNode);
|
|
44
44
|
|
|
45
|
-
const [recipientAccount, ...accounts] = (await
|
|
45
|
+
const [recipientAccount, ...accounts] = (await registerInitialLocalNetworkAccountsInWallet(wallet)).slice(
|
|
46
46
|
0,
|
|
47
47
|
ACCOUNT_COUNT + 1,
|
|
48
48
|
);
|