standard

package
v1.13.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 = 8
	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"
	ContractsV300Tag        = "op-contracts/v3.0.0"
	ContractsV400Tag        = "op-contracts/v4.0.0-rc.7"
	CurrentTag              = ContractsV400Tag
)

Variables

View Source
var DisputeAbsolutePrestate = common.HexToHash("0x038512e02c4c3f7bdaec27d00edf55b7155e0905301e1a88083e4e0a6764d54c")
View Source
var GovernanceTokenOwner = common.HexToAddress("0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAdDEad")
View Source
var VaultMinWithdrawalAmount = mustHexBigFromHex("0x8ac7230489e80000")

Functions

func ChallengerAddressFor added in v1.11.0

func ChallengerAddressFor(chainID uint64) (common.Address, error)

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 GuardianAddressFor added in v1.11.0

func GuardianAddressFor(chainID uint64) (common.Address, error)

func L1ProxyAdminOwner added in v1.11.0

func L1ProxyAdminOwner(chainID uint64) (common.Address, error)

func L1VersionsFor

func L1VersionsFor(chainID uint64) (validation.Versions, error)

func L2ProxyAdminOwner added in v1.12.1

func L2ProxyAdminOwner(chainID uint64) (common.Address, error)

func OPCMImplAddressFor added in v1.13.3

func OPCMImplAddressFor(chainID uint64, tag string) (common.Address, error)

func ProtocolVersionsOwner added in v1.11.0

func ProtocolVersionsOwner(chainID uint64) (common.Address, error)

func SuperchainFor

func SuperchainFor(chainID uint64) (superchain.Superchain, error)

func SuperchainProxyAdminAddrFor added in v1.11.0

func SuperchainProxyAdminAddrFor(chainID uint64) (common.Address, error)

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

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL