@aztec/end-to-end 0.0.1-commit.d3ec352c → 0.0.1-commit.d6f2b3f94

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 (218) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +3 -2
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/benchmark.js +21 -1
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts +14 -15
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  6. package/dest/bench/client_flows/client_flows_benchmark.js +123 -136
  7. package/dest/bench/client_flows/config.d.ts +2 -2
  8. package/dest/bench/client_flows/config.d.ts.map +1 -1
  9. package/dest/bench/client_flows/config.js +18 -0
  10. package/dest/bench/client_flows/data_extractor.js +3 -1
  11. package/dest/bench/utils.d.ts +9 -8
  12. package/dest/bench/utils.d.ts.map +1 -1
  13. package/dest/bench/utils.js +27 -18
  14. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +6 -7
  15. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  16. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +96 -112
  17. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +19 -13
  18. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  19. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +92 -71
  20. package/dest/e2e_deploy_contract/deploy_test.d.ts +4 -3
  21. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  22. package/dest/e2e_deploy_contract/deploy_test.js +18 -13
  23. package/dest/e2e_epochs/epochs_test.d.ts +9 -2
  24. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  25. package/dest/e2e_epochs/epochs_test.js +51 -21
  26. package/dest/e2e_fees/bridging_race.notest.js +4 -6
  27. package/dest/e2e_fees/fees_test.d.ts +18 -15
  28. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  29. package/dest/e2e_fees/fees_test.js +126 -141
  30. package/dest/e2e_l1_publisher/write_json.d.ts +4 -3
  31. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
  32. package/dest/e2e_l1_publisher/write_json.js +14 -16
  33. package/dest/e2e_multi_validator/utils.js +1 -1
  34. package/dest/e2e_nested_contract/nested_contract_test.d.ts +6 -9
  35. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  36. package/dest/e2e_nested_contract/nested_contract_test.js +31 -39
  37. package/dest/e2e_p2p/inactivity_slash_test.d.ts +4 -4
  38. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  39. package/dest/e2e_p2p/inactivity_slash_test.js +6 -9
  40. package/dest/e2e_p2p/p2p_network.d.ts +13 -11
  41. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  42. package/dest/e2e_p2p/p2p_network.js +120 -111
  43. package/dest/e2e_p2p/reqresp/utils.d.ts +22 -0
  44. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -0
  45. package/dest/e2e_p2p/reqresp/utils.js +153 -0
  46. package/dest/e2e_p2p/shared.d.ts +7 -7
  47. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  48. package/dest/e2e_p2p/shared.js +16 -20
  49. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +2 -0
  50. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +1 -0
  51. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.js +184 -0
  52. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts +18 -0
  53. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +1 -0
  54. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.js +120 -0
  55. package/dest/e2e_token_contract/token_contract_test.d.ts +16 -9
  56. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  57. package/dest/e2e_token_contract/token_contract_test.js +89 -91
  58. package/dest/fixtures/e2e_prover_test.d.ts +10 -18
  59. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  60. package/dest/fixtures/e2e_prover_test.js +91 -103
  61. package/dest/fixtures/fixtures.d.ts +2 -3
  62. package/dest/fixtures/fixtures.d.ts.map +1 -1
  63. package/dest/fixtures/fixtures.js +1 -2
  64. package/dest/fixtures/get_acvm_config.js +1 -1
  65. package/dest/fixtures/ha_setup.d.ts +71 -0
  66. package/dest/fixtures/ha_setup.d.ts.map +1 -0
  67. package/dest/fixtures/ha_setup.js +114 -0
  68. package/dest/fixtures/index.d.ts +2 -1
  69. package/dest/fixtures/index.d.ts.map +1 -1
  70. package/dest/fixtures/index.js +1 -0
  71. package/dest/fixtures/l1_to_l2_messaging.d.ts +4 -3
  72. package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
  73. package/dest/fixtures/l1_to_l2_messaging.js +2 -2
  74. package/dest/fixtures/setup.d.ts +218 -0
  75. package/dest/fixtures/setup.d.ts.map +1 -0
  76. package/dest/fixtures/setup.js +630 -0
  77. package/dest/fixtures/setup_p2p_test.d.ts +12 -8
  78. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  79. package/dest/fixtures/setup_p2p_test.js +32 -24
  80. package/dest/fixtures/token_utils.d.ts +1 -1
  81. package/dest/fixtures/token_utils.d.ts.map +1 -1
  82. package/dest/fixtures/token_utils.js +7 -4
  83. package/dest/fixtures/utils.d.ts +5 -638
  84. package/dest/fixtures/utils.d.ts.map +1 -1
  85. package/dest/fixtures/utils.js +4 -647
  86. package/dest/fixtures/web3signer.js +1 -1
  87. package/dest/fixtures/with_telemetry_utils.d.ts +2 -2
  88. package/dest/fixtures/with_telemetry_utils.d.ts.map +1 -1
  89. package/dest/fixtures/with_telemetry_utils.js +2 -2
  90. package/dest/quality_of_service/grafana_client.d.ts +41 -0
  91. package/dest/quality_of_service/grafana_client.d.ts.map +1 -0
  92. package/dest/quality_of_service/{alert_checker.js → grafana_client.js} +1 -1
  93. package/dest/quality_of_service/prometheus_client.d.ts +38 -0
  94. package/dest/quality_of_service/prometheus_client.d.ts.map +1 -0
  95. package/dest/quality_of_service/prometheus_client.js +67 -0
  96. package/dest/shared/cross_chain_test_harness.d.ts +18 -7
  97. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  98. package/dest/shared/cross_chain_test_harness.js +14 -14
  99. package/dest/shared/gas_portal_test_harness.d.ts +12 -2
  100. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  101. package/dest/shared/gas_portal_test_harness.js +1 -1
  102. package/dest/shared/index.d.ts +2 -2
  103. package/dest/shared/index.d.ts.map +1 -1
  104. package/dest/shared/submit-transactions.d.ts +3 -3
  105. package/dest/shared/submit-transactions.d.ts.map +1 -1
  106. package/dest/shared/submit-transactions.js +9 -11
  107. package/dest/shared/uniswap_l1_l2.d.ts +3 -27
  108. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  109. package/dest/shared/uniswap_l1_l2.js +57 -35
  110. package/dest/simulators/lending_simulator.d.ts +6 -2
  111. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  112. package/dest/simulators/lending_simulator.js +2 -2
  113. package/dest/spartan/setup_test_wallets.d.ts +4 -3
  114. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  115. package/dest/spartan/setup_test_wallets.js +63 -35
  116. package/dest/spartan/tx_metrics.d.ts +88 -0
  117. package/dest/spartan/tx_metrics.d.ts.map +1 -0
  118. package/dest/spartan/tx_metrics.js +422 -0
  119. package/dest/spartan/utils/bot.d.ts +27 -0
  120. package/dest/spartan/utils/bot.d.ts.map +1 -0
  121. package/dest/spartan/utils/bot.js +141 -0
  122. package/dest/spartan/utils/chaos.d.ts +79 -0
  123. package/dest/spartan/utils/chaos.d.ts.map +1 -0
  124. package/dest/spartan/utils/chaos.js +142 -0
  125. package/dest/spartan/utils/clients.d.ts +39 -0
  126. package/dest/spartan/utils/clients.d.ts.map +1 -0
  127. package/dest/spartan/utils/clients.js +90 -0
  128. package/dest/spartan/utils/config.d.ts +39 -0
  129. package/dest/spartan/utils/config.d.ts.map +1 -0
  130. package/dest/spartan/utils/config.js +21 -0
  131. package/dest/spartan/utils/health.d.ts +63 -0
  132. package/dest/spartan/utils/health.d.ts.map +1 -0
  133. package/dest/spartan/utils/health.js +202 -0
  134. package/dest/spartan/utils/helm.d.ts +15 -0
  135. package/dest/spartan/utils/helm.d.ts.map +1 -0
  136. package/dest/spartan/utils/helm.js +47 -0
  137. package/dest/spartan/utils/index.d.ts +9 -0
  138. package/dest/spartan/utils/index.d.ts.map +1 -0
  139. package/dest/spartan/utils/index.js +18 -0
  140. package/dest/spartan/utils/k8s.d.ts +126 -0
  141. package/dest/spartan/utils/k8s.d.ts.map +1 -0
  142. package/dest/spartan/utils/k8s.js +375 -0
  143. package/dest/spartan/utils/nodes.d.ts +41 -0
  144. package/dest/spartan/utils/nodes.d.ts.map +1 -0
  145. package/dest/spartan/utils/nodes.js +461 -0
  146. package/dest/spartan/utils/scripts.d.ts +30 -0
  147. package/dest/spartan/utils/scripts.d.ts.map +1 -0
  148. package/dest/spartan/utils/scripts.js +81 -0
  149. package/dest/spartan/utils.d.ts +2 -221
  150. package/dest/spartan/utils.d.ts.map +1 -1
  151. package/dest/spartan/utils.js +1 -782
  152. package/package.json +43 -39
  153. package/src/bench/client_flows/benchmark.ts +24 -2
  154. package/src/bench/client_flows/client_flows_benchmark.ts +145 -208
  155. package/src/bench/client_flows/config.ts +9 -1
  156. package/src/bench/client_flows/data_extractor.ts +1 -1
  157. package/src/bench/utils.ts +31 -21
  158. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +104 -142
  159. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +139 -125
  160. package/src/e2e_deploy_contract/deploy_test.ts +21 -14
  161. package/src/e2e_epochs/epochs_test.ts +96 -47
  162. package/src/e2e_fees/bridging_race.notest.ts +4 -10
  163. package/src/e2e_fees/fees_test.ts +176 -219
  164. package/src/e2e_l1_publisher/write_json.ts +16 -16
  165. package/src/e2e_multi_validator/utils.ts +1 -1
  166. package/src/e2e_nested_contract/nested_contract_test.ts +33 -56
  167. package/src/e2e_p2p/inactivity_slash_test.ts +7 -10
  168. package/src/e2e_p2p/p2p_network.ts +180 -183
  169. package/src/e2e_p2p/reqresp/utils.ts +207 -0
  170. package/src/e2e_p2p/shared.ts +32 -28
  171. package/src/e2e_storage_proof/fixtures/storage_proof.json +915 -0
  172. package/src/e2e_storage_proof/fixtures/storage_proof_fetcher.ts +190 -0
  173. package/src/e2e_storage_proof/fixtures/storage_proof_fixture.ts +173 -0
  174. package/src/e2e_token_contract/token_contract_test.ts +103 -118
  175. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  176. package/src/fixtures/e2e_prover_test.ts +103 -140
  177. package/src/fixtures/fixtures.ts +1 -3
  178. package/src/fixtures/get_acvm_config.ts +1 -1
  179. package/src/fixtures/ha_setup.ts +184 -0
  180. package/src/fixtures/index.ts +1 -0
  181. package/src/fixtures/l1_to_l2_messaging.ts +4 -2
  182. package/src/fixtures/setup.ts +932 -0
  183. package/src/fixtures/setup_p2p_test.ts +34 -30
  184. package/src/fixtures/token_utils.ts +6 -5
  185. package/src/fixtures/utils.ts +27 -966
  186. package/src/fixtures/web3signer.ts +1 -1
  187. package/src/fixtures/with_telemetry_utils.ts +2 -2
  188. package/src/quality_of_service/{alert_checker.ts → grafana_client.ts} +1 -1
  189. package/src/quality_of_service/prometheus_client.ts +113 -0
  190. package/src/shared/cross_chain_test_harness.ts +19 -37
  191. package/src/shared/gas_portal_test_harness.ts +2 -2
  192. package/src/shared/index.ts +1 -1
  193. package/src/shared/submit-transactions.ts +9 -15
  194. package/src/shared/uniswap_l1_l2.ts +65 -88
  195. package/src/simulators/lending_simulator.ts +3 -3
  196. package/src/spartan/setup_test_wallets.ts +81 -26
  197. package/src/spartan/tx_metrics.ts +376 -0
  198. package/src/spartan/utils/bot.ts +185 -0
  199. package/src/spartan/utils/chaos.ts +253 -0
  200. package/src/spartan/utils/clients.ts +100 -0
  201. package/src/spartan/utils/config.ts +27 -0
  202. package/src/spartan/utils/health.ts +255 -0
  203. package/src/spartan/utils/helm.ts +84 -0
  204. package/src/spartan/utils/index.ts +64 -0
  205. package/src/spartan/utils/k8s.ts +527 -0
  206. package/src/spartan/utils/nodes.ts +538 -0
  207. package/src/spartan/utils/scripts.ts +99 -0
  208. package/src/spartan/utils.ts +1 -983
  209. package/dest/fixtures/setup_l1_contracts.d.ts +0 -477
  210. package/dest/fixtures/setup_l1_contracts.d.ts.map +0 -1
  211. package/dest/fixtures/setup_l1_contracts.js +0 -17
  212. package/dest/fixtures/snapshot_manager.d.ts +0 -95
  213. package/dest/fixtures/snapshot_manager.d.ts.map +0 -1
  214. package/dest/fixtures/snapshot_manager.js +0 -505
  215. package/dest/quality_of_service/alert_checker.d.ts +0 -41
  216. package/dest/quality_of_service/alert_checker.d.ts.map +0 -1
  217. package/src/fixtures/setup_l1_contracts.ts +0 -26
  218. package/src/fixtures/snapshot_manager.ts +0 -665
