Documentation
¶
Index ¶
- func AddFlagKey(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagKeyType(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagNode(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagNonce(cmd *cobra.Command, flags *pflag.FlagSet)
- func SetupBaseCommand(cmd *cobra.Command)
- func WithContext(fn Runner) cmdRunner
- type Context
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupBaseCommand ¶
func WithContext ¶
func WithContext(fn Runner) cmdRunner
Types ¶
type Context ¶
type Context interface {
RootDir() string
KeyManager() (keys.Manager, error)
Node() string
Client() *tmclient.HTTP
KeyName() string
Key() (keys.Info, error)
Nonce() (uint64, error)
Log() log.Logger
Signer() (txutil.Signer, keys.Info, error)
}
func NewContext ¶
Click to show internal directories.
Click to hide internal directories.