cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func SignedCommands

func SignedCommands(cmds ...*cobra.Command) []*cobra.Command

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 (ctx CliContext) QueryStore(key []byte, storeName string) ([]byte, int64, error)

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

func (ReadResult) String

func (n ReadResult) String() string

Implement fmt.Stringer.

Jump to

Keyboard shortcuts

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