@@ -409,6 +409,58 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
409409 ...DefaultNetworkDBMapSizeConfig ,
410410} ;
411411
412+ export const devnetL2ChainConfig : L2ChainConfig = {
413+ l1ChainId : 11155111 ,
414+ testAccounts : true ,
415+ sponsoredFPC : true ,
416+ p2pEnabled : true ,
417+ p2pBootstrapNodes : [ ] ,
418+ seqMinTxsPerBlock : 0 ,
419+ seqMaxTxsPerBlock : 8 ,
420+ realProofs : false ,
421+ snapshotsUrls : [ ] ,
422+ autoUpdate : 'config-and-version' ,
423+ autoUpdateUrl : '' ,
424+ publicIncludeMetrics,
425+ publicMetricsCollectorUrl : '' ,
426+ publicMetricsCollectFrom : [ '' ] ,
427+ maxTxPoolSize : 100_000_000 , // 100MB
428+
429+ // Deployment stuff
430+ /** How many seconds an L1 slot lasts. */
431+ ethereumSlotDuration : 12 ,
432+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
433+ aztecSlotDuration : 36 ,
434+ /** How many L2 slots an epoch lasts. */
435+ aztecEpochDuration : 8 ,
436+ /** The target validator committee size. */
437+ aztecTargetCommitteeSize : 1 ,
438+ /** The number of epochs to lag behind the current epoch for validator selection. */
439+ lagInEpochs : 0 ,
440+ /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
441+ localEjectionThreshold : DefaultL1ContractsConfig . localEjectionThreshold ,
442+ /** The number of epochs after an epoch ends that proofs are still accepted. */
443+ aztecProofSubmissionEpochs : 1 ,
444+ /** The deposit amount for a validator */
445+ activationThreshold : DefaultL1ContractsConfig . activationThreshold ,
446+ /** The minimum stake for a validator. */
447+ ejectionThreshold : DefaultL1ContractsConfig . ejectionThreshold ,
448+ /** The slashing round size */
449+ slashingRoundSizeInEpochs : DefaultL1ContractsConfig . slashingRoundSizeInEpochs ,
450+ /** Governance proposing round size */
451+ governanceProposerRoundSize : DefaultL1ContractsConfig . governanceProposerRoundSize ,
452+ /** The mana target for the rollup */
453+ manaTarget : DefaultL1ContractsConfig . manaTarget ,
454+ /** The proving cost per mana */
455+ provingCostPerMana : DefaultL1ContractsConfig . provingCostPerMana ,
456+ /** Exit delay for stakers */
457+ exitDelaySeconds : DefaultL1ContractsConfig . exitDelaySeconds ,
458+
459+ ...DefaultSlashConfig ,
460+
461+ ...DefaultNetworkDBMapSizeConfig ,
462+ } ;
463+
412464export function getL2ChainConfig ( networkName : NetworkNames ) : L2ChainConfig | undefined {
413465 let config : L2ChainConfig | undefined ;
414466 if ( networkName === 'staging-public' ) {
@@ -421,6 +473,8 @@ export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | und
421473 config = { ...ignitionL2ChainConfig } ;
422474 } else if ( networkName === 'next-net' ) {
423475 config = { ...nextNetL2ChainConfig } ;
476+ } else if ( networkName === 'devnet' ) {
477+ config = { ...devnetL2ChainConfig } ;
424478 }
425479 return config ;
426480}
0 commit comments