Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *amino.Codec)
- type TxInvariantCheck
- func (tx TxInvariantCheck) CalcGas() btypes.BigInt
- func (tx TxInvariantCheck) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxInvariantCheck) GetGasPayer() btypes.AccAddress
- func (tx TxInvariantCheck) GetSignData() (ret []byte)
- func (tx TxInvariantCheck) GetSigner() []btypes.AccAddress
- func (tx TxInvariantCheck) ValidateData(ctx context.Context) error
- 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.AccAddress
- func (tx TxTransfer) GetSignData() (ret []byte)
- func (tx TxTransfer) GetSigner() []btypes.AccAddress
- func (tx TxTransfer) ValidateData(ctx context.Context) error
- func (tx TxTransfer) ValidateInputs() error
Constants ¶
View Source
const (
// 转账发送+接收账户总数限制
MaxTransLen = 500
)
Variables ¶
View Source
var Cdc = baseabci.MakeQBaseCodec()
View Source
var GasForInvariantCheck = int64(200000*qtypes.UnitQOS) * qtypes.UnitQOSGas // 200000QOS
View Source
var GasForTransfer = int64(0.018*qtypes.UnitQOS) * qtypes.UnitQOSGas // 0.018 QOS
转账交易Gas
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec)
Types ¶
type TxInvariantCheck ¶
type TxInvariantCheck struct {
Sender btypes.AccAddress `json:"sender"` // 发送交易账户地址
}
发起全网数据检查
func (TxInvariantCheck) GetGasPayer ¶
func (tx TxInvariantCheck) GetGasPayer() btypes.AccAddress
gas payer
func (TxInvariantCheck) ValidateData ¶
func (tx TxInvariantCheck) ValidateData(ctx context.Context) error
数据校验
type TxTransfer ¶
type TxTransfer struct { Senders types.TransItems `json:"senders"` // 发送集合 Receivers types.TransItems `json:"receivers"` // 接收集合 }
func (TxTransfer) GetGasPayer ¶
func (tx TxTransfer) GetGasPayer() btypes.AccAddress
第一个Sender支付gas费
func (TxTransfer) ValidateInputs ¶ added in v0.0.8
func (tx TxTransfer) ValidateInputs() error
基础数据校验
Click to show internal directories.
Click to hide internal directories.