flags

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeystorePath = "keystore"
	Endpoint     = "endpoint"
	ContractAddr = "contractaddr"
)

Variables

View Source
var GeneralFlags = []cli.Flag{
	cli.StringFlag{
		Name:  KeystorePath,
		Usage: "Keystore file path for contract admin",
	},
	cli.StringFlag{
		Name:  Endpoint,
		Usage: "Endpoint to interact with",
	},
	cli.StringFlag{
		Name:  ContractAddr,
		Usage: "Contract address",
	},
}

Functions

func GetByName

func GetByName(name string) cli.Flag

func GetContractAddress

func GetContractAddress(ctx *cli.Context) (common.Address, error)

func GetEndpoint

func GetEndpoint(ctx *cli.Context) (string, error)

func GetKeystorePath

func GetKeystorePath(ctx *cli.Context) (string, error)

func Register

func Register(flags ...cli.Flag)

Types

This section is empty.

Jump to

Keyboard shortcuts

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