cli

package
v2.0.0-...-22dfcf9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(condition bool, quiet bool, msg string)

Assert checks a condition and quits if it is false.

func Check

func Check(condition bool, quiet bool, msg string)

Check checks a condition and warns if it is false.

func DefaultDataDir

func DefaultDataDir() string

DefaultDataDir is the default data directory to use for the databases and other persistence requirements.

func Err

func Err(quiet bool, msg string)

Err prints an error and quits.

func ErrAssert

func ErrAssert(condition bool, err error, quiet bool, msg string)

ErrAssert checks a condition and quits if it is false.

func ErrCheck

func ErrCheck(err error, quiet bool, msg string)

ErrCheck checks for an error and quits if it is present.

func ObtainAccount

func ObtainAccount(wallet *accounts.Wallet, address *common.Address, passphrase string) (*accounts.Account, error)

ObtainAccount fetches the account for a given address.

func ObtainWallet

func ObtainWallet(chainID *big.Int, address common.Address) (accounts.Wallet, error)

ObtainWallet fetches the wallet for a given address.

func ObtainWalletAndAccount

func ObtainWalletAndAccount(chainID *big.Int, address common.Address) (accounts.Wallet, *accounts.Account, error)

ObtainWalletAndAccount obtains the wallet and account for an address.

func ObtainWallets

func ObtainWallets(chainID *big.Int, debug bool) ([]accounts.Wallet, error)

ObtainWallets obtains all known wallets for a given chain.

func VerifyPassphrase

func VerifyPassphrase(wallet accounts.Wallet, account accounts.Account, passphrase string) bool

VerifyPassphrase confirms that a passphrase is correct for an account.

func Warn

func Warn(quiet bool, msg string)

Warn prints a warning.

func WarnCheck

func WarnCheck(err error, quiet bool, msg string)

WarnCheck checks for an error and warns if it is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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