@aztec/aztec 0.0.1-commit.42ee6df9b → 0.0.1-commit.431c48d

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 (147) hide show
  1. package/dest/bin/index.js +3 -1
  2. package/dest/cli/aztec_start_action.d.ts +1 -1
  3. package/dest/cli/aztec_start_action.d.ts.map +1 -1
  4. package/dest/cli/aztec_start_action.js +33 -33
  5. package/dest/cli/aztec_start_options.d.ts +2 -2
  6. package/dest/cli/aztec_start_options.d.ts.map +1 -1
  7. package/dest/cli/aztec_start_options.js +21 -16
  8. package/dest/cli/cmds/compile.d.ts +1 -1
  9. package/dest/cli/cmds/compile.d.ts.map +1 -1
  10. package/dest/cli/cmds/compile.js +30 -24
  11. package/dest/cli/cmds/profile.d.ts +1 -1
  12. package/dest/cli/cmds/profile.d.ts.map +1 -1
  13. package/dest/cli/cmds/profile.js +1 -1
  14. package/dest/cli/cmds/profile_gates.d.ts +2 -2
  15. package/dest/cli/cmds/profile_gates.d.ts.map +1 -1
  16. package/dest/cli/cmds/profile_gates.js +21 -3
  17. package/dest/cli/cmds/prover.d.ts +4 -0
  18. package/dest/cli/cmds/prover.d.ts.map +1 -0
  19. package/dest/cli/cmds/prover.js +24 -0
  20. package/dest/cli/cmds/standby.d.ts +30 -6
  21. package/dest/cli/cmds/standby.d.ts.map +1 -1
  22. package/dest/cli/cmds/standby.js +48 -5
  23. package/dest/cli/cmds/start_bot.d.ts +1 -1
  24. package/dest/cli/cmds/start_bot.d.ts.map +1 -1
  25. package/dest/cli/cmds/start_bot.js +8 -4
  26. package/dest/cli/cmds/start_node.d.ts +1 -1
  27. package/dest/cli/cmds/start_node.d.ts.map +1 -1
  28. package/dest/cli/cmds/start_node.js +20 -32
  29. package/dest/cli/cmds/start_prover_agent.js +2 -2
  30. package/dest/cli/cmds/start_prover_broker.d.ts +1 -1
  31. package/dest/cli/cmds/start_prover_broker.d.ts.map +1 -1
  32. package/dest/cli/cmds/start_prover_broker.js +11 -8
  33. package/dest/cli/cmds/start_txe.d.ts +2 -2
  34. package/dest/cli/cmds/start_txe.d.ts.map +1 -1
  35. package/dest/cli/cmds/start_txe.js +6 -5
  36. package/dest/cli/cmds/utils/artifacts.d.ts +6 -1
  37. package/dest/cli/cmds/utils/artifacts.d.ts.map +1 -1
  38. package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.d.ts +2 -2
  39. package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.d.ts.map +1 -1
  40. package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.js +35 -15
  41. package/dest/cli/util.d.ts +10 -5
  42. package/dest/cli/util.d.ts.map +1 -1
  43. package/dest/cli/util.js +26 -53
  44. package/dest/deploy/bridging.d.ts +84 -0
  45. package/dest/deploy/bridging.d.ts.map +1 -0
  46. package/dest/deploy/bridging.js +121 -0
  47. package/dest/deploy/fees.d.ts +120 -0
  48. package/dest/deploy/fees.d.ts.map +1 -0
  49. package/dest/deploy/fees.js +278 -0
  50. package/dest/deploy/graph.d.ts +40 -0
  51. package/dest/deploy/graph.d.ts.map +1 -0
  52. package/dest/deploy/graph.js +120 -0
  53. package/dest/deploy/index.d.ts +19 -0
  54. package/dest/deploy/index.d.ts.map +1 -0
  55. package/dest/deploy/index.js +15 -0
  56. package/dest/deploy/reporter.d.ts +106 -0
  57. package/dest/deploy/reporter.d.ts.map +1 -0
  58. package/dest/deploy/reporter.js +76 -0
  59. package/dest/deploy/runner.d.ts +8 -0
  60. package/dest/deploy/runner.d.ts.map +1 -0
  61. package/dest/deploy/runner.js +886 -0
  62. package/dest/deploy/state.d.ts +19 -0
  63. package/dest/deploy/state.d.ts.map +1 -0
  64. package/dest/deploy/state.js +59 -0
  65. package/dest/deploy/types.d.ts +233 -0
  66. package/dest/deploy/types.d.ts.map +1 -0
  67. package/dest/deploy/types.js +9 -0
  68. package/dest/examples/token.js +3 -3
  69. package/dest/local-network/auth_registry.d.ts +5 -0
  70. package/dest/local-network/auth_registry.d.ts.map +1 -0
  71. package/dest/local-network/auth_registry.js +17 -0
  72. package/dest/local-network/banana_fpc.d.ts +3 -2
  73. package/dest/local-network/banana_fpc.d.ts.map +1 -1
  74. package/dest/local-network/banana_fpc.js +11 -7
  75. package/dest/local-network/local-network.d.ts +10 -32
  76. package/dest/local-network/local-network.d.ts.map +1 -1
  77. package/dest/local-network/local-network.js +52 -73
  78. package/dest/testing/cheat_codes.d.ts +17 -23
  79. package/dest/testing/cheat_codes.d.ts.map +1 -1
  80. package/dest/testing/cheat_codes.js +17 -43
  81. package/dest/testing/epoch_test_settler.d.ts +2 -2
  82. package/dest/testing/epoch_test_settler.d.ts.map +1 -1
  83. package/dest/testing/epoch_test_settler.js +6 -25
  84. package/dest/testing/index.d.ts +2 -2
  85. package/dest/testing/index.d.ts.map +1 -1
  86. package/dest/testing/index.js +1 -1
  87. package/dest/testing/local-network.d.ts +51 -0
  88. package/dest/testing/local-network.d.ts.map +1 -0
  89. package/dest/testing/local-network.js +60 -0
  90. package/dest/testing/token_allowed_setup.d.ts +9 -4
  91. package/dest/testing/token_allowed_setup.d.ts.map +1 -1
  92. package/dest/testing/token_allowed_setup.js +12 -8
  93. package/package.json +37 -34
  94. package/scripts/add_crate.sh +11 -60
  95. package/scripts/aztec.sh +6 -2
  96. package/scripts/init.sh +5 -5
  97. package/scripts/new.sh +2 -2
  98. package/scripts/setup_workspace.sh +3 -2
  99. package/scripts/templates/blank/contract/Nargo.toml +6 -0
  100. package/scripts/templates/blank/contract/src/main.nr +10 -0
  101. package/scripts/templates/blank/test/Nargo.toml +7 -0
  102. package/scripts/templates/blank/test/src/lib.nr +11 -0
  103. package/scripts/templates/counter/contract/Nargo.toml +7 -0
  104. package/scripts/templates/counter/contract/src/main.nr +48 -0
  105. package/scripts/templates/counter/test/Nargo.toml +7 -0
  106. package/scripts/templates/counter/test/src/lib.nr +32 -0
  107. package/src/bin/index.ts +3 -1
  108. package/src/cli/aztec_start_action.ts +38 -25
  109. package/src/cli/aztec_start_options.ts +27 -23
  110. package/src/cli/cmds/compile.ts +35 -24
  111. package/src/cli/cmds/profile.ts +2 -1
  112. package/src/cli/cmds/profile_gates.ts +20 -4
  113. package/src/cli/cmds/prover.ts +42 -0
  114. package/src/cli/cmds/standby.ts +59 -7
  115. package/src/cli/cmds/start_bot.ts +9 -6
  116. package/src/cli/cmds/start_node.ts +25 -32
  117. package/src/cli/cmds/start_prover_agent.ts +2 -2
  118. package/src/cli/cmds/start_prover_broker.ts +10 -11
  119. package/src/cli/cmds/start_txe.ts +7 -5
  120. package/src/cli/cmds/utils/artifacts.ts +5 -0
  121. package/src/cli/cmds/utils/warn_if_aztec_version_mismatch.ts +37 -15
  122. package/src/cli/util.ts +27 -68
  123. package/src/deploy/bridging.ts +191 -0
  124. package/src/deploy/fees.ts +322 -0
  125. package/src/deploy/graph.ts +137 -0
  126. package/src/deploy/index.ts +41 -0
  127. package/src/deploy/reporter.ts +184 -0
  128. package/src/deploy/runner.ts +936 -0
  129. package/src/deploy/state.ts +66 -0
  130. package/src/deploy/types.ts +244 -0
  131. package/src/examples/token.ts +11 -3
  132. package/src/local-network/auth_registry.ts +19 -0
  133. package/src/local-network/banana_fpc.ts +12 -8
  134. package/src/local-network/local-network.ts +61 -83
  135. package/src/testing/cheat_codes.ts +18 -49
  136. package/src/testing/epoch_test_settler.ts +8 -31
  137. package/src/testing/index.ts +1 -1
  138. package/src/testing/local-network.ts +97 -0
  139. package/src/testing/token_allowed_setup.ts +15 -8
  140. package/dest/cli/cmds/start_archiver.d.ts +0 -9
  141. package/dest/cli/cmds/start_archiver.d.ts.map +0 -1
  142. package/dest/cli/cmds/start_archiver.js +0 -48
  143. package/dest/testing/anvil_test_watcher.d.ts +0 -42
  144. package/dest/testing/anvil_test_watcher.d.ts.map +0 -1
  145. package/dest/testing/anvil_test_watcher.js +0 -181
  146. package/src/cli/cmds/start_archiver.ts +0 -50
  147. package/src/testing/anvil_test_watcher.ts +0 -210
