admin

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PausePortal added in v0.2.0

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

PausePortal pauses the portal contracts on a network. Only single chain is supported.

func UnpausePortal added in v0.2.0

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

UnpausePortal unpauses the portal contracts on a network. Only single chain is supported.

func UpgradePortal

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

UpgradePortal upgrades the portal contracts on a network. Only single chain is supported.

Types

type PortalAdminConfig added in v0.2.0

type PortalAdminConfig struct {
	Chain string // Name of chain to run admin command on, use "all" to run on all chains
}

func DefaultPortalAdminConfig added in v0.2.0

func DefaultPortalAdminConfig() PortalAdminConfig

func (PortalAdminConfig) Validate added in v0.2.0

func (cfg PortalAdminConfig) Validate() error

Jump to

Keyboard shortcuts

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