cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EthCLAddrFlag

func EthCLAddrFlag(v *viper.Viper, f *pflag.FlagSet)

EthCLAddrFlag register flag for Eth1 node to connect to

func EthCLConfigFromViper

func EthCLConfigFromViper(v *viper.Viper) *consclienthttp.Config

func EthELAddrFlag

func EthELAddrFlag(v *viper.Viper, f *pflag.FlagSet)

EthELAddrFlag register flag for Eth1 node to connect to

func EthELConfigFromViper

func EthELConfigFromViper(v *viper.Viper) *jsonrpchttp.Config

func GetCLAddr

func GetCLAddr(v *viper.Viper) string

func GetEthELAddr

func GetEthELAddr(v *viper.Viper) string

func GetKeystorePassword

func GetKeystorePassword(v *viper.Viper) string

func GetKeystorePath

func GetKeystorePath(v *viper.Viper) string

func KeystoreConfigFromViper

func KeystoreConfigFromViper(v *viper.Viper) *gethkeystore.Config

func KeystoreFlag

func KeystoreFlag(v *viper.Viper, f *pflag.FlagSet)

func KeystorePasswordFlag

func KeystorePasswordFlag(v *viper.Viper, f *pflag.FlagSet)

KeystorePasswordFlag register flag for the password used to encrypt keys in keystore

func KeystorePathFlag

func KeystorePathFlag(v *viper.Viper, f *pflag.FlagSet)

KeystorePathFlag register flag for the path to the file keystore

func NewCmdEthCL

func NewCmdEthCL(
	ctx context.Context,
	newCLClient func(*viper.Viper) (consclient.Client, error),
) *cobra.Command

NewCmdEthCL creates the `eth-cl` command

func NewCmdEthEL

func NewCmdEthEL(
	ctx context.Context,
	newELClient func(*viper.Viper) (*execclient.Client, error),
) *cobra.Command

NewCmdEthEL creates the `eth-el` command

func NewCmdKeystore

func NewCmdKeystore(
	ctx context.Context,
	newKeystore func(*viper.Viper) (keystore.Store, error),
) *cobra.Command

NewCmdKeystore creates the `eth-el` command

func PrintJSON

func PrintJSON(fnc func(cmd *cobra.Command, args []string) (interface{}, error)) func(cmd *cobra.Command, args []string) error

func ViperFromContext

func ViperFromContext(ctx context.Context) *viper.Viper

func WithViper

func WithViper(ctx context.Context, v *viper.Viper) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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