Versions in this module Expand all Collapse all v0 v0.0.2 Nov 23, 2021 Changes in this version + const ClientContextKey + func CheckTendermintError(err error, txBytes []byte) *sdk.TxResponse + func GetFromFields(kr keyring.Keyring, from string, genOnly bool) (sdk.AccAddress, string, keyring.KeyType, error) + func Paginate(numObjs, page, limit, defLimit int) (start, end int) + func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error) + func RunGRPCQuery(ctx Context, grpcCtx gocontext.Context, method string, req interface{}, ...) (abci.ResponseQuery, metadata.MD, error) + func SetCmdClientContext(cmd *cobra.Command, clientCtx Context) error + func SetCmdClientContextHandler(clientCtx Context, cmd *cobra.Command) (err error) + func TxServiceBroadcast(grpcCtx context.Context, clientCtx Context, req *tx.BroadcastTxRequest) (*tx.BroadcastTxResponse, error) + func ValidateCmd(cmd *cobra.Command, args []string) error + type Account interface + GetAccountNumber func() uint64 + GetAddress func() sdk.AccAddress + GetPubKey func() cryptotypes.PubKey + GetSequence func() uint64 + type AccountRetriever interface + EnsureExists func(clientCtx Context, addr sdk.AccAddress) error + GetAccount func(clientCtx Context, addr sdk.AccAddress) (Account, error) + GetAccountNumberSequence func(clientCtx Context, addr sdk.AccAddress) (accNum uint64, accSeq uint64, err error) + GetAccountWithHeight func(clientCtx Context, addr sdk.AccAddress) (Account, int64, error) + type Context struct + AccountRetriever AccountRetriever + BroadcastMode string + ChainID string + Client rpcclient.Client + From string + FromAddress sdk.AccAddress + FromName string + GenerateOnly bool + Height int64 + HomeDir string + Input io.Reader + InterfaceRegistry codectypes.InterfaceRegistry + JSONMarshaler codec.JSONMarshaler + Keyring keyring.Keyring + KeyringDir string + LegacyAmino *codec.LegacyAmino + NodeURI string + Offline bool + Output io.Writer + OutputFormat string + SignModeStr string + Simulate bool + SkipConfirm bool + TxConfig TxConfig + UseLedger bool + func GetClientContextFromCmd(cmd *cobra.Command) Context + func GetClientQueryContext(cmd *cobra.Command) (Context, error) + func GetClientTxContext(cmd *cobra.Command) (Context, error) + func ReadPersistentCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Context, error) + func (Context) NewStream(gocontext.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error) + func (ctx Context) BroadcastTx(txBytes []byte) (res *sdk.TxResponse, err error) + func (ctx Context) BroadcastTxAsync(txBytes []byte) (*sdk.TxResponse, error) + func (ctx Context) BroadcastTxCommit(txBytes []byte) (*sdk.TxResponse, error) + func (ctx Context) BroadcastTxSync(txBytes []byte) (*sdk.TxResponse, error) + func (ctx Context) GetFromAddress() sdk.AccAddress + func (ctx Context) GetFromName() string + func (ctx Context) GetNode() (rpcclient.Client, error) + func (ctx Context) Invoke(grpcCtx gocontext.Context, method string, req, reply interface{}, ...) (err error) + func (ctx Context) PrintBytes(o []byte) error + func (ctx Context) PrintObjectLegacy(toPrint interface{}) error + func (ctx Context) PrintProto(toPrint proto.Message) error + func (ctx Context) PrintString(str string) error + func (ctx Context) Query(path string) ([]byte, int64, error) + func (ctx Context) QueryABCI(req abci.RequestQuery) (abci.ResponseQuery, error) + func (ctx Context) QueryStore(key tmbytes.HexBytes, storeName string) ([]byte, int64, error) + func (ctx Context) QueryWithData(path string, data []byte) ([]byte, int64, error) + func (ctx Context) WithAccountRetriever(retriever AccountRetriever) Context + func (ctx Context) WithBroadcastMode(mode string) Context + func (ctx Context) WithChainID(chainID string) Context + func (ctx Context) WithClient(client rpcclient.Client) Context + func (ctx Context) WithFrom(from string) Context + func (ctx Context) WithFromAddress(addr sdk.AccAddress) Context + func (ctx Context) WithFromName(name string) Context + func (ctx Context) WithGenerateOnly(generateOnly bool) Context + func (ctx Context) WithHeight(height int64) Context + func (ctx Context) WithHomeDir(dir string) Context + func (ctx Context) WithInput(r io.Reader) Context + func (ctx Context) WithInterfaceRegistry(interfaceRegistry codectypes.InterfaceRegistry) Context + func (ctx Context) WithJSONMarshaler(m codec.JSONMarshaler) Context + func (ctx Context) WithKeyring(k keyring.Keyring) Context + func (ctx Context) WithKeyringDir(dir string) Context + func (ctx Context) WithLegacyAmino(cdc *codec.LegacyAmino) Context + func (ctx Context) WithNodeURI(nodeURI string) Context + func (ctx Context) WithOffline(offline bool) Context + func (ctx Context) WithOutput(w io.Writer) Context + func (ctx Context) WithOutputFormat(format string) Context + func (ctx Context) WithSignModeStr(signModeStr string) Context + func (ctx Context) WithSimulation(simulate bool) Context + func (ctx Context) WithSkipConfirmation(skip bool) Context + func (ctx Context) WithTxConfig(generator TxConfig) Context + func (ctx Context) WithUseLedger(useLedger bool) Context + type TestAccount struct + Address sdk.AccAddress + Num uint64 + Seq uint64 + func (t TestAccount) GetAccountNumber() uint64 + func (t TestAccount) GetAddress() sdk.AccAddress + func (t TestAccount) GetPubKey() cryptotypes.PubKey + func (t TestAccount) GetSequence() uint64 + type TestAccountRetriever struct + Accounts map[string]TestAccount + func (t TestAccountRetriever) EnsureExists(_ Context, addr sdk.AccAddress) error + func (t TestAccountRetriever) GetAccount(_ Context, addr sdk.AccAddress) (Account, error) + func (t TestAccountRetriever) GetAccountNumberSequence(_ Context, addr sdk.AccAddress) (accNum uint64, accSeq uint64, err error) + func (t TestAccountRetriever) GetAccountWithHeight(clientCtx Context, addr sdk.AccAddress) (Account, int64, error) + type TxBuilder interface + GetTx func() signing.Tx + SetFeeAmount func(amount sdk.Coins) + SetGasLimit func(limit uint64) + SetMemo func(memo string) + SetMsgs func(msgs ...sdk.Msg) error + SetSignatures func(signatures ...signingtypes.SignatureV2) error + SetTimeoutHeight func(height uint64) + type TxConfig interface + NewTxBuilder func() TxBuilder + SignModeHandler func() signing.SignModeHandler + WrapTxBuilder func(sdk.Tx) (TxBuilder, error) + type TxEncodingConfig interface + MarshalSignatureJSON func([]signingtypes.SignatureV2) ([]byte, error) + TxDecoder func() sdk.TxDecoder + TxEncoder func() sdk.TxEncoder + TxJSONDecoder func() sdk.TxDecoder + TxJSONEncoder func() sdk.TxEncoder + UnmarshalSignatureJSON func([]byte) ([]signingtypes.SignatureV2, error)