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 ¶
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)
Click to show internal directories.
Click to hide internal directories.