proxyadmin

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrForNetwork

func AddrForNetwork(network netconf.ID) (common.Address, bool)

func Deploy

func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

Deploy deploys a new ProxyAdmin contract and returns the address and receipt. It only allows deployments to explicitly supported chains.

func DeployIfNeeded

func DeployIfNeeded(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

DeployIfNeeded deploys a new ProxyAdmin contract if it is not already deployed.

func IsDeployed

func IsDeployed(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (bool, common.Address, error)

IsDeployed checks if the ProxyAdmin contract is deployed to the provided backend to its expected network address.

Types

type DeploymentConfig

type DeploymentConfig struct {
	Create3Factory common.Address
	Create3Salt    string
	Owner          common.Address
	Deployer       common.Address
	ExpectedAddr   common.Address
}

func (DeploymentConfig) Validate

func (cfg DeploymentConfig) Validate() error

Jump to

Keyboard shortcuts

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