@aztec/cli 3.0.0-nightly.20250917 → 3.0.0-nightly.20250918

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,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAOrE,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,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,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;IAGpC,eAAe,EAAE,OAAO,CAAC;CAC1B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ACrB,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;IAGpC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAsCJ,eAAO,MAAM,4BAA4B,EAAE,aA8E1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAmDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,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"}
@@ -34,7 +34,7 @@ const DefaultSlashConfig = {
34
34
  };
35
35
  export const stagingIgnitionL2ChainConfig = {
36
36
  l1ChainId: 11155111,
37
- testAccounts: true,
37
+ testAccounts: false,
38
38
  sponsoredFPC: false,
39
39
  p2pEnabled: true,
40
40
  p2pBootstrapNodes: [],
@@ -53,15 +53,48 @@ export const stagingIgnitionL2ChainConfig = {
53
53
  publicMetricsCollectFrom: [
54
54
  'sequencer'
55
55
  ],
56
- ...DefaultL1ContractsConfig,
57
- ...DefaultSlashConfig,
58
56
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
59
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
57
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
60
58
  /** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
61
- /** The target validator committee size. */ aztecTargetCommitteeSize: 48,
59
+ /** The target validator committee size. */ aztecTargetCommitteeSize: 24,
60
+ /** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 2,
62
61
  /** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
62
+ /** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
63
+ slashingRoundSizeInEpochs: 4,
64
+ slashingLifetimeInRounds: 40,
65
+ slashingExecutionDelayInRounds: 28,
66
+ slashAmountSmall: 2_000n * 10n ** 18n,
67
+ slashAmountMedium: 10_000n * 10n ** 18n,
68
+ slashAmountLarge: 50_000n * 10n ** 18n,
69
+ slashingOffsetInRounds: 2,
70
+ slasherFlavor: 'tally',
71
+ slashingVetoer: EthAddress.ZERO,
63
72
  /** The mana target for the rollup */ manaTarget: 0n,
64
- /** The proving cost per mana */ provingCostPerMana: 0n
73
+ exitDelaySeconds: 5 * 24 * 60 * 60,
74
+ /** The proving cost per mana */ provingCostPerMana: 0n,
75
+ localEjectionThreshold: 196_000n * 10n ** 18n,
76
+ ejectionThreshold: 100_000n * 10n ** 18n,
77
+ activationThreshold: 200_000n * 10n ** 18n,
78
+ governanceProposerRoundSize: 300,
79
+ governanceProposerQuorum: 151,
80
+ // Node slashing config
81
+ // TODO TMNT-330
82
+ slashMinPenaltyPercentage: 0.5,
83
+ slashMaxPenaltyPercentage: 2.0,
84
+ slashInactivityTargetPercentage: 0.7,
85
+ slashInactivityConsecutiveEpochThreshold: 2,
86
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
87
+ slashPrunePenalty: 0n,
88
+ slashDataWithholdingPenalty: 0n,
89
+ slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
90
+ slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
91
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
92
+ slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n,
93
+ slashMaxPayloadSize: 50,
94
+ slashGracePeriodL2Slots: 32 * 4,
95
+ slashOffenseExpirationRounds: 8,
96
+ sentinelEnabled: true,
97
+ slashingDisableDuration: 5 * 24 * 60 * 60
65
98
  };
66
99
  export const stagingPublicL2ChainConfig = {
67
100
  l1ChainId: 11155111,
@@ -137,7 +170,9 @@ export const testnetL2ChainConfig = {
137
170
  /** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
138
171
  /** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
139
172
  /** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
140
- ...DefaultSlashConfig
173
+ ...DefaultSlashConfig,
174
+ slashPrunePenalty: 0n,
175
+ slashDataWithholdingPenalty: 0n
141
176
  };
142
177
  const BOOTNODE_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour;
143
178
  export async function getBootnodes(networkName, cacheDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "3.0.0-nightly.20250917",
3
+ "version": "3.0.0-nightly.20250918",
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.20250917",
74
- "@aztec/archiver": "3.0.0-nightly.20250917",
75
- "@aztec/aztec.js": "3.0.0-nightly.20250917",
76
- "@aztec/constants": "3.0.0-nightly.20250917",
77
- "@aztec/entrypoints": "3.0.0-nightly.20250917",
78
- "@aztec/ethereum": "3.0.0-nightly.20250917",
79
- "@aztec/foundation": "3.0.0-nightly.20250917",
80
- "@aztec/l1-artifacts": "3.0.0-nightly.20250917",
81
- "@aztec/node-lib": "3.0.0-nightly.20250917",
82
- "@aztec/p2p": "3.0.0-nightly.20250917",
83
- "@aztec/protocol-contracts": "3.0.0-nightly.20250917",
84
- "@aztec/stdlib": "3.0.0-nightly.20250917",
85
- "@aztec/test-wallet": "3.0.0-nightly.20250917",
86
- "@aztec/world-state": "3.0.0-nightly.20250917",
73
+ "@aztec/accounts": "3.0.0-nightly.20250918",
74
+ "@aztec/archiver": "3.0.0-nightly.20250918",
75
+ "@aztec/aztec.js": "3.0.0-nightly.20250918",
76
+ "@aztec/constants": "3.0.0-nightly.20250918",
77
+ "@aztec/entrypoints": "3.0.0-nightly.20250918",
78
+ "@aztec/ethereum": "3.0.0-nightly.20250918",
79
+ "@aztec/foundation": "3.0.0-nightly.20250918",
80
+ "@aztec/l1-artifacts": "3.0.0-nightly.20250918",
81
+ "@aztec/node-lib": "3.0.0-nightly.20250918",
82
+ "@aztec/p2p": "3.0.0-nightly.20250918",
83
+ "@aztec/protocol-contracts": "3.0.0-nightly.20250918",
84
+ "@aztec/stdlib": "3.0.0-nightly.20250918",
85
+ "@aztec/test-wallet": "3.0.0-nightly.20250918",
86
+ "@aztec/world-state": "3.0.0-nightly.20250918",
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.20250917",
114
- "@aztec/bb-prover": "3.0.0-nightly.20250917",
115
- "@aztec/ethereum": "3.0.0-nightly.20250917",
116
- "@aztec/l1-artifacts": "3.0.0-nightly.20250917",
117
- "@aztec/noir-contracts.js": "3.0.0-nightly.20250917",
118
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20250917",
119
- "@aztec/noir-test-contracts.js": "3.0.0-nightly.20250917",
120
- "@aztec/protocol-contracts": "3.0.0-nightly.20250917",
121
- "@aztec/stdlib": "3.0.0-nightly.20250917"
113
+ "@aztec/accounts": "3.0.0-nightly.20250918",
114
+ "@aztec/bb-prover": "3.0.0-nightly.20250918",
115
+ "@aztec/ethereum": "3.0.0-nightly.20250918",
116
+ "@aztec/l1-artifacts": "3.0.0-nightly.20250918",
117
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20250918",
118
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20250918",
119
+ "@aztec/noir-test-contracts.js": "3.0.0-nightly.20250918",
120
+ "@aztec/protocol-contracts": "3.0.0-nightly.20250918",
121
+ "@aztec/stdlib": "3.0.0-nightly.20250918"
122
122
  },
123
123
  "files": [
124
124
  "dest",
@@ -72,7 +72,7 @@ const DefaultSlashConfig = {
72
72
 
73
73
  export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
74
74
  l1ChainId: 11155111,
75
- testAccounts: true,
75
+ testAccounts: false,
76
76
  sponsoredFPC: false,
77
77
  p2pEnabled: true,
78
78
  p2pBootstrapNodes: [],
@@ -90,23 +90,64 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
90
90
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
91
91
  publicMetricsCollectFrom: ['sequencer'],
92
92
 
93
- ...DefaultL1ContractsConfig,
94
- ...DefaultSlashConfig,
95
-
96
93
  /** How many seconds an L1 slot lasts. */
97
94
  ethereumSlotDuration: 12,
98
95
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
99
- aztecSlotDuration: 36,
96
+ aztecSlotDuration: 72,
100
97
  /** How many L2 slots an epoch lasts. */
101
98
  aztecEpochDuration: 32,
102
99
  /** The target validator committee size. */
103
- aztecTargetCommitteeSize: 48,
100
+ aztecTargetCommitteeSize: 24,
101
+ /** The number of epochs to lag behind the current epoch for validator selection. */
102
+ lagInEpochs: 2,
104
103
  /** The number of epochs after an epoch ends that proofs are still accepted. */
105
104
  aztecProofSubmissionEpochs: 1,
105
+ /** How many sequencers must agree with a slash for it to be executed. */
106
+ slashingQuorum: 65,
107
+
108
+ slashingRoundSizeInEpochs: 4,
109
+ slashingLifetimeInRounds: 40,
110
+ slashingExecutionDelayInRounds: 28,
111
+ slashAmountSmall: 2_000n * 10n ** 18n,
112
+ slashAmountMedium: 10_000n * 10n ** 18n,
113
+ slashAmountLarge: 50_000n * 10n ** 18n,
114
+ slashingOffsetInRounds: 2,
115
+ slasherFlavor: 'tally',
116
+ slashingVetoer: EthAddress.ZERO, // TODO TMNT-329
117
+
106
118
  /** The mana target for the rollup */
107
119
  manaTarget: 0n,
120
+
121
+ exitDelaySeconds: 5 * 24 * 60 * 60,
122
+
108
123
  /** The proving cost per mana */
109
124
  provingCostPerMana: 0n,
125
+ localEjectionThreshold: 196_000n * 10n ** 18n,
126
+
127
+ ejectionThreshold: 100_000n * 10n ** 18n,
128
+ activationThreshold: 200_000n * 10n ** 18n,
129
+
130
+ governanceProposerRoundSize: 300, // TODO TMNT-322
131
+ governanceProposerQuorum: 151, // TODO TMNT-322
132
+
133
+ // Node slashing config
134
+ // TODO TMNT-330
135
+ slashMinPenaltyPercentage: 0.5,
136
+ slashMaxPenaltyPercentage: 2.0,
137
+ slashInactivityTargetPercentage: 0.7,
138
+ slashInactivityConsecutiveEpochThreshold: 2,
139
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
140
+ slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
141
+ slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
142
+ slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
143
+ slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
144
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
145
+ slashBroadcastedInvalidBlockPenalty: 10_000n * 10n ** 18n,
146
+ slashMaxPayloadSize: 50,
147
+ slashGracePeriodL2Slots: 32 * 4, // One round from genesis
148
+ slashOffenseExpirationRounds: 8,
149
+ sentinelEnabled: true,
150
+ slashingDisableDuration: 5 * 24 * 60 * 60,
110
151
  };
111
152
 
112
153
  export const stagingPublicL2ChainConfig: L2ChainConfig = {
@@ -213,6 +254,8 @@ export const testnetL2ChainConfig: L2ChainConfig = {
213
254
  exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
214
255
 
215
256
  ...DefaultSlashConfig,
257
+ slashPrunePenalty: 0n,
258
+ slashDataWithholdingPenalty: 0n,
216
259
  };
217
260
 
218
261
  const BOOTNODE_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour;