@aztec/end-to-end 0.0.1-fake-c83136db25 → 0.0.1-fake-ceab37513c

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.
Files changed (137) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +2 -3
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/benchmark.js +2 -2
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts +12 -16
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  6. package/dest/bench/client_flows/client_flows_benchmark.js +58 -54
  7. package/dest/bench/client_flows/data_extractor.js +3 -3
  8. package/dest/bench/utils.d.ts +11 -2
  9. package/dest/bench/utils.d.ts.map +1 -1
  10. package/dest/bench/utils.js +34 -10
  11. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +7 -7
  12. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  13. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +42 -42
  14. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +8 -10
  15. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  16. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +33 -31
  17. package/dest/e2e_deploy_contract/deploy_test.d.ts +4 -10
  18. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  19. package/dest/e2e_deploy_contract/deploy_test.js +18 -9
  20. package/dest/e2e_epochs/epochs_test.d.ts +1 -3
  21. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  22. package/dest/e2e_epochs/epochs_test.js +9 -10
  23. package/dest/e2e_fees/bridging_race.notest.js +9 -12
  24. package/dest/e2e_fees/fees_test.d.ts +5 -5
  25. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  26. package/dest/e2e_fees/fees_test.js +31 -23
  27. package/dest/e2e_l1_publisher/write_json.d.ts +1 -3
  28. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
  29. package/dest/e2e_l1_publisher/write_json.js +5 -5
  30. package/dest/e2e_multi_validator/utils.d.ts +1 -1
  31. package/dest/e2e_multi_validator/utils.d.ts.map +1 -1
  32. package/dest/e2e_nested_contract/nested_contract_test.d.ts +3 -6
  33. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  34. package/dest/e2e_nested_contract/nested_contract_test.js +9 -7
  35. package/dest/e2e_p2p/inactivity_slash_test.d.ts +2 -2
  36. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  37. package/dest/e2e_p2p/inactivity_slash_test.js +2 -5
  38. package/dest/e2e_p2p/p2p_network.d.ts +2 -14
  39. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  40. package/dest/e2e_p2p/p2p_network.js +10 -32
  41. package/dest/e2e_p2p/shared.d.ts +13 -11
  42. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  43. package/dest/e2e_p2p/shared.js +45 -49
  44. package/dest/e2e_token_contract/token_contract_test.d.ts +4 -5
  45. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  46. package/dest/e2e_token_contract/token_contract_test.js +17 -14
  47. package/dest/fixtures/e2e_prover_test.d.ts +6 -8
  48. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  49. package/dest/fixtures/e2e_prover_test.js +50 -40
  50. package/dest/fixtures/get_acvm_config.d.ts +1 -1
  51. package/dest/fixtures/get_acvm_config.d.ts.map +1 -1
  52. package/dest/fixtures/get_bb_config.d.ts +1 -1
  53. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  54. package/dest/fixtures/get_bb_config.js +2 -2
  55. package/dest/fixtures/setup_l1_contracts.d.ts +1 -1
  56. package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
  57. package/dest/fixtures/setup_l1_contracts.js +2 -2
  58. package/dest/fixtures/setup_p2p_test.d.ts +7 -0
  59. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  60. package/dest/fixtures/snapshot_manager.d.ts +7 -10
  61. package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
  62. package/dest/fixtures/snapshot_manager.js +32 -42
  63. package/dest/fixtures/token_utils.d.ts +4 -6
  64. package/dest/fixtures/token_utils.d.ts.map +1 -1
  65. package/dest/fixtures/token_utils.js +15 -11
  66. package/dest/fixtures/utils.d.ts +27 -23
  67. package/dest/fixtures/utils.d.ts.map +1 -1
  68. package/dest/fixtures/utils.js +100 -75
  69. package/dest/fixtures/web3signer.d.ts +1 -1
  70. package/dest/fixtures/web3signer.d.ts.map +1 -1
  71. package/dest/fixtures/web3signer.js +5 -16
  72. package/dest/quality_of_service/alert_checker.d.ts +1 -1
  73. package/dest/quality_of_service/alert_checker.d.ts.map +1 -1
  74. package/dest/shared/cross_chain_test_harness.d.ts +10 -16
  75. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  76. package/dest/shared/cross_chain_test_harness.js +15 -13
  77. package/dest/shared/gas_portal_test_harness.d.ts +6 -9
  78. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  79. package/dest/shared/gas_portal_test_harness.js +7 -10
  80. package/dest/shared/jest_setup.js +1 -1
  81. package/dest/shared/submit-transactions.d.ts +3 -5
  82. package/dest/shared/submit-transactions.d.ts.map +1 -1
  83. package/dest/shared/submit-transactions.js +7 -8
  84. package/dest/shared/uniswap_l1_l2.d.ts +6 -9
  85. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  86. package/dest/shared/uniswap_l1_l2.js +45 -29
  87. package/dest/simulators/lending_simulator.d.ts +1 -2
  88. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  89. package/dest/simulators/lending_simulator.js +2 -3
  90. package/dest/simulators/token_simulator.d.ts +1 -3
  91. package/dest/simulators/token_simulator.d.ts.map +1 -1
  92. package/dest/simulators/token_simulator.js +2 -2
  93. package/dest/spartan/setup_test_wallets.d.ts +13 -19
  94. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  95. package/dest/spartan/setup_test_wallets.js +84 -107
  96. package/dest/spartan/utils.d.ts +0 -44
  97. package/dest/spartan/utils.d.ts.map +1 -1
  98. package/dest/spartan/utils.js +20 -212
  99. package/package.json +36 -37
  100. package/src/bench/client_flows/benchmark.ts +8 -8
  101. package/src/bench/client_flows/client_flows_benchmark.ts +82 -62
  102. package/src/bench/client_flows/data_extractor.ts +4 -4
  103. package/src/bench/utils.ts +37 -9
  104. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +63 -46
  105. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +47 -33
  106. package/src/e2e_deploy_contract/deploy_test.ts +35 -17
  107. package/src/e2e_epochs/epochs_test.ts +14 -12
  108. package/src/e2e_fees/bridging_race.notest.ts +9 -14
  109. package/src/e2e_fees/fees_test.ts +38 -26
  110. package/src/e2e_l1_publisher/write_json.ts +6 -8
  111. package/src/e2e_multi_validator/utils.ts +1 -1
  112. package/src/e2e_nested_contract/nested_contract_test.ts +10 -11
  113. package/src/e2e_p2p/inactivity_slash_test.ts +3 -7
  114. package/src/e2e_p2p/p2p_network.ts +67 -105
  115. package/src/e2e_p2p/shared.ts +55 -50
  116. package/src/e2e_token_contract/token_contract_test.ts +17 -17
  117. package/src/fixtures/e2e_prover_test.ts +88 -51
  118. package/src/fixtures/get_acvm_config.ts +1 -1
  119. package/src/fixtures/get_bb_config.ts +2 -3
  120. package/src/fixtures/setup_l1_contracts.ts +3 -3
  121. package/src/fixtures/setup_p2p_test.ts +8 -0
  122. package/src/fixtures/snapshot_manager.ts +59 -59
  123. package/src/fixtures/token_utils.ts +21 -13
  124. package/src/fixtures/utils.ts +137 -86
  125. package/src/fixtures/web3signer.ts +5 -22
  126. package/src/guides/up_quick_start.sh +10 -2
  127. package/src/quality_of_service/alert_checker.ts +1 -1
  128. package/src/shared/cross_chain_test_harness.ts +29 -18
  129. package/src/shared/gas_portal_test_harness.ts +19 -12
  130. package/src/shared/jest_setup.ts +1 -1
  131. package/src/shared/submit-transactions.ts +8 -12
  132. package/src/shared/uniswap_l1_l2.ts +67 -61
  133. package/src/simulators/lending_simulator.ts +2 -3
  134. package/src/simulators/token_simulator.ts +2 -5
  135. package/src/spartan/DEVELOP.md +3 -8
  136. package/src/spartan/setup_test_wallets.ts +125 -132
  137. package/src/spartan/utils.ts +18 -268
