admin

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowOperators

func AllowOperators(ctx context.Context, def app.Definition) error

AllowOperators ensures that all operators hard-coded in this package is allowed as validators. Note it only adds any of the operators that are missing, it doesn't remove any ever.

func PausePortal added in v0.2.0

func PausePortal(ctx context.Context, def app.Definition, cfg Config) error

PausePortal pauses the portal contracts on a network.

func PauseXCall added in v0.8.0

func PauseXCall(ctx context.Context, def app.Definition, baseCfg Config, xcallCfg XCallConfig) error

PauseXCall pauses xcalls on a network.

func PauseXSubmit added in v0.8.0

func PauseXSubmit(ctx context.Context, def app.Definition, baseCfg Config, xsubCfg XSubmitConfig) error

PauseXSubmit pauses xsubmits on a network.

func Test

func Test(ctx context.Context, def app.Definition) error

Test tests all admin commands against an ephemeral network.

func UnpausePortal added in v0.2.0

func UnpausePortal(ctx context.Context, def app.Definition, cfg Config) error

UnpausePortal unpauses the portal contracts on a network.

func UnpauseXCall added in v0.8.0

func UnpauseXCall(ctx context.Context, def app.Definition, baseCfg Config, xcallCfg XCallConfig) error

UnpauseXCall unpauses xcalls on a network.

func UnpauseXSubmit added in v0.8.0

func UnpauseXSubmit(ctx context.Context, def app.Definition, baseCfg Config, xsubCfg XSubmitConfig) error

UnpauseXSubmit unpauses xsubmits on a network.

func UpgradeBridgeL1

func UpgradeBridgeL1(ctx context.Context, def app.Definition) error

UpgradeBridgeL1 upgrades the OmniBridgeL1 contract.

func UpgradeBridgeNative

func UpgradeBridgeNative(ctx context.Context, def app.Definition) error

UpgradeBridgeNative upgrades the OmniBridgeNative predeploy.

func UpgradeFeeOracleV1

func UpgradeFeeOracleV1(ctx context.Context, def app.Definition, cfg Config) error

UpgradeFeeOracleV1 upgrades the FeeOracleV1 contracts on a network.

func UpgradeGasPump

func UpgradeGasPump(ctx context.Context, def app.Definition, cfg Config) error

UpgradeGasPump upgrades the OmniGasPump contracts on a network.

func UpgradeGasStation

func UpgradeGasStation(ctx context.Context, def app.Definition) error

UpgradeGasStation upgrades the GasStation contracts on a network.

func UpgradePortal

func UpgradePortal(ctx context.Context, def app.Definition, cfg Config) error

UpgradePortal upgrades the portal contracts on a network.

func UpgradePortalRegistry

func UpgradePortalRegistry(ctx context.Context, def app.Definition) error

UpgradePortalRegistry upgrades the PortalRegistry predeploy.

func UpgradeSlashing

func UpgradeSlashing(ctx context.Context, def app.Definition) error

UpgradeSlashing upgrades the Slashing predeploy.

func UpgradeStaking

func UpgradeStaking(ctx context.Context, def app.Definition) error

UpgradeStaking upgrades the Staking predeploy.

Types

type Config

type Config struct {
	// Chain is the Name of chain to run on. Leave empty to run on all applicable chains.
	Chain string
}

func DefaultConfig

func DefaultConfig() Config

type XCallConfig added in v0.8.0

type XCallConfig struct {
	// Name of chain to pause/unpause xcalls to
	To string
}

type XSubmitConfig added in v0.8.0

type XSubmitConfig struct {
	// Name of chain to pause/unpause xsubmits from
	From string
}

Jump to

Keyboard shortcuts

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