v2_0_0

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultUpgrader = new(Upgrader)

Functions

func Upgrade

func Upgrade(host *script.Host, input UpgradeOPChainInput) error

Types

type OPChainConfig

type OPChainConfig struct {
	SystemConfigProxy common.Address `json:"systemConfigProxy"`
	ProxyAdmin        common.Address `json:"proxyAdmin"`
	AbsolutePrestate  common.Hash    `json:"absolutePrestate"`
}

type UpgradeOPChain

type UpgradeOPChain struct {
	Run func(input common.Address)
}

type UpgradeOPChainInput

type UpgradeOPChainInput struct {
	Prank               common.Address  `json:"prank"`
	Opcm                common.Address  `json:"opcm"`
	EncodedChainConfigs []OPChainConfig `evm:"-" json:"chainConfigs"`
}

func (*UpgradeOPChainInput) OpChainConfigs

func (u *UpgradeOPChainInput) OpChainConfigs() ([]byte, error)

type Upgrader

type Upgrader struct{}

func (*Upgrader) ArtifactsURL

func (u *Upgrader) ArtifactsURL() string

func (*Upgrader) SupportsVersion

func (u *Upgrader) SupportsVersion(version string) bool

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade(host *script.Host, input json.RawMessage) error

Jump to

Keyboard shortcuts

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