bootstrap

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArtifactsURLFlagName     = "artifacts-url"
	ContractsReleaseFlagName = "contracts-release"
)

Variables

View Source
var (
	ArtifactsURLFlag = &cli.StringFlag{
		Name:    ArtifactsURLFlagName,
		Usage:   "URL to the artifacts directory.",
		EnvVars: deployer.PrefixEnvVar("ARTIFACTS_URL"),
	}
	ContractsReleaseFlag = &cli.StringFlag{
		Name:    ContractsReleaseFlagName,
		Usage:   "Release of the contracts to deploy.",
		EnvVars: deployer.PrefixEnvVar("CONTRACTS_RELEASE"),
	}
)
View Source
var Commands = []*cli.Command{
	{
		Name:   "opcm",
		Usage:  "Bootstrap an instance of OPCM.",
		Flags:  cliapp.ProtectFlags(OPCMFlags),
		Action: OPCMCLI,
	},
}

Functions

func OPCM

func OPCM(ctx context.Context, cfg OPCMConfig) error

func OPCMCLI

func OPCMCLI(cliCtx *cli.Context) error

Types

type OPCMConfig

type OPCMConfig struct {
	L1RPCUrl         string
	PrivateKey       string
	Logger           log.Logger
	ArtifactsURL     *state.ArtifactsURL
	ContractsRelease string
	// contains filtered or unexported fields
}

func (*OPCMConfig) Check

func (c *OPCMConfig) Check() error

Jump to

Keyboard shortcuts

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