@@ -1,6 +1,5 @@
1
- import { computeSecretHash } from '@aztec/aztec.js/crypto';
2
- import { Fr } from '@aztec/aztec.js/fields';
3
- import { createLogger } from '@aztec/aztec.js/log';
1
+ import { getSchnorrWallet } from '@aztec/accounts/schnorr';
2
+ import { Fr, computeSecretHash, createLogger } from '@aztec/aztec.js';
4
3
  import { TokenBlacklistContract } from '@aztec/noir-contracts.js/TokenBlacklist';
5
4
  import { InvalidAccountContract } from '@aztec/noir-test-contracts.js/InvalidAccount';
6
5
  import { jest } from '@jest/globals';
@@ -38,15 +37,20 @@ export class BlacklistTokenContractTest {
38
37
  static CHANGE_ROLES_DELAY = 86400;
39
38
  snapshotManager;
40
39
  logger;
41
- wallet;
40
+ wallets = [];
41
+ pxe;
42
+ accounts = [];
42
43
  asset;
43
44
  tokenSim;
44
45
  badAccount;
45
46
  cheatCodes;
46
47
  sequencer;
47
48
  aztecNode;
49
+ admin;
48
50
  adminAddress;
51
+ other;
49
52
  otherAddress;
53
+ blacklisted;
50
54
  blacklistedAddress;
51
55
  constructor(testName){
52
56
  this.logger = createLogger(`e2e:e2e_blacklist_token_contract:${testName}`);
@@ -62,32 +66,32 @@ export class BlacklistTokenContractTest {
62
66
  */ async applyBaseSnapshots() {
63
67
  // Adding a timeout of 2 minutes in here such that it is propagated to the underlying tests
64
68
  jest.setTimeout(120_000);
65
- await this.snapshotManager.snapshot('3_accounts', deployAccounts(3, this.logger), ({ deployedAccounts }, { cheatCodes, aztecNode, sequencer, wallet })=>{
69
+ await this.snapshotManager.snapshot('3_accounts', deployAccounts(3, this.logger), async ({ deployedAccounts }, { pxe, cheatCodes, aztecNode, sequencer })=>{
70
+ this.pxe = pxe;
66
71
  this.cheatCodes = cheatCodes;
67
72
  this.aztecNode = aztecNode;
68
73
  this.sequencer = sequencer;
69
- this.wallet = wallet;
70
- this.adminAddress = deployedAccounts[0].address;
71
- this.otherAddress = deployedAccounts[1].address;
72
- this.blacklistedAddress = deployedAccounts[2].address;
73
- return Promise.resolve();
74
+ this.wallets = await Promise.all(deployedAccounts.map((a)=>getSchnorrWallet(pxe, a.address, a.signingKey)));
75
+ this.admin = this.wallets[0];
76
+ this.adminAddress = this.admin.getAddress();
77
+ this.other = this.wallets[1];
78
+ this.otherAddress = this.other.getAddress();
79
+ this.blacklisted = this.wallets[2];
80
+ this.blacklistedAddress = this.blacklisted.getAddress();
81
+ this.accounts = this.wallets.map((w)=>w.getCompleteAddress());
74
82
  });
75
83
  await this.snapshotManager.snapshot('e2e_blacklist_token_contract', async ()=>{
76
84
  // Create the token contract state.
77
85
  // Move this account thing to addAccounts above?
78
86
  this.logger.verbose(`Public deploy accounts...`);
79
- await publicDeployAccounts(this.wallet, [
80
- this.adminAddress,
81
- this.otherAddress,
82
- this.blacklistedAddress
83
- ]);
87
+ await publicDeployAccounts(this.admin, this.accounts.slice(0, 3));
84
88
  this.logger.verbose(`Deploying TokenContract...`);
85
- this.asset = await TokenBlacklistContract.deploy(this.wallet, this.adminAddress).send({
89
+ this.asset = await TokenBlacklistContract.deploy(this.admin, this.adminAddress).send({
86
90
  from: this.adminAddress
87
91
  }).deployed();
88
92
  this.logger.verbose(`Token deployed to ${this.asset.address}`);
89
93
  this.logger.verbose(`Deploying bad account...`);
90
- this.badAccount = await InvalidAccountContract.deploy(this.wallet).send({
94
+ this.badAccount = await InvalidAccountContract.deploy(this.admin).send({
91
95
  from: this.adminAddress
92
96
  }).deployed();
93
97
  this.logger.verbose(`Deployed to ${this.badAccount.address}.`);
@@ -98,14 +102,10 @@ export class BlacklistTokenContractTest {
98
102
  };
99
103
  }, async ({ tokenContractAddress, badAccountAddress })=>{
100
104
  // Restore the token contract state.
101
- this.asset = await TokenBlacklistContract.at(tokenContractAddress, this.wallet);
105
+ this.asset = await TokenBlacklistContract.at(tokenContractAddress, this.wallets[0]);
102
106
  this.logger.verbose(`Token contract address: ${this.asset.address}`);
103
- this.tokenSim = new TokenSimulator(this.asset, this.wallet, this.adminAddress, this.logger, [
104
- this.adminAddress,
105
- this.otherAddress,
106
- this.blacklistedAddress
107
- ]);
108
- this.badAccount = await InvalidAccountContract.at(badAccountAddress, this.wallet);
107
+ this.tokenSim = new TokenSimulator(this.asset, this.admin, this.adminAddress, this.logger, this.accounts.map((a)=>a.address));
108
+ this.badAccount = await InvalidAccountContract.at(badAccountAddress, this.wallets[0]);
109
109
  this.logger.verbose(`Bad account address: ${this.badAccount.address}`);
110
110
  expect(await this.asset.methods.get_roles(this.adminAddress).simulate({
111
111
  from: this.adminAddress
@@ -120,29 +120,29 @@ export class BlacklistTokenContractTest {
120
120
  await this.snapshotManager.teardown();
121
121
  }
122
122
  async addPendingShieldNoteToPXE(contract, recipient, amount, secretHash, txHash) {
123
- const txEffects = await this.aztecNode.getTxEffect(txHash);
123
+ const txEffects = await this.pxe.getTxEffect(txHash);
124
124
  await contract.methods.deliver_transparent_note(contract.address, amount, secretHash, txHash.hash, txEffects.data.noteHashes, txEffects.data.nullifiers[0], recipient).simulate({
125
125
  from: recipient
126
126
  });
127
127
  }
128
128
  async applyMintSnapshot() {
129
129
  await this.snapshotManager.snapshot('mint', async ()=>{
130
- const { asset } = this;
130
+ const { asset, accounts, wallets } = this;
131
131
  const amount = 10000n;
132
132
  const adminMinterRole = new Role().withAdmin().withMinter();
133
- await this.asset.methods.update_roles(this.adminAddress, adminMinterRole.toNoirStruct()).send({
133
+ await this.asset.withWallet(this.admin).methods.update_roles(this.admin.getAddress(), adminMinterRole.toNoirStruct()).send({
134
134
  from: this.adminAddress
135
135
  }).wait();
136
136
  const blacklistRole = new Role().withBlacklisted();
137
- await this.asset.methods.update_roles(this.blacklistedAddress, blacklistRole.toNoirStruct()).send({
137
+ await this.asset.withWallet(this.admin).methods.update_roles(this.blacklisted.getAddress(), blacklistRole.toNoirStruct()).send({
138
138
  from: this.adminAddress
139
139
  }).wait();
140
140
  await this.crossTimestampOfChange();
141
- expect(await this.asset.methods.get_roles(this.adminAddress).simulate({
141
+ expect(await this.asset.methods.get_roles(this.admin.getAddress()).simulate({
142
142
  from: this.adminAddress
143
143
  })).toEqual(adminMinterRole.toNoirStruct());
144
144
  this.logger.verbose(`Minting ${amount} publicly...`);
145
- await asset.methods.mint_public(this.adminAddress, amount).send({
145
+ await asset.methods.mint_public(accounts[0].address, amount).send({
146
146
  from: this.adminAddress
147
147
  }).wait();
148
148
  this.logger.verbose(`Minting ${amount} privately...`);
@@ -151,8 +151,8 @@ export class BlacklistTokenContractTest {
151
151
  const receipt = await asset.methods.mint_private(amount, secretHash).send({
152
152
  from: this.adminAddress
153
153
  }).wait();
154
- await this.addPendingShieldNoteToPXE(asset, this.adminAddress, amount, secretHash, receipt.txHash);
155
- const txClaim = asset.methods.redeem_shield(this.adminAddress, amount, secret).send({
154
+ await this.addPendingShieldNoteToPXE(asset, wallets[0].getAddress(), amount, secretHash, receipt.txHash);
155
+ const txClaim = asset.methods.redeem_shield(accounts[0].address, amount, secret).send({
156
156
  from: this.adminAddress
157
157
  });
158
158
  await txClaim.wait();
@@ -161,21 +161,21 @@ export class BlacklistTokenContractTest {
161
161
  amount
162
162
  };
163
163
  }, async ({ amount })=>{
164
- const { asset, tokenSim } = this;
165
- tokenSim.mintPublic(this.adminAddress, amount);
166
- const publicBalance = await asset.methods.balance_of_public(this.adminAddress).simulate({
167
- from: this.adminAddress
164
+ const { asset, accounts: [{ address }], tokenSim } = this;
165
+ tokenSim.mintPublic(address, amount);
166
+ const publicBalance = await asset.methods.balance_of_public(address).simulate({
167
+ from: address
168
168
  });
169
169
  this.logger.verbose(`Public balance of wallet 0: ${publicBalance}`);
170
- expect(publicBalance).toEqual(this.tokenSim.balanceOfPublic(this.adminAddress));
171
- tokenSim.mintPrivate(this.adminAddress, amount);
172
- const privateBalance = await asset.methods.balance_of_private(this.adminAddress).simulate({
173
- from: this.adminAddress
170
+ expect(publicBalance).toEqual(this.tokenSim.balanceOfPublic(address));
171
+ tokenSim.mintPrivate(address, amount);
172
+ const privateBalance = await asset.methods.balance_of_private(address).simulate({
173
+ from: address
174
174
  });
175
175
  this.logger.verbose(`Private balance of wallet 0: ${privateBalance}`);
176
- expect(privateBalance).toEqual(tokenSim.balanceOfPrivate(this.adminAddress));
176
+ expect(privateBalance).toEqual(tokenSim.balanceOfPrivate(address));
177
177
  const totalSupply = await asset.methods.total_supply().simulate({
178
- from: this.adminAddress
178
+ from: address
179
179
  });
180
180
  this.logger.verbose(`Total supply: ${totalSupply}`);
181
181
  expect(totalSupply).toEqual(tokenSim.totalSupply);
@@ -1,37 +1,35 @@
1
1
  import type { AztecNodeConfig } from '@aztec/aztec-node';
2
- import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
3
- import { type Logger } from '@aztec/aztec.js/log';
4
- import type { AztecNode } from '@aztec/aztec.js/node';
2
+ import { type AccountWallet, AztecAddress, type AztecNode, type CompleteAddress, EthAddress, type Logger, type PXE } from '@aztec/aztec.js';
5
3
  import { CheatCodes } from '@aztec/aztec/testing';
6
- import { type DeployL1ContractsArgs, type DeployL1ContractsReturnType, type ExtendedViemWalletClient } from '@aztec/ethereum';
4
+ import { type DeployL1ContractsReturnType, type ExtendedViemWalletClient } from '@aztec/ethereum';
7
5
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
8
6
  import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
9
7
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
10
- import type { TestWallet } from '@aztec/test-wallet/server';
11
8
  import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
12
- import type { SetupOptions } from '../fixtures/utils.js';
13
9
  import { CrossChainTestHarness } from '../shared/cross_chain_test_harness.js';
14
10
  export declare class CrossChainMessagingTest {
15
11
  private snapshotManager;
16
12
  logger: Logger;
13
+ accounts: CompleteAddress[];
17
14
  aztecNode: AztecNode;
15
+ pxe: PXE;
18
16
  aztecNodeConfig: AztecNodeConfig;
19
17
  aztecNodeAdmin: AztecNodeAdmin;
20
- ctx: SubsystemsContext;
21
18
  l1Client: ExtendedViemWalletClient | undefined;
22
- wallet: TestWallet;
23
- ownerAddress: AztecAddress;
19
+ user1Wallet: AccountWallet;
24
20
  user1Address: AztecAddress;
21
+ user2Wallet: AccountWallet;
25
22
  user2Address: AztecAddress;
26
23
  crossChainTestHarness: CrossChainTestHarness;
27
24
  ethAccount: EthAddress;
25
+ ownerAddress: AztecAddress;
28
26
  l2Token: TokenContract;
29
27
  l2Bridge: TokenBridgeContract;
30
28
  inbox: any;
31
29
  outbox: any;
32
30
  cheatCodes: CheatCodes;
33
31
  deployL1ContractsValues: DeployL1ContractsReturnType;
34
- constructor(testName: string, opts?: SetupOptions, deployL1ContractsArgs?: Partial<DeployL1ContractsArgs>);
32
+ constructor(testName: string);
35
33
  assumeProven(): Promise<void>;
36
34
  setup(): Promise<void>;
37
35
  snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
@@ -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":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,KAAK,qBA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QAAQ,GAAI,CAAC,EACX,MAAM,MAAM,EACZ,OAAO,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,EACjD,UAAS,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAA2B,KAChG,OAAO,CAAC,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAIR,kBAAkB;CAuFzB"}
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,sBAAsB,CAAC;AAClD,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAG9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKtE,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,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,SAAS,EAAG,SAAS,CAAC;IACtB,GAAG,EAAG,GAAG,CAAC;IACV,eAAe,EAAG,eAAe,CAAC;IAClC,cAAc,EAAG,cAAc,CAAC;IAEhC,QAAQ,EAAG,wBAAwB,GAAG,SAAS,CAAC;IAEhD,WAAW,EAAG,aAAa,CAAC;IAC5B,YAAY,EAAG,YAAY,CAAC;IAC5B,WAAW,EAAG,aAAa,CAAC;IAC5B,YAAY,EAAG,YAAY,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;IAExB,uBAAuB,EAAG,2BAA2B,CAAC;gBAE1C,QAAQ,EAAE,MAAM;IAKtB,YAAY;IAIZ,KAAK;IAUX,QAAQ,GAAI,CAAC,EACX,MAAM,MAAM,EACZ,OAAO,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,EACjD,UAAS,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAA2B,KAChG,OAAO,CAAC,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAIR,kBAAkB;CAiGzB"}
@@ -1,5 +1,6 @@
1
- import { EthAddress } from '@aztec/aztec.js/addresses';
2
- import { createLogger } from '@aztec/aztec.js/log';
1
+ import { getSchnorrWallet } from '@aztec/accounts/schnorr';
2
+ import { AztecAddress, EthAddress, createLogger } from '@aztec/aztec.js';
3
+ import { CheatCodes } from '@aztec/aztec/testing';
3
4
  import { createExtendedL1Client, deployL1Contract } from '@aztec/ethereum';
4
5
  import { InboxAbi, OutboxAbi, TestERC20Abi, TestERC20Bytecode } from '@aztec/l1-artifacts';
5
6
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
@@ -12,65 +13,65 @@ const { E2E_DATA_PATH: dataPath } = process.env;
12
13
  export class CrossChainMessagingTest {
13
14
  snapshotManager;
14
15
  logger;
16
+ accounts = [];
15
17
  aztecNode;
18
+ pxe;
16
19
  aztecNodeConfig;
17
20
  aztecNodeAdmin;
18
- ctx;
19
21
  l1Client;
20
- wallet;
21
- ownerAddress;
22
+ user1Wallet;
22
23
  user1Address;
24
+ user2Wallet;
23
25
  user2Address;
24
26
  crossChainTestHarness;
25
27
  ethAccount;
28
+ ownerAddress;
26
29
  l2Token;
27
30
  l2Bridge;
28
31
  inbox;
29
32
  outbox;
30
33
  cheatCodes;
31
34
  deployL1ContractsValues;
32
- constructor(testName, opts = {}, deployL1ContractsArgs = {}){
35
+ constructor(testName){
33
36
  this.logger = createLogger(`e2e:e2e_cross_chain_messaging:${testName}`);
34
- this.snapshotManager = createSnapshotManager(`e2e_cross_chain_messaging/${testName}`, dataPath, opts, {
35
- initialValidators: [],
36
- ...deployL1ContractsArgs
37
- });
37
+ this.snapshotManager = createSnapshotManager(`e2e_cross_chain_messaging/${testName}`, dataPath);
38
38
  }
39
39
  async assumeProven() {
40
40
  await this.cheatCodes.rollup.markAsProven();
41
41
  }
42
42
  async setup() {
43
- this.ctx = await this.snapshotManager.setup();
44
- this.aztecNode = this.ctx.aztecNode;
45
- this.wallet = this.ctx.wallet;
46
- this.aztecNodeConfig = this.ctx.aztecNodeConfig;
47
- this.cheatCodes = this.ctx.cheatCodes;
48
- this.deployL1ContractsValues = this.ctx.deployL1ContractsValues;
49
- this.aztecNodeAdmin = this.ctx.aztecNode;
43
+ const { aztecNode, pxe, aztecNodeConfig, deployL1ContractsValues } = await this.snapshotManager.setup();
44
+ this.aztecNode = aztecNode;
45
+ this.pxe = pxe;
46
+ this.aztecNodeConfig = aztecNodeConfig;
47
+ this.cheatCodes = await CheatCodes.create(this.aztecNodeConfig.l1RpcUrls, this.pxe);
48
+ this.deployL1ContractsValues = deployL1ContractsValues;
49
+ this.aztecNodeAdmin = aztecNode;
50
50
  }
51
51
  snapshot = (name, apply, restore = ()=>Promise.resolve())=>this.snapshotManager.snapshot(name, apply, restore);
52
52
  async teardown() {
53
53
  await this.snapshotManager.teardown();
54
54
  }
55
55
  async applyBaseSnapshots() {
56
- // Note that we are using the same `wallet`, `aztecNodeConfig` and `aztecNode` across all snapshots.
56
+ // Note that we are using the same `pxe`, `aztecNodeConfig` and `aztecNode` across all snapshots.
57
57
  // This is to not have issues with different networks.
58
- await this.snapshotManager.snapshot('3_accounts', deployAccounts(3, this.logger), ({ deployedAccounts }, { wallet, aztecNodeConfig, aztecNode })=>{
59
- [this.ownerAddress, this.user1Address, this.user2Address] = deployedAccounts.map((a)=>a.address);
60
- this.wallet = wallet;
58
+ await this.snapshotManager.snapshot('3_accounts', deployAccounts(3, this.logger), async ({ deployedAccounts }, { pxe, aztecNodeConfig, aztecNode })=>{
59
+ const wallets = await Promise.all(deployedAccounts.map((a)=>getSchnorrWallet(pxe, a.address, a.signingKey)));
60
+ this.accounts = wallets.map((w)=>w.getCompleteAddress());
61
+ wallets.forEach((w, i)=>this.logger.verbose(`Wallet ${i} address: ${w.getAddress()}`));
62
+ this.user1Wallet = wallets[0];
63
+ this.user1Address = this.user1Wallet.getAddress();
64
+ this.user2Wallet = wallets[1];
65
+ this.user2Address = this.user2Wallet.getAddress();
66
+ this.pxe = pxe;
61
67
  this.aztecNode = aztecNode;
62
68
  this.aztecNodeConfig = aztecNodeConfig;
63
- return Promise.resolve();
64
69
  });
65
70
  await this.snapshotManager.snapshot('e2e_cross_chain_messaging', async ()=>{
66
71
  // Create the token contract state.
67
72
  // Move this account thing to addAccounts above?
68
73
  this.logger.verbose(`Public deploy accounts...`);
69
- await publicDeployAccounts(this.wallet, [
70
- this.ownerAddress,
71
- this.user1Address,
72
- this.user2Address
73
- ]);
74
+ await publicDeployAccounts(this.user1Wallet, this.accounts.slice(0, 3));
74
75
  this.l1Client = createExtendedL1Client(this.aztecNodeConfig.l1RpcUrls, MNEMONIC);
75
76
  const underlyingERC20Address = await deployL1Contract(this.l1Client, TestERC20Abi, TestERC20Bytecode, [
76
77
  'Underlying',
@@ -78,14 +79,15 @@ export class CrossChainMessagingTest {
78
79
  this.l1Client.account.address
79
80
  ]).then(({ address })=>address);
80
81
  this.logger.verbose(`Setting up cross chain harness...`);
81
- this.crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.l1Client, this.wallet, this.ownerAddress, this.logger, underlyingERC20Address);
82
+ this.crossChainTestHarness = await CrossChainTestHarness.new(this.aztecNode, this.pxe, this.l1Client, this.user1Wallet, this.user1Address, this.logger, underlyingERC20Address);
82
83
  this.logger.verbose(`L2 token deployed to: ${this.crossChainTestHarness.l2Token.address}`);
83
84
  return this.crossChainTestHarness.toCrossChainContext();
84
85
  }, async (crossChainContext)=>{
85
- this.l2Token = await TokenContract.at(crossChainContext.l2Token, this.wallet);
86
- this.l2Bridge = await TokenBridgeContract.at(crossChainContext.l2Bridge, this.wallet);
86
+ this.l2Token = await TokenContract.at(crossChainContext.l2Token, this.user1Wallet);
87
+ this.l2Bridge = await TokenBridgeContract.at(crossChainContext.l2Bridge, this.user1Wallet);
87
88
  // There is an issue with the reviver so we are getting strings sometimes. Working around it here.
88
89
  this.ethAccount = EthAddress.fromString(crossChainContext.ethAccount.toString());
90
+ this.ownerAddress = AztecAddress.fromString(crossChainContext.ownerAddress.toString());
89
91
  const tokenPortalAddress = EthAddress.fromString(crossChainContext.tokenPortal.toString());
90
92
  const l1Client = createExtendedL1Client(this.aztecNodeConfig.l1RpcUrls, MNEMONIC);
91
93
  const inbox = getContract({
@@ -98,7 +100,7 @@ export class CrossChainMessagingTest {
98
100
  abi: OutboxAbi,
99
101
  client: l1Client
100
102
  });
101
- this.crossChainTestHarness = new CrossChainTestHarness(this.aztecNode, this.logger, this.l2Token, this.l2Bridge, this.ethAccount, tokenPortalAddress, crossChainContext.underlying, l1Client, this.aztecNodeConfig.l1Contracts, this.wallet, this.ownerAddress);
103
+ 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, this.user1Address);
102
104
  this.l1Client = l1Client;
103
105
  this.inbox = inbox;
104
106
  this.outbox = outbox;
@@ -1,18 +1,11 @@
1
- import type { ContractArtifact } from '@aztec/aztec.js/abi';
2
- import type { AztecAddress } from '@aztec/aztec.js/addresses';
3
- import { type ContractBase } from '@aztec/aztec.js/contracts';
4
- import { Fr } from '@aztec/aztec.js/fields';
5
- import type { PublicKeys } from '@aztec/aztec.js/keys';
6
- import { type Logger } from '@aztec/aztec.js/log';
7
- import type { AztecNode } from '@aztec/aztec.js/node';
8
- import type { Wallet } from '@aztec/aztec.js/wallet';
1
+ import { type AccountWallet, type AztecAddress, type AztecNode, type ContractArtifact, type ContractBase, Fr, type Logger, type PXE, type PublicKeys, type Wallet } from '@aztec/aztec.js';
9
2
  import type { StatefulTestContract } from '@aztec/noir-test-contracts.js/StatefulTest';
10
3
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
11
- import type { TestWallet } from '@aztec/test-wallet/server';
12
4
  export declare class DeployTest {
13
5
  private snapshotManager;
14
6
  logger: Logger;
15
- wallet: TestWallet;
7
+ pxe: PXE;
8
+ wallet: AccountWallet;
16
9
  defaultAccountAddress: AztecAddress;
17
10
  aztecNode: AztecNode;
18
11
  aztecNodeAdmin: AztecNodeAdmin;
@@ -27,6 +20,7 @@ export declare class DeployTest {
27
20
  constructorName?: string;
28
21
  deployer?: AztecAddress;
29
22
  }): Promise<T>;
23
+ registerRandomAccount(): Promise<AztecAddress>;
30
24
  }
31
25
  export type StatefulContractCtorArgs = Parameters<StatefulTestContract['methods']['constructor']>;
32
26
  export type ContractArtifactClass<T extends ContractBase> = {
@@ -1 +1 @@
1
- {"version":3,"file":"deploy_test.d.ts","sourceRoot":"","sources":["../../src/e2e_deploy_contract/deploy_test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;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,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,EAAE,YAAY,CAAC;KACpB,GACL,OAAO,CAAC,CAAC,CAAC;IAaP,qBAAqB,IAAI,OAAO,CAAC,YAAY,CAAC;CAIrD;AAED,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAElG,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,YAAY,IAAI;IAC1D,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACtD,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
@@ -1,11 +1,11 @@
1
- import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
2
- import { Fr } from '@aztec/aztec.js/fields';
3
- import { createLogger } from '@aztec/aztec.js/log';
1
+ import { getSchnorrWallet } from '@aztec/accounts/schnorr';
2
+ import { Fr, createLogger, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js';
4
3
  import { createSnapshotManager, deployAccounts } from '../fixtures/snapshot_manager.js';
5
4
  const { E2E_DATA_PATH: dataPath } = process.env;
6
5
  export class DeployTest {
7
6
  snapshotManager;
8
7
  logger;
8
+ pxe;
9
9
  wallet;
10
10
  defaultAccountAddress;
11
11
  aztecNode;
@@ -17,7 +17,7 @@ export class DeployTest {
17
17
  async setup() {
18
18
  await this.applyInitialAccountSnapshot();
19
19
  const context = await this.snapshotManager.setup();
20
- ({ aztecNode: this.aztecNode, wallet: this.wallet } = context);
20
+ ({ pxe: this.pxe, aztecNode: this.aztecNode } = context);
21
21
  this.aztecNodeAdmin = context.aztecNode;
22
22
  return this;
23
23
  }
@@ -25,9 +25,11 @@ export class DeployTest {
25
25
  await this.snapshotManager.teardown();
26
26
  }
27
27
  async applyInitialAccountSnapshot() {
28
- await this.snapshotManager.snapshot('initial_account', deployAccounts(1, this.logger), ({ deployedAccounts })=>{
29
- this.defaultAccountAddress = deployedAccounts[0].address;
30
- return Promise.resolve();
28
+ await this.snapshotManager.snapshot('initial_account', deployAccounts(1, this.logger), async ({ deployedAccounts }, { pxe })=>{
29
+ const wallets = await Promise.all(deployedAccounts.map((a)=>getSchnorrWallet(pxe, a.address, a.signingKey)));
30
+ wallets.forEach((w, i)=>this.logger.verbose(`Wallet ${i} address: ${w.getAddress()}`));
31
+ this.wallet = wallets[0];
32
+ this.defaultAccountAddress = this.wallet.getAddress();
31
33
  });
32
34
  }
33
35
  async registerContract(wallet, contractArtifact, opts = {}) {
@@ -35,11 +37,18 @@ export class DeployTest {
35
37
  const instance = await getContractInstanceFromInstantiationParams(contractArtifact.artifact, {
36
38
  constructorArgs: initArgs ?? [],
37
39
  constructorArtifact: constructorName,
38
- salt: salt ?? Fr.random(),
40
+ salt,
39
41
  publicKeys,
40
42
  deployer
41
43
  });
42
- await wallet.registerContract(instance, contractArtifact.artifact);
44
+ await wallet.registerContract({
45
+ artifact: contractArtifact.artifact,
46
+ instance
47
+ });
43
48
  return contractArtifact.at(instance.address, wallet);
44
49
  }
50
+ async registerRandomAccount() {
51
+ const completeAddress = await this.pxe.registerAccount(Fr.random(), Fr.random());
52
+ return completeAddress.address;
53
+ }
45
54
  }
@@ -1,7 +1,5 @@
1
1
  import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
2
- import { Fr } from '@aztec/aztec.js/fields';
3
- import type { Logger } from '@aztec/aztec.js/log';
4
- import type { Wallet } from '@aztec/aztec.js/wallet';
2
+ import { Fr, type Logger, type Wallet } from '@aztec/aztec.js';
5
3
  import { EpochCache } from '@aztec/epoch-cache';
6
4
  import { type ExtendedViemWalletClient } from '@aztec/ethereum';
7
5
  import { RollupContract } from '@aztec/ethereum/contracts';
@@ -1 +1 @@
1
- {"version":3,"file":"epochs_test.d.ts","sourceRoot":"","sources":["../../src/e2e_epochs/epochs_test.ts"],"names":[],"mappings":"AAAA,OAAO,EA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AAE,eAAe,EAAE,EAC7B,WAAW,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAc;;;;CAiD/D"}
@@ -1,8 +1,5 @@
1
1
  import { AztecNodeService } from '@aztec/aztec-node';
2
- import { getTimestampRangeForEpoch } from '@aztec/aztec.js/block';
3
- import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
4
- import { Fr } from '@aztec/aztec.js/fields';
5
- import { MerkleTreeId } from '@aztec/aztec.js/trees';
2
+ import { Fr, MerkleTreeId, getContractInstanceFromInstantiationParams, getTimestampRangeForEpoch, retryUntil, sleep } from '@aztec/aztec.js';
6
3
  import { EpochCache } from '@aztec/epoch-cache';
7
4
  import { DefaultL1ContractsConfig, createExtendedL1Client } from '@aztec/ethereum';
8
5
  import { RollupContract } from '@aztec/ethereum/contracts';
@@ -10,8 +7,6 @@ import { ChainMonitor, DelayedTxUtils, waitUntilL1Timestamp, withDelayer } from
10
7
  import { SecretValue } from '@aztec/foundation/config';
11
8
  import { randomBytes } from '@aztec/foundation/crypto';
12
9
  import { withLogNameSuffix } from '@aztec/foundation/log';
13
- import { retryUntil } from '@aztec/foundation/retry';
14
- import { sleep } from '@aztec/foundation/sleep';
15
10
  import { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
16
11
  import { getMockPubSubP2PServiceFactory } from '@aztec/p2p/test-helpers';
17
12
  import { SequencerState } from '@aztec/sequencer-client';
@@ -137,12 +132,13 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
137
132
  this.logger.warn('Creating and syncing a simulated prover node...');
138
133
  const proverNodePrivateKey = this.getNextPrivateKey();
139
134
  const suffix = (this.proverNodes.length + 1).toString();
135
+ const proverId = EthAddress.fromNumber(parseInt(suffix, 10));
140
136
  const proverNode = await withLogNameSuffix(suffix, ()=>createAndSyncProverNode(proverNodePrivateKey, {
141
- ...this.context.config
137
+ ...this.context.config,
138
+ proverId
142
139
  }, {
143
140
  dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex')),
144
- proverId: EthAddress.fromNumber(parseInt(suffix, 10)),
145
- dontStart: opts.dontStart,
141
+ proverId,
146
142
  ...opts
147
143
  }, this.context.aztecNode, undefined, {
148
144
  dateProvider: this.context.dateProvider
@@ -264,7 +260,10 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
264
260
  publicKeys: undefined,
265
261
  deployer: undefined
266
262
  });
267
- await wallet.registerContract(instance, SpamContract.artifact);
263
+ await wallet.registerContract({
264
+ artifact: SpamContract.artifact,
265
+ instance
266
+ });
268
267
  return SpamContract.at(instance.address, wallet);
269
268
  }
270
269
  /** Creates an L1 client using a fresh account with funds from anvil, with a tx delayer already set up. */ async createL1Client() {
@@ -1,7 +1,6 @@
1
- import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
2
- import { Fr } from '@aztec/aztec.js/fields';
1
+ import { getSchnorrAccount } from '@aztec/accounts/schnorr';
2
+ import { Fr, sleep } from '@aztec/aztec.js';
3
3
  import { Fq } from '@aztec/foundation/fields';
4
- import { sleep } from '@aztec/foundation/sleep';
5
4
  import { jest } from '@jest/globals';
6
5
  import { FeesTest } from './fees_test.js';
7
6
  jest.setTimeout(300_000);
@@ -19,24 +18,22 @@ describe('e2e_fees bridging_race', ()=>{
19
18
  await t.applyInitialAccountsSnapshot();
20
19
  await t.applyPublicDeployAccountsSnapshot();
21
20
  await t.applySetupFeeJuiceSnapshot();
22
- ({ wallet, logger } = await t.setup());
21
+ ({ pxe, logger } = await t.setup());
23
22
  });
24
23
  afterAll(async ()=>{
25
24
  await t.teardown();
26
25
  });
27
26
  let logger;
27
+ let pxe;
28
28
  let bobsAddress;
29
- let wallet;
30
29
  beforeEach(async ()=>{
31
30
  const bobsSecretKey = Fr.random();
32
31
  const bobsPrivateSigningKey = Fq.random();
33
- const bobsSalt = Fr.random();
34
- const bobsAccountManager = await wallet.createAccount({
35
- secret: bobsSecretKey,
36
- salt: bobsSalt,
37
- contract: new SchnorrAccountContract(bobsPrivateSigningKey)
38
- });
39
- bobsAddress = bobsAccountManager.address;
32
+ const bobsAccountManager = await getSchnorrAccount(pxe, bobsSecretKey, bobsPrivateSigningKey, Fr.random());
33
+ const bobsCompleteAddress = await bobsAccountManager.getCompleteAddress();
34
+ bobsAddress = bobsCompleteAddress.address;
35
+ await bobsAccountManager.getWallet();
36
+ await bobsAccountManager.register();
40
37
  });
41
38
  it('Alice bridges funds to Bob', async ()=>{
42
39
  // Tweak the token manager so the bridging happens immediately before the end of the current L2 slot
@@ -1,6 +1,4 @@
1
- import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
- import { type Logger } from '@aztec/aztec.js/log';
3
- import type { AztecNode } from '@aztec/aztec.js/node';
1
+ import { type AccountWallet, type AztecAddress, type AztecNode, type Logger, type PXE } from '@aztec/aztec.js';
4
2
  import { CheatCodes } from '@aztec/aztec/testing';
5
3
  import { type DeployL1ContractsArgs, RollupContract } from '@aztec/ethereum';
6
4
  import { ChainMonitor } from '@aztec/ethereum/test';
@@ -12,7 +10,6 @@ import { SponsoredFPCContract } from '@aztec/noir-contracts.js/SponsoredFPC';
12
10
  import { TokenContract as BananaCoin } from '@aztec/noir-contracts.js/Token';
13
11
  import { CounterContract } from '@aztec/noir-test-contracts.js/Counter';
14
12
  import { GasSettings } from '@aztec/stdlib/gas';
15
- import { TestWallet } from '@aztec/test-wallet/server';
16
13
  import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
17
14
  import { type BalancesFn, type SetupOptions } from '../fixtures/utils.js';
18
15
  import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.js';
@@ -29,12 +26,15 @@ import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.j
29
26
  export declare class FeesTest {
30
27
  private numberOfAccounts;
31
28
  private snapshotManager;
29
+ private wallets;
32
30
  private accounts;
33
31
  logger: Logger;
32
+ pxe: PXE;
34
33
  aztecNode: AztecNode;
35
34
  cheatCodes: CheatCodes;
36
- wallet: TestWallet;
35
+ aliceWallet: AccountWallet;
37
36
  aliceAddress: AztecAddress;
37
+ bobWallet: AccountWallet;
38
38
  bobAddress: AztecAddress;
39
39
  sequencerAddress: AztecAddress;
40
40
  coinbase: EthAddress;
@@ -1 +1 @@
1
- {"version":3,"file":"fees_test.d.ts","sourceRoot":"","sources":["../../src/e2e_fees/fees_test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,KAAK,qBAAqB,EAAE,cAAc,EAA0B,MAAM,iBAAiB,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,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,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAKvD,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EAIlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAuC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