# Functions
CalculateGas simulates the execution of a transaction and returns the simulation response obtained by the query and the adjusted gas amount.
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.
NewClient creates a new client.
NewLightClient creates a new client.
NewQueryClient creates new query client instance based on a Cosmos SDK client context.
NewResponseFormatBroadcastTxCommit returns a TxResponse given a ResultBroadcastTxCommit from tendermint.
ParseABCILogs attempts to parse a stringified ABCI tx log into a slice of ABCIMessageLog types.
WithBroadcastMode returns a BroadcastOption that sets the broadcast for particular tx.
WithBroadcastTimeout returns a BroadcastOption that sets the timeout configuration for the transaction.
WithConfirmFn returns a BroadcastOption that sets the ConfirmFn function configuration for the transaction.
WithFees returns a BroadcastOption that sets the fees configuration for the transaction.
WithGas returns a BroadcastOption that sets the gas setting configuration for the transaction.
WithGasAdjustment returns a BroadcastOption that sets the gas adjustment configuration for the transaction.
WithGasPrices returns a BroadcastOption that sets the gas price configuration for the transaction.
WithNote returns a BroadcastOption that sets the note configuration for the transaction.
WithResultCodeAsError returns a BroadcastOption that enables the result code as error configuration for the transaction.
WithSkipConfirm returns a BroadcastOption that sets whether to skip or not the confirmation for the transaction.
WithTimeoutHeight returns a BroadcastOption that sets the timeout height configuration for the transaction.
# Constants
BroadcastAsync defines a tx broadcasting mode where the client returns immediately.
No description provided by the author
No description provided by the author
No description provided by the author
BroadcastSync defines a tx broadcasting mode where the client waits for a CheckTx execution response only.
# Variables
No description provided by the author
ErrClientNotFound is a new error with message "Client not found".
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
# Structs
BroadcastOptions defines the options allowed to configure a transaction broadcast.
No description provided by the author
# Interfaces
Client is the umbrella interface that exposes every other client's modules.
LightClient is the umbrella interface that exposes every other client's modules.
go:generate mockery --name NodeClient --output ./mocks.
QueryClient is the interface that exposes query modules.
TxClient is the interface that wraps the Broadcast method.
# Type aliases
BroadcastOption is a function that takes as first argument a pointer to BroadcastOptions and returns an error if the option cannot be configured.
No description provided by the author
No description provided by the author