@aztec/cli 3.0.0-nightly.20250926 → 3.0.0-nightly.20250927
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -417
- package/dest/utils/commands.d.ts +1 -1
- package/dest/utils/commands.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/utils/commands.ts +1 -1
package/README.md
CHANGED
|
@@ -20,420 +20,4 @@ bash -i <(curl -s https://install.aztec.network)
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Here's the basic syntax for running a command:
|
|
26
|
-
|
|
27
|
-
```shell
|
|
28
|
-
aztec-cli <command> [options]
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Replace `<command>` with the actual command you want to execute and `[options]` with any optional flags or parameters required by the command.
|
|
32
|
-
|
|
33
|
-
### Environment Variables
|
|
34
|
-
|
|
35
|
-
Some options can be set globally as environment variables to avoid having to re-enter them every time you call `aztec-cli.`
|
|
36
|
-
These options are:
|
|
37
|
-
|
|
38
|
-
- `SECRET_KEY` -> `-sk, --secret-key` for all commands that require an Aztec secret key.
|
|
39
|
-
- `PUBLIC_KEY` -> `-k, --public-key` for all commands that require a public key.
|
|
40
|
-
- `ETHEREUM_HOSTS` -> `-u, --rpc-urls` or `--l1-rpc-urls` for `deploy-l1-contracts`.
|
|
41
|
-
|
|
42
|
-
**NOTE**: Entering an option value will override the environment variable.
|
|
43
|
-
|
|
44
|
-
## Available Commands
|
|
45
|
-
|
|
46
|
-
`aztec-cli` provides the following commands for interacting with Aztec:
|
|
47
|
-
|
|
48
|
-
### deploy-l1-contracts
|
|
49
|
-
|
|
50
|
-
Deploys all necessary Ethereum contracts for Aztec.
|
|
51
|
-
|
|
52
|
-
Syntax:
|
|
53
|
-
|
|
54
|
-
```shell
|
|
55
|
-
aztec-cli deploy-l1-contracts [rpcUrl] [options]
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
- `rpcUrl` (optional): URL of the Ethereum host. Chain identifiers `localhost` and `testnet` can be used. Default: `http://localhost:8545`.
|
|
59
|
-
|
|
60
|
-
Options:
|
|
61
|
-
|
|
62
|
-
- `-a, --l1-chain-id <string>`: Chain ID for the Ethereum host.
|
|
63
|
-
- `-p, --private-key <string>`: The private key to use for deployment.
|
|
64
|
-
- `-m, --mnemonic <string>`: The mnemonic to use in deployment. Default: `test test test test test test test test test test test junk`.
|
|
65
|
-
|
|
66
|
-
This command deploys all the necessary Ethereum contracts required for Aztec. It creates the rollup contract, registry contract, inbox contract, outbox contract, and contract deployment emitter. The command displays the addresses of the deployed contracts.
|
|
67
|
-
|
|
68
|
-
Example usage:
|
|
69
|
-
|
|
70
|
-
```shell
|
|
71
|
-
aztec-cli deploy-l1-contracts
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### create-private-key
|
|
75
|
-
|
|
76
|
-
Generates a 32-byte private key.
|
|
77
|
-
|
|
78
|
-
Syntax:
|
|
79
|
-
|
|
80
|
-
```shell
|
|
81
|
-
aztec-cli create-private-key [options]
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Options:
|
|
85
|
-
|
|
86
|
-
- `-m, --mnemonic`: A mnemonic string that can be used for the private key generation.
|
|
87
|
-
|
|
88
|
-
This command generates a random 32-byte private key or derives one from the provided mnemonic string. It displays the generated private key.
|
|
89
|
-
|
|
90
|
-
Example usage:
|
|
91
|
-
|
|
92
|
-
```shell
|
|
93
|
-
aztec-cli create-private-key
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### create-account
|
|
97
|
-
|
|
98
|
-
Creates an Aztec account that can be used for transactions.
|
|
99
|
-
|
|
100
|
-
Syntax:
|
|
101
|
-
|
|
102
|
-
```shell
|
|
103
|
-
aztec-cli create-account [options]
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
Options:
|
|
107
|
-
|
|
108
|
-
- `-k, --private-key`: Private key to use for the account generation. Uses a random key by default.
|
|
109
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
110
|
-
|
|
111
|
-
This command creates an Aztec account that can be used for transactions. It generates a new account with a private key or uses the provided private key. The command displays the account's address and public key.
|
|
112
|
-
|
|
113
|
-
Example usage:
|
|
114
|
-
|
|
115
|
-
```shell
|
|
116
|
-
aztec-cli create-account
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### deploy
|
|
120
|
-
|
|
121
|
-
Deploys a compiled Aztec.nr contract to Aztec.
|
|
122
|
-
|
|
123
|
-
Syntax:
|
|
124
|
-
|
|
125
|
-
```shell
|
|
126
|
-
aztec-cli deploy <contractArtifact> [options]
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Options:
|
|
130
|
-
|
|
131
|
-
- `-c, --contract-artifact <fileLocation>`: Path to the compiled Aztec.nr contract's artifact file in JSON format. You can also use one of Aztec's example contracts found in [@aztec/noir-contracts](https://www.npmjs.com/package/@aztec/noir-contracts), e.g. PrivateTokenContractArtifact. You can get a full ist of the available contracts with `aztec-cli example-contracts`
|
|
132
|
-
- `-a, --args <constructorArgs...>` (optional): Contract constructor arguments Default: [].
|
|
133
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
134
|
-
- `-k, --public-key <string>`: Public key of the deployer. If not provided, it will check the RPC for existing ones.
|
|
135
|
-
|
|
136
|
-
This command deploys a compiled Aztec.nr contract to Aztec. It requires the path to the contract's artifact file in JSON format. Optionally, you can specify the public key of the deployer and provide constructor arguments for the contract. The command displays the address of the deployed contract.
|
|
137
|
-
|
|
138
|
-
Example usage:
|
|
139
|
-
|
|
140
|
-
```shell
|
|
141
|
-
aztec-cli deploy -c path/to/contract.artifact.json -a ...args
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
With an Aztec example contract:
|
|
145
|
-
|
|
146
|
-
```shell
|
|
147
|
-
aztec-cli deploy -c PrivateTokenContractArtifact -a 333 0x134567890abcdef
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### check-deploy
|
|
151
|
-
|
|
152
|
-
Checks if a contract is deployed to the specified Aztec address.
|
|
153
|
-
|
|
154
|
-
Syntax:
|
|
155
|
-
|
|
156
|
-
```shell
|
|
157
|
-
aztec-cli check-deploy <contractAddress> [options]
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
Options:
|
|
161
|
-
|
|
162
|
-
- `-ca, --contract-address <address>`: An Aztec address to check if the contract has been deployed to.
|
|
163
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
164
|
-
|
|
165
|
-
This command checks if a contract is deployed to the specified Aztec address. It verifies if the contract is present at the given address and displays the result.
|
|
166
|
-
|
|
167
|
-
Example usage:
|
|
168
|
-
|
|
169
|
-
```shell
|
|
170
|
-
aztec-cli check-deploy -ca 0x123456789abcdef123456789abcdef12345678
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### get-tx-receipt
|
|
174
|
-
|
|
175
|
-
Gets the receipt for the specified transaction hash.
|
|
176
|
-
|
|
177
|
-
Syntax:
|
|
178
|
-
|
|
179
|
-
```shell
|
|
180
|
-
aztec-cli get-tx-receipt <txHash> [options]
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
- `txHash`: A transaction hash to get the receipt for.
|
|
184
|
-
|
|
185
|
-
Options:
|
|
186
|
-
|
|
187
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
188
|
-
|
|
189
|
-
This command retrieves and displays the receipt for the specified transaction hash. It shows details such as the transaction status, block number, and block hash.
|
|
190
|
-
|
|
191
|
-
Example usage:
|
|
192
|
-
|
|
193
|
-
```shell
|
|
194
|
-
aztec-cli get-tx-receipt 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef12345678
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### get-contract-data
|
|
198
|
-
|
|
199
|
-
Gets information about the Aztec contract deployed at the specified address.
|
|
200
|
-
|
|
201
|
-
Syntax:
|
|
202
|
-
|
|
203
|
-
```shell
|
|
204
|
-
aztec-cli get-contract-data <contractAddress> [options]
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
- `contractAddress`: Aztec address of the contract.
|
|
208
|
-
|
|
209
|
-
Options:
|
|
210
|
-
|
|
211
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
212
|
-
- `-b, --include-bytecode`: Include the contract's public function bytecode, if any.
|
|
213
|
-
|
|
214
|
-
This command retrieves and displays information about the Aztec contract deployed at the specified address. It shows the contract address, portal contract address, and optionally, the bytecode of the contract's public functions.
|
|
215
|
-
|
|
216
|
-
Example usage:
|
|
217
|
-
|
|
218
|
-
```shell
|
|
219
|
-
aztec-cli get-contract-data 0x123456789abcdef123456789abcdef12345678
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
### register-recipient
|
|
223
|
-
|
|
224
|
-
Register a recipient account on the PXE (called recipient because we can only send notes to this account and not receive them via this PXE).
|
|
225
|
-
To read about how keys are generated and used, head to our docs [here](https://github.com/AztecProtocol/aztec-packages/blob/master/docs/docs/aztec/developer/wallet-providers/keys.md#addresses-partial-addresses-and-public-keys).
|
|
226
|
-
|
|
227
|
-
Syntax:
|
|
228
|
-
|
|
229
|
-
```shell
|
|
230
|
-
aztec-cli register-recipient [options]
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
Options:
|
|
234
|
-
|
|
235
|
-
- `-a, --address <aztecAddress>`: The account's Aztec address.
|
|
236
|
-
- `-p, --public-key <publicKey>`: 'The account public key.'
|
|
237
|
-
- `-pa, --partial-address <partialAddress`: 'The partially computed address of the account contract.'
|
|
238
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
239
|
-
|
|
240
|
-
Example usage:
|
|
241
|
-
|
|
242
|
-
```shell
|
|
243
|
-
aztec-cli register-recipient -p 0x20d9d93c4a9eb2b4bdb70ead07d28d1edb74bfd78443a8c36b098b024cd26f0e0647f5dbe3619453f42eb788c2beed0294c84676425047aadac23294605c4af9 -a 0x111fdc0f6bf831ca59f05863199762d643b782699d7ce6feaae40a923baf60af -pa 0x72bf7c9537875b0af267b4a8c497927e251f5988af6e30527feb16299042ed
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### get-accounts
|
|
247
|
-
|
|
248
|
-
Gets all the Aztec accounts stored in a PXE.
|
|
249
|
-
|
|
250
|
-
Syntax:
|
|
251
|
-
|
|
252
|
-
```shell
|
|
253
|
-
aztec-cli get-accounts [options]
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
Options:
|
|
257
|
-
|
|
258
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
259
|
-
|
|
260
|
-
This command retrieves and displays all the Aztec accounts available in the system.
|
|
261
|
-
|
|
262
|
-
Example usage:
|
|
263
|
-
|
|
264
|
-
```shell
|
|
265
|
-
aztec-cli get-accounts
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
### get-account
|
|
269
|
-
|
|
270
|
-
Gets an account given its Aztec address.
|
|
271
|
-
|
|
272
|
-
Syntax:
|
|
273
|
-
|
|
274
|
-
```shell
|
|
275
|
-
aztec-cli get-account <address> [options]
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
- `address`: The Aztec address to get the public key for.
|
|
279
|
-
|
|
280
|
-
Options:
|
|
281
|
-
|
|
282
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
283
|
-
|
|
284
|
-
This command retrieves and displays the public key of an account given its Aztec address.
|
|
285
|
-
|
|
286
|
-
Example usage:
|
|
287
|
-
|
|
288
|
-
```shell
|
|
289
|
-
aztec-cli get-account 0x123456789abcdef123456789abcdef12345678
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
### send
|
|
293
|
-
|
|
294
|
-
Sends a transaction invoking a function on an Aztec contract.
|
|
295
|
-
|
|
296
|
-
Syntax:
|
|
297
|
-
|
|
298
|
-
```shell
|
|
299
|
-
aztec-cli send <functionName> --args [functionArgs...] --contract-artifact <contractArtifact> --contract-address <contractAddress> --private-key <senderPrivateKey>
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
- `functionName`: Name of the function to call.
|
|
303
|
-
|
|
304
|
-
Options:
|
|
305
|
-
|
|
306
|
-
- `'-a, --args [functionArgs...]` (optional): Function arguments. Default: [].
|
|
307
|
-
- `-c, --contract-artifact <fileLocation>`: The compiled contract's artifact in JSON format. You can also use one of Aztec's example contracts found in (@aztec/noir-contracts)[https://www.npmjs.com/package/@aztec/noir-contracts], e.g. PrivateTokenContractArtifact.
|
|
308
|
-
- `-ca, --contract-address <address>`: Address of the contract.
|
|
309
|
-
- `-k, --private-key <string>`: The sender's private key.
|
|
310
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
311
|
-
|
|
312
|
-
This command calls a function on an Aztec contract. It requires the contract's artifact, address, function name, and optionally, function arguments. The command executes the function call and displays the transaction details.
|
|
313
|
-
|
|
314
|
-
Example usage:
|
|
315
|
-
|
|
316
|
-
```shell
|
|
317
|
-
aztec-cli send transfer -ca 0x123456789abcdef123456789abcdef12345678 -a 100 -c path/to/artifact.json
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### call
|
|
321
|
-
|
|
322
|
-
Calls a view (read-only) function on a deployed contract.
|
|
323
|
-
Unlike transactions, view calls do not modify the state of the contract.
|
|
324
|
-
|
|
325
|
-
Syntax:
|
|
326
|
-
|
|
327
|
-
```shell
|
|
328
|
-
aztec-cli call <functionName> -a [functionArgs...] -c <contractArtifact> -ca <contractAddress> -f <fromAddress>
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
- `functionName`: Name of the function to view.
|
|
332
|
-
|
|
333
|
-
Options:
|
|
334
|
-
|
|
335
|
-
- `'-a, --args [functionArgs...]` (optional): Function arguments. Default: [].
|
|
336
|
-
- `-c, --contract-artifact <fileLocation>`: The compiled contract's artifact in JSON format. You can also use one of Aztec's example contracts found in (@aztec/noir-contracts)[https://www.npmjs.com/package/@aztec/noir-contracts], e.g. PrivateTokenContractArtifact.
|
|
337
|
-
- `-ca, --contract-address <address>`: Address of the contract.
|
|
338
|
-
- `-f, --from <string>`: Address of the caller. If empty, first account in the Private eXecution Environment (PXE) will be used.
|
|
339
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
340
|
-
|
|
341
|
-
This command simulates the execution of a view function on a deployed contract without modifying the state. It requires the contract's artifact, address, function name, and optionally, function arguments. The command displays the result of the view function.
|
|
342
|
-
|
|
343
|
-
Example usage:
|
|
344
|
-
|
|
345
|
-
```shell
|
|
346
|
-
aztec-cli call balanceOf -c path/to/contract.artifact.json -ca 0x123456789abcdef123456789abcdef12345678 -a balanceOf 0xabcdef1234567890abcdef1234567890abcdef12
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
### parse-parameter-struct
|
|
350
|
-
|
|
351
|
-
Helper for parsing an encoded string into a contract's parameter struct.
|
|
352
|
-
|
|
353
|
-
Syntax:
|
|
354
|
-
|
|
355
|
-
```shell
|
|
356
|
-
aztec-cli parse-parameter-struct <encodedString> <contractArtifact> <parameterName>
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
- `encodedString`: The encoded hex string.
|
|
360
|
-
- `contractArtifact`: The compiled contract's artifact in JSON format.
|
|
361
|
-
- `parameterName`: The name of the struct parameter to decode into.
|
|
362
|
-
|
|
363
|
-
This command is a helper for parsing an encoded hex string into a contract's parameter struct. It requires the encoded string, the contract's artifact, and the name of the struct parameter. The command decodes the string and displays the struct data.
|
|
364
|
-
|
|
365
|
-
Example usage:
|
|
366
|
-
|
|
367
|
-
```shell
|
|
368
|
-
aztec-cli parse-parameter-struct 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890 path/to/contract.artifact.json paramName
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
### get-logs
|
|
372
|
-
|
|
373
|
-
Applies filter and returns the resulting unencrypted logs.
|
|
374
|
-
The filter is applied by doing an intersection of all its params.
|
|
375
|
-
|
|
376
|
-
Syntax:
|
|
377
|
-
|
|
378
|
-
```shell
|
|
379
|
-
aztec-cli get-logs --fromBlock <number>
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
Options:
|
|
383
|
-
|
|
384
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
385
|
-
|
|
386
|
-
This command retrieves and displays all the unencrypted logs from L2 blocks in the specified range or from a specific transaction.
|
|
387
|
-
Example usage:
|
|
388
|
-
|
|
389
|
-
```shell
|
|
390
|
-
aztec-cli get-logs --txHash 21fef567e01f8508e30843ebcef9c5f6ff27b29d66783cfcdbd070c3a9174234
|
|
391
|
-
aztec-cli get-logs --fromBlock 4 --toBlock 5 --contractAddress 0x1db5f68861c5960c37205d3d5b23466240359c115c49e45982865ea7ace69a02
|
|
392
|
-
aztec-cli get-logs --fromBlock 4 --toBlock 5 --contractAddress 0x1db5f68861c5960c37205d3d5b23466240359c115c49e45982865ea7ace69a02 --selector 00000005
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
Run `aztec-cli get-logs --help` for more information on the filtering options.
|
|
396
|
-
|
|
397
|
-
### block-number
|
|
398
|
-
|
|
399
|
-
Gets the current Aztec L2 block number.
|
|
400
|
-
|
|
401
|
-
Syntax:
|
|
402
|
-
|
|
403
|
-
```shell
|
|
404
|
-
aztec-cli block-number
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
Options:
|
|
408
|
-
|
|
409
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
410
|
-
|
|
411
|
-
This command retrieves and displays the current Aztec L2 block number.
|
|
412
|
-
|
|
413
|
-
### example-contracts
|
|
414
|
-
|
|
415
|
-
Lists the contracts available in [@aztec/noir-contracts](https://github.com/AztecProtocol/aztec-packages/tree/master/noir-contracts)
|
|
416
|
-
|
|
417
|
-
Syntax:
|
|
418
|
-
|
|
419
|
-
```shell
|
|
420
|
-
aztec-cli example-contracts
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
### get-node-info
|
|
424
|
-
|
|
425
|
-
Gets information of an Aztec node at the specified URL.
|
|
426
|
-
|
|
427
|
-
Syntax:
|
|
428
|
-
|
|
429
|
-
```shell
|
|
430
|
-
aztec-cli get-node-info
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
Options:
|
|
434
|
-
|
|
435
|
-
- `-u, --rpc-url <string>`: URL of PXE Service. Default: `http://localhost:8080`.
|
|
436
|
-
|
|
437
|
-
## Conclusion
|
|
438
|
-
|
|
439
|
-
That covers the available commands and their usage in the `aztec-cli`. You can now use these commands to interact with Aztec and perform various actions such as deploying contracts, creating accounts, executing functions, and retrieving blockchain data.
|
|
23
|
+
Run `aztec-cli --help` to get info on the commands.
|
package/dest/utils/commands.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Fr } from '@aztec/aztec.js/fields';
|
|
|
5
5
|
import { LogId } from '@aztec/aztec.js/log_id';
|
|
6
6
|
import { TxHash } from '@aztec/aztec.js/tx_hash';
|
|
7
7
|
import type { LogFn } from '@aztec/foundation/log';
|
|
8
|
-
import type { PXE } from '@aztec/
|
|
8
|
+
import type { PXE } from '@aztec/pxe/server';
|
|
9
9
|
import { PublicKeys } from '@aztec/stdlib/keys';
|
|
10
10
|
import { type Command, Option } from 'commander';
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,K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AAG,SAAS,CAKtE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CASxE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,EAAE,CAMvD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,EAAE,CAMpD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,CAyB5C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAElD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAcjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20250927",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -70,20 +70,20 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
74
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
75
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
76
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
77
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
78
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
79
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
80
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
81
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
82
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
83
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
84
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
85
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
86
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
73
|
+
"@aztec/accounts": "3.0.0-nightly.20250927",
|
|
74
|
+
"@aztec/archiver": "3.0.0-nightly.20250927",
|
|
75
|
+
"@aztec/aztec.js": "3.0.0-nightly.20250927",
|
|
76
|
+
"@aztec/constants": "3.0.0-nightly.20250927",
|
|
77
|
+
"@aztec/entrypoints": "3.0.0-nightly.20250927",
|
|
78
|
+
"@aztec/ethereum": "3.0.0-nightly.20250927",
|
|
79
|
+
"@aztec/foundation": "3.0.0-nightly.20250927",
|
|
80
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20250927",
|
|
81
|
+
"@aztec/node-lib": "3.0.0-nightly.20250927",
|
|
82
|
+
"@aztec/p2p": "3.0.0-nightly.20250927",
|
|
83
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20250927",
|
|
84
|
+
"@aztec/stdlib": "3.0.0-nightly.20250927",
|
|
85
|
+
"@aztec/test-wallet": "3.0.0-nightly.20250927",
|
|
86
|
+
"@aztec/world-state": "3.0.0-nightly.20250927",
|
|
87
87
|
"@iarna/toml": "^2.2.5",
|
|
88
88
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
89
89
|
"commander": "^12.1.0",
|
|
@@ -110,15 +110,15 @@
|
|
|
110
110
|
"typescript": "^5.3.3"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
114
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
115
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
116
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
117
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
118
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
119
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
120
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
121
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
113
|
+
"@aztec/accounts": "3.0.0-nightly.20250927",
|
|
114
|
+
"@aztec/bb-prover": "3.0.0-nightly.20250927",
|
|
115
|
+
"@aztec/ethereum": "3.0.0-nightly.20250927",
|
|
116
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20250927",
|
|
117
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20250927",
|
|
118
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20250927",
|
|
119
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20250927",
|
|
120
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20250927",
|
|
121
|
+
"@aztec/stdlib": "3.0.0-nightly.20250927"
|
|
122
122
|
},
|
|
123
123
|
"files": [
|
|
124
124
|
"dest",
|
package/src/utils/commands.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Fr } from '@aztec/aztec.js/fields';
|
|
|
5
5
|
import { LogId } from '@aztec/aztec.js/log_id';
|
|
6
6
|
import { TxHash } from '@aztec/aztec.js/tx_hash';
|
|
7
7
|
import type { LogFn } from '@aztec/foundation/log';
|
|
8
|
-
import type { PXE } from '@aztec/
|
|
8
|
+
import type { PXE } from '@aztec/pxe/server';
|
|
9
9
|
import { PublicKeys } from '@aztec/stdlib/keys';
|
|
10
10
|
|
|
11
11
|
import { type Command, CommanderError, InvalidArgumentError, Option } from 'commander';
|