Documentation ¶
Index ¶
- func NewCLIContext(nodeURI string, fromAddress sdk.AccAddress) context.CLIContext
- func NewCodec() *codec.Codec
- func NewTxBuilder(txEncoder sdk.TxEncoder) authtypes.TxBuilder
- type BandProvider
- func (provider *BandProvider) GetSequenceFromChain() (uint64, error)
- func (provider *BandProvider) QueryTx(hashHexStr string) (sdk.TxResponse, error)
- func (provider *BandProvider) SendTransaction(msgs []sdk.Msg, seq, gas uint64, memo, fees, broadcastMode string) (sdk.TxResponse, error)
- func (provider *BandProvider) Sender() sdk.AccAddress
- type BandStatefulClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLIContext ¶
func NewCLIContext(nodeURI string, fromAddress sdk.AccAddress) context.CLIContext
Types ¶
type BandProvider ¶
type BandProvider struct {
// contains filtered or unexported fields
}
BandProvider contains context, txBuilder, private key, and address
func NewBandProvider ¶
func NewBandProvider(nodeURI string, privKey crypto.PrivKey) (BandProvider, error)
NewBandProvider creates new BandProvider create new cliCtx and txBldr
func (*BandProvider) GetSequenceFromChain ¶
func (provider *BandProvider) GetSequenceFromChain() (uint64, error)
func (*BandProvider) QueryTx ¶
func (provider *BandProvider) QueryTx(hashHexStr string) (sdk.TxResponse, error)
func (*BandProvider) SendTransaction ¶
func (provider *BandProvider) SendTransaction( msgs []sdk.Msg, seq, gas uint64, memo, fees, broadcastMode string, ) (sdk.TxResponse, error)
func (*BandProvider) Sender ¶
func (provider *BandProvider) Sender() sdk.AccAddress
type BandStatefulClient ¶
type BandStatefulClient struct {
// contains filtered or unexported fields
}
BandStatefulClient contains state client
func NewBandStatefulClient ¶
func NewBandStatefulClient( nodeURI string, privKey crypto.PrivKey, msgCap, maximumMsgPerTx int, memo string, ) (BandStatefulClient, error)
NewBandStatefulClient creates new instance of BandStatefulClient.
func (*BandStatefulClient) GetContext ¶
func (client *BandStatefulClient) GetContext() context.CLIContext
func (*BandStatefulClient) SendTransaction ¶
func (client *BandStatefulClient) SendTransaction( msg sdk.Msg, gas uint64, fees string, gasPrice string, ) (sdk.TxResponse, error)
func (*BandStatefulClient) Sender ¶
func (client *BandStatefulClient) Sender() sdk.AccAddress
Click to show internal directories.
Click to hide internal directories.