Versions in this module Expand all Collapse all v1 v1.0.1 Sep 1, 2023 Changes in this version + const ClientContextKey + func CamelCaseToString(str string) string + func CheckTendermintError(err error, tx tmtypes.Tx) *sdk.TxResponse + func GetFromFields(clientCtx Context, kr keyring.Keyring, from string) (sdk.AccAddress, string, keyring.KeyType, error) + func NewClientFromNode(nodeURI string) (*rpchttp.HTTP, error) + func NewKeyringFromBackend(ctx Context, backend string) (keyring.Keyring, error) + func Paginate(numObjs, page, limit, defLimit int) (start, end int) + func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, 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 + func ValidatePromptAddress(input string) error + func ValidatePromptCoins(input string) error + func ValidatePromptNotEmpty(input string) error + func ValidatePromptURL(input 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 + Codec codec.Codec + FeeGranter sdk.AccAddress + FeePayer sdk.AccAddress + From string + FromAddress sdk.AccAddress + FromName string + GRPCClient *grpc.ClientConn + GenerateOnly bool + Height int64 + HomeDir string + Input io.Reader + InterfaceRegistry codectypes.InterfaceRegistry + IsAux bool + Keyring keyring.Keyring + KeyringDir string + KeyringOptions []keyring.Option + LegacyAmino *codec.LegacyAmino + NodeURI string + Offline bool + Output io.Writer + OutputFormat string + SignModeStr string + Simulate bool + SkipConfirm bool + TxConfig TxConfig + UseLedger bool + Viper *viper.Viper + 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) GetFeeGranterAddress() sdk.AccAddress + func (ctx Context) GetFeePayerAddress() sdk.AccAddress + 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) PrintRaw(toPrint json.RawMessage) 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) WithAux(isAux bool) 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) WithCodec(m codec.Codec) Context + func (ctx Context) WithFeeGranterAddress(addr sdk.AccAddress) Context + func (ctx Context) WithFeePayerAddress(addr sdk.AccAddress) 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) WithGRPCClient(grpcClient *grpc.ClientConn) 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) WithKeyring(k keyring.Keyring) Context + func (ctx Context) WithKeyringDir(dir string) Context + func (ctx Context) WithKeyringOptions(opts ...keyring.Option) 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 + func (ctx Context) WithViper(prefix string) 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 + AddAuxSignerData func(tx.AuxSignerData) error + GetTx func() signing.Tx + SetFeeAmount func(amount sdk.Coins) + SetFeeGranter func(feeGranter sdk.AccAddress) + SetFeePayer func(feePayer sdk.AccAddress) + SetGasLimit func(limit uint64) + SetMemo func(memo string) + SetMsgs func(msgs ...sdk.Msg) error + SetSignatures func(signatures ...signingtypes.SignatureV2) error + SetTimeoutHeight func(height uint64) + SetTip func(tip *tx.Tip) + 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)