bandlib

package
v0.0.0-...-21ace4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCLIContext

func NewCLIContext(nodeURI string, fromAddress sdk.AccAddress) context.CLIContext

func NewCodec

func NewCodec() *codec.Codec

func NewTxBuilder

func NewTxBuilder(txEncoder sdk.TxEncoder) authtypes.TxBuilder

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL