Documentation
¶
Index ¶
- Constants
- Variables
- func ArtifactsHashForTag(tag string) (common.Hash, error)
- func ArtifactsURLForTag(tag string) (*url.URL, error)
- func ChallengerAddressFor(chainID uint64) (common.Address, error)
- func DefaultHardforkScheduleForTag(tag string) *genesis.UpgradeScheduleDeployConfig
- func GuardianAddressFor(chainID uint64) (common.Address, error)
- func IsSupportedL1Version(tag string) bool
- func IsSupportedL2Version(tag string) bool
- func L1ProxyAdminOwner(chainID uint64) (common.Address, error)
- func L1VersionsFor(chainID uint64) (validation.Versions, error)
- func L2ProxyAdminOwner(chainID uint64) (common.Address, error)
- func ManagerImplementationAddrFor(chainID uint64, tag string) (common.Address, error)
- func ProtocolVersionsOwner(chainID uint64) (common.Address, error)
- func SuperchainFor(chainID uint64) (superchain.Superchain, error)
- func SuperchainProxyAdminAddrFor(chainID uint64) (common.Address, error)
- type TaggedRelease
Constants ¶
View Source
const ( GasLimit uint64 = 60_000_000 BasefeeScalar uint32 = 1368 BlobBaseFeeScalar uint32 = 801949 WithdrawalDelaySeconds uint64 = 302400 MinProposalSizeBytes uint64 = 126000 ChallengePeriodSeconds uint64 = 86400 ProofMaturityDelaySeconds uint64 = 604800 DisputeGameFinalityDelaySeconds uint64 = 302400 MIPSVersion uint64 = 2 DisputeGameType uint32 = 1 // PERMISSIONED game type DisputeMaxGameDepth uint64 = 73 DisputeSplitDepth uint64 = 30 DisputeClockExtension uint64 = 10800 DisputeMaxClockDuration uint64 = 302400 Eip1559DenominatorCanyon uint64 = 250 Eip1559Denominator uint64 = 50 Eip1559Elasticity uint64 = 6 ContractsV160Tag = "op-contracts/v1.6.0" ContractsV180Tag = "op-contracts/v1.8.0-rc.4" ContractsV170Beta1L2Tag = "op-contracts/v1.7.0-beta.1+l2-contracts" ContractsV200Tag = "op-contracts/v2.0.0-rc.1" ContractsV300Tag = "op-contracts/v3.0.0-rc.2" )
Variables ¶
View Source
var DefaultL1ContractsTag = ContractsV300Tag
View Source
var DefaultL2ContractsTag = ContractsV300Tag
View Source
var DisputeAbsolutePrestate = common.HexToHash("0x038512e02c4c3f7bdaec27d00edf55b7155e0905301e1a88083e4e0a6764d54c")
Functions ¶
func ArtifactsHashForTag ¶ added in v1.11.0
func DefaultHardforkScheduleForTag ¶ added in v1.11.0
func DefaultHardforkScheduleForTag(tag string) *genesis.UpgradeScheduleDeployConfig
DefaultHardforkScheduleForTag is used to determine which hardforks should be activated by default given a contract tag. For example, passing in v1.6.0 will return all hardforks up to and including Granite. This allows OP Deployer to set sane defaults for hardforks. This is not an ideal solution, but it will have to work until we get to MCP L2.
func IsSupportedL1Version ¶ added in v1.12.0
func IsSupportedL2Version ¶ added in v1.12.0
func L1VersionsFor ¶
func L1VersionsFor(chainID uint64) (validation.Versions, error)
func ManagerImplementationAddrFor ¶ added in v1.9.5
func SuperchainFor ¶
func SuperchainFor(chainID uint64) (superchain.Superchain, error)
func SuperchainProxyAdminAddrFor ¶
SuperchainProxyAdminAddrFor returns the address of the Superchain ProxyAdmin for the given chain ID. These have been verified to be the ProxyAdmin addresses on Mainnet and Sepolia. DO NOT MODIFY THIS METHOD WITHOUT CLEARING IT WITH THE EVM SAFETY TEAM.
Types ¶
type TaggedRelease ¶ added in v1.12.0
func (TaggedRelease) URL ¶ added in v1.12.0
func (t TaggedRelease) URL() string
Click to show internal directories.
Click to hide internal directories.