package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckTendermintError checks if the error returned from BroadcastTx is a Tendermint error that is returned before the tx is submitted due to precondition checks that failed.
GetClientContextFromCmd returns a Context from a command or an empty Context if it has not been set.
GetClientQueryContext returns a Context from a command with fields set based on flags defined in AddQueryFlagsToCmd.
GetClientTxContext returns a Context from a command with fields set based on flags defined in AddTxFlagsToCmd.
GetFromFields returns a from account address, account name and keyring type, given either an address or key name.
NewClientFromNode sets up Client implementation that communicates with a Tendermint node over JSON RPC and WebSockets.
NewKeyringFromBackend gets a Keyring object from a backend.
Paginate returns the correct starting and ending index for a paginated query, given that client provides a desired page and limit of objects and the handler provides the total number of objects.
ReadPageRequest reads and builds the necessary page request flags for pagination.
ReadPersistentCommandFlags returns a Context with fields set for "persistent" or common flags that do not necessarily change with context.
SetCmdClientContext sets a command's Context value to the provided argument.
SetCmdClientContextHandler is to be used in a command pre-hook execution to read flags that populate a Context and sets that to the command's Context.
TxServiceBroadcast is a helper function to broadcast a Tx with the correct gRPC types from the tx service.
ValidateCmd returns unknown command error or Help display if help flag set.

# Constants

ClientContextKey defines the context key used to retrieve a client.Context from a command's Context.

# Structs

Context implements a typical context created in SDK modules for transaction handling and queries.
TestAccount represents a client Account that can be used in unit tests.
TestAccountRetriever is an AccountRetriever that can be used in unit tests.

# Interfaces

Account defines a read-only version of the auth module's AccountI.
AccountRetriever defines the interfaces required by transactions to ensure an account exists and to be able to query for account fields necessary for signing.
No description provided by the author
No description provided by the author
No description provided by the author