package/dest/cli/util.js CHANGED
@@ -1,8 +1,4 @@
1
- import { getNetworkConfig } from '@aztec/cli/config';
2
- import { RegistryContract } from '@aztec/ethereum/contracts';
3
1
  import { jsonStringify } from '@aztec/foundation/json-rpc';
4
- import { createLogger } from '@aztec/foundation/log';
5
- import { getPackageVersion } from '@aztec/stdlib/update-checker';
6
2
  import chalk from 'chalk';
7
3
  import { aztecStartOptions } from './aztec_start_options.js';
8
4
  export var ExitCode = /*#__PURE__*/ function(ExitCode) {
@@ -38,6 +34,25 @@ export function shutdown(logFn, exitCode, cb) {
38
34
  export function isShuttingDown() {
39
35
  return shutdownPromise !== undefined;
40
36
  }
37
+ /**
38
+ * Stops the node's subsystems (via the registered signal handlers) without exiting the process, leaving
39
+ * the HTTP health server listening so K8s liveness/readiness probes keep passing. Unlike {@link shutdown}
40
+ * this deliberately does not latch `shutdownPromise` or call `process.exit`; instead it re-arms
41
+ * SIGTERM/SIGINT so a later K8s pod deletion still terminates the wound-down pod with a clean exit.
42
+ */ export async function softShutdown(logFn, signalHandlers) {
43
+ logFn('Canonical rollup upgrade detected: stopping subsystems, health server stays up.', {
44
+ exitCode: 78
45
+ });
46
+ await Promise.allSettled(signalHandlers.map((fn)=>fn()));
47
+ for (const sig of [
48
+ 'SIGTERM',
49
+ 'SIGINT'
50
+ ]){
51
+ process.removeAllListeners(sig);
52
+ process.once(sig, ()=>process.exit(78));
53
+ }
54
+ logFn('Subsystems stopped due to rollup upgrade. Health server remains active.');
55
+ }
41
56
  export const installSignalHandlers = (logFn, cb)=>{
42
57
  const signals = [
43
58
  [
@@ -79,11 +94,13 @@ export const installSignalHandlers = (logFn, cb)=>{
79
94
  if (registeredAccounts.find((a)=>a.item.equals(completeAddress.address))) {
80
95
  accountLogStrings.push(` Address: ${completeAddress.address.toString()}\n`);
81
96
  accountLogStrings.push(` Partial Address: ${completeAddress.partialAddress.toString()}\n`);
82
- accountLogStrings.push(` Secret Key: ${account.getSecretKey().toString()}\n`);
83
- accountLogStrings.push(` Master nullifier public key: ${completeAddress.publicKeys.masterNullifierPublicKey.toString()}\n`);
84
- accountLogStrings.push(` Master incoming viewing public key: ${completeAddress.publicKeys.masterIncomingViewingPublicKey.toString()}\n\n`);
85
- accountLogStrings.push(` Master outgoing viewing public key: ${completeAddress.publicKeys.masterOutgoingViewingPublicKey.toString()}\n\n`);
86
- accountLogStrings.push(` Master tagging public key: ${completeAddress.publicKeys.masterTaggingPublicKey.toString()}\n\n`);
97
+ accountLogStrings.push(` Secret Key: ${accountManager.getSecretKey().toString()}\n`);
98
+ accountLogStrings.push(` Master nullifier public key hash: ${completeAddress.publicKeys.npkMHash.toString()}\n`);
99
+ accountLogStrings.push(` Master incoming viewing public key: ${completeAddress.publicKeys.ivpkM.toString()}\n\n`);
100
+ accountLogStrings.push(` Master outgoing viewing public key hash: ${completeAddress.publicKeys.ovpkMHash.toString()}\n\n`);
101
+ accountLogStrings.push(` Master tagging public key hash: ${completeAddress.publicKeys.tpkMHash.toString()}\n\n`);
102
+ accountLogStrings.push(` Master message-signing public key hash: ${completeAddress.publicKeys.mspkMHash.toString()}\n\n`);
103
+ accountLogStrings.push(` Master fallback public key hash: ${completeAddress.publicKeys.fbpkMHash.toString()}\n\n`);
87
104
  }
88
105
  }
89
106
  return accountLogStrings;
@@ -239,50 +256,6 @@ export const printAztecStartHelpText = ()=>{
239
256
  ]);
240
257
  }
241
258
  }
242
- export async function setupVersionChecker(network, followsCanonicalRollup, publicClient, signalHandlers, cacheDir) {
243
- const networkConfig = await getNetworkConfig(network, cacheDir);
244
- if (!networkConfig) {
245
- return;
246
- }
247
- const { VersionChecker } = await import('@aztec/stdlib/update-checker');
248
- const logger = createLogger('version_check');
249
- const registry = new RegistryContract(publicClient, networkConfig.registryAddress);
250
- const checks = [];
251
- checks.push({
252
- name: 'node',
253
- currentVersion: getPackageVersion() ?? 'unknown',
254
- getLatestVersion: async ()=>{
255
- const cfg = await getNetworkConfig(network, cacheDir);
256
- return cfg?.nodeVersion;
257
- }
258
- });
259
- if (followsCanonicalRollup) {
260
- const getLatestVersion = async ()=>{
261
- const version = (await registry.getRollupVersions()).at(-1);
262
- return version !== undefined ? String(version) : undefined;
263
- };
264
- const currentVersion = await getLatestVersion();
265
- if (currentVersion !== undefined) {
266
- checks.push({
267
- name: 'rollup',
268
- currentVersion,
269
- getLatestVersion
270
- });
271
- }
272
- }
273
- const checker = new VersionChecker(checks, 600_000, logger);
274
- checker.on('newVersion', ({ name, latestVersion, currentVersion })=>{
275
- if (isShuttingDown()) {
276
- return;
277
- }
278
- logger.warn(`New ${name} version available`, {
279
- latestVersion,
280
- currentVersion
281
- });
282
- });
283
- checker.start();
284
- signalHandlers.push(()=>checker.stop());
285
- }
286
259
  export function stringifyConfig(config) {
287
260
  return Object.entries(config).map(([key, value])=>`${key}=${jsonStringify(value)}`).join(' ');
288
261
  }
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Fee-juice bridging for the `fee-juice` deploy policy: bridge Fee Juice from L1
3
+ * ({@link bridgeFeeJuice}) and wait for the L1→L2 message to become available
4
+ * ({@link waitForL1ToL2Message}). Fee Juice only — this is not a generic L1→L2 asset bridge.
5
+ * Node-only (pulls in `@aztec/aztec.js/ethereum` + viem).
6
+ *
7
+ * Nothing here sends the L2 claim tx — the caller feeds the returned claim into
8
+ * `FeeJuicePaymentMethodWithClaim` so the claim lands inside whatever tx the recipient is already
9
+ * sending.
10
+ */
11
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
12
+ import { L1FeeJuicePortalManager } from '@aztec/aztec.js/ethereum';
13
+ import type { AztecNode } from '@aztec/aztec.js/node';
14
+ import { Fr } from '@aztec/foundation/curves/bn254';
15
+ import type { Hex } from 'viem';
16
+ /** Local vs. remote L1→L2 message advancement: warp cheats time forward, poll just waits. */
17
+ export type BridgeTimingMode = 'warp' | 'poll';
18
+ /** The claim produced by bridging: exactly the shape `FeeJuicePaymentMethodWithClaim` expects. */
19
+ export type FeeJuiceClaim = Awaited<ReturnType<L1FeeJuicePortalManager['bridgeTokensPublic']>>;
20
+ /**
21
+ * Decides how the L1 signer funds a bridge: mint from the fee-asset faucet handler, or transfer
22
+ * its existing Fee Juice. Pure — exercised directly by unit tests.
23
+ *
24
+ * - Balance covers the requested amount → transfer it (no mint, even when a faucet exists).
25
+ * - Balance short of the amount + faucet available → mint (the faucet path bridges the handler's
26
+ * own mint amount and ignores `amount`).
27
+ * - Balance short + no faucet → throw, reporting the shortfall.
28
+ * - No `amount` requested → the faucet is required (there is nothing to size a transfer by).
29
+ */
30
+ export declare function pickBridgeRoute(opts: {
31
+ hasFaucet: boolean;
32
+ l1Balance: bigint;
33
+ amount?: bigint;
34
+ }): {
35
+ useFaucet: boolean;
36
+ amount?: bigint;
37
+ };
38
+ export interface BridgeFeeJuiceParams {
39
+ node: AztecNode;
40
+ l1RpcUrl: string;
41
+ l1ChainId: number;
42
+ recipient: AztecAddress;
43
+ /** Desired amount in wei. Optional only when a faucet exists (whose `mintAmount()` then wins). */
44
+ amount?: bigint;
45
+ /** L1 private key signing the bridge tx. When omitted, a fresh ephemeral key is generated. */
46
+ l1PrivateKey?: Hex;
47
+ }
48
+ /**
49
+ * Bridges fee juice to an L2 recipient, minting from the faucet handler or transferring the
50
+ * signer's balance per {@link pickBridgeRoute}. Returns the claim; the L1→L2 message it references
51
+ * becomes available later — see {@link waitForL1ToL2Message}.
52
+ */
53
+ export declare function bridgeFeeJuice(params: BridgeFeeJuiceParams): Promise<FeeJuiceClaim>;
54
+ export interface WaitForClaimParams {
55
+ node: AztecNode;
56
+ messageHash: Fr;
57
+ /**
58
+ * On `warp` (local) we cheat L1+L2 time forward via the node debug API until the message shows as
59
+ * available; on `poll` (every other network) we just check periodically.
60
+ */
61
+ mode: BridgeTimingMode;
62
+ /** Timeout before giving up (default 30 min for poll, 2 min for warp). */
63
+ timeoutMs?: number;
64
+ /** Warp-only: options for reaching the node's debug API. */
65
+ warpOpts?: {
66
+ nodeUrl?: string;
67
+ };
68
+ }
69
+ /** Waits until an L1→L2 message is available on the node (warping time forward in `warp` mode). */
70
+ export declare function waitForL1ToL2Message(params: WaitForClaimParams): Promise<void>;
71
+ /**
72
+ * Local-network helper: advances L1 + L2 time via the node debug API until the given L1→L2 message
73
+ * shows up as available, warping by one L2 slot (read from the node's rollup constants) per check.
74
+ * An in-process node (e.g. a test fixture's `AztecNodeService`) implements the debug interface
75
+ * directly; a remote node is reached via its debug RPC at `nodeUrl` — `warpL2TimeAtLeastBy` needs
76
+ * `AztecNode & AztecNodeDebug` (it reads the current L1 timestamp via the regular API before
77
+ * warping), and both clients target the same URL and expose their methods as own properties on the
78
+ * rpc proxy, so a shallow merge is safe.
79
+ */
80
+ export declare function warpToL1ToL2Message(node: AztecNode, messageHash: Fr, opts?: {
81
+ nodeUrl?: string;
82
+ timeoutMs?: number;
83
+ }): Promise<void>;
84
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJpZGdpbmcuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXBsb3kvYnJpZGdpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7OztHQVNHO0FBQ0gsT0FBTyxLQUFLLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDOUQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFbkUsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHdEQsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBS3BELE9BQU8sS0FBSyxFQUFFLEdBQUcsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQVloQywrRkFBNkY7QUFDN0YsTUFBTSxNQUFNLGdCQUFnQixHQUFHLE1BQU0sR0FBRyxNQUFNLENBQUM7QUFFL0Msa0dBQWtHO0FBQ2xHLE1BQU0sTUFBTS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AAE,MAAM,CAAA;CAAE,GAAG;IACjG,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAkBA;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,YAAY,CAAC;IACxB,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8FAA8F;IAC9F,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAezF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,EAAE,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjC;AAED,qGAAmG;AACnG,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCpF;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,EAAE,EACf,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAClD,OAAO,CAAC,IAAI,CAAC,CAsBf"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Fee-juice bridging for the `fee-juice` deploy policy: bridge Fee Juice from L1
3
+ * ({@link bridgeFeeJuice}) and wait for the L1→L2 message to become available
4
+ * ({@link waitForL1ToL2Message}). Fee Juice only — this is not a generic L1→L2 asset bridge.
5
+ * Node-only (pulls in `@aztec/aztec.js/ethereum` + viem).
6
+ *
7
+ * Nothing here sends the L2 claim tx — the caller feeds the returned claim into
8
+ * `FeeJuicePaymentMethodWithClaim` so the claim lands inside whatever tx the recipient is already
9
+ * sending.
10
+ */ import { L1FeeJuicePortalManager } from '@aztec/aztec.js/ethereum';
11
+ import { isL1ToL2MessageReady } from '@aztec/aztec.js/messaging';
12
+ import { createEthereumChain } from '@aztec/ethereum/chain';
13
+ import { createExtendedL1Client } from '@aztec/ethereum/client';
14
+ import { createLogger } from '@aztec/foundation/log';
15
+ import { retryUntil } from '@aztec/foundation/retry';
16
+ import { createAztecNodeDebugClient } from '@aztec/stdlib/interfaces/client';
17
+ import { generatePrivateKey } from 'viem/accounts';
18
+ const logger = createLogger('deploy:bridging');
19
+ /** Wait between availability checks in `warp` mode — each iteration also warps the clock forward. */ const WARP_POLL_INTERVAL_MS = 1000;
20
+ /** Wait between availability checks in `poll` mode (a real network; nothing to do but wait). */ const POLL_INTERVAL_MS = 5_000;
21
+ /** Throttle for the "still waiting" progress log in the poll loop. */ const POLL_LOG_INTERVAL_MS = 30_000;
22
+ /**
23
+ * Decides how the L1 signer funds a bridge: mint from the fee-asset faucet handler, or transfer
24
+ * its existing Fee Juice. Pure — exercised directly by unit tests.
25
+ *
26
+ * - Balance covers the requested amount → transfer it (no mint, even when a faucet exists).
27
+ * - Balance short of the amount + faucet available → mint (the faucet path bridges the handler's
28
+ * own mint amount and ignores `amount`).
29
+ * - Balance short + no faucet → throw, reporting the shortfall.
30
+ * - No `amount` requested → the faucet is required (there is nothing to size a transfer by).
31
+ */ export function pickBridgeRoute(opts) {
32
+ const { hasFaucet, l1Balance, amount } = opts;
33
+ if (amount === undefined) {
34
+ if (!hasFaucet) {
35
+ throw new Error('bridgeFeeJuice: `amount` is required when no fee-asset faucet is available.');
36
+ }
37
+ return {
38
+ useFaucet: true
39
+ };
40
+ }
41
+ if (l1Balance >= amount) {
42
+ return {
43
+ useFaucet: false,
44
+ amount
45
+ };
46
+ }
47
+ if (hasFaucet) {
48
+ return {
49
+ useFaucet: true
50
+ };
51
+ }
52
+ throw new Error(`L1 signer holds ${l1Balance} wei of Fee Juice but ${amount} was requested, and no fee-asset faucet is ` + `available to mint the difference.`);
53
+ }
54
+ /**
55
+ * Bridges fee juice to an L2 recipient, minting from the faucet handler or transferring the
56
+ * signer's balance per {@link pickBridgeRoute}. Returns the claim; the L1→L2 message it references
57
+ * becomes available later — see {@link waitForL1ToL2Message}.
58
+ */ export async function bridgeFeeJuice(params) {
59
+ const { node, l1RpcUrl, l1ChainId, recipient } = params;
60
+ const l1PrivateKey = params.l1PrivateKey ?? generatePrivateKey();
61
+ const chain = createEthereumChain([
62
+ l1RpcUrl
63
+ ], l1ChainId);
64
+ const l1Client = createExtendedL1Client(chain.rpcUrls, l1PrivateKey, chain.chainInfo);
65
+ const portalManager = await L1FeeJuicePortalManager.new(node, l1Client, logger);
66
+ const tokenManager = portalManager.getTokenManager();
67
+ const route = pickBridgeRoute({
68
+ hasFaucet: tokenManager.handlerAddress !== undefined,
69
+ l1Balance: await tokenManager.getL1TokenBalance(l1Client.account.address),
70
+ amount: params.amount
71
+ });
72
+ return await portalManager.bridgeTokensPublic(recipient, route.amount, route.useFaucet);
73
+ }
74
+ /** Waits until an L1→L2 message is available on the node (warping time forward in `warp` mode). */ export async function waitForL1ToL2Message(params) {
75
+ const { node, messageHash, mode } = params;
76
+ if (mode === 'warp') {
77
+ await warpToL1ToL2Message(node, messageHash, {
78
+ ...params.warpOpts,
79
+ timeoutMs: params.timeoutMs ?? 120_000
80
+ });
81
+ return;
82
+ }
83
+ const timeoutMs = params.timeoutMs ?? 30 * 60_000;
84
+ const startedAt = Date.now();
85
+ let lastLog = startedAt;
86
+ await retryUntil(async ()=>{
87
+ if (await isL1ToL2MessageReady(node, messageHash)) {
88
+ return true;
89
+ }
90
+ if (Date.now() - lastLog > POLL_LOG_INTERVAL_MS) {
91
+ lastLog = Date.now();
92
+ logger.info('Still waiting for L1→L2 message to become available', {
93
+ messageHash: messageHash.toString(),
94
+ elapsedMs: Date.now() - startedAt,
95
+ timeoutMs
96
+ });
97
+ }
98
+ return undefined;
99
+ }, `L1→L2 message ${messageHash.toString()}`, timeoutMs / 1000, POLL_INTERVAL_MS / 1000);
100
+ }
101
+ /**
102
+ * Local-network helper: advances L1 + L2 time via the node debug API until the given L1→L2 message
103
+ * shows up as available, warping by one L2 slot (read from the node's rollup constants) per check.
104
+ * An in-process node (e.g. a test fixture's `AztecNodeService`) implements the debug interface
105
+ * directly; a remote node is reached via its debug RPC at `nodeUrl` — `warpL2TimeAtLeastBy` needs
106
+ * `AztecNode & AztecNodeDebug` (it reads the current L1 timestamp via the regular API before
107
+ * warping), and both clients target the same URL and expose their methods as own properties on the
108
+ * rpc proxy, so a shallow merge is safe.
109
+ */ export async function warpToL1ToL2Message(node, messageHash, opts = {}) {
110
+ const nodeUrl = opts.nodeUrl ?? 'http://localhost:8080';
111
+ const timeoutMs = opts.timeoutMs ?? 120_000;
112
+ const fullNode = typeof node.warpL2TimeAtLeastBy === 'function' ? node : Object.assign({}, node, createAztecNodeDebugClient(nodeUrl));
113
+ const { slotDuration } = await node.getL1Constants();
114
+ await retryUntil(async ()=>{
115
+ if (await isL1ToL2MessageReady(node, messageHash)) {
116
+ return true;
117
+ }
118
+ await fullNode.warpL2TimeAtLeastBy(slotDuration);
119
+ return undefined;
120
+ }, `L1→L2 message ${messageHash.toString()} (warping)`, timeoutMs / 1000, WARP_POLL_INTERVAL_MS / 1000);
121
+ }
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Fee handling for the deploy framework. Each account pays per its own {@link FeePolicy} — which
3
+ * may override the spec-wide default:
4
+ *
5
+ * - `sponsored` → a SponsoredFPC pays (the local-network default). All sponsored accounts share
6
+ * one payment method.
7
+ * - `fee-juice` → the account pays from its own Fee Juice; if below `threshold` with work to do,
8
+ * bridge `fundAmount` from L1. The bridge claim is single-use: the first paying tx claims it
9
+ * (`FeeJuicePaymentMethodWithClaim`) and the rest spend the balance. Pending claims are persisted
10
+ * (see ./state.ts) so a crash between bridge and claim resumes.
11
+ */
12
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
13
+ import { type FeePaymentMethod } from '@aztec/aztec.js/fee';
14
+ import { Fr } from '@aztec/aztec.js/fields';
15
+ import type { AztecNode } from '@aztec/aztec.js/node';
16
+ import type { Wallet } from '@aztec/aztec.js/wallet';
17
+ import type { GasFees } from '@aztec/stdlib/gas';
18
+ import type { Hex } from 'viem';
19
+ import type { AccountFunding, DeployReporter } from './reporter.js';
20
+ import type { DeployState } from './state.js';
21
+ import type { FeePolicy } from './types.js';
22
+ /** The `fee` field of a send-options object. */
23
+ export interface SendFee {
24
+ paymentMethod?: FeePaymentMethod;
25
+ gasSettings?: {
26
+ maxFeesPerGas: GasFees;
27
+ };
28
+ }
29
+ /**
30
+ * Sane fee defaults: local pays via SponsoredFPC; every other network pays from bridged Fee Juice.
31
+ * The threshold/fundAmount pair trades off L1 round-trips (too low → frequent re-bridges) against
32
+ * stranding Fee Juice, which is non-transferable, on the account (too high).
33
+ */
34
+ export declare function defaultFeePolicy(local: boolean): FeePolicy;
35
+ /** The public Fee Juice balance of `address` (any address — contract or account), read via `from`. */
36
+ export declare function publicFeeJuiceBalance(wallet: Wallet, address: AztecAddress, from: AztecAddress): Promise<bigint>;
37
+ /**
38
+ * Resolves an account's funding posture under `policy` — what the plan reports and what
39
+ * {@link prepareFeeSession} acts on. `idle` accounts (no pending work) are never funded; sponsored
40
+ * accounts never read a balance; fee-juice accounts are `funded` iff their balance clears the
41
+ * threshold, else `not-funded` (a bridge will top them up).
42
+ */
43
+ export declare function accountFunding(policy: FeePolicy, wallet: Wallet, account: AztecAddress, hasWork: boolean): Promise<AccountFunding>;
44
+ /** What {@link obtainFeeJuiceClaim} needs to produce a consumable claim for a recipient. */
45
+ export interface ObtainFeeJuiceClaimOpts {
46
+ /** Whether the target is a local (anvil) network — drives warp-vs-poll + L1 defaults. */
47
+ local: boolean;
48
+ node: AztecNode;
49
+ /** The node's URL — reaches its debug API for local time-warping while the bridge settles. */
50
+ nodeUrl?: string;
51
+ recipient: AztecAddress;
52
+ /** Amount to bridge (wei). */
53
+ amount: bigint;
54
+ /** L1 connection + funder, defaulted per {@link resolveL1Config}. */
55
+ l1: {
56
+ l1FunderKey?: Hex;
57
+ l1RpcUrl?: string;
58
+ l1ChainId?: number;
59
+ };
60
+ state: DeployState;
61
+ persist: () => void;
62
+ reporter: DeployReporter;
63
+ }
64
+ /**
65
+ * A single-use Fee Juice claim for `recipient` (used by `fund` steps): resumes the persisted claim
66
+ * when present, else bridges `amount` from L1 and waits for the L1→L2 message. The claim persists
67
+ * before the wait, so a crash mid-wait resumes it instead of stranding the bridged funds. The
68
+ * caller consumes it (e.g. via `FeeJuice.claim`) and calls `onConsumed` once that tx mines.
69
+ */
70
+ export declare function obtainFeeJuiceClaim(opts: ObtainFeeJuiceClaimOpts): Promise<{
71
+ claimAmount: bigint;
72
+ claimSecret: Fr;
73
+ messageLeafIndex: bigint;
74
+ /** Drops the persisted resume entry — call once the consuming tx mines. */
75
+ onConsumed: () => void;
76
+ }>;
77
+ /** Per-account fee dispensing for one run, prepared by {@link prepareFeeSession}. */
78
+ export interface FeeSession {
79
+ /**
80
+ * Fee options for the next tx from `account`, plus `onConsumed` to call after it lands (clears a
81
+ * one-time bridge claim from persisted state). Subsequent calls pay from balance.
82
+ */
83
+ next(account: AztecAddress): {
84
+ fee: SendFee;
85
+ onConsumed: () => void;
86
+ };
87
+ /**
88
+ * Whether `account`'s next tx will carry its one-time bridge claim. The runner serializes such an
89
+ * account's first tx: the claim must mine before its balance-paying txs fan out.
90
+ */
91
+ hasPendingClaim(account: AztecAddress): boolean;
92
+ }
93
+ /** What {@link prepareFeeSession} needs to fund a run's working accounts. */
94
+ export interface PrepareFeeSessionOpts {
95
+ /** Whether the target is a local (anvil) network — drives warp-vs-poll + L1 defaults. */
96
+ local: boolean;
97
+ node: AztecNode;
98
+ /** The node's URL — reaches its debug API for local time-warping while a bridge settles. */
99
+ nodeUrl?: string;
100
+ wallet: Wallet;
101
+ /**
102
+ * Working accounts (those with pending work) with their resolved {@link FeePolicy} + funding (from
103
+ * {@link accountFunding}) — so this function doesn't re-read balances.
104
+ */
105
+ accounts: {
106
+ address: AztecAddress;
107
+ policy: FeePolicy;
108
+ funding: AccountFunding;
109
+ }[];
110
+ state: DeployState;
111
+ persist: () => void;
112
+ reporter: DeployReporter;
113
+ }
114
+ /**
115
+ * Resolves fees ahead of execution, per account: registers the shared SponsoredFPC (for sponsored
116
+ * accounts), or tops up a fee-juice account via a bridge (reusing a persisted pending claim when
117
+ * present). Returns a {@link FeeSession} that dispenses the right fee per tx, by sending account.
118
+ */
119
+ export declare function prepareFeeSession(opts: PrepareFeeSessionOpts): Promise<FeeSession>;
120
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVlcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlcGxveS9mZWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7O0dBVUc7QUFDSCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM5RCxPQUFPLEVBQWtDLEtBQUssZ0JBQWdCLEVBQTZCLE1BQU0scUJBQXFCLENBQUM7QUFDdkgsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzVDLE9BQU8sS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXRELE9BQU8sS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sS0FBSyxFQUFFLE9BQU8sRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRWpELE9BQU8sS0FBSyxFQ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