service

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	L1RPCURLFlag = &cli.StringFlag{
		Name:     "l1-rpc-url",
		Usage:    "L1 RPC URL",
		Required: true,
	}
	AbsolutePrestateFlag = &cli.StringFlag{
		Name:     "absolute-prestate",
		Usage:    "Absolute prestate as hex string",
		Required: true,
	}
	ProxyAdminFlag = &cli.StringFlag{
		Name:     "proxy-admin",
		Usage:    "Proxy admin address as hex string",
		Required: true,
	}
	SystemConfigFlag = &cli.StringFlag{
		Name:     "system-config",
		Usage:    "System config address as hex string",
		Required: true,
	}
	L2ChainIDFlag = &cli.StringFlag{
		Name:     "l2-chain-id",
		Usage:    "L2 chain ID",
		Required: true,
	}
	ProposerFlag = &cli.StringFlag{
		Name:     "proposer",
		Usage:    "Proposer address as hex string (required for OPCMStandardValidator)",
		Required: false,
	}
	ValidatorAddressFlag = &cli.StringFlag{
		Name:     "validator-address",
		Usage:    "OPCMStandardValidator contract address (required for custom deployments)",
		Required: false,
	}
	FailOnErrorFlag = &cli.BoolFlag{
		Name:  "fail",
		Usage: "Exit with non-zero code if validation errors are found",
		Value: true,
	}
)

ValidateFlags contains all the flags needed for validation

Functions

func Validate

func Validate(ctx context.Context, lgr log.Logger, release string, cfg *Config) ([]string, error)

func ValidateCmd

func ValidateCmd(cliCtx *cli.Context, release string) error

Types

type Config

type Config struct {
	L1RPCURL         string
	AbsolutePrestate common.Hash
	ProxyAdmin       common.Address
	SystemConfig     common.Address
	L2ChainID        *big.Int
	Proposer         common.Address
	ValidatorAddress common.Address
}

Config represents the configuration for the validator service

func NewConfig

func NewConfig(ctx *cli.Context) (*Config, error)

NewConfig creates a new Config from CLI context

Jump to

Keyboard shortcuts

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