config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingRollupConfig = errors.New("missing rollup config")
	ErrMissingL2Genesis    = errors.New("missing l2 genesis")
	ErrInvalidL2Head       = errors.New("invalid l2 head")
	ErrL1AndL2Inconsistent = errors.New("l1 and l2 options must be specified together or both omitted")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Rollup        *rollup.Config
	L2URL         string
	L2GenesisPath string
	L2Head        common.Hash
	L1URL         string
	L1TrustRPC    bool
	L1RPCKind     sources.RPCProviderKind
}

func NewConfig

func NewConfig(rollupCfg *rollup.Config, l2GenesisPath string, l2Head common.Hash) *Config

NewConfig creates a Config with all optional values set to the CLI default value

func NewConfigFromCLI

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

func (*Config) Check

func (c *Config) Check() error

func (*Config) FetchingEnabled added in v1.0.3

func (c *Config) FetchingEnabled() bool

Jump to

Keyboard shortcuts

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