@aztec/cli 3.0.0-nightly.20251104 → 3.0.0-nightly.20251106

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.
@@ -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,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAYrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,uBAAuB,CAAC,GAAG;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAIhC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE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1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAIhC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aA8E1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAmDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAmDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAqFlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAkFlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAmDjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAgBrF;AAMD,wBAAgB,gCAAgC,CAAC,WAAW,EAAE,YAAY,QAoGzE"}
@@ -89,7 +89,6 @@ export const stagingIgnitionL2ChainConfig = {
89
89
  governanceProposerRoundSize: 300,
90
90
  governanceProposerQuorum: 151,
91
91
  // Node slashing config
92
- // TODO TMNT-330
93
92
  slashMinPenaltyPercentage: 0.5,
94
93
  slashMaxPenaltyPercentage: 2.0,
95
94
  slashInactivityTargetPercentage: 0.7,
@@ -208,24 +207,49 @@ export const testnetL2ChainConfig = {
208
207
  ],
209
208
  skipArchiverInitialSync: true,
210
209
  blobAllowEmptySources: true,
211
- // Deployment stuff
212
210
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
213
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
211
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
214
212
  /** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
215
- /** The target validator committee size. */ aztecTargetCommitteeSize: 48,
213
+ /** The target validator committee size. */ aztecTargetCommitteeSize: 24,
216
214
  /** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 2,
217
215
  /** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
218
- /** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
219
- /** The minimum stake for a validator. */ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
220
- /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
221
- /** The slashing round size */ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
222
- /** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
216
+ // This is a diff from mainnet: we have 2-strikes you're out, rather than 3 on mainnet.
217
+ localEjectionThreshold: 198_000n * 10n ** 18n,
218
+ /** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
219
+ slashingRoundSizeInEpochs: 4,
220
+ slashingExecutionDelayInRounds: 28,
221
+ slashingLifetimeInRounds: 34,
222
+ slashingVetoer: EthAddress.fromString('0xBbB4aF368d02827945748b28CD4b2D42e4A37480'),
223
+ slashingOffsetInRounds: 2,
224
+ slashingDisableDuration: 259_200,
225
+ slasherFlavor: 'tally',
226
+ slashAmountSmall: 2_000n * 10n ** 18n,
227
+ slashAmountMedium: 2_000n * 10n ** 18n,
228
+ slashAmountLarge: 2_000n * 10n ** 18n,
223
229
  /** The mana target for the rollup */ manaTarget: 0n,
224
- /** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
225
- /** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
226
- ...DefaultSlashConfig,
230
+ /** The proving cost per mana */ provingCostPerMana: 0n,
231
+ exitDelaySeconds: 4 * 24 * 60 * 60,
232
+ activationThreshold: 200_000n * 10n ** 18n,
233
+ ejectionThreshold: 100_000n * 10n ** 18n,
234
+ governanceProposerRoundSize: 300,
235
+ governanceProposerQuorum: 151,
236
+ // Node slashing config
237
+ slashInactivityTargetPercentage: 0.8,
238
+ slashInactivityConsecutiveEpochThreshold: 2,
239
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
227
240
  slashPrunePenalty: 0n,
228
241
  slashDataWithholdingPenalty: 0n,
242
+ slashProposeInvalidAttestationsPenalty: 2_000n * 10n ** 18n,
243
+ slashAttestDescendantOfInvalidPenalty: 2_000n * 10n ** 18n,
244
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
245
+ slashBroadcastedInvalidBlockPenalty: 2_000n * 10n ** 18n,
246
+ slashGracePeriodL2Slots: 1_200,
247
+ slashOffenseExpirationRounds: 8,
248
+ slashMinPenaltyPercentage: 0.5,
249
+ slashMaxPenaltyPercentage: 2.0,
250
+ slashMaxPayloadSize: 50,
251
+ slashExecuteRoundsLookBack: 4,
252
+ sentinelEnabled: true,
229
253
  ...DefaultNetworkDBMapSizeConfig
230
254
  };
231
255
  export const mainnetL2ChainConfig = {
@@ -275,7 +299,6 @@ export const mainnetL2ChainConfig = {
275
299
  governanceProposerRoundSize: 1000,
276
300
  governanceProposerQuorum: 600,
277
301
  // Node slashing config
278
- // TODO TMNT-330
279
302
  slashInactivityTargetPercentage: 0.8,
280
303
  slashInactivityConsecutiveEpochThreshold: 2,
281
304
  slashInactivityPenalty: 2_000n * 10n ** 18n,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "3.0.0-nightly.20251104",
3
+ "version": "3.0.0-nightly.20251106",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -71,21 +71,21 @@
71
71
  ]
72
72
  },
