@aztec/cli 3.0.0-rc.2 → 3.0.0-rc.3
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/dest/config/chain_l2_config.js +22 -22
- package/package.json +28 -28
- package/src/config/chain_l2_config.ts +22 -22
|
@@ -202,7 +202,7 @@ export const testnetL2ChainConfig = {
|
|
|
202
202
|
disableTransactions: true,
|
|
203
203
|
bootstrapNodes: [],
|
|
204
204
|
minTxsPerBlock: 0,
|
|
205
|
-
maxTxsPerBlock:
|
|
205
|
+
maxTxsPerBlock: 20,
|
|
206
206
|
realProofs: true,
|
|
207
207
|
snapshotsUrls: [
|
|
208
208
|
`${SNAPSHOTS_URL}/testnet/`
|
|
@@ -222,40 +222,40 @@ export const testnetL2ChainConfig = {
|
|
|
222
222
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
223
223
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
|
|
224
224
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
225
|
-
/** The target validator committee size. */ aztecTargetCommitteeSize:
|
|
225
|
+
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
226
226
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: 2,
|
|
227
227
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: 2,
|
|
228
228
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
229
|
-
// This is a diff from mainnet: we have
|
|
230
|
-
localEjectionThreshold:
|
|
231
|
-
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum:
|
|
232
|
-
slashingRoundSizeInEpochs:
|
|
233
|
-
slashingExecutionDelayInRounds:
|
|
234
|
-
slashingLifetimeInRounds:
|
|
235
|
-
slashingVetoer: EthAddress.fromString('
|
|
229
|
+
// This is a diff from mainnet: we have 1-strike you're out, rather than 3 on mainnet.
|
|
230
|
+
localEjectionThreshold: 199_000n * 10n ** 18n,
|
|
231
|
+
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 33,
|
|
232
|
+
slashingRoundSizeInEpochs: 2,
|
|
233
|
+
slashingExecutionDelayInRounds: 2,
|
|
234
|
+
slashingLifetimeInRounds: 5,
|
|
235
|
+
slashingVetoer: EthAddress.fromString('0xdfe19Da6a717b7088621d8bBB66be59F2d78e924'),
|
|
236
236
|
slashingOffsetInRounds: 2,
|
|
237
|
-
slashingDisableDuration:
|
|
237
|
+
slashingDisableDuration: 5 * 24 * 60 * 60,
|
|
238
238
|
slasherFlavor: 'tally',
|
|
239
|
-
slashAmountSmall:
|
|
240
|
-
slashAmountMedium:
|
|
241
|
-
slashAmountLarge:
|
|
242
|
-
/** The mana target for the rollup */ manaTarget:
|
|
243
|
-
/** The proving cost per mana */ provingCostPerMana:
|
|
239
|
+
slashAmountSmall: 10_000n * 10n ** 18n,
|
|
240
|
+
slashAmountMedium: 50_000n * 10n ** 18n,
|
|
241
|
+
slashAmountLarge: 200_000n * 10n ** 18n,
|
|
242
|
+
/** The mana target for the rollup */ manaTarget: 150_000_000n,
|
|
243
|
+
/** The proving cost per mana */ provingCostPerMana: 100n,
|
|
244
244
|
exitDelaySeconds: 4 * 24 * 60 * 60,
|
|
245
245
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
246
246
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
247
|
-
governanceProposerRoundSize:
|
|
248
|
-
governanceProposerQuorum:
|
|
247
|
+
governanceProposerRoundSize: 100,
|
|
248
|
+
governanceProposerQuorum: 60,
|
|
249
249
|
// Node slashing config
|
|
250
250
|
slashInactivityTargetPercentage: 0.8,
|
|
251
251
|
slashInactivityConsecutiveEpochThreshold: 2,
|
|
252
|
-
slashInactivityPenalty:
|
|
252
|
+
slashInactivityPenalty: 10_000n * 10n ** 18n,
|
|
253
253
|
slashPrunePenalty: 0n,
|
|
254
254
|
slashDataWithholdingPenalty: 0n,
|
|
255
|
-
slashProposeInvalidAttestationsPenalty:
|
|
256
|
-
slashAttestDescendantOfInvalidPenalty:
|
|
257
|
-
slashUnknownPenalty:
|
|
258
|
-
slashBroadcastedInvalidBlockPenalty:
|
|
255
|
+
slashProposeInvalidAttestationsPenalty: 10_000n * 10n ** 18n,
|
|
256
|
+
slashAttestDescendantOfInvalidPenalty: 10_000n * 10n ** 18n,
|
|
257
|
+
slashUnknownPenalty: 10_000n * 10n ** 18n,
|
|
258
|
+
slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n,
|
|
259
259
|
slashGracePeriodL2Slots: 1_200,
|
|
260
260
|
slashOffenseExpirationRounds: 8,
|
|
261
261
|
slashMinPenaltyPercentage: 0.5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -74,21 +74,21 @@
|
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@aztec/accounts": "3.0.0-rc.
|
|
78
|
-
"@aztec/archiver": "3.0.0-rc.
|
|
79
|
-
"@aztec/aztec.js": "3.0.0-rc.
|
|
80
|
-
"@aztec/constants": "3.0.0-rc.
|
|
81
|
-
"@aztec/entrypoints": "3.0.0-rc.
|
|
82
|
-
"@aztec/ethereum": "3.0.0-rc.
|
|
83
|
-
"@aztec/foundation": "3.0.0-rc.
|
|
84
|
-
"@aztec/l1-artifacts": "3.0.0-rc.
|
|
85
|
-
"@aztec/node-keystore": "3.0.0-rc.
|
|
86
|
-
"@aztec/node-lib": "3.0.0-rc.
|
|
87
|
-
"@aztec/p2p": "3.0.0-rc.
|
|
88
|
-
"@aztec/protocol-contracts": "3.0.0-rc.
|
|
89
|
-
"@aztec/stdlib": "3.0.0-rc.
|
|
90
|
-
"@aztec/test-wallet": "3.0.0-rc.
|
|
91
|
-
"@aztec/world-state": "3.0.0-rc.
|
|
77
|
+
"@aztec/accounts": "3.0.0-rc.3",
|
|
78
|
+
"@aztec/archiver": "3.0.0-rc.3",
|
|
79
|
+
"@aztec/aztec.js": "3.0.0-rc.3",
|
|
80
|
+
"@aztec/constants": "3.0.0-rc.3",
|
|
81
|
+
"@aztec/entrypoints": "3.0.0-rc.3",
|
|
82
|
+
"@aztec/ethereum": "3.0.0-rc.3",
|
|
83
|
+
"@aztec/foundation": "3.0.0-rc.3",
|
|
84
|
+
"@aztec/l1-artifacts": "3.0.0-rc.3",
|
|
85
|
+
"@aztec/node-keystore": "3.0.0-rc.3",
|
|
86
|
+
"@aztec/node-lib": "3.0.0-rc.3",
|
|
87
|
+
"@aztec/p2p": "3.0.0-rc.3",
|
|
88
|
+
"@aztec/protocol-contracts": "3.0.0-rc.3",
|
|
89
|
+
"@aztec/stdlib": "3.0.0-rc.3",
|
|
90
|
+
"@aztec/test-wallet": "3.0.0-rc.3",
|
|
91
|
+
"@aztec/world-state": "3.0.0-rc.3",
|
|
92
92
|
"@ethersproject/wallet": "^5.8.0",
|
|
93
93
|
"@iarna/toml": "^2.2.5",
|
|
94
94
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"viem": "npm:@aztec/viem@2.38.2"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@aztec/aztec-node": "3.0.0-rc.
|
|
106
|
-
"@aztec/kv-store": "3.0.0-rc.
|
|
107
|
-
"@aztec/telemetry-client": "3.0.0-rc.
|
|
105
|
+
"@aztec/aztec-node": "3.0.0-rc.3",
|
|
106
|
+
"@aztec/kv-store": "3.0.0-rc.3",
|
|
107
|
+
"@aztec/telemetry-client": "3.0.0-rc.3",
|
|
108
108
|
"@jest/globals": "^30.0.0",
|
|
109
109
|
"@types/jest": "^30.0.0",
|
|
110
110
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
"typescript": "^5.3.3"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
|
-
"@aztec/accounts": "3.0.0-rc.
|
|
125
|
-
"@aztec/bb-prover": "3.0.0-rc.
|
|
126
|
-
"@aztec/ethereum": "3.0.0-rc.
|
|
127
|
-
"@aztec/l1-artifacts": "3.0.0-rc.
|
|
128
|
-
"@aztec/noir-contracts.js": "3.0.0-rc.
|
|
129
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-rc.
|
|
130
|
-
"@aztec/noir-test-contracts.js": "3.0.0-rc.
|
|
131
|
-
"@aztec/protocol-contracts": "3.0.0-rc.
|
|
132
|
-
"@aztec/stdlib": "3.0.0-rc.
|
|
124
|
+
"@aztec/accounts": "3.0.0-rc.3",
|
|
125
|
+
"@aztec/bb-prover": "3.0.0-rc.3",
|
|
126
|
+
"@aztec/ethereum": "3.0.0-rc.3",
|
|
127
|
+
"@aztec/l1-artifacts": "3.0.0-rc.3",
|
|
128
|
+
"@aztec/noir-contracts.js": "3.0.0-rc.3",
|
|
129
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-rc.3",
|
|
130
|
+
"@aztec/noir-test-contracts.js": "3.0.0-rc.3",
|
|
131
|
+
"@aztec/protocol-contracts": "3.0.0-rc.3",
|
|
132
|
+
"@aztec/stdlib": "3.0.0-rc.3"
|
|
133
133
|
},
|
|
134
134
|
"files": [
|
|
135
135
|
"dest",
|
|
@@ -302,7 +302,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
302
302
|
disableTransactions: true,
|
|
303
303
|
bootstrapNodes: [],
|
|
304
304
|
minTxsPerBlock: 0,
|
|
305
|
-
maxTxsPerBlock:
|
|
305
|
+
maxTxsPerBlock: 20,
|
|
306
306
|
realProofs: true,
|
|
307
307
|
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
|
|
308
308
|
autoUpdate: 'config-and-version',
|
|
@@ -323,7 +323,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
323
323
|
/** How many L2 slots an epoch lasts. */
|
|
324
324
|
aztecEpochDuration: 32,
|
|
325
325
|
/** The target validator committee size. */
|
|
326
|
-
aztecTargetCommitteeSize:
|
|
326
|
+
aztecTargetCommitteeSize: 48,
|
|
327
327
|
/** The number of epochs to lag behind the current epoch for validator selection. */
|
|
328
328
|
lagInEpochsForValidatorSet: 2,
|
|
329
329
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
@@ -331,47 +331,47 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
331
331
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
332
332
|
aztecProofSubmissionEpochs: 1,
|
|
333
333
|
|
|
334
|
-
// This is a diff from mainnet: we have
|
|
335
|
-
localEjectionThreshold:
|
|
334
|
+
// This is a diff from mainnet: we have 1-strike you're out, rather than 3 on mainnet.
|
|
335
|
+
localEjectionThreshold: 199_000n * 10n ** 18n,
|
|
336
336
|
/** How many sequencers must agree with a slash for it to be executed. */
|
|
337
|
-
slashingQuorum:
|
|
338
|
-
slashingRoundSizeInEpochs:
|
|
339
|
-
slashingExecutionDelayInRounds:
|
|
340
|
-
slashingLifetimeInRounds:
|
|
341
|
-
slashingVetoer: EthAddress.fromString('
|
|
337
|
+
slashingQuorum: 33,
|
|
338
|
+
slashingRoundSizeInEpochs: 2,
|
|
339
|
+
slashingExecutionDelayInRounds: 2,
|
|
340
|
+
slashingLifetimeInRounds: 5,
|
|
341
|
+
slashingVetoer: EthAddress.fromString('0xdfe19Da6a717b7088621d8bBB66be59F2d78e924'),
|
|
342
342
|
slashingOffsetInRounds: 2,
|
|
343
343
|
|
|
344
|
-
slashingDisableDuration:
|
|
344
|
+
slashingDisableDuration: 5 * 24 * 60 * 60, // 5 days
|
|
345
345
|
slasherFlavor: 'tally',
|
|
346
346
|
|
|
347
|
-
slashAmountSmall:
|
|
348
|
-
slashAmountMedium:
|
|
349
|
-
slashAmountLarge:
|
|
347
|
+
slashAmountSmall: 10_000n * 10n ** 18n,
|
|
348
|
+
slashAmountMedium: 50_000n * 10n ** 18n,
|
|
349
|
+
slashAmountLarge: 200_000n * 10n ** 18n,
|
|
350
350
|
|
|
351
351
|
/** The mana target for the rollup */
|
|
352
|
-
manaTarget:
|
|
352
|
+
manaTarget: 150_000_000n,
|
|
353
353
|
|
|
354
354
|
/** The proving cost per mana */
|
|
355
|
-
provingCostPerMana:
|
|
355
|
+
provingCostPerMana: 100n,
|
|
356
356
|
|
|
357
357
|
exitDelaySeconds: 4 * 24 * 60 * 60, // 4 days
|
|
358
358
|
|
|
359
359
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
360
360
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
361
361
|
|
|
362
|
-
governanceProposerRoundSize:
|
|
363
|
-
governanceProposerQuorum:
|
|
362
|
+
governanceProposerRoundSize: 100,
|
|
363
|
+
governanceProposerQuorum: 60,
|
|
364
364
|
|
|
365
365
|
// Node slashing config
|
|
366
366
|
slashInactivityTargetPercentage: 0.8,
|
|
367
367
|
slashInactivityConsecutiveEpochThreshold: 2,
|
|
368
|
-
slashInactivityPenalty:
|
|
368
|
+
slashInactivityPenalty: 10_000n * 10n ** 18n,
|
|
369
369
|
slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
|
|
370
370
|
slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
|
|
371
|
-
slashProposeInvalidAttestationsPenalty:
|
|
372
|
-
slashAttestDescendantOfInvalidPenalty:
|
|
373
|
-
slashUnknownPenalty:
|
|
374
|
-
slashBroadcastedInvalidBlockPenalty:
|
|
371
|
+
slashProposeInvalidAttestationsPenalty: 10_000n * 10n ** 18n,
|
|
372
|
+
slashAttestDescendantOfInvalidPenalty: 10_000n * 10n ** 18n,
|
|
373
|
+
slashUnknownPenalty: 10_000n * 10n ** 18n,
|
|
374
|
+
slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n, // 10_000n * 10n ** 18n, Disabled for now until further testing
|
|
375
375
|
slashGracePeriodL2Slots: 1_200, // One day from deployment
|
|
376
376
|
slashOffenseExpirationRounds: 8,
|
|
377
377
|
|