eth

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: ISC Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigFileFlag = &cli.StringFlag{
		Name:  "config",
		Usage: "TOML configuration file",
	}
)

Functions

func GetFlags added in v1.0.20

func GetFlags() []cli.Flag

func InitLog

func InitLog(DebugLevel string, DebugPrintOrigins bool)

func LoadConfig

func LoadConfig(file string, cfg *Config) error

func MakeNakedNode

func MakeNakedNode(config *Config, args []string) (*node.Node, *cli.Context, error)

func SetDNSDiscoveryDefaults

func SetDNSDiscoveryDefaults(cfg *Config)

func TerminalFormat

func TerminalFormat(usecolor bool) log.Format

func UnlockAccount

func UnlockAccount(ks *keystore.KeyStore, address string, i int, passwords []string) (accounts.Account, string)

Types

type Config

type Config struct {
	Eth      ethconfig.Config
	Node     node.Config
	Ethstats StatsConfig
	Metrics  metrics.Config
}

type ETHChain

type ETHChain struct {
	// contains filtered or unexported fields
}

func NewETHChain

func NewETHChain(config *Config, args []string) (*ETHChain, error)

func (*ETHChain) Backend

func (ec *ETHChain) Backend() *eth.EthAPIBackend

func (*ETHChain) Config

func (ec *ETHChain) Config() *Config

func (*ETHChain) Context

func (ec *ETHChain) Context() *cli.Context

func (*ETHChain) Ether

func (ec *ETHChain) Ether() *eth.Ethereum

func (*ETHChain) IsShutdown

func (ec *ETHChain) IsShutdown() bool

func (*ETHChain) IsStarted

func (ec *ETHChain) IsStarted() bool

func (*ETHChain) Node

func (ec *ETHChain) Node() *node.Node

func (*ETHChain) Start

func (ec *ETHChain) Start() error

func (*ETHChain) Stop

func (ec *ETHChain) Stop() error

type StatsConfig

type StatsConfig struct {
	URL string `toml:",omitempty"`
}

Jump to

Keyboard shortcuts

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