73
73
  "dependencies": {
74
- "@aztec/accounts": "3.0.0-nightly.20251104",
75
- "@aztec/archiver": "3.0.0-nightly.20251104",
76
- "@aztec/aztec.js": "3.0.0-nightly.20251104",
77
- "@aztec/constants": "3.0.0-nightly.20251104",
78
- "@aztec/entrypoints": "3.0.0-nightly.20251104",
79
- "@aztec/ethereum": "3.0.0-nightly.20251104",
80
- "@aztec/foundation": "3.0.0-nightly.20251104",
81
- "@aztec/l1-artifacts": "3.0.0-nightly.20251104",
82
- "@aztec/node-keystore": "3.0.0-nightly.20251104",
83
- "@aztec/node-lib": "3.0.0-nightly.20251104",
84
- "@aztec/p2p": "3.0.0-nightly.20251104",
85
- "@aztec/protocol-contracts": "3.0.0-nightly.20251104",
86
- "@aztec/stdlib": "3.0.0-nightly.20251104",
87
- "@aztec/test-wallet": "3.0.0-nightly.20251104",
88
- "@aztec/world-state": "3.0.0-nightly.20251104",
74
+ "@aztec/accounts": "3.0.0-nightly.20251106",
75
+ "@aztec/archiver": "3.0.0-nightly.20251106",
76
+ "@aztec/aztec.js": "3.0.0-nightly.20251106",
77
+ "@aztec/constants": "3.0.0-nightly.20251106",
78
+ "@aztec/entrypoints": "3.0.0-nightly.20251106",
79
+ "@aztec/ethereum": "3.0.0-nightly.20251106",
80
+ "@aztec/foundation": "3.0.0-nightly.20251106",
81
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251106",
82
+ "@aztec/node-keystore": "3.0.0-nightly.20251106",
83
+ "@aztec/node-lib": "3.0.0-nightly.20251106",
84
+ "@aztec/p2p": "3.0.0-nightly.20251106",
85
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251106",
86
+ "@aztec/stdlib": "3.0.0-nightly.20251106",
87
+ "@aztec/test-wallet": "3.0.0-nightly.20251106",
88
+ "@aztec/world-state": "3.0.0-nightly.20251106",
89
89
  "@ethersproject/wallet": "^5.8.0",
90
90
  "@iarna/toml": "^2.2.5",
91
91
  "@libp2p/peer-id-factory": "^3.0.4",
@@ -114,15 +114,15 @@
114
114
  "typescript": "^5.3.3"
115
115
  },
116
116
  "peerDependencies": {
117
- "@aztec/accounts": "3.0.0-nightly.20251104",
118
- "@aztec/bb-prover": "3.0.0-nightly.20251104",
119
- "@aztec/ethereum": "3.0.0-nightly.20251104",
120
- "@aztec/l1-artifacts": "3.0.0-nightly.20251104",
121
- "@aztec/noir-contracts.js": "3.0.0-nightly.20251104",
122
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251104",
123
- "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251104",
124
- "@aztec/protocol-contracts": "3.0.0-nightly.20251104",
125
- "@aztec/stdlib": "3.0.0-nightly.20251104"
117
+ "@aztec/accounts": "3.0.0-nightly.20251106",
118
+ "@aztec/bb-prover": "3.0.0-nightly.20251106",
119
+ "@aztec/ethereum": "3.0.0-nightly.20251106",
120
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251106",
121
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20251106",
122
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251106",
123
+ "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251106",
124
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251106",
125
+ "@aztec/stdlib": "3.0.0-nightly.20251106"
126
126
  },