@@ -1,6 +1,5 @@
1
- import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
1
+ import { NO_WAIT, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
2
2
  import { Fr } from '@aztec/aztec.js/fields';
3
- import { TxStatus } from '@aztec/aztec.js/tx';
4
3
  import { EpochNumber } from '@aztec/foundation/branded-types';
5
4
  import { timesAsync, unique } from '@aztec/foundation/collection';
6
5
  import { retryUntil } from '@aztec/foundation/retry';
@@ -16,18 +15,13 @@ export const submitComplexTxsTo = async (logger, from, spamContract, numTxs, opt
16
15
  const seed = 1234n;
17
16
  const spamCount = 15;
18
17
  for(let i = 0; i < numTxs; i++){
19
- const tx = spamContract.methods.spam(seed + BigInt(i * spamCount), spamCount, !!opts.callPublic).send({
20
- from
18
+ const method = spamContract.methods.spam(seed + BigInt(i * spamCount), spamCount, !!opts.callPublic);
19
+ const txHash = await method.send({
20
+ from,
21
+ wait: NO_WAIT
21
22
  });
22
- const txHash = await tx.getTxHash();
23
23
  logger.info(`Tx sent with hash ${txHash.toString()}`);
24
- const receipt = await tx.getReceipt();
25
- expect(receipt).toEqual(expect.objectContaining({
26
- status: TxStatus.PENDING,
27
- error: ''
28
- }));
29
- logger.info(`Receipt received for ${txHash.toString()}`);
30
- txs.push(tx);
24
+ txs.push(txHash);
31
25
  }
32
26
  return txs;
33
27
  };
@@ -39,7 +33,7 @@ export const submitTransactions = async (logger, node, numTxs, fundedAccount)=>{
39
33
  ...getPXEConfig(),
40
34
  proverEnabled: false
41
35
  }, {
42
- useLogSuffix: true
36
+ loggerActorLabel: 'pxe-tx'
43
37
  });
44
38
  const fundedAccountManager = await wallet.createSchnorrAccount(fundedAccount.secret, fundedAccount.salt);
45
39
  return submitTxsTo(wallet, fundedAccountManager.address, numTxs, logger);
@@ -51,7 +45,7 @@ export async function prepareTransactions(logger, node, numTxs, fundedAccount) {
51
45
  ...getPXEConfig(),
52
46
  proverEnabled: false
53
47
  }, {
54
- useLogSuffix: true
48
+ loggerActorLabel: 'pxe-tx'
55
49
  });
56
50
  const fundedAccountManager = await wallet.createSchnorrAccount(fundedAccount.secret, fundedAccount.salt);
57
51
  const testContractInstance = await getContractInstanceFromInstantiationParams(TestContractArtifact, {
@@ -63,8 +57,7 @@ export async function prepareTransactions(logger, node, numTxs, fundedAccount) {
63
57
  const tx = await proveInteraction(wallet, contract.methods.emit_nullifier(Fr.random()), {
64
58
  from: fundedAccountManager.address
65
59
  });
66
- const txHash = tx.getTxHash();
67
- logger.info(`Tx prepared with hash ${txHash}`);
60
+ logger.info(`Tx prepared with hash ${tx.getTxHash()}`);
68
61
  return tx;
69
62
  });
70
63
  }
@@ -101,7 +94,10 @@ export async function awaitCommitteeExists({ rollup, logger }) {
101
94
  committee = await rollup.getCurrentEpochCommittee();
102
95
  return committee && committee.length > 0;
103
96
  }, 'non-empty committee', 60);
