You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create op-core/params containing OP-specific chain config types that wrap upstream params.ChainConfig. Consumers import as opparams.
Scope
OptimismConfig struct
Mirrors op-geth's params.OptimismConfig verbatim. JSON field names must be preserved for wire compatibility (rollup.Config.ChainOpConfig is serialised).
Methods: IsOptimism(), IsCanyon(t uint64), IsEcotone(t), IsFjord(t), IsGranite(t), IsHolocene(t), IsIsthmus(t), IsJovian(t), IsKarst(t), IsBedrock(num *big.Int), plus IsOptimism* convenience variants where used.
Mirror op-geth's semantics for each method.
LoadChainConfig
Replaces op-geth's params.LoadOPStackChainConfig. Takes a *superchain.ChainConfig (from op-core/superchain) and returns *opparams.ChainConfig with all OP fields populated.
Wire / migration details
rollup.Config.ChainOpConfig changes type from *params.OptimismConfig to *opparams.OptimismConfig in a follow-up sub-issue — but only the type change; JSON output must be identical.
No removal of upstream params imports — consumers use both params and opparams via import aliases.
Activity