@aztec/cli 3.0.0-nightly.20250925 → 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 CHANGED
@@ -20,420 +20,4 @@ bash -i <(curl -s https://install.aztec.network)
20
20
 
21
21
  ## Usage
22
22
 
23
- To use `aztec-cli`, open a terminal or command prompt and run the `aztec-cli` command followed by the desired command and its options.
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.
@@ -1 +1 @@
1
- {"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KA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aAqDlC,CAAC;AAIF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,gBAgC9E;AAED,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAkBpC;AAuBD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBA0F/E"}
@@ -5,6 +5,7 @@ import path, { dirname, join } from 'path';
5
5
  import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with {
6
6
  type: 'json'
7
7
  };
8
+ const SNAPSHOT_URL = 'https://pub-f4a8c34d4bb7441ebf8f48d904512180.r2.dev/snapshots';
8
9
  const DefaultSlashConfig = {
9
10
  /** Tally-style slashing */ slasherFlavor: 'tally',
10
11
  /** Allow one round for vetoing */ slashingExecutionDelayInRounds: 1,
@@ -26,11 +27,12 @@ const DefaultSlashConfig = {
26
27
  slashProposeInvalidAttestationsPenalty: DefaultL1ContractsConfig.slashAmountLarge,
27
28
  slashAttestDescendantOfInvalidPenalty: DefaultL1ContractsConfig.slashAmountLarge,
28
29
  slashUnknownPenalty: DefaultL1ContractsConfig.slashAmountSmall,
29
- slashBroadcastedInvalidBlockPenalty: DefaultL1ContractsConfig.slashAmountMedium,
30
+ slashBroadcastedInvalidBlockPenalty: 0n,
30
31
  slashMaxPayloadSize: 50,
31
32
  slashGracePeriodL2Slots: 32 * 2,
32
33
  slashOffenseExpirationRounds: 8,
33
- sentinelEnabled: true
34
+ sentinelEnabled: true,
35
+ slashExecuteRoundsLookBack: 4
34
36
  };
35
37
  export const stagingIgnitionL2ChainConfig = {
36
38
  l1ChainId: 11155111,
@@ -44,7 +46,7 @@ export const stagingIgnitionL2ChainConfig = {
44
46
  seqMinTxsPerBlock: 0,
45
47
  seqMaxTxsPerBlock: 0,
46
48
  realProofs: true,
47
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-ignition/',
49
+ snapshotsUrl: `${SNAPSHOT_URL}/staging-ignition/`,
48
50
  autoUpdate: 'config-and-version',
49
51
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
50
52
  maxTxPoolSize: 100_000_000,
@@ -89,12 +91,13 @@ export const stagingIgnitionL2ChainConfig = {
89
91
  slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
90
92
  slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
91
93
  slashUnknownPenalty: 2_000n * 10n ** 18n,
92
- slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n,
94
+ slashBroadcastedInvalidBlockPenalty: 0n,
93
95
  slashMaxPayloadSize: 50,
94
96
  slashGracePeriodL2Slots: 32 * 4,
95
97
  slashOffenseExpirationRounds: 8,
96
98
  sentinelEnabled: true,
97
- slashingDisableDuration: 5 * 24 * 60 * 60
99
+ slashingDisableDuration: 5 * 24 * 60 * 60,
100
+ slashExecuteRoundsLookBack: 4
98
101
  };
99
102
  export const stagingPublicL2ChainConfig = {
100
103
  l1ChainId: 11155111,
@@ -108,7 +111,7 @@ export const stagingPublicL2ChainConfig = {
108
111
  seqMinTxsPerBlock: 0,
109
112
  seqMaxTxsPerBlock: 20,
110
113
  realProofs: true,
111
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-public/',
114
+ snapshotsUrl: `${SNAPSHOT_URL}/staging-public/`,
112
115
  autoUpdate: 'config-and-version',
113
116
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
114
117
  publicIncludeMetrics,
@@ -146,7 +149,7 @@ export const testnetL2ChainConfig = {
146
149
  seqMinTxsPerBlock: 0,
147
150
  seqMaxTxsPerBlock: 20,
148
151
  realProofs: true,
149
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/testnet/',
152
+ snapshotsUrl: `${SNAPSHOT_URL}/testnet/`,
150
153
  autoUpdate: 'config-and-version',
151
154
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
152
155
  maxTxPoolSize: 100_000_000,
@@ -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/stdlib/interfaces/client';
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,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,KAAK,OAAO,EAAwC,MAAM,EAAE,MAAM,WAAW,CAAC;AAIvF;;;GAGG;AACH,eAAO,MAAM,YAAY,uBAGI,CAAC;AAE9B,eAAO,MAAM,SAAS,QAAuB,CAAC;AAC9C,eAAO,MAAQ,cAAc,UAA+B,WAAW,sBAAE,QAAQ,sBAAE,OAAO,sBAAE,WAAW,oBAAgB,CAAC;AAExH,wBAAgB,UAAU,CAAC,OAAO,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"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.20250925",
74
- "@aztec/archiver": "3.0.0-nightly.20250925",
75
- "@aztec/aztec.js": "3.0.0-nightly.20250925",
76
- "@aztec/constants": "3.0.0-nightly.20250925",
77
- "@aztec/entrypoints": "3.0.0-nightly.20250925",
78
- "@aztec/ethereum": "3.0.0-nightly.20250925",
79
- "@aztec/foundation": "3.0.0-nightly.20250925",
80
- "@aztec/l1-artifacts": "3.0.0-nightly.20250925",
81
- "@aztec/node-lib": "3.0.0-nightly.20250925",
82
- "@aztec/p2p": "3.0.0-nightly.20250925",
83
- "@aztec/protocol-contracts": "3.0.0-nightly.20250925",
84
- "@aztec/stdlib": "3.0.0-nightly.20250925",
85
- "@aztec/test-wallet": "3.0.0-nightly.20250925",
86
- "@aztec/world-state": "3.0.0-nightly.20250925",
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.20250925",
114
- "@aztec/bb-prover": "3.0.0-nightly.20250925",
115
- "@aztec/ethereum": "3.0.0-nightly.20250925",
116
- "@aztec/l1-artifacts": "3.0.0-nightly.20250925",
117
- "@aztec/noir-contracts.js": "3.0.0-nightly.20250925",
118
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20250925",
119
- "@aztec/noir-test-contracts.js": "3.0.0-nightly.20250925",
120
- "@aztec/protocol-contracts": "3.0.0-nightly.20250925",
121
- "@aztec/stdlib": "3.0.0-nightly.20250925"
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",
@@ -9,6 +9,8 @@ import path, { dirname, join } from 'path';
9
9
 
10
10
  import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with { type: 'json' };
11
11
 
12
+ const SNAPSHOT_URL = 'https://pub-f4a8c34d4bb7441ebf8f48d904512180.r2.dev/snapshots';
13
+
12
14
  export type L2ChainConfig = L1ContractsConfig &
13
15
  Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways'> & {
14
16
  l1ChainId: number;
@@ -63,11 +65,12 @@ const DefaultSlashConfig = {
63
65
  slashProposeInvalidAttestationsPenalty: DefaultL1ContractsConfig.slashAmountLarge,
64
66
  slashAttestDescendantOfInvalidPenalty: DefaultL1ContractsConfig.slashAmountLarge,
65
67
  slashUnknownPenalty: DefaultL1ContractsConfig.slashAmountSmall,
66
- slashBroadcastedInvalidBlockPenalty: DefaultL1ContractsConfig.slashAmountMedium,
68
+ slashBroadcastedInvalidBlockPenalty: 0n, // DefaultL1ContractsConfig.slashAmountSmall // Disabled until further testing
67
69
  slashMaxPayloadSize: 50,
68
70
  slashGracePeriodL2Slots: 32 * 2, // Two epochs from genesis
69
71
  slashOffenseExpirationRounds: 8,
70
72
  sentinelEnabled: true,
73
+ slashExecuteRoundsLookBack: 4,
71
74
  } satisfies Partial<L2ChainConfig>;
72
75
 
73
76
  export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
@@ -82,7 +85,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
82
85
  seqMinTxsPerBlock: 0,
83
86
  seqMaxTxsPerBlock: 0,
84
87
  realProofs: true,
85
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-ignition/',
88
+ snapshotsUrl: `${SNAPSHOT_URL}/staging-ignition/`,
86
89
  autoUpdate: 'config-and-version',
87
90
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
88
91
  maxTxPoolSize: 100_000_000, // 100MB
@@ -142,12 +145,13 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
142
145
  slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
143
146
  slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
144
147
  slashUnknownPenalty: 2_000n * 10n ** 18n,
145
- slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n,
148
+ slashBroadcastedInvalidBlockPenalty: 0n, // 10_000n * 10n ** 18n, Disabled for now until further testing
146
149
  slashMaxPayloadSize: 50,
147
150
  slashGracePeriodL2Slots: 32 * 4, // One round from genesis
148
151
  slashOffenseExpirationRounds: 8,
149
152
  sentinelEnabled: true,
150
153
  slashingDisableDuration: 5 * 24 * 60 * 60,
154
+ slashExecuteRoundsLookBack: 4,
151
155
  };
152
156
 
153
157
  export const stagingPublicL2ChainConfig: L2ChainConfig = {
@@ -162,7 +166,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
162
166
  seqMinTxsPerBlock: 0,
163
167
  seqMaxTxsPerBlock: 20,
164
168
  realProofs: true,
165
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-public/',
169
+ snapshotsUrl: `${SNAPSHOT_URL}/staging-public/`,
166
170
  autoUpdate: 'config-and-version',
167
171
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
168
172
  publicIncludeMetrics,
@@ -215,7 +219,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
215
219
  seqMinTxsPerBlock: 0,
216
220
  seqMaxTxsPerBlock: 20,
217
221
  realProofs: true,
218
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/testnet/',
222
+ snapshotsUrl: `${SNAPSHOT_URL}/testnet/`,
219
223
  autoUpdate: 'config-and-version',
220
224
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
221
225
  maxTxPoolSize: 100_000_000, // 100MB
@@ -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/stdlib/interfaces/client';
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';