transactor

package
v0.3.0-dev Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: GPL-3.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountsCommand added in v0.2.3

func AccountsCommand() *cobra.Command

Types

type Transactor

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

func NewCliTransactor added in v0.2.3

func NewCliTransactor(cdc *codec.Codec, cliHome string) (*Transactor, error)

func NewTransactor

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

func (*Transactor) AddTxMsg

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

AddTxMsg add msg into a queue before actual broadcast

func (*Transactor) CliSendTxMsgWaitMined added in v0.2.3

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

func (*Transactor) CliSendTxMsgsWaitMined added in v0.2.3

func (t *Transactor) CliSendTxMsgsWaitMined(msgs []sdk.Msg)

func (*Transactor) Run added in v0.2.3

func (t *Transactor) Run()

type TransactorPool

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

func NewTransactorPool

func NewTransactorPool(cliHome, chainID string, cdc *codec.Codec) *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