Documentation ¶
Index ¶
- Constants
- func SignedCommands(cmds ...*cobra.Command) []*cobra.Command
- type CliContext
- func (ctx CliContext) Codec() *codec.Codec
- func (ctx CliContext) Context() client.CLIContext
- func (ctx CliContext) EncodeAndPrintWithHeight(data interface{}, height int64) (err error)
- func (ctx CliContext) FromAddress() sdk.AccAddress
- func (ctx CliContext) HandleWriteMessage(msg sdk.Msg) error
- func (ctx CliContext) PrintWithHeight(out []byte, height int64) (err error)
- func (ctx CliContext) QueryList(path string, params interface{}) error
- func (ctx CliContext) QueryStore(key []byte, storeName string) ([]byte, int64, error)
- func (ctx CliContext) QueryWithData(path string, data interface{}) ([]byte, int64, error)
- func (ctx CliContext) ReadFromFile(target string) (string, error)
- func (ctx CliContext) WithCodec(cdc *codec.Codec) CliContext
- func (ctx CliContext) WithFormerHeight() (CliContext, error)
- func (ctx CliContext) WithHeight(height int64) CliContext
- type ReadResult
Constants ¶
View Source
const ( FlagPreviousHeight = "prev-height" FlagPreviousHeightUsage = "Query data from previous height to avoid delay linked to state proof verification" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CliContext ¶
type CliContext struct {
// contains filtered or unexported fields
}
func NewCLIContext ¶
func NewCLIContext() CliContext
func (CliContext) Codec ¶
func (ctx CliContext) Codec() *codec.Codec
func (CliContext) Context ¶
func (ctx CliContext) Context() client.CLIContext
func (CliContext) EncodeAndPrintWithHeight ¶
func (ctx CliContext) EncodeAndPrintWithHeight(data interface{}, height int64) (err error)
func (CliContext) FromAddress ¶
func (ctx CliContext) FromAddress() sdk.AccAddress
func (CliContext) HandleWriteMessage ¶
func (ctx CliContext) HandleWriteMessage(msg sdk.Msg) error
func (CliContext) PrintWithHeight ¶
func (ctx CliContext) PrintWithHeight(out []byte, height int64) (err error)
func (CliContext) QueryList ¶
func (ctx CliContext) QueryList(path string, params interface{}) error
func (CliContext) QueryStore ¶
func (CliContext) QueryWithData ¶
func (ctx CliContext) QueryWithData(path string, data interface{}) ([]byte, int64, error)
func (CliContext) ReadFromFile ¶
func (ctx CliContext) ReadFromFile(target string) (string, error)
func (CliContext) WithCodec ¶
func (ctx CliContext) WithCodec(cdc *codec.Codec) CliContext
func (CliContext) WithFormerHeight ¶
func (ctx CliContext) WithFormerHeight() (CliContext, error)
func (CliContext) WithHeight ¶
func (ctx CliContext) WithHeight(height int64) CliContext
type ReadResult ¶
type ReadResult struct { Result json.RawMessage `json:"result"` Height int64 `json:"height"` }
func NewReadResult ¶
func NewReadResult(result json.RawMessage, height int64) ReadResult
Click to show internal directories.
Click to hide internal directories.