@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
@@ -0,0 +1,278 @@
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
+ */ import { FeeJuicePaymentMethodWithClaim, SponsoredFeePaymentMethod } from '@aztec/aztec.js/fee';
12
+ import { Fr } from '@aztec/aztec.js/fields';
13
+ import { FeeJuiceContract } from '@aztec/aztec.js/protocol';
14
+ import { registerDeployedSponsoredFPCInWalletAndGetAddress } from '../local-network/sponsored_fpc.js';
15
+ import { bridgeFeeJuice, waitForL1ToL2Message } from './bridging.js';
16
+ /** Anvil's first pre-funded dev key — used as the local-network L1 funder. Published, non-secret. */ const ANVIL_DEV_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80';
17
+ const DEFAULT_LOCAL_L1_RPC_URL = 'http://localhost:8545';
18
+ const DEFAULT_LOCAL_L1_CHAIN_ID = 31337;
19
+ /**
20
+ * Sane fee defaults: local pays via SponsoredFPC; every other network pays from bridged Fee Juice.
21
+ * The threshold/fundAmount pair trades off L1 round-trips (too low → frequent re-bridges) against
22
+ * stranding Fee Juice, which is non-transferable, on the account (too high).
23
+ */ export function defaultFeePolicy(local) {
24
+ if (local) {
25
+ return {
26
+ kind: 'sponsored'
27
+ };
28
+ }
29
+ return {
30
+ kind: 'fee-juice',
31
+ threshold: 100n * 10n ** 18n,
32
+ fundAmount: 1000n * 10n ** 18n
33
+ };
34
+ }
35
+ /** The public Fee Juice balance of `address` (any address — contract or account), read via `from`. */ export async function publicFeeJuiceBalance(wallet, address, from) {
36
+ const { result } = await FeeJuiceContract.at(wallet).methods.balance_of_public(address).simulate({
37
+ from
38
+ });
39
+ return BigInt(result.toString());
40
+ }
41
+ /**
42
+ * Resolves an account's funding posture under `policy` — what the plan reports and what
43
+ * {@link prepareFeeSession} acts on. `idle` accounts (no pending work) are never funded; sponsored
44
+ * accounts never read a balance; fee-juice accounts are `funded` iff their balance clears the
45
+ * threshold, else `not-funded` (a bridge will top them up).
46
+ */ export async function accountFunding(policy, wallet, account, hasWork) {
47
+ if (!hasWork) {
48
+ return {
49
+ kind: 'idle'
50
+ };
51
+ }
52
+ if (policy.kind === 'sponsored') {
53
+ return {
54
+ kind: 'sponsored'
55
+ };
56
+ }
57
+ const balance = await publicFeeJuiceBalance(wallet, account, account);
58
+ return balance >= policy.threshold ? {
59
+ kind: 'funded',
60
+ balance
61
+ } : {
62
+ kind: 'not-funded',
63
+ balance,
64
+ fundAmount: policy.fundAmount
65
+ };
66
+ }
67
+ /**
68
+ * Resolves the L1 connection + funder for a bridge from caller-supplied config, defaulting to anvil
69
+ * on local. The funder key falls back to anvil's dev key on local (its faucet `mint` is owner-gated,
70
+ * so an ephemeral key is rejected there); elsewhere an omitted key means an ephemeral key + the
71
+ * public faucet. Deliberately no env fallback — the framework never reads the environment.
72
+ */ function resolveL1Config(local, cfg) {
73
+ const l1RpcUrl = cfg.l1RpcUrl ?? (local ? DEFAULT_LOCAL_L1_RPC_URL : undefined);
74
+ const l1ChainId = cfg.l1ChainId ?? (local ? DEFAULT_LOCAL_L1_CHAIN_ID : undefined);
75
+ if (l1RpcUrl === undefined || l1ChainId === undefined) {
76
+ throw new Error('Bridging on a non-local network requires `l1RpcUrl` and `l1ChainId` (no hardcoded defaults).');
77
+ }
78
+ return {
79
+ l1RpcUrl,
80
+ l1ChainId,
81
+ l1PrivateKey: cfg.l1FunderKey ?? (local ? ANVIL_DEV_KEY : undefined)
82
+ };
83
+ }
84
+ /**
85
+ * A single-use Fee Juice claim for `recipient` (used by `fund` steps): resumes the persisted claim
86
+ * when present, else bridges `amount` from L1 and waits for the L1→L2 message. The claim persists
87
+ * before the wait, so a crash mid-wait resumes it instead of stranding the bridged funds. The
88
+ * caller consumes it (e.g. via `FeeJuice.claim`) and calls `onConsumed` once that tx mines.
89
+ */ export async function obtainFeeJuiceClaim(opts) {
90
+ const { local, node, nodeUrl, recipient, state, persist, reporter } = opts;
91
+ // Prefixed so a recipient that is also an auto-funded sender doesn't collide with its account claim.
92
+ const key = `fund:${recipient.toString()}`;
93
+ let claim;
94
+ const stored = state.pendingClaims[key];
95
+ if (stored) {
96
+ reporter.onBridge?.({
97
+ recipient,
98
+ amount: BigInt(stored.claimAmount),
99
+ reused: true
100
+ });
101
+ claim = {
102
+ claimAmount: BigInt(stored.claimAmount),
103
+ claimSecret: Fr.fromString(stored.claimSecret),
104
+ messageLeafIndex: BigInt(stored.messageLeafIndex)
105
+ };
106
+ } else {
107
+ reporter.onBridge?.({
108
+ recipient,
109
+ amount: opts.amount,
110
+ reused: false
111
+ });
112
+ const { l1RpcUrl, l1ChainId, l1PrivateKey } = resolveL1Config(local, opts.l1);
113
+ const bridged = await bridgeFeeJuice({
114
+ node,
115
+ recipient,
116
+ l1RpcUrl,
117
+ l1ChainId,
118
+ amount: opts.amount,
119
+ l1PrivateKey
120
+ });
121
+ state.pendingClaims[key] = {
122
+ claimAmount: bridged.claimAmount.toString(),
123
+ claimSecret: bridged.claimSecret.toString(),
124
+ messageLeafIndex: bridged.messageLeafIndex.toString()
125
+ };
126
+ persist();
127
+ await waitForL1ToL2Message({
128
+ node,
129
+ messageHash: Fr.fromHexString(bridged.messageHash),
130
+ mode: local ? 'warp' : 'poll',
131
+ ...nodeUrl ? {
132
+ warpOpts: {
133
+ nodeUrl
134
+ }
135
+ } : {}
136
+ });
137
+ claim = {
138
+ claimAmount: bridged.claimAmount,
139
+ claimSecret: bridged.claimSecret,
140
+ messageLeafIndex: bridged.messageLeafIndex
141
+ };
142
+ }
143
+ return {
144
+ ...claim,
145
+ onConsumed: ()=>{
146
+ delete state.pendingClaims[key];
147
+ persist();
148
+ }
149
+ };
150
+ }
151
+ /**
152
+ * Resolves fees ahead of execution, per account: registers the shared SponsoredFPC (for sponsored
153
+ * accounts), or tops up a fee-juice account via a bridge (reusing a persisted pending claim when
154
+ * present). Returns a {@link FeeSession} that dispenses the right fee per tx, by sending account.
155
+ */ export async function prepareFeeSession(opts) {
156
+ const { local, node, nodeUrl, wallet, accounts, state, persist, reporter } = opts;
157
+ // Shared sponsored payment method: register the SponsoredFPC + read gas once, if anyone uses it.
158
+ let sponsoredFee;
159
+ if (accounts.some((a)=>a.policy.kind === 'sponsored')) {
160
+ const sponsoredFPCAddress = await registerDeployedSponsoredFPCInWalletAndGetAddress(wallet);
161
+ sponsoredFee = {
162
+ paymentMethod: new SponsoredFeePaymentMethod(sponsoredFPCAddress),
163
+ // 10x headroom because this one quote is reused for every tx in the run (the wallet's default would re-quote
164
+ // per tx at 1.5x min): congestion pricing can push the min fee well past the starting quote over a run of
165
+ // parallel layers. Overstating the cap is free — txs pay the going rate, not the cap, and the FPC pays anyway.
166
+ gasSettings: {
167
+ maxFeesPerGas: (await node.getCurrentMinFees()).mul(10)
168
+ }
169
+ };
170
+ }
171
+ // Bridge fee-juice top-ups. The L1 sends stay sequential — a shared funder key would collide on
172
+ // nonces — but the L1→L2 availability waits (the minutes-long part on a real network) run
173
+ // concurrently afterwards. Warp-mode waits run inline instead: warping manipulates global time,
174
+ // so concurrent warps would fight. Each claim persists as soon as it exists on L1, so a crash
175
+ // mid-wait resumes it instead of stranding the bridged funds; a resumed claim skips the wait (by
176
+ // resume time the message is available on any live network).
177
+ const claims = new Map();
178
+ const messageWaits = [];
179
+ for (const { address, policy, funding } of accounts){
180
+ if (policy.kind !== 'fee-juice' || funding.kind === 'funded') {
181
+ continue;
182
+ }
183
+ const key = address.toString();
184
+ let stored = state.pendingClaims[key];
185
+ if (stored) {
186
+ reporter.onBridge?.({
187
+ recipient: address,
188
+ amount: BigInt(stored.claimAmount),
189
+ reused: true
190
+ });
191
+ } else {
192
+ reporter.onBridge?.({
193
+ recipient: address,
194
+ amount: policy.fundAmount,
195
+ reused: false
196
+ });
197
+ // Local defaults to anvil; a non-local network must supply L1 connection details.
198
+ const { l1ChainId, l1RpcUrl, l1PrivateKey } = resolveL1Config(local, policy);
199
+ const bridged = await bridgeFeeJuice({
200
+ node,
201
+ recipient: address,
202
+ l1RpcUrl,
203
+ l1ChainId,
204
+ amount: policy.fundAmount,
205
+ l1PrivateKey
206
+ });
207
+ stored = {
208
+ claimAmount: bridged.claimAmount.toString(),
209
+ claimSecret: bridged.claimSecret.toString(),
210
+ messageLeafIndex: bridged.messageLeafIndex.toString()
211
+ };
212
+ state.pendingClaims[key] = stored;
213
+ persist();
214
+ const wait = waitForL1ToL2Message({
215
+ node,
216
+ messageHash: Fr.fromHexString(bridged.messageHash),
217
+ mode: local ? 'warp' : 'poll',
218
+ ...nodeUrl ? {
219
+ warpOpts: {
220
+ nodeUrl
221
+ }
222
+ } : {}
223
+ });
224
+ if (local) {
225
+ await wait;
226
+ } else {
227
+ messageWaits.push(wait);
228
+ }
229
+ }
230
+ claims.set(key, new FeeJuicePaymentMethodWithClaim(address, {
231
+ claimAmount: BigInt(stored.claimAmount),
232
+ claimSecret: Fr.fromString(stored.claimSecret),
233
+ messageLeafIndex: BigInt(stored.messageLeafIndex)
234
+ }));
235
+ }
236
+ await Promise.all(messageWaits);
237
+ // Per-account dispenser state. A claim is single-use: the first `next()` for its account carries
238
+ // it, and `onConsumed` (invoked by the runner once that tx mines) drops the persisted resume entry.
239
+ const sessions = new Map();
240
+ for (const { address, policy } of accounts){
241
+ const key = address.toString();
242
+ sessions.set(key, {
243
+ sponsored: policy.kind === 'sponsored',
244
+ claim: claims.get(key)
245
+ });
246
+ }
247
+ return {
248
+ next: (account)=>{
249
+ const key = account.toString();
250
+ const session = sessions.get(key);
251
+ if (session?.sponsored) {
252
+ return {
253
+ fee: sponsoredFee ?? {},
254
+ onConsumed: ()=>{}
255
+ };
256
+ }
257
+ if (session?.claim) {
258
+ const claim = session.claim;
259
+ session.claim = undefined; // single-use: only this first tx carries it
260
+ return {
261
+ fee: {
262
+ paymentMethod: claim
263
+ },
264
+ onConsumed: ()=>{
265
+ // claim is now spent on-chain; drop its resume entry
266
+ delete state.pendingClaims[key];
267
+ persist();
268
+ }
269
+ };
270
+ }
271
+ return {
272
+ fee: {},
273
+ onConsumed: ()=>{}
274
+ }; // later txs (or already-funded): pay from the account's balance
275
+ },
276
+ hasPendingClaim: (account)=>sessions.get(account.toString())?.claim !== undefined
277
+ };
278
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Dependency-graph utilities for the deploy framework: topological layering (which steps
3
+ * can run together) and a pretty-printer for the resulting plan.
4
+ */
5
+ /**
6
+ * Group `nodes` into dependency layers (Kahn's algorithm). Each layer contains nodes whose
7
+ * dependencies all sit in earlier layers, so a layer's nodes are mutually independent and
8
+ * may run in parallel. Dependencies pointing outside `nodes` (e.g. already-satisfied work)
9
+ * are treated as satisfied. Throws on a cycle.
10
+ */
11
+ export declare function topologicalLayers(nodes: string[], dependencies: Map<string, string[]>): string[][];
12
+ /**
13
+ * Like {@link topologicalLayers}, but nodes for which `floatLate(node)` is true are scheduled as
14
+ * LATE as their dependents allow (ALAP) instead of as early as possible. Used to push batchable
15
+ * actions into the latest layer they can share, so same-account actions in adjacent layers coalesce
16
+ * into one tx. Fixed nodes (e.g. contract publishes, which unblock dependents and don't batch) keep
17
+ * their earliest layer; the relative order — and so the critical-path length — is unchanged. Throws
18
+ * on a cycle (via {@link topologicalLayers}).
19
+ */
20
+ export declare function scheduleLayers(nodes: string[], dependencies: Map<string, string[]>, floatLate: (node: string) => boolean): string[][];
21
+ /** One node in the printed plan. */
22
+ export interface PlanRow {
23
+ /** e.g. "goCoin" */
24
+ name: string;
25
+ /** short tag, e.g. "Token · publishes class" */
26
+ tag?: string;
27
+ /** dependency names to show as `← a, b` */
28
+ dependencies?: string[];
29
+ }
30
+ /**
31
+ * Render a titled flat list of plan rows (no layer grouping). Use for the declared-contracts
32
+ * overview, whose `← ...` arrows are constructor-arg references — not an execution order.
33
+ */
34
+ export declare function formatList(title: string, rows: PlanRow[]): string;
35
+ /**
36
+ * Render a titled, layer-grouped section of the plan as an indented tree. Each layer's txs are
37
+ * submitted in parallel.
38
+ */
39
+ export declare function formatLayers(title: string, layers: PlanRow[][]): string;
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXBsb3kvZ3JhcGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBRUg7Ozs7O0dBS0c7QUFDSCx3QkFBZ0IsaUJBQWlCLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxFQUFFLFlBQVksRUFBRSxHQUFHLENBQUMsTUFBTSxFQUFFLE1BQU0sRUFBRSxDQUFDLEdBQUcsTUFBTSxFQUFFLEVBQUUsQ0FpQmxHO0FBRUQ7Ozs7Ozs7R0FPRztBQUNILHdCQUFnQixjQUFjLENBQzVCLEtBQUssRUFBRSxNQUFNLEVBQUUsRUFDZixZQUFZLEVBQUUsR0FBRyxDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUNuQyxTQUFTLEVBQUUsQ0FBQyxJQUFJLEVBQUUsTUFBTSxLQUFLLE9BQU8sR0FDbkMsTUFBTSxFQUFFLEVBQUUsQ0ErQ1o7QUFFRCxvQ0FBb0M7QUFDcEMsTUFBTSxXQUFXLE9BQU87SUFDdEIsb0JBQW9CO0lBQ3BCLElBQUksRUFBRSxNQUFNLENBQUM7SUFDYixpREFBZ0Q7SUFDaEQsR0FBRyxDQUFDLEVBQUUsTUFBTSxDQUFDO0lBQ2IsNkNBQTJDO0lBQzNDLFlBQVksQ0FBQyxFQUFFLE1BQU0sRUFBRSxDQUFDO0NBQ3pCO0FBRUQ7O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for the deploy framework: topological layering (which steps
3
+ * can run together) and a pretty-printer for the resulting plan.
4
+ */ /**
5
+ * Group `nodes` into dependency layers (Kahn's algorithm). Each layer contains nodes whose
6
+ * dependencies all sit in earlier layers, so a layer's nodes are mutually independent and
7
+ * may run in parallel. Dependencies pointing outside `nodes` (e.g. already-satisfied work)
8
+ * are treated as satisfied. Throws on a cycle.
9
+ */ export function topologicalLayers(nodes, dependencies) {
10
+ const remaining = new Set(nodes);
11
+ const layers = [];
12
+ while(remaining.size > 0){
13
+ // A node is ready when every dependency already sits in an earlier layer (i.e. is no longer in `remaining`).
14
+ const layer = [
15
+ ...remaining
16
+ ].filter((node)=>(dependencies.get(node) ?? []).every((dependency)=>!remaining.has(dependency)));
17
+ if (layer.length === 0) {
18
+ throw new Error(`Dependency cycle among: ${[
19
+ ...remaining
20
+ ].join(', ')}`);
21
+ }
22
+ for (const node of layer){
23
+ remaining.delete(node);
24
+ }
25
+ layers.push(layer);
26
+ }
27
+ return layers;
28
+ }
29
+ /**
30
+ * Like {@link topologicalLayers}, but nodes for which `floatLate(node)` is true are scheduled as
31
+ * LATE as their dependents allow (ALAP) instead of as early as possible. Used to push batchable
32
+ * actions into the latest layer they can share, so same-account actions in adjacent layers coalesce
33
+ * into one tx. Fixed nodes (e.g. contract publishes, which unblock dependents and don't batch) keep
34
+ * their earliest layer; the relative order — and so the critical-path length — is unchanged. Throws
35
+ * on a cycle (via {@link topologicalLayers}).
36
+ */ export function scheduleLayers(nodes, dependencies, floatLate) {
37
+ const asap = topologicalLayers(nodes, dependencies);
38
+ if (asap.length === 0) {
39
+ return [];
40
+ }
41
+ const lastLayer = asap.length - 1;
42
+ const nodeSet = new Set(nodes);
43
+ const layerOf = new Map();
44
+ for (const [index, layer] of asap.entries()){
45
+ for (const node of layer){
46
+ layerOf.set(node, index);
47
+ }
48
+ }
49
+ // Reverse adjacency: which in-set nodes depend on each node.
50
+ const dependents = new Map();
51
+ for (const node of nodes){
52
+ for (const dependency of dependencies.get(node) ?? []){
53
+ if (!nodeSet.has(dependency)) {
54
+ continue;
55
+ }
56
+ const list = dependents.get(dependency);
57
+ if (list) {
58
+ list.push(node);
59
+ } else {
60
+ dependents.set(dependency, [
61
+ node
62
+ ]);
63
+ }
64
+ }
65
+ }
66
+ // Push floating nodes as late as possible, visiting in reverse topological order (the flattened
67
+ // ASAP order reversed) so every node is placed after all of its dependents are placed.
68
+ for (const node of asap.flat().reverse()){
69
+ if (!floatLate(node)) {
70
+ continue;
71
+ }
72
+ const deps = dependents.get(node) ?? [];
73
+ const latest = deps.length === 0 ? lastLayer : Math.min(...deps.map((d)=>layerOf.get(d))) - 1;
74
+ layerOf.set(node, Math.max(layerOf.get(node), latest));
75
+ }
76
+ const layers = Array.from({
77
+ length: asap.length
78
+ }, ()=>[]);
79
+ for (const node of nodes){
80
+ layers[layerOf.get(node)].push(node);
81
+ }
82
+ return layers.filter((layer)=>layer.length > 0);
83
+ }
84
+ /**
85
+ * Render a titled flat list of plan rows (no layer grouping). Use for the declared-contracts
86
+ * overview, whose `← ...` arrows are constructor-arg references — not an execution order.
87
+ */ export function formatList(title, rows) {
88
+ if (rows.length === 0) {
89
+ return `${title}: (none)`;
90
+ }
91
+ const lines = [
92
+ `${title}:`
93
+ ];
94
+ for (const row of rows){
95
+ const dependencies = row.dependencies && row.dependencies.length ? ` ← ${row.dependencies.join(', ')}` : '';
96
+ const tag = row.tag ? ` [${row.tag}]` : '';
97
+ lines.push(` ${row.name}${tag}${dependencies}`);
98
+ }
99
+ return lines.join('\n');
100
+ }
101
+ /**
102
+ * Render a titled, layer-grouped section of the plan as an indented tree. Each layer's txs are
103
+ * submitted in parallel.
104
+ */ export function formatLayers(title, layers) {
105
+ if (layers.length === 0) {
106
+ return `${title}: (none)`;
107
+ }
108
+ const lines = [
109
+ `${title}:`
110
+ ];
111
+ for (const [index, layer] of layers.entries()){
112
+ lines.push(` layer ${index + 1}${layer.length > 1 ? ' (parallel)' : ''}`);
113
+ for (const row of layer){
114
+ const dependencies = row.dependencies && row.dependencies.length ? ` ← ${row.dependencies.join(', ')}` : '';
115
+ const tag = row.tag ? ` [${row.tag}]` : '';
116
+ lines.push(` ${row.name}${tag}${dependencies}`);
117
+ }
118
+ }
119
+ return lines.join('\n');
120
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A minimal, declarative deployment framework for Aztec.
3
+ *
4
+ * Describe the accounts you send from and a graph of steps — contracts that must end up on-chain
5
+ * (deterministic addresses, interdependencies via `initializerArgs`) and the txs to send — plus how
6
+ * fees are paid; then {@link runDeployment} resolves, takes an on-chain inventory, funds, and
7
+ * executes only what's missing in dependency order — idempotently and resumably. The framework
8
+ * never reads the environment; callers pipe in secrets and config.
9
+ *
10
+ * Node-only: pulls in the PXE-backed `EmbeddedWallet`, `@aztec/noir-contracts.js`, and (for the
11
+ * `fee-juice` policy) L1 bridging — none browser-safe. Lives under the `@aztec/aztec/deploy` subpath
12
+ * so it stays out of any browser bundle.
13
+ */
14
+ export { runDeployment } from './runner.js';
15
+ export { defaultFeePolicy } from './fees.js';
16
+ export { consoleReporter } from './reporter.js';
17
+ export type { DeployReporter, DeployPlan, DeployPlanAccount, DeployPlanStep, AccountFunding, DeploySummary, DeployUnitInfo, DeployUnitResult, DeployUnitKind, BridgeEvent, } from './reporter.js';
18
+ export type { DeploymentSpec, AccountSpec, ContractStep, ActionStep, FundStep, StepSpec, Steps, GeneratedContractClass, FeePolicy, Resolver, Ctx, } from './types.js';
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXBsb3kvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7OztHQVlHO0FBQ0gsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM1QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNoRCxZQUFZLEVBQ1YsY0FBYyxFQUNkLFVBQVUsRUFDVixpQkFBaUIsRUFDakIsY0FBYyxFQUNkLGNBQWMsRUFDZCxhQUFhLEVBQ2IsY0FBYyxFQUNkLGdCQUFnQixFQUNoQixjQUFjLEVBQ2QsV0FBVyxHQUNaLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLFlBQVksRUFDVixjQUFjLEVBQ2QsV0FBVyxFQUNYLFlBQVksRUFDWixVQUFVLEVBQ1YsUUFBUSxFQUNSLFFBQVEsRUFDUixLQUFLLEVBQ0wsc0JBQXNCLEVBQ3RCLFNBQVMsRUFDVCxRQUFRLEVBQ1IsR0FBRyxHQUNKLE1BQU0sWUFBWSxDQUFDIn0=
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deploy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,YAAY,EACV,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,sBAAsB,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,GACJ,MAAM,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A minimal, declarative deployment framework for Aztec.
3
+ *
4
+ * Describe the accounts you send from and a graph of steps — contracts that must end up on-chain
5
+ * (deterministic addresses, interdependencies via `initializerArgs`) and the txs to send — plus how
6
+ * fees are paid; then {@link runDeployment} resolves, takes an on-chain inventory, funds, and
7
+ * executes only what's missing in dependency order — idempotently and resumably. The framework
8
+ * never reads the environment; callers pipe in secrets and config.
9
+ *
10
+ * Node-only: pulls in the PXE-backed `EmbeddedWallet`, `@aztec/noir-contracts.js`, and (for the
11
+ * `fee-juice` policy) L1 bridging — none browser-safe. Lives under the `@aztec/aztec/deploy` subpath
12
+ * so it stays out of any browser bundle.
13
+ */ export { runDeployment } from './runner.js';
14
+ export { defaultFeePolicy } from './fees.js';
15
+ export { consoleReporter } from './reporter.js';
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Observability for the deploy framework. {@link runDeployment} emits structured lifecycle events
3
+ * to a {@link DeployReporter} instead of writing to the console directly, so callers control where
4
+ * the signal goes: the default ({@link consoleReporter}) renders human-readably to **stderr** —
5
+ * keeping stdout clear for the deploy scripts' `export KEY=VAL` lines, which an orchestrator evals —
6
+ * while e2e, a progress UI, or structured CI logging can inject their own reporter and consume the
7
+ * events as data. Every hook is optional; an empty `{}` is a valid (silent) reporter.
8
+ */
9
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
10
+ import type { TxHash } from '@aztec/stdlib/tx';
11
+ /** What a unit did: publish a contract, send an action's tx, or fund an address with Fee Juice. */
12
+ export type DeployUnitKind = 'publish' | 'action' | 'fund';
13
+ /** Identity of one execution unit (a single tx), as reported by the unit lifecycle hooks. */
14
+ export interface DeployUnitInfo {
15
+ /** Human label, e.g. `publish goCoin`, `action mintGoCoin`. */
16
+ label: string;
17
+ kind: DeployUnitKind;
18
+ /** The account that sends and pays for this tx. */
19
+ account: AztecAddress;
20
+ }
21
+ /** What a unit produced once its tx settled. Fields beyond `durationMs` come from the receipt. */
22
+ export interface DeployUnitResult {
23
+ txHash?: TxHash;
24
+ blockNumber?: number;
25
+ feePaid?: bigint;
26
+ status?: string;
27
+ durationMs: number;
28
+ }
29
+ /** An account's funding posture for this run, as resolved at planning time. */
30
+ export type AccountFunding = {
31
+ kind: 'idle';
32
+ } | {
33
+ kind: 'sponsored';
34
+ } | {
35
+ kind: 'funded';
36
+ balance: bigint;
37
+ } | {
38
+ kind: 'not-funded';
39
+ balance: bigint;
40
+ fundAmount: bigint;
41
+ };
42
+ export interface DeployPlanAccount {
43
+ alias: string;
44
+ address: AztecAddress;
45
+ funding: AccountFunding;
46
+ }
47
+ export interface DeployPlanStep {
48
+ id: string;
49
+ kind: 'contract' | 'action' | 'fund';
50
+ /**
51
+ * Status at the start of the run: a contract is `published` / `to publish` (public) or
52
+ * `registered` (private); an action is `done` / `to run`; a fund step is `funded` / `to fund`.
53
+ */
54
+ status: 'published' | 'to publish' | 'registered' | 'done' | 'to run' | 'funded' | 'to fund';
55
+ /** Steps it depends on (constructor-arg refs and explicit `dependsOn`). */
56
+ dependsOn: string[];
57
+ }
58
+ export interface DeployPlan {
59
+ /** Human label for the target (e.g. `local`, or a caller-chosen name). */
60
+ label: string;
61
+ accounts: DeployPlanAccount[];
62
+ steps: DeployPlanStep[];
63
+ /** Execution layers (step ids) — what will actually run, in dependency order. A layer runs parallel. */
64
+ layers: string[][];
65
+ }
66
+ export interface DeploySummary {
67
+ label: string;
68
+ contracts: {
69
+ alias: string;
70
+ address: AztecAddress;
71
+ status: 'published' | 'registered';
72
+ }[];
73
+ accounts: {
74
+ alias: string;
75
+ address: AztecAddress;
76
+ }[];
77
+ }
78
+ export interface BridgeEvent {
79
+ recipient: AztecAddress;
80
+ amount: bigint;
81
+ /** True when resuming a persisted claim instead of bridging anew. */
82
+ reused: boolean;
83
+ }
84
+ /** Lifecycle hooks the framework emits during a run. All optional — implement only what you need. */
85
+ export interface DeployReporter {
86
+ /** The resolved plan, before execution. */
87
+ onPlan?(plan: DeployPlan): void;
88
+ /** Everything is already on-chain; nothing will be sent. */
89
+ onNothingToDo?(label: string): void;
90
+ /** An account's Fee Juice is being topped up (or a persisted claim is being resumed). */
91
+ onBridge?(event: BridgeEvent): void;
92
+ /** A unit's tx is about to be sent. */
93
+ onUnitStart?(unit: DeployUnitInfo): void;
94
+ /** A unit's tx settled successfully. */
95
+ onUnitSettled?(unit: DeployUnitInfo, result: DeployUnitResult): void;
96
+ /** A unit's tx threw; the run will abort after this. */
97
+ onUnitError?(unit: DeployUnitInfo, error: unknown): void;
98
+ /** The run finished; `summary` holds the final resolved state. */
99
+ onComplete?(summary: DeploySummary): void;
100
+ }
101
+ /**
102
+ * The default reporter: renders events human-readably to **stderr**. Stderr (not stdout) so the
103
+ * traces survive an orchestrator that captures stdout for the scripts' `export` lines.
104
+ */
105
+ export declare function consoleReporter(): DeployReporter;
106
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0ZXIuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXBsb3kvcmVwb3J0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQUNILE9BQU8sS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlELE9BQU8sS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBSS9DLG1HQUFtRztBQUNuRyxNQUFNLE1BQU0sY0FBYyxHQUFHLFNBQVMsR0FBRyxRQUFRLEdBQUcsTUFBTSxDQUFDO0FBRTNELDZGQUE2RjtBQUM3RixNQUFNLFdBQVcsY0FBYztJQUM3QiwrREFBK0Q7SUFDL0QsS0FBSyxFQUFFLE1BQU0sQ0FBQztJQUNkLElBQUksRUFBRSxjQUFjLENBQUM7SUFDckIsbURBQW1EO0lBQ25ELE9BQU8sRUFBRSxZQUFZLENBQUM7Q0FDdkI7QUFFRCxrR0FBa0c7QUFDbEcsTUFBTSxXQUFXLGdCQUFnQjtJQUMvQixNQUFNLENBQUMsRUFBRSx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