104
- return committee;
97
+ logger.warn(`Committee has been formed`, {
98
+ committee: committee.map((c)=>c.toString())
99
+ });
100
+ return committee.map((c)=>c.toString());
105
101
  }
106
102
  export async function awaitOffenseDetected({ logger, nodeAdmin, slashingRoundSize, epochDuration, waitUntilOffenseCount, timeoutSeconds = 120 }) {
107
103
  const targetOffenseCount = waitUntilOffenseCount ?? 1;
@@ -130,9 +126,9 @@ export async function awaitOffenseDetected({ logger, nodeAdmin, slashingRoundSiz
130
126
  await cheatCodes.debugRollup();
131
127
  if (slashingProposer.type === 'empire') {
132
128
  // Await for the slash payload to be created if empire (no payload is created on tally until execution time)
133
- const targetEpoch = BigInt(await cheatCodes.getEpoch()) + await rollup.getLagInEpochsForValidatorSet() + 1n;
129
+ const targetEpoch = EpochNumber(await cheatCodes.getEpoch() + await rollup.getLagInEpochsForValidatorSet() + 1);
134
130
  logger.info(`Advancing to epoch ${targetEpoch} so we start slashing`);
135
- await cheatCodes.advanceToEpoch(EpochNumber.fromBigInt(targetEpoch));
131
+ await cheatCodes.advanceToEpoch(targetEpoch);
136
132
  const slashPayloadEvents = await retryUntil(async ()=>{
137
133
  const events = await slashFactory.getSlashPayloadCreatedEvents();
138
134
  return events.length > 0 ? events : undefined;
@@ -173,7 +169,7 @@ export async function awaitOffenseDetected({ logger, nodeAdmin, slashingRoundSiz
173
169
  }
174
170
  logger.info(`Advancing to check current committee`);
175
171
  await cheatCodes.debugRollup();
176
- await cheatCodes.advanceToEpoch(EpochNumber.fromBigInt(BigInt(await cheatCodes.getEpoch()) + await rollup.getLagInEpochsForValidatorSet() + 1n));
172
+ await cheatCodes.advanceToEpoch(EpochNumber(await cheatCodes.getEpoch() + await rollup.getLagInEpochsForValidatorSet() + 1));
177
173
  await cheatCodes.debugRollup();
178
174
  const committeeNextEpoch = await rollup.getCurrentEpochCommittee();
179
175
  // The committee should be undefined, since the validator set is empty
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZV9wcm9vZl9mZXRjaGVyLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZTJlX3N0b3JhZ2VfcHJvb2YvZml4dHVyZXMvc3RvcmFnZV9wcm9vZl9mZXRjaGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage_proof_fetcher.d.ts","sourceRoot":"","sources":["../../../src/e2e_storage_proof/fixtures/storage_proof_fetcher.ts"],"names":[],"mappings":""}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Fetches a ERC20 balance storage proof from the Ethereum mainnet and saves it to a Prover.toml compatible JSON.
3
+ * The JSON can be converted to toml for use with nargo, or used directly as a JSON file when used in
4
+ * Aztec contracts. This script is not using any Aztec library code, so it's easily portable.
5
+ */ import fs from 'fs';
6
+ import { dirname, join } from 'path';
7
+ import { fileURLToPath } from 'url';
8
+ import { createPublicClient, encodeAbiParameters, fromRlp, hexToBytes, http, keccak256 } from 'viem';
9
+ import { mainnet } from 'viem/chains';
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const RPC_URL = process.env.RPC_URL;
12
+ const ERC20_CONTRACT = process.env.ERC20_CONTRACT || '0xdAC17F958D2ee523a2206206994597C13D831ec7';
13
+ const HOLDER = process.env.HOLDER || '0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a';
14
+ const SLOT = BigInt(process.env.SLOT || '2');
15
+ const BLOCK_TAG = process.env.BLOCK_NUMBER ? BigInt(process.env.BLOCK_NUMBER) : 'latest';
16
+ const MAX_ACCOUNT_PATH = 15;
17
+ const MAX_STORAGE_PATH = 10;
18
+ function padTo(arr, len) {
19
+ return [
20
+ ...arr,
21
+ ...Array(len - arr.length).fill(0)
22
+ ].slice(0, len);
23
+ }
24
+ function toBytes(hex) {
25
+ return Array.from(hexToBytes(hex));
26
+ }
27
+ function bytesToU64s(bytes) {
28
+ const paddedBytes = padTo(bytes, 32);
29
+ return Array.from({
30
+ length: 4
31
+ }, (_, i)=>{
32
+ let val = 0n;
33
+ for(let j = 0; j < 8; j++){
34
+ val += BigInt(paddedBytes[i * 8 + j]) << BigInt(j * 8);
35
+ }
36
+ return val.toString();
37
+ });
38
+ }
39
+ function toBytesAndLen(val) {
40
+ if (val === 0n || val === 0) {
41
+ return {
42
+ bytes: [
43
+ 0
44
+ ],
45
+ length: 0
46
+ };
47
+ }
48
+ let hex = val.toString(16);
49
+ if (hex.length % 2) {
50
+ hex = '0' + hex;
51
+ }
52
+ const bytes = toBytes(`0x${hex}`);
53
+ return {
54
+ bytes,
55
+ length: bytes.length
56
+ };
57
+ }
58
+ function parseNode(rlp) {
59
+ // Should be safe when working with branches and extensions without embedded children.
60
+ const decoded = fromRlp(rlp);
61
+ const node = {
62
+ rows: Array(16).fill(0).map(()=>Array(32).fill(0)),
63
+ row_exist: Array(16).fill(false),
64
+ node_type: 0
65
+ };
66
+ if (decoded.length === 17) {
67
+ for(let i = 0; i < 16; i++){
68
+ if (decoded[i] !== '0x') {
69
+ node.row_exist[i] = true;
70
+ node.rows[i] = padTo(toBytes(decoded[i]), 32);
71
+ }
72
+ }
73
+ } else if (decoded.length === 2) {
74
+ const keyBytes = toBytes(decoded[0]);
75
+ const prefix = keyBytes[0];
76
+ if (prefix >> 4 >= 2) {
77
+ throw new Error('Unsupported: leaf node in proof path');
78
+ }
79
+ node.node_type = 1;
80
+ // Extension header format expected by the noir code: check out storage_proof types.nr.
81
+ node.rows[0][0] = prefix >> 4;
82
+ node.rows[0][8] = prefix & 0x0f;
83
+ node.rows[0][16] = keyBytes.length - 1;
84
+ for(let i = 1; i < keyBytes.length && i < 32; i++){
85
+ node.rows[1][i - 1] = keyBytes[i];
86
+ }
87
+ node.rows[2] = padTo(toBytes(decoded[1]), 32);
88
+ node.row_exist[0] = node.row_exist[1] = node.row_exist[2] = true;
89
+ }
90
+ return node;
91
+ }
92
+ function parseProof(proof, maxLen) {
93
+ const nodes = proof.slice(0, -1).slice(0, maxLen).map(parseNode);
94
+ while(nodes.length < maxLen){
95
+ nodes.push({
96
+ rows: Array(16).fill(0).map(()=>Array(32).fill(0)),
97
+ row_exist: Array(16).fill(false),
98
+ node_type: 0
99
+ });
100
+ }
101
+ return nodes;
102
+ }
103
+ function nodeToLibFormat(node) {
104
+ return {
105
+ rows: node.rows.map(bytesToU64s),
106
+ row_exist: node.row_exist,
107
+ node_type: String(node.node_type)
108
+ };
109
+ }
110
+ async function main() {
111
+ if (!RPC_URL) {
112
+ throw new Error('RPC_URL is not set');
113
+ }
114
+ const storageKey = keccak256(encodeAbiParameters([
115
+ {
116
+ type: 'address'
117
+ },
118
+ {
119
+ type: 'uint256'
120
+ }
121
+ ], [
122
+ HOLDER,
123
+ SLOT
124
+ ]));
125
+ console.log(`Fetching storage proof for ${ERC20_CONTRACT}, holder ${HOLDER}, slot ${SLOT}`);
126
+ console.log(`Storage key: ${storageKey}`);
127
+ const client = createPublicClient({
128
+ chain: mainnet,
129
+ transport: http(RPC_URL)
130
+ });
131
+ const [blockNumber, proof, block] = await Promise.all([
132
+ client.getBlockNumber(),
133
+ client.getProof({
134
+ address: ERC20_CONTRACT,
135
+ storageKeys: [
136
+ storageKey
137
+ ],
138
+ blockNumber: BLOCK_TAG === 'latest' ? undefined : BLOCK_TAG
139
+ }),
140
+ client.getBlock({
141
+ blockNumber: BLOCK_TAG === 'latest' ? undefined : BLOCK_TAG
142
+ })
143
+ ]);
144
+ const storageProof = proof.storageProof[0];
145
+ console.log(`Block: ${blockNumber}, Account nodes: ${proof.accountProof.length}, Storage nodes: ${storageProof.proof.length}`);
146
+ console.log(`Value: ${storageProof.value}`);
147
+ // The -1 is because the last node in the proof is the leaf, which is excluded from path verification.
148
+ const accountPathLen = proof.accountProof.length - 1;
149
+ const storagePathLen = storageProof.proof.length - 1;
150
+ if (accountPathLen > MAX_ACCOUNT_PATH) {
151
+ throw new Error(`Account proof path length ${accountPathLen} exceeds MAX_ACCOUNT_PATH ${MAX_ACCOUNT_PATH}. Increase the limit.`);
152
+ }
153
+ if (storagePathLen > MAX_STORAGE_PATH) {
154
+ throw new Error(`Storage proof path length ${storagePathLen} exceeds MAX_STORAGE_PATH ${MAX_STORAGE_PATH}. Increase the limit.`);
155
+ }
156
+ const nonce = toBytesAndLen(proof.nonce);
157
+ const balance = toBytesAndLen(proof.balance);
158
+ const slotValue = toBytesAndLen(storageProof.value);
159
+ const data = {
160
+ account_nodes: parseProof(proof.accountProof, MAX_ACCOUNT_PATH).map(nodeToLibFormat),
161
+ account_node_length: String(accountPathLen),
162
+ storage_nodes: parseProof(storageProof.proof, MAX_STORAGE_PATH).map(nodeToLibFormat),
163
+ storage_node_length: String(storagePathLen),
164
+ account: {
165
+ nonce: padTo(nonce.bytes, 8).map(String),
166
+ nonce_length: String(nonce.length),
167
+ balance: padTo(balance.bytes, 32).map(String),
168
+ balance_length: String(balance.length),
169
+ address: toBytes(ERC20_CONTRACT).map(String),
170
+ storage_hash: bytesToU64s(toBytes(proof.storageHash)),
171
+ code_hash: bytesToU64s(toBytes(proof.codeHash))
172
+ },
173
+ slot: {
174
+ value: padTo(slotValue.bytes, 32).map(String),
175
+ value_length: String(slotValue.length)
176
+ },
177
+ slot_key: toBytes(storageKey).map(String),
178
+ root: bytesToU64s(toBytes(block.stateRoot)),
179
+ block_number: String(blockNumber)
180
+ };
181
+ fs.writeFileSync(join(__dirname, 'storage_proof.json'), JSON.stringify(data, null, 2));
182
+ console.log('storage_proof.json generated');
183
+ }
184
+ main().catch(console.error);
@@ -0,0 +1,18 @@
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { EthAddress } from '@aztec/foundation/eth-address';
3
+ import { Capsule } from '@aztec/stdlib/tx';
4
+ /** Parsed + typed fixture data ready for use as contract function arguments. */
5
+ export type StorageProofArgs = {
6
+ ethAddress: EthAddress;
7
+ slotKey: number[];
8
+ slotContents: {
9
+ value: number[];
10
+ value_length: number;
11
+ };
12
+ root: bigint[];
13
+ };
14
+ /** Loads the storage proof fixture from disk and returns the contract args. */
15
+ export declare function loadStorageProofArgs(): StorageProofArgs;
16
+ /** Builds all the capsules the StorageProofTest contract expects during private execution. */
17
+ export declare function buildStorageProofCapsules(contractAddress: AztecAddress): Promise<Capsule[]>;
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZV9wcm9vZl9maXh0dXJlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZTJlX3N0b3JhZ2VfcHJvb2YvZml4dHVyZXMvc3RvcmFnZV9wcm9vZl9maXh0dXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUMzRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUF3RjNDLGdGQUFnRjtBQUNoRixNQUFNLE1BQU0sZ0JBQWdCLEdBQUc7SUFDN0IsVUFBVSxFQUFFLFVBQVUsQ0FBQztJQUN2QixPQUFPLEVBQUUsTUFBTSxFQUFFLENBQUM7SUFDbEIsWUFBWSxFQUFFO1FBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxDQUFDO1FBQUMsWUFBWSxFQUFFLE1BQU0sQ0FBQTtLQUFFLENBQUM7SUFDeEQsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDO0NBQ2hCLENBQUM7QUFFRiwrRUFBK0U7QUFDL0Usd0JBQWdCLG9CQUFvQixJQUFJLGdCQUFnQixDQWF2RDtBQUVELDhGQUE4RjtBQUM5Rix3QkFBc0IseUJBQXlCLENBQUMsZUFBZSxFQUFFLFlBQVksR0FBRyxPQUFPLENBQUMsT0FBTyxFQUFFLENBQUMsQ0F1RGpHIn0=
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage_proof_fixture.d.ts","sourceRoot":"","sources":["../../../src/e2e_storage_proof/fixtures/storage_proof_fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAwF3C,gFAAgF;AAChF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,gBAAgB,CAavD;AAED,8FAA8F;AAC9F,wBAAsB,yBAAyB,CAAC,eAAe,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAuDjG"}
@@ -0,0 +1,120 @@
1
+ import { poseidon2Hash } from '@aztec/foundation/crypto/poseidon';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
3
+ import { EthAddress } from '@aztec/foundation/eth-address';
4
+ import { Capsule } from '@aztec/stdlib/tx';
5
+ import { readFileSync } from 'fs';
6
+ import { dirname, join } from 'path';
7
+ import { fileURLToPath } from 'url';
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ const FIXTURE_PATH = join(__dirname, './storage_proof.json');
10
+ // Constants matching the Noir contract
11
+ const ACCOUNT_CAPSULE_KEY_SEPARATOR = 100;
12
+ const ACCOUNT_PROOF_CAPSULE_KEY_SEPARATOR = 101;
13
+ const STORAGE_PROOF_CAPSULE_KEY_SEPARATOR = 102;
14
+ const STORAGE_PROOF_NODE_CAPSULE_KEY_SEPARATOR = 103;
15
+ const MAX_ACCOUNT_PROOF_LENGTH = 15;
16
+ /** Node: rows [[u64;4];16] (64) + row_exist [bool;16] (16) + node_type u8 (1) = 81 fields */ const NODE_FIELD_COUNT = 81;
17
+ // --- Serialization helpers (Noir struct Serialize layout) ---
18
+ function serializeNode(node) {
19
+ const fields = [];
20
+ for (const row of node.rows){
21
+ for (const val of row){
22
+ fields.push(new Fr(BigInt(val)));
23
+ }
24
+ }
25
+ for (const exists of node.row_exist){
26
+ fields.push(new Fr(exists ? 1n : 0n));
27
+ }
28
+ fields.push(new Fr(BigInt(node.node_type)));
29
+ return fields;
30
+ }
31
+ /** Account: nonce [u8;8] + balance [u8;32] + address [u8;20] + nonce_length u8 + balance_length u8 + storage_hash [u64;4] + code_hash [u64;4] = 70 fields */ function serializeAccount(account) {
32
+ const fields = [];
33
+ for (const v of account.nonce){
34
+ fields.push(new Fr(BigInt(v)));
35
+ }
36
+ for (const v of account.balance){
37
+ fields.push(new Fr(BigInt(v)));
38
+ }
39
+ for (const v of account.address){
40
+ fields.push(new Fr(BigInt(v)));
41
+ }
42
+ fields.push(new Fr(BigInt(account.nonce_length)));
43
+ fields.push(new Fr(BigInt(account.balance_length)));
44
+ for (const v of account.storage_hash){
45
+ fields.push(new Fr(BigInt(v)));
46
+ }
47
+ for (const v of account.code_hash){
48
+ fields.push(new Fr(BigInt(v)));
49
+ }
50
+ return fields;
51
+ }
52
+ function zeroNode() {
53
+ return Array(NODE_FIELD_COUNT).fill(Fr.ZERO);
54
+ }
55
+ /** Loads the storage proof fixture from disk and returns the contract args. */ export function loadStorageProofArgs() {
56
+ const fixture = JSON.parse(readFileSync(FIXTURE_PATH, 'utf8'));
57
+ const addressBytes = Buffer.from(fixture.account.address.map((v)=>Number(v)));
58
+ return {
59
+ ethAddress: EthAddress.fromString('0x' + addressBytes.toString('hex')),
60
+ slotKey: fixture.slot_key.map((v)=>Number(v)),
61
+ slotContents: {
62
+ value: fixture.slot.value.map((v)=>Number(v)),
63
+ // eslint-disable-next-line camelcase
64
+ value_length: Number(fixture.slot.value_length)
65
+ },
66
+ root: fixture.root.map((v)=>BigInt(v))
67
+ };
68
+ }
69
+ /** Builds all the capsules the StorageProofTest contract expects during private execution. */ export async function buildStorageProofCapsules(contractAddress) {
70
+ const fixture = JSON.parse(readFileSync(FIXTURE_PATH, 'utf8'));
71
+ const root = fixture.root.map((v)=>BigInt(v));
72
+ const slotKey = fixture.slot_key.map((v)=>Number(v));
73
+ const accountNodeLength = Number(fixture.account_node_length);
74
+ const storageNodeLength = Number(fixture.storage_node_length);
75
+ const ethAddress = EthAddress.fromBuffer(Buffer.from(fixture.account.address.map((v)=>Number(v))));
76
+ // Compute capsule keys (must match the Noir contract's poseidon2_hash computations)
77
+ const addressCapsuleKey = await poseidon2Hash([
78
+ new Fr(ACCOUNT_CAPSULE_KEY_SEPARATOR),
79
+ ...root.map((v)=>new Fr(v)),
80
+ ethAddress.toField()
81
+ ]);
82
+ const accountProofCapsuleKey = await poseidon2Hash([
83
+ new Fr(ACCOUNT_PROOF_CAPSULE_KEY_SEPARATOR),
84
+ addressCapsuleKey
85
+ ]);
86
+ const storageProofCapsuleKey = await poseidon2Hash([
87
+ new Fr(STORAGE_PROOF_CAPSULE_KEY_SEPARATOR),
88
+ addressCapsuleKey,
89
+ ...slotKey.map((v)=>new Fr(v))
90
+ ]);
91
+ // Build capsule data
92
+ // 1. Account data
93
+ const accountData = serializeAccount(fixture.account);
94
+ // 2. Account proof nodes padded to MAX_ACCOUNT_PROOF_LENGTH
95
+ const accountProofData = [
96
+ new Fr(accountNodeLength)
97
+ ];
98
+ for(let i = 0; i < MAX_ACCOUNT_PROOF_LENGTH; i++){
99
+ accountProofData.push(...i < fixture.account_nodes.length ? serializeNode(fixture.account_nodes[i]) : zeroNode());
100
+ }
101
+ // 3. Storage proof length (u32)
102
+ const storageProofLengthData = [
103
+ new Fr(storageNodeLength)
104
+ ];
105
+ const capsules = [
106
+ new Capsule(contractAddress, addressCapsuleKey, accountData),
107
+ new Capsule(contractAddress, accountProofCapsuleKey, accountProofData),
108
+ new Capsule(contractAddress, storageProofCapsuleKey, storageProofLengthData)
109
+ ];
110
+ // 4. Individual storage node capsules for private recursion.
111
+ for(let i = 0; i < storageNodeLength; i++){
112
+ const nodeCapsuleKey = await poseidon2Hash([
113
+ new Fr(STORAGE_PROOF_NODE_CAPSULE_KEY_SEPARATOR),
114
+ storageProofCapsuleKey,
115
+ new Fr(i)
116
+ ]);
117
+ capsules.push(new Capsule(contractAddress, nodeCapsuleKey, serializeNode(fixture.storage_nodes[i])));
118
+ }
119
+ return capsules;
120
+ }
@@ -4,14 +4,15 @@ import type { AztecNode } from '@aztec/aztec.js/node';
4
4
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
5
5
  import { InvalidAccountContract } from '@aztec/noir-test-contracts.js/InvalidAccount';
6
6
  import type { TestWallet } from '@aztec/test-wallet/server';
7
- import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
7
+ import { type EndToEndContext } from '../fixtures/setup.js';
8
8
  import { TokenSimulator } from '../simulators/token_simulator.js';
9
9
  export declare class TokenContractTest {
10
10
  static TOKEN_NAME: string;
11
11
  static TOKEN_SYMBOL: string;
12
12
  static TOKEN_DECIMALS: bigint;
13
- private snapshotManager;
13
+ context: EndToEndContext;
14
14
  logger: Logger;
15
+ metricsPort?: number;
15
16
  asset: TokenContract;
16
17
  tokenSim: TokenSimulator;
17
18
  node: AztecNode;
@@ -20,16 +21,22 @@ export declare class TokenContractTest {
20
21
  adminAddress: AztecAddress;
21
22
  account1Address: AztecAddress;
22
23
  account2Address: AztecAddress;
24
+ private shouldApplyBaseSetup;
25
+ private shouldApplyMint;
23
26
  constructor(testName: string);
24
27
  /**
25
- * Adds two state shifts to snapshot manager.
26
- * 1. Add 3 accounts.
27
- * 2. Publicly deploy accounts, deploy token contract and a "bad account".
28
+ * Registers that base setup should be applied during setup().
29
+ * Call this before setup() to deploy 3 accounts, publicly deploy accounts, token contract and a "bad account".
28
30
  */
29
- applyBaseSnapshots(): Promise<void>;
31
+ applyBaseSnapshots(): void;
32
+ /**
33
+ * Registers that mint should be applied during setup().
34
+ * Call this before setup() to mint tokens to the admin account.
35
+ */
36
+ applyMintSnapshot(): void;
37
+ private applyBaseSetup;
30
38
  setup(): Promise<void>;
31
- snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
32
39
  teardown(): Promise<void>;
33
- applyMintSnapshot(): Promise<void>;
40
+ private applyMint;
34
41
  }
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5fY29udHJhY3RfdGVzdC5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2UyZV90b2tlbl9jb250cmFjdC90b2tlbl9jb250cmFjdF90ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsS0FBSyxNQUFNLEVBQWdCLE1BQU0scUJBQXFCLENBQUM7QUFDaEUsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQy9ELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDhDQUE4QyxDQUFDO0FBQ3RGLE9BQU8sS0FBSyxFQUFFLFVBQVUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBSTVELE9BQU8sRUFFTCxLQUFLLGlCQUFpQixFQUl2QixNQUFNLGlDQUFpQyxDQUFDO0FBRXpDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUlsRSxxQkFBYSxpQkFBaUI7SU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