txs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

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

Functions

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

Types

type TxInvariantCheck

type TxInvariantCheck struct {
	Sender btypes.Address
}

全网账户数据检查

func (TxInvariantCheck) CalcGas

func (tx TxInvariantCheck) CalcGas() btypes.BigInt

func (TxInvariantCheck) Exec

func (tx TxInvariantCheck) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)

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"` // 接收集合
}

func (TxTransfer) CalcGas

func (tx TxTransfer) CalcGas() btypes.BigInt

Gas

func (TxTransfer) Exec

func (tx TxTransfer) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)

转账

func (TxTransfer) GetGasPayer

func (tx TxTransfer) GetGasPayer() btypes.Address

Senders[0]

func (TxTransfer) GetSignData

func (tx TxTransfer) GetSignData() (ret []byte)

签名字节

func (TxTransfer) GetSigner

func (tx TxTransfer) GetSigner() []btypes.Address

所有Senders

func (TxTransfer) ValidateData

func (tx TxTransfer) ValidateData(ctx context.Context) error

数据校验

Jump to

Keyboard shortcuts

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