@@ -79,12 +79,12 @@ export const DefaultL1ContractsConfig = {
7979 aztecTargetCommitteeSize : 48 ,
8080 lagInEpochs : 2 ,
8181 aztecProofSubmissionEpochs : 1 , // you have a full epoch to submit a proof after the epoch to prove ends
82- activationThreshold : BigInt ( 100e18 ) ,
83- ejectionThreshold : BigInt ( 50e18 ) ,
84- localEjectionThreshold : BigInt ( 98e18 ) ,
85- slashAmountSmall : BigInt ( 10e18 ) ,
86- slashAmountMedium : BigInt ( 20e18 ) ,
87- slashAmountLarge : BigInt ( 50e18 ) ,
82+ activationThreshold : 100n * 10n ** 18n ,
83+ ejectionThreshold : 50n * 10n ** 18n ,
84+ localEjectionThreshold : 98n * 10n ** 18n ,
85+ slashAmountSmall : 10n * 10n ** 18n ,
86+ slashAmountMedium : 20n * 10n ** 18n ,
87+ slashAmountLarge : 50n * 10n ** 18n ,
8888 slashingRoundSizeInEpochs : 4 ,
8989 slashingLifetimeInRounds : 5 ,
9090 slashingExecutionDelayInRounds : 0 , // round N may be submitted in round N + 1
@@ -128,31 +128,32 @@ const StagingPublicGovernanceConfiguration = {
128128
129129const TestnetGovernanceConfiguration = {
130130 proposeConfig : {
131- lockDelay : 60n * 60n * 24n ,
132- lockAmount : DefaultL1ContractsConfig . activationThreshold * 100n ,
131+ lockDelay : 10n * 365n * 24n * 60n * 60n ,
132+ lockAmount : 1250n * 200_000n * 10n ** 18n ,
133133 } ,
134- votingDelay : 60n ,
135- votingDuration : 60n * 60n ,
136- executionDelay : 60n * 60n * 24n ,
137- gracePeriod : 60n * 60n * 24n * 7n ,
138- quorum : 3n * 10n ** 17n , // 30%
139- requiredYeaMargin : 4n * 10n ** 16n , // 4%
140- minimumVotes : DefaultL1ContractsConfig . ejectionThreshold * 200n ,
134+
135+ votingDelay : 12n * 60n * 60n , // 12 hours
136+ votingDuration : 1n * 24n * 60n * 60n , // 1 day
137+ executionDelay : 12n * 60n * 60n , // 12 hours
138+ gracePeriod : 1n * 24n * 60n * 60n , // 1 day
139+ quorum : 2n * 10n ** 17n , // 20%
140+ requiredYeaMargin : 1n * 10n ** 17n , // 10%
141+ minimumVotes : 1250n * 200_000n * 10n ** 18n ,
141142} ;
142143
143144const StagingIgnitionGovernanceConfiguration = {
144145 proposeConfig : {
145- lockDelay : 60n * 60n * 24n * 30n , // 30 days
146- lockAmount : DefaultL1ContractsConfig . activationThreshold * 100n ,
146+ lockDelay : 10n * 365n * 24n * 60n * 60n ,
147+ lockAmount : 1250n * 200_000n * 10n ** 18n ,
147148 } ,
148149
149- votingDelay : 60n ,
150- votingDuration : 60n * 60n ,
151- executionDelay : 60n ,
152- gracePeriod : 60n * 60n * 24n * 7n ,
153- quorum : 3n * 10n ** 17n , // 30 %
154- requiredYeaMargin : 4n * 10n ** 16n , // 4 %
155- minimumVotes : DefaultL1ContractsConfig . ejectionThreshold * 200n , // >= 200 validators must vote
150+ votingDelay : 7n * 24n * 60n * 60n ,
151+ votingDuration : 7n * 24n * 60n * 60n ,
152+ executionDelay : 30n * 24n * 60n * 60n ,
153+ gracePeriod : 7n * 24n * 60n * 60n ,
154+ quorum : 2n * 10n ** 17n , // 20 %
155+ requiredYeaMargin : 1n * 10n ** 17n , // 10 %
156+ minimumVotes : 1250n * 200_000n * 10n ** 18n ,
156157} ;
157158
158159export const getGovernanceConfiguration = ( networkName : NetworkNames ) => {
@@ -175,10 +176,10 @@ export const getGovernanceConfiguration = (networkName: NetworkNames) => {
175176// for it seems overkill
176177
177178const DefaultRewardConfig = {
178- sequencerBps : 5000 ,
179+ sequencerBps : 8000 ,
179180 rewardDistributor : EthAddress . ZERO . toString ( ) ,
180181 booster : EthAddress . ZERO . toString ( ) ,
181- blockReward : BigInt ( 50e18 ) ,
182+ blockReward : 500n * 10n ** 18n ,
182183} ;
183184
184185export const getRewardConfig = ( networkName : NetworkNames ) => {
@@ -193,51 +194,16 @@ export const getRewardConfig = (networkName: NetworkNames) => {
193194 }
194195} ;
195196
196- const LocalRewardBoostConfig = {
197- increment : 200000 ,
198- maxScore : 5000000 ,
199- a : 5000 ,
200- k : 1000000 ,
201- minimum : 100000 ,
202- } ;
203-
204- const StagingPublicRewardBoostConfig = {
205- increment : 200000 ,
206- maxScore : 5000000 ,
207- a : 5000 ,
208- k : 1000000 ,
209- minimum : 100000 ,
210- } ;
211-
212- const TestnetRewardBoostConfig = {
213- increment : 125000 ,
214- maxScore : 15000000 ,
215- a : 1000 ,
216- k : 1000000 ,
217- minimum : 100000 ,
218- } ;
219-
220- const StagingIgnitionRewardBoostConfig = {
221- increment : 200000 ,
222- maxScore : 5000000 ,
223- a : 5000 ,
224- k : 1000000 ,
225- minimum : 100000 ,
226- } ;
227-
228- export const getRewardBoostConfig = ( networkName : NetworkNames ) => {
229- switch ( networkName ) {
230- case 'local' :
231- return LocalRewardBoostConfig ;
232- case 'staging-public' :
233- return StagingPublicRewardBoostConfig ;
234- case 'testnet' :
235- return TestnetRewardBoostConfig ;
236- case 'staging-ignition' :
237- return StagingIgnitionRewardBoostConfig ;
238- default :
239- throw new Error ( `Unrecognized network name: ${ networkName } ` ) ;
240- }
197+ export const getRewardBoostConfig = ( ) => {
198+ // The reward configuration is specified with a precision of 1e5, and we use the same across
199+ // all networks.
200+ return {
201+ increment : 125000 , // 1.25
202+ maxScore : 15000000 , // 150
203+ a : 1000 , // 0.01
204+ k : 1000000 , // 10
205+ minimum : 100000 , // 1
206+ } ;
241207} ;
242208
243209// Similar to the above, no need for environment variables for this.
@@ -259,18 +225,18 @@ const StagingPublicEntryQueueConfig = {
259225
260226const TestnetEntryQueueConfig = {
261227 bootstrapValidatorSetSize : 750n ,
262- bootstrapFlushSize : 48n , // will effectively be bounded by maxQueueFlushSize
263- normalFlushSizeMin : 1n ,
228+ bootstrapFlushSize : 32n ,
229+ normalFlushSizeMin : 32n ,
264230 normalFlushSizeQuotient : 2475n ,
265- maxQueueFlushSize : 32n , // Limited to 32 so flush cost are kept below 15M gas.
231+ maxQueueFlushSize : 32n ,
266232} ;
267233
268234const StagingIgnitionEntryQueueConfig = {
269- bootstrapValidatorSetSize : 750n ,
270- bootstrapFlushSize : 48n , // will effectively be bounded by maxQueueFlushSize
235+ bootstrapValidatorSetSize : 1250n ,
236+ bootstrapFlushSize : 8n ,
271237 normalFlushSizeMin : 1n ,
272- normalFlushSizeQuotient : 2475n ,
273- maxQueueFlushSize : 32n , // Limited to 32 so flush cost are kept below 15M gas.
238+ normalFlushSizeQuotient : 2048n ,
239+ maxQueueFlushSize : 8n ,
274240} ;
275241
276242export const getEntryQueueConfig = ( networkName : NetworkNames ) => {
0 commit comments