@@ -369,7 +369,9 @@ type UpgradeScheduleDeployConfig struct {
369369 // L2GenesisInteropTimeOffset is the number of seconds after genesis block that the Interop hard fork activates.
370370 // Set it to 0 to activate at genesis. Nil to disable Interop.
371371 L2GenesisInteropTimeOffset * hexutil.Uint64 `json:"l2GenesisInteropTimeOffset,omitempty"`
372-
372+ // L2GenesisEspressoCeloIntegrationTimeOffset is the number of seconds after genesis block that the EspressoCeloIntegration hard fork activates.
373+ // Set it to 0 to activate at genesis. Nil to disable EspressoCelo.
374+ L2GenesisEspressoCeloIntegrationTimeOffset * hexutil.Uint64 `json:"l2GenesisEspressoCeloIntegrationTimeOffset,omitempty"`
373375 // Optional Forks
374376
375377 // L2GenesisPectraBlobScheduleTimeOffset is the number of seconds after genesis block that the PectraBlobSchedule fix activates.
@@ -420,6 +422,8 @@ func (d *UpgradeScheduleDeployConfig) ForkTimeOffset(fork rollup.ForkName) *uint
420422 return (* uint64 )(d .L2GenesisJovianTimeOffset )
421423 case rollup .Interop :
422424 return (* uint64 )(d .L2GenesisInteropTimeOffset )
425+ case rollup .EspressoCeloIntegration :
426+ return (* uint64 )(d .L2GenesisEspressoCeloIntegrationTimeOffset )
423427 default :
424428 panic (fmt .Sprintf ("unknown fork: %s" , fork ))
425429 }
@@ -447,6 +451,8 @@ func (d *UpgradeScheduleDeployConfig) SetForkTimeOffset(fork rollup.ForkName, of
447451 d .L2GenesisJovianTimeOffset = (* hexutil .Uint64 )(offset )
448452 case rollup .Interop :
449453 d .L2GenesisInteropTimeOffset = (* hexutil .Uint64 )(offset )
454+ case rollup .EspressoCeloIntegration :
455+ d .L2GenesisEspressoCeloIntegrationTimeOffset = (* hexutil .Uint64 )(offset )
450456 default :
451457 panic (fmt .Sprintf ("unknown fork: %s" , fork ))
452458 }
@@ -525,6 +531,10 @@ func (d *UpgradeScheduleDeployConfig) InteropTime(genesisTime uint64) *uint64 {
525531 return offsetToUpgradeTime (d .L2GenesisInteropTimeOffset , genesisTime )
526532}
527533
534+ func (d * UpgradeScheduleDeployConfig ) EspressoCeloIntegrationTime (genesisTime uint64 ) * uint64 {
535+ return offsetToUpgradeTime (d .L2GenesisEspressoCeloIntegrationTimeOffset , genesisTime )
536+ }
537+
528538func (d * UpgradeScheduleDeployConfig ) AllocMode (genesisTime uint64 ) L2AllocsMode {
529539 forks := d .forks ()
530540 for i := len (forks ) - 1 ; i >= 0 ; i -- {
@@ -555,6 +565,7 @@ func (d *UpgradeScheduleDeployConfig) forks() []Fork {
555565 {L2GenesisTimeOffset : d .L2GenesisHoloceneTimeOffset , Name : string (L2AllocsHolocene )},
556566 {L2GenesisTimeOffset : d .L2GenesisIsthmusTimeOffset , Name : string (L2AllocsIsthmus )},
557567 {L2GenesisTimeOffset : d .L2GenesisJovianTimeOffset , Name : string (L2AllocsJovian )},
568+ {L2GenesisTimeOffset : d .L2GenesisEspressoCeloIntegrationTimeOffset , Name : string (L2AllocsEspressoCeloIntegration )},
558569 }
559570}
560571
@@ -1066,23 +1077,24 @@ func (d *DeployConfig) RollupConfig(l1StartBlock *eth.BlockRef, l2GenesisBlockHa
10661077 BatchInboxAddress : d .BatchInboxAddress ,
10671078 BatchAuthenticatorAddress : d .BatchAuthenticatorAddress ,
10681079
1069- DepositContractAddress : d .OptimismPortalProxy ,
1070- L1SystemConfigAddress : d .SystemConfigProxy ,
1071- RegolithTime : d .RegolithTime (l1StartTime ),
1072- CanyonTime : d .CanyonTime (l1StartTime ),
1073- DeltaTime : d .DeltaTime (l1StartTime ),
1074- EcotoneTime : d .EcotoneTime (l1StartTime ),
1075- FjordTime : d .FjordTime (l1StartTime ),
1076- GraniteTime : d .GraniteTime (l1StartTime ),
1077- HoloceneTime : d .HoloceneTime (l1StartTime ),
1078- PectraBlobScheduleTime : d .PectraBlobScheduleTime (l1StartTime ),
1079- IsthmusTime : d .IsthmusTime (l1StartTime ),
1080- JovianTime : d .JovianTime (l1StartTime ),
1081- InteropTime : d .InteropTime (l1StartTime ),
1082- ProtocolVersionsAddress : d .ProtocolVersionsProxy ,
1083- AltDAConfig : altDA ,
1084- ChainOpConfig : chainOpConfig ,
1085- Cel2Time : d .RegolithTime (l1StartTime ),
1080+ DepositContractAddress : d .OptimismPortalProxy ,
1081+ L1SystemConfigAddress : d .SystemConfigProxy ,
1082+ RegolithTime : d .RegolithTime (l1StartTime ),
1083+ CanyonTime : d .CanyonTime (l1StartTime ),
1084+ DeltaTime : d .DeltaTime (l1StartTime ),
1085+ EcotoneTime : d .EcotoneTime (l1StartTime ),
1086+ FjordTime : d .FjordTime (l1StartTime ),
1087+ GraniteTime : d .GraniteTime (l1StartTime ),
1088+ HoloceneTime : d .HoloceneTime (l1StartTime ),
1089+ PectraBlobScheduleTime : d .PectraBlobScheduleTime (l1StartTime ),
1090+ IsthmusTime : d .IsthmusTime (l1StartTime ),
1091+ JovianTime : d .JovianTime (l1StartTime ),
1092+ InteropTime : d .InteropTime (l1StartTime ),
1093+ ProtocolVersionsAddress : d .ProtocolVersionsProxy ,
1094+ AltDAConfig : altDA ,
1095+ ChainOpConfig : chainOpConfig ,
1096+ Cel2Time : d .RegolithTime (l1StartTime ),
1097+ EspressoCeloIntegrationTime : d .EspressoCeloIntegrationTime (l1StartTime ),
10861098 }, nil
10871099}
10881100
0 commit comments