Documentation ¶
Index ¶
- func RegisterCodec(cdc *amino.Codec)
- type TransItem
- type TxTransfer
- func (tx TxTransfer) CalcGas() btypes.BigInt
- func (tx TxTransfer) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxTransfer) GetGasPayer() btypes.Address
- func (tx TxTransfer) GetSignData() (ret []byte)
- func (tx TxTransfer) GetSigner() []btypes.Address
- func (tx TxTransfer) ValidateData(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec)
Types ¶
type TxTransfer ¶
type TxTransfer struct { Senders []TransItem `json:"senders"` // 发送集合 Receivers []TransItem `json:"receivers"` // 接收集合 }
func (TxTransfer) ValidateData ¶
func (tx TxTransfer) ValidateData(ctx context.Context) error
数据校验 1.Senders、Receivers不为空,地址不重复,币值大于0 2.Senders、Receivers 币值总和对应币种相等 3.Senders中账号对应币种币值足够
Click to show internal directories.
Click to hide internal directories.