atom

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSendAtomFee *big.Int

Functions

func ATOMInit

func ATOMInit()

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type AtomHandler

type AtomHandler struct{}

func NewAtomHandler

func NewAtomHandler() *AtomHandler

func (*AtomHandler) BuildUnsignedTransaction

func (h *AtomHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, jsonstring string, memo string) (transaction interface{}, digests []string, err error)

func (*AtomHandler) FiltTransaction

func (h *AtomHandler) FiltTransaction(blocknumber uint64, filter types.Filter) (txhashes []string, err error)

func (*AtomHandler) GetAddressBalance

func (h *AtomHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)

func (*AtomHandler) GetDefaultFee

func (h *AtomHandler) GetDefaultFee() types.Value

func (*AtomHandler) GetTransactionInfo

func (h *AtomHandler) GetTransactionInfo(txhash string) (*types.TransactionInfo, error)

func (h *AtomHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, confirmed bool, fee types.Value, err error) {

func (*AtomHandler) IsToken

func (h *AtomHandler) IsToken() bool

func (*AtomHandler) MakeSignedTransaction

func (h *AtomHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)

func (*AtomHandler) MakeSignedTransactionByJson

func (h *AtomHandler) MakeSignedTransactionByJson(rsv []string, txjson string) (signedTransaction interface{}, err error)

func (*AtomHandler) PublicKeyToAddress

func (h *AtomHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)

func (*AtomHandler) SignTransaction

func (h *AtomHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)

func (*AtomHandler) SubmitTransaction

func (h *AtomHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)

func (*AtomHandler) SubmitTransactionByJson

func (h *AtomHandler) SubmitTransactionByJson(txjson string) (txhash string, err error)

type AtomTx

type AtomTx struct {
	Pubkeyhex string
	Tx        auth.StdTx
}

type MsgSend

type MsgSend struct {
	From   sdk.AccAddress `json:"from_address"`
	To     sdk.AccAddress `json:"to_address"`
	Amount sdk.Coins      `json:"amount"`
}

MsgSend to send coins from Input to Output

func NewMsgSend

func NewMsgSend(from, to sdk.AccAddress, amt sdk.Coins) MsgSend

NewMsgSend

func (MsgSend) GetSignBytes

func (msg MsgSend) GetSignBytes() []byte

Implements Msg. JSON encode the message.

func (MsgSend) GetSigners

func (msg MsgSend) GetSigners() []sdk.AccAddress

Implements Msg. Return the signer.

func (MsgSend) Route

func (msg MsgSend) Route() string

Implements Msg. nolint

func (MsgSend) Type

func (msg MsgSend) Type() string

func (MsgSend) ValidateBasic

func (msg MsgSend) ValidateBasic() sdk.Error

Implements Msg. Ensure the addresses are good and the amount is positive.

Jump to

Keyboard shortcuts

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