Documentation
¶
Index ¶
- Constants
- func ErrInvalidInput(codeSpace btypes.CodespaceType, msg string) btypes.Error
- func ErrSenderAccountCoinsNotEnough(codeSpace btypes.CodespaceType, msg string) btypes.Error
- func ErrSenderAccountNotExists(codeSpace btypes.CodespaceType, msg string) btypes.Error
- func RegisterCodec(cdc *amino.Codec)
- 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 ¶
View Source
const ( DefaultCodeSpace btypes.CodespaceType = "transfer" CodeInvalidInput btypes.CodeType = 201 // 基础数据输入有误 CodeSenderAccountNotExists btypes.CodeType = 202 // 转出账户不存在 CodeSenderAccountCoinsNotEnough btypes.CodeType = 203 // 转出账户余额不足 )
Transfer errors reserve 200 ~ 299.
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidInput ¶
func ErrInvalidInput(codeSpace btypes.CodespaceType, msg string) btypes.Error
func ErrSenderAccountCoinsNotEnough ¶
func ErrSenderAccountCoinsNotEnough(codeSpace btypes.CodespaceType, msg string) btypes.Error
func ErrSenderAccountNotExists ¶
func ErrSenderAccountNotExists(codeSpace btypes.CodespaceType, msg string) btypes.Error
func RegisterCodec ¶
Types ¶
type TxTransfer ¶
type TxTransfer struct {
Senders transfertypes.TransItems `json:"senders"` // 发送集合
Receivers transfertypes.TransItems `json:"receivers"` // 接收集合
}
Click to show internal directories.
Click to hide internal directories.