@aztec/cli 2.0.3-rc.19 → 2.0.3-rc.20
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,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAWrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,GAC5C,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;IAIpC,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;CAC1B,CAAC;
|
|
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,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAWrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,GAC5C,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;IAIpC,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;CAC1B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aAkF1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAsDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAyDlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAkFnC,CAAC;AAIF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,gBAQ9E;AAED,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAoBpC;AAMD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBAgG/E"}
|
|
@@ -14,6 +14,7 @@ const DefaultSlashConfig = {
|
|
|
14
14
|
/** How long for a slash payload to be executed */ slashingLifetimeInRounds: 5,
|
|
15
15
|
/** Allow 2 rounds to discover faults */ slashingOffsetInRounds: 2,
|
|
16
16
|
/** No slash vetoer */ slashingVetoer: EthAddress.ZERO,
|
|
17
|
+
/** Use default disable duration */ slashingDisableDuration: DefaultL1ContractsConfig.slashingDisableDuration,
|
|
17
18
|
/** Use default slash amounts */ slashAmountSmall: DefaultL1ContractsConfig.slashAmountSmall,
|
|
18
19
|
slashAmountMedium: DefaultL1ContractsConfig.slashAmountMedium,
|
|
19
20
|
slashAmountLarge: DefaultL1ContractsConfig.slashAmountLarge,
|
|
@@ -68,11 +69,13 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
68
69
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
|
|
69
70
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
70
71
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 24,
|
|
72
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 2,
|
|
71
73
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
72
74
|
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
|
|
73
75
|
slashingRoundSizeInEpochs: 4,
|
|
74
76
|
slashingLifetimeInRounds: 40,
|
|
75
77
|
slashingExecutionDelayInRounds: 28,
|
|
78
|
+
slashingDisableDuration: 5 * 24 * 60 * 60,
|
|
76
79
|
slashAmountSmall: 2_000n * 10n ** 18n,
|
|
77
80
|
slashAmountMedium: 10_000n * 10n ** 18n,
|
|
78
81
|
slashAmountLarge: 50_000n * 10n ** 18n,
|
|
@@ -84,6 +87,7 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
84
87
|
/** The proving cost per mana */ provingCostPerMana: 0n,
|
|
85
88
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
86
89
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
90
|
+
localEjectionThreshold: 196_000n * 10n ** 18n,
|
|
87
91
|
governanceProposerRoundSize: 300,
|
|
88
92
|
governanceProposerQuorum: 151,
|
|
89
93
|
// Node slashing config
|
|
@@ -133,6 +137,8 @@ export const stagingPublicL2ChainConfig = {
|
|
|
133
137
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
134
138
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
135
139
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
140
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: DefaultL1ContractsConfig.lagInEpochs,
|
|
141
|
+
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
136
142
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
137
143
|
/** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
138
144
|
/** The minimum stake for a validator. */ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
|
|
@@ -171,9 +177,11 @@ export const testnetL2ChainConfig = {
|
|
|
171
177
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
172
178
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
173
179
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
180
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 2,
|
|
174
181
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
175
182
|
/** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
176
183
|
/** The minimum stake for a validator. */ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
|
|
184
|
+
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
177
185
|
/** The slashing round size */ slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
|
|
178
186
|
/** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
|
|
179
187
|
/** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
|
|
@@ -211,11 +219,13 @@ export const ignitionL2ChainConfig = {
|
|
|
211
219
|
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
|
|
212
220
|
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
213
221
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 24,
|
|
222
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochs: 2,
|
|
214
223
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
215
224
|
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
|
|
216
225
|
slashingRoundSizeInEpochs: 4,
|
|
217
226
|
slashingLifetimeInRounds: 40,
|
|
218
227
|
slashingExecutionDelayInRounds: 28,
|
|
228
|
+
slashingDisableDuration: 5 * 24 * 60 * 60,
|
|
219
229
|
slashAmountSmall: 2_000n * 10n ** 18n,
|
|
220
230
|
slashAmountMedium: 10_000n * 10n ** 18n,
|
|
221
231
|
slashAmountLarge: 50_000n * 10n ** 18n,
|
|
@@ -227,6 +237,7 @@ export const ignitionL2ChainConfig = {
|
|
|
227
237
|
/** The proving cost per mana */ provingCostPerMana: 0n,
|
|
228
238
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
229
239
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
240
|
+
localEjectionThreshold: 196_000n * 10n ** 18n,
|
|
230
241
|
governanceProposerRoundSize: 300,
|
|
231
242
|
governanceProposerQuorum: 151,
|
|
232
243
|
// Node slashing config
|
|
@@ -342,6 +353,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
342
353
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
343
354
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
344
355
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
|
356
|
+
enrichVar('AZTEC_LOCAL_EJECTION_THRESHOLD', config.localEjectionThreshold.toString());
|
|
345
357
|
enrichVar('AZTEC_SLASHING_QUORUM', config.slashingQuorum?.toString());
|
|
346
358
|
enrichVar('AZTEC_SLASHING_ROUND_SIZE_IN_EPOCHS', config.slashingRoundSizeInEpochs.toString());
|
|
347
359
|
enrichVar('AZTEC_GOVERNANCE_PROPOSER_QUORUM', config.governanceProposerQuorum?.toString());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "2.0.3-rc.
|
|
3
|
+
"version": "2.0.3-rc.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aztec/archiver": "2.0.3-rc.
|
|
74
|
-
"@aztec/aztec.js": "2.0.3-rc.
|
|
75
|
-
"@aztec/constants": "2.0.3-rc.
|
|
76
|
-
"@aztec/entrypoints": "2.0.3-rc.
|
|
77
|
-
"@aztec/ethereum": "2.0.3-rc.
|
|
78
|
-
"@aztec/foundation": "2.0.3-rc.
|
|
79
|
-
"@aztec/l1-artifacts": "2.0.3-rc.
|
|
80
|
-
"@aztec/node-lib": "2.0.3-rc.
|
|
81
|
-
"@aztec/p2p": "2.0.3-rc.
|
|
82
|
-
"@aztec/stdlib": "2.0.3-rc.
|
|
83
|
-
"@aztec/world-state": "2.0.3-rc.
|
|
73
|
+
"@aztec/archiver": "2.0.3-rc.20",
|
|
74
|
+
"@aztec/aztec.js": "2.0.3-rc.20",
|
|
75
|
+
"@aztec/constants": "2.0.3-rc.20",
|
|
76
|
+
"@aztec/entrypoints": "2.0.3-rc.20",
|
|
77
|
+
"@aztec/ethereum": "2.0.3-rc.20",
|
|
78
|
+
"@aztec/foundation": "2.0.3-rc.20",
|
|
79
|
+
"@aztec/l1-artifacts": "2.0.3-rc.20",
|
|
80
|
+
"@aztec/node-lib": "2.0.3-rc.20",
|
|
81
|
+
"@aztec/p2p": "2.0.3-rc.20",
|
|
82
|
+
"@aztec/stdlib": "2.0.3-rc.20",
|
|
83
|
+
"@aztec/world-state": "2.0.3-rc.20",
|
|
84
84
|
"@iarna/toml": "^2.2.5",
|
|
85
85
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
86
86
|
"commander": "^12.1.0",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"viem": "2.23.7"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@aztec/accounts": "2.0.3-rc.
|
|
96
|
-
"@aztec/protocol-contracts": "2.0.3-rc.
|
|
95
|
+
"@aztec/accounts": "2.0.3-rc.20",
|
|
96
|
+
"@aztec/protocol-contracts": "2.0.3-rc.20",
|
|
97
97
|
"@jest/globals": "^30.0.0",
|
|
98
98
|
"@types/jest": "^30.0.0",
|
|
99
99
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -109,15 +109,15 @@
|
|
|
109
109
|
"typescript": "^5.3.3"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@aztec/accounts": "2.0.3-rc.
|
|
113
|
-
"@aztec/bb-prover": "2.0.3-rc.
|
|
114
|
-
"@aztec/ethereum": "2.0.3-rc.
|
|
115
|
-
"@aztec/l1-artifacts": "2.0.3-rc.
|
|
116
|
-
"@aztec/noir-contracts.js": "2.0.3-rc.
|
|
117
|
-
"@aztec/noir-protocol-circuits-types": "2.0.3-rc.
|
|
118
|
-
"@aztec/noir-test-contracts.js": "2.0.3-rc.
|
|
119
|
-
"@aztec/protocol-contracts": "2.0.3-rc.
|
|
120
|
-
"@aztec/stdlib": "2.0.3-rc.
|
|
112
|
+
"@aztec/accounts": "2.0.3-rc.20",
|
|
113
|
+
"@aztec/bb-prover": "2.0.3-rc.20",
|
|
114
|
+
"@aztec/ethereum": "2.0.3-rc.20",
|
|
115
|
+
"@aztec/l1-artifacts": "2.0.3-rc.20",
|
|
116
|
+
"@aztec/noir-contracts.js": "2.0.3-rc.20",
|
|
117
|
+
"@aztec/noir-protocol-circuits-types": "2.0.3-rc.20",
|
|
118
|
+
"@aztec/noir-test-contracts.js": "2.0.3-rc.20",
|
|
119
|
+
"@aztec/protocol-contracts": "2.0.3-rc.20",
|
|
120
|
+
"@aztec/stdlib": "2.0.3-rc.20"
|
|
121
121
|
},
|
|
122
122
|
"files": [
|
|
123
123
|
"dest",
|
|
@@ -59,6 +59,8 @@ const DefaultSlashConfig = {
|
|
|
59
59
|
slashingOffsetInRounds: 2,
|
|
60
60
|
/** No slash vetoer */
|
|
61
61
|
slashingVetoer: EthAddress.ZERO,
|
|
62
|
+
/** Use default disable duration */
|
|
63
|
+
slashingDisableDuration: DefaultL1ContractsConfig.slashingDisableDuration,
|
|
62
64
|
/** Use default slash amounts */
|
|
63
65
|
slashAmountSmall: DefaultL1ContractsConfig.slashAmountSmall,
|
|
64
66
|
slashAmountMedium: DefaultL1ContractsConfig.slashAmountMedium,
|
|
@@ -120,6 +122,8 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
120
122
|
aztecEpochDuration: 32,
|
|
121
123
|
/** The target validator committee size. */
|
|
122
124
|
aztecTargetCommitteeSize: 24,
|
|
125
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */
|
|
126
|
+
lagInEpochs: 2,
|
|
123
127
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
124
128
|
aztecProofSubmissionEpochs: 1,
|
|
125
129
|
/** How many sequencers must agree with a slash for it to be executed. */
|
|
@@ -128,6 +132,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
128
132
|
slashingRoundSizeInEpochs: 4,
|
|
129
133
|
slashingLifetimeInRounds: 40,
|
|
130
134
|
slashingExecutionDelayInRounds: 28,
|
|
135
|
+
slashingDisableDuration: 5 * 24 * 60 * 60, // 5 days in seconds
|
|
131
136
|
slashAmountSmall: 2_000n * 10n ** 18n,
|
|
132
137
|
slashAmountMedium: 10_000n * 10n ** 18n,
|
|
133
138
|
slashAmountLarge: 50_000n * 10n ** 18n,
|
|
@@ -145,6 +150,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
145
150
|
|
|
146
151
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
147
152
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
153
|
+
localEjectionThreshold: 196_000n * 10n ** 18n,
|
|
148
154
|
|
|
149
155
|
governanceProposerRoundSize: 300, // TODO TMNT-322
|
|
150
156
|
governanceProposerQuorum: 151, // TODO TMNT-322
|
|
@@ -201,6 +207,10 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
201
207
|
aztecEpochDuration: 32,
|
|
202
208
|
/** The target validator committee size. */
|
|
203
209
|
aztecTargetCommitteeSize: 48,
|
|
210
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */
|
|
211
|
+
lagInEpochs: DefaultL1ContractsConfig.lagInEpochs,
|
|
212
|
+
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
|
|
213
|
+
localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
204
214
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
205
215
|
aztecProofSubmissionEpochs: 1,
|
|
206
216
|
/** The deposit amount for a validator */
|
|
@@ -253,12 +263,16 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
253
263
|
aztecEpochDuration: 32,
|
|
254
264
|
/** The target validator committee size. */
|
|
255
265
|
aztecTargetCommitteeSize: 48,
|
|
266
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */
|
|
267
|
+
lagInEpochs: 2,
|
|
256
268
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
257
269
|
aztecProofSubmissionEpochs: 1,
|
|
258
270
|
/** The deposit amount for a validator */
|
|
259
271
|
activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
260
272
|
/** The minimum stake for a validator. */
|
|
261
273
|
ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
|
|
274
|
+
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
|
|
275
|
+
localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
262
276
|
/** The slashing round size */
|
|
263
277
|
slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
|
|
264
278
|
/** Governance proposing round size */
|
|
@@ -307,6 +321,8 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
307
321
|
aztecEpochDuration: 32,
|
|
308
322
|
/** The target validator committee size. */
|
|
309
323
|
aztecTargetCommitteeSize: 24,
|
|
324
|
+
/** The number of epochs to lag behind the current epoch for validator selection. */
|
|
325
|
+
lagInEpochs: 2,
|
|
310
326
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
311
327
|
aztecProofSubmissionEpochs: 1,
|
|
312
328
|
/** How many sequencers must agree with a slash for it to be executed. */
|
|
@@ -315,6 +331,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
315
331
|
slashingRoundSizeInEpochs: 4,
|
|
316
332
|
slashingLifetimeInRounds: 40,
|
|
317
333
|
slashingExecutionDelayInRounds: 28,
|
|
334
|
+
slashingDisableDuration: 5 * 24 * 60 * 60, // 5 days in seconds
|
|
318
335
|
slashAmountSmall: 2_000n * 10n ** 18n,
|
|
319
336
|
slashAmountMedium: 10_000n * 10n ** 18n,
|
|
320
337
|
slashAmountLarge: 50_000n * 10n ** 18n,
|
|
@@ -332,6 +349,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
332
349
|
|
|
333
350
|
ejectionThreshold: 100_000n * 10n ** 18n,
|
|
334
351
|
activationThreshold: 200_000n * 10n ** 18n,
|
|
352
|
+
localEjectionThreshold: 196_000n * 10n ** 18n,
|
|
335
353
|
|
|
336
354
|
governanceProposerRoundSize: 300, // TODO TMNT-322
|
|
337
355
|
governanceProposerQuorum: 151, // TODO TMNT-322
|
|
@@ -462,6 +480,7 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
|
|
|
462
480
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
463
481
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
464
482
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
|
483
|
+
enrichVar('AZTEC_LOCAL_EJECTION_THRESHOLD', config.localEjectionThreshold.toString());
|
|
465
484
|
enrichVar('AZTEC_SLASHING_QUORUM', config.slashingQuorum?.toString());
|
|
466
485
|
enrichVar('AZTEC_SLASHING_ROUND_SIZE_IN_EPOCHS', config.slashingRoundSizeInEpochs.toString());
|
|
467
486
|
enrichVar('AZTEC_GOVERNANCE_PROPOSER_QUORUM', config.governanceProposerQuorum?.toString());
|