127
127
  "files": [
128
128
  "dest",
@@ -147,11 +147,10 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
147
147
  ejectionThreshold: 100_000n * 10n ** 18n,
148
148
  activationThreshold: 200_000n * 10n ** 18n,
149
149
 
150
- governanceProposerRoundSize: 300, // TODO TMNT-322
151
- governanceProposerQuorum: 151, // TODO TMNT-322
150
+ governanceProposerRoundSize: 300,
151
+ governanceProposerQuorum: 151,
152
152
 
153
153
  // Node slashing config
154
- // TODO TMNT-330
155
154
  slashMinPenaltyPercentage: 0.5,
156
155
  slashMaxPenaltyPercentage: 2.0,
157
156
  slashInactivityTargetPercentage: 0.7,
@@ -299,39 +298,69 @@ export const testnetL2ChainConfig: L2ChainConfig = {
299
298
  skipArchiverInitialSync: true,
300
299
  blobAllowEmptySources: true,
301
300
 
302
- // Deployment stuff
303
301
  /** How many seconds an L1 slot lasts. */
304
302
  ethereumSlotDuration: 12,
305
303
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
306
- aztecSlotDuration: 36,
304
+ aztecSlotDuration: 72,
307
305
  /** How many L2 slots an epoch lasts. */
308
306
  aztecEpochDuration: 32,
309
307
  /** The target validator committee size. */
310
- aztecTargetCommitteeSize: 48,
308
+ aztecTargetCommitteeSize: 24,
311
309
  /** The number of epochs to lag behind the current epoch for validator selection. */
312
310
  lagInEpochs: 2,
313
311
  /** The number of epochs after an epoch ends that proofs are still accepted. */
314
312
  aztecProofSubmissionEpochs: 1,
315
- /** The deposit amount for a validator */
316
- activationThreshold: DefaultL1ContractsConfig.activationThreshold,
317
- /** The minimum stake for a validator. */
318
- ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
319
- /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
320
- localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
321
- /** The slashing round size */
322
- slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
323
- /** Governance proposing round size */
324
- governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
313
+
314
+ // This is a diff from mainnet: we have 2-strikes you're out, rather than 3 on mainnet.
315
+ localEjectionThreshold: 198_000n * 10n ** 18n,
316
+ /** How many sequencers must agree with a slash for it to be executed. */
317
+ slashingQuorum: 65,
318
+ slashingRoundSizeInEpochs: 4,
319
+ slashingExecutionDelayInRounds: 28,
320
+ slashingLifetimeInRounds: 34,
321
+ slashingVetoer: EthAddress.fromString('0xBbB4aF368d02827945748b28CD4b2D42e4A37480'),
322
+ slashingOffsetInRounds: 2,
323
+
324
+ slashingDisableDuration: 259_200, // 3 days
325
+ slasherFlavor: 'tally',
326
+
327
+ slashAmountSmall: 2_000n * 10n ** 18n,
328
+ slashAmountMedium: 2_000n * 10n ** 18n,
329
+ slashAmountLarge: 2_000n * 10n ** 18n,
330
+
325
331
  /** The mana target for the rollup */
326
332
  manaTarget: 0n,
333
+
327
334
  /** The proving cost per mana */
328
- provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
329
- /** Exit delay for stakers */
330
- exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
335
+ provingCostPerMana: 0n,
331
336
 
332
- ...DefaultSlashConfig,
333
- slashPrunePenalty: 0n,
334
- slashDataWithholdingPenalty: 0n,
337
+ exitDelaySeconds: 4 * 24 * 60 * 60, // 4 days
338
+
339
+ activationThreshold: 200_000n * 10n ** 18n,
340
+ ejectionThreshold: 100_000n * 10n ** 18n,
341
+
342
+ governanceProposerRoundSize: 300,
343
+ governanceProposerQuorum: 151,
344
+
345
+ // Node slashing config
346
+ slashInactivityTargetPercentage: 0.8,
347
+ slashInactivityConsecutiveEpochThreshold: 2,
348
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
349
+ slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
350
+ slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
351
+ slashProposeInvalidAttestationsPenalty: 2_000n * 10n ** 18n,
352
+ slashAttestDescendantOfInvalidPenalty: 2_000n * 10n ** 18n,
353
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
354
+ slashBroadcastedInvalidBlockPenalty: 2_000n * 10n ** 18n, // 10_000n * 10n ** 18n, Disabled for now until further testing
355
+ slashGracePeriodL2Slots: 1_200, // One day from deployment
356
+ slashOffenseExpirationRounds: 8,
357
+
358
+ slashMinPenaltyPercentage: 0.5,
359
+ slashMaxPenaltyPercentage: 2.0,
360
+ slashMaxPayloadSize: 50,
361
+ slashExecuteRoundsLookBack: 4,
362
+
363
+ sentinelEnabled: true,
335
364
 
336
365
  ...DefaultNetworkDBMapSizeConfig,
337
366
  };
@@ -398,7 +427,6 @@ export const mainnetL2ChainConfig: L2ChainConfig = {
398
427
  governanceProposerQuorum: 600,
399
428
 
400
429
  // Node slashing config
401
- // TODO TMNT-330
402
430
  slashInactivityTargetPercentage: 0.8,
403
431
  slashInactivityConsecutiveEpochThreshold: 2,
404
432
  slashInactivityPenalty: 2_000n * 10n ** 18n,