Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingRollupConfig = errors.New("missing rollup config") ErrMissingL2Genesis = errors.New("missing l2 genesis") ErrInvalidL1Head = errors.New("invalid l1 head") ErrInvalidL2Head = errors.New("invalid l2 head") ErrL1AndL2Inconsistent = errors.New("l1 and l2 options must be specified together or both omitted") ErrInvalidL2Claim = errors.New("invalid l2 claim") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Rollup *rollup.Config
L2URL string
L2GenesisPath string
L1Head common.Hash
L2Head common.Hash
L2Claim common.Hash
L1URL string
L1TrustRPC bool
L1RPCKind sources.RPCProviderKind
}
func NewConfig ¶
func NewConfig(rollupCfg *rollup.Config, l2GenesisPath string, l1Head common.Hash, l2Head common.Hash, l2Claim common.Hash) *Config
NewConfig creates a Config with all optional values set to the CLI default value
func (*Config) FetchingEnabled ¶
Click to show internal directories.
Click to hide internal directories.