transactor

package
v0.2.3-dev Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxBuilder added in v0.2.0

func NewTxBuilder() types.TxBuilder

func ParseTransactorAddrs

func ParseTransactorAddrs(ts []string) ([]sdk.AccAddress, error)

Types

type GasPriceEstimator added in v0.2.0

type GasPriceEstimator struct {
	// contains filtered or unexported fields
}

func NewGasPriceEstimator added in v0.2.0

func NewGasPriceEstimator(nodeURI string) *GasPriceEstimator

func (*GasPriceEstimator) GetGasPrice added in v0.2.0

func (gpe *GasPriceEstimator) GetGasPrice() string

Get proper gas price to send a tx

type Transactor

type Transactor struct {
	TxBuilder  types.TxBuilder
	CliCtx     context.CLIContext
	Key        keys.Info
	Passphrase string
	// contains filtered or unexported fields
}

func NewTransactor

func NewTransactor(cliHome, chainID, nodeURI, accAddr, passphrase string, cdc *codec.Codec, gpe *GasPriceEstimator) (*Transactor, error)

func (*Transactor) AddTxMsg

func (t *Transactor) AddTxMsg(msg sdk.Msg)

AddTxMsg add msg into a queue before actual broadcast

type TransactorPool

type TransactorPool struct {
	// contains filtered or unexported fields
}

func NewTransactorPool

func NewTransactorPool(cliHome, chainID string, cdc *codec.Codec, gpe *GasPriceEstimator) *TransactorPool

func (*TransactorPool) AddTransactor

func (tp *TransactorPool) AddTransactor(transactor *Transactor)

Add transactors to the pool

func (*TransactorPool) AddTransactors

func (tp *TransactorPool) AddTransactors(nodeURI, passphrase string, ts []string) error

Add transactors to the pool

func (*TransactorPool) GetTransactor

func (tp *TransactorPool) GetTransactor() *Transactor

Get a transactor from the pool

Jump to

Keyboard shortcuts

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