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.Address
- func (tx TxInvariantCheck) GetSignData() (ret []byte)
- func (tx TxInvariantCheck) GetSigner() []btypes.Address
- 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.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 GasForInvariantCheck = uint64(200000*qtypes.QOSUnit) * qtypes.GasPerUnitCost // 200000QOS
View Source
const GasForTransfer = uint64(0.018*qtypes.QOSUnit) * qtypes.GasPerUnitCost // 0.018 QOS
Variables ¶
View Source
var Cdc = baseabci.MakeQBaseCodec()
Functions ¶
func RegisterCodec ¶
Types ¶
type TxInvariantCheck ¶
全网账户数据检查
func (TxInvariantCheck) CalcGas ¶
func (tx TxInvariantCheck) CalcGas() btypes.BigInt
func (TxInvariantCheck) GetGasPayer ¶
func (tx TxInvariantCheck) GetGasPayer() btypes.Address
func (TxInvariantCheck) GetSignData ¶
func (tx TxInvariantCheck) GetSignData() (ret []byte)
func (TxInvariantCheck) GetSigner ¶
func (tx TxInvariantCheck) GetSigner() []btypes.Address
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"` // 接收集合
}
Click to show internal directories.
Click to hide internal directories.