pkg

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModuleCdc = codec.New()

ModuleCdc instantiates a new codec for the domain module

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type Configuration

type Configuration struct {
	TendermintRPC string
	Port          string
	ChainID       string
	CoinDenom     string
	Armor         string
	Passphrase    string
	Memo          string
	SendAmount    int64
	GasPrices     string
	GasAdjust     float64
	KeyringPass   string
}

func NewConfiguration

func NewConfiguration() (*Configuration, error)

type FaucetHandler

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

keeps tx manager and mutex locks sequence bump

func NewFaucetHandler

func NewFaucetHandler(tm *TxManager) *FaucetHandler

func (*FaucetHandler) ServeHTTP

func (f *FaucetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TxManager

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

func NewTxManager

func NewTxManager(conf Configuration, node rpchttp.ABCIClient) *TxManager

func (*TxManager) BroadcastTx

func (tm *TxManager) BroadcastTx(tx []byte) (*coretypes.ResultBroadcastTx, error)

func (*TxManager) BuildAndSignTx

func (tm *TxManager) BuildAndSignTx(targetAcc sdk.AccAddress) ([]byte, error)

func (*TxManager) Init

func (tm *TxManager) Init() error

func (*TxManager) WithKeybase

func (tm *TxManager) WithKeybase(kb keys.Keybase) *TxManager

Jump to

Keyboard shortcuts

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