node

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisConf

type GenesisConf struct {
	L2Hash common.Hash `ask:"--l2-hash" help:"Genesis block hash of L2"`
	L1Hash common.Hash `ask:"--l1-hash" help:"Block hash of L1 after (not incl.) which L1 starts deriving blocks"`
	L1Num  uint64      `ask:"--l1-num" help:"Block number of L1 matching the l1-hash"`
}

func (*GenesisConf) GetGenesis

func (conf *GenesisConf) GetGenesis() l2.Genesis

type LogCmd

type LogCmd struct {
	LogLvl LogLvl    `ask:"--level" help:"Log level: trace, debug, info, warn, error, crit. Capitals are accepted too."`
	Color  bool      `ask:"--color" help:"Color the log output. Defaults to true if terminal is detected."`
	Format LogFormat `ask:"--format" help:"Format the log output. Supported formats: 'text', 'json'"`
}

func (*LogCmd) Create

func (c *LogCmd) Create() log.Logger

func (*LogCmd) Default

func (c *LogCmd) Default()

type LogFormat

type LogFormat string

func (LogFormat) Format

func (lf LogFormat) Format(color bool) log.Format

func (*LogFormat) Set

func (lf *LogFormat) Set(v string) error

func (LogFormat) String

func (lf LogFormat) String() string

func (*LogFormat) Type

func (lf *LogFormat) Type() string

type LogLvl

type LogLvl string

func (LogLvl) Lvl

func (lvl LogLvl) Lvl() log.Lvl

func (*LogLvl) Set

func (lvl *LogLvl) Set(v string) error

func (LogLvl) String

func (lvl LogLvl) String() string

func (*LogLvl) Type

func (lvl *LogLvl) Type() string

type OpNodeCmd

type OpNodeCmd struct {
	L1NodeAddrs   []string `ask:"--l1" help:"Addresses of L1 User JSON-RPC endpoints to use (eth namespace required)"`
	L2EngineAddrs []string `ask:"--l2" help:"Addresses of L2 Engine JSON-RPC endpoints to use (engine and eth namespace required)"`

	LogCmd `ask:".log" help:"Log configuration"`

	Genesis GenesisConf `ask:".genesis" help:"Genesis anchor point"`
	// contains filtered or unexported fields
}

func (*OpNodeCmd) Close

func (c *OpNodeCmd) Close() error

func (*OpNodeCmd) Default

func (c *OpNodeCmd) Default()

func (*OpNodeCmd) Help

func (c *OpNodeCmd) Help() string

func (*OpNodeCmd) Run

func (c *OpNodeCmd) Run(ctx context.Context, args ...string) error

func (*OpNodeCmd) RunNode

func (c *OpNodeCmd) RunNode()

Jump to

Keyboard shortcuts

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