txs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GasForCreateQCP = uint64(1.8*qtypes.QOSUnit) * qtypes.GasPerUnitCost // 1.8 QOS

Variables

Functions

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

Types

type TxInitQCP

type TxInitQCP struct {
	Creator btypes.Address    `json:"creator"` //创建账户
	QCPCA   *cert.Certificate `json:"ca_qcp"`  //CA信息
}

init QCP

func (TxInitQCP) CalcGas

func (tx TxInitQCP) CalcGas() btypes.BigInt

func (TxInitQCP) Exec

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

func (TxInitQCP) GetGasPayer

func (tx TxInitQCP) GetGasPayer() btypes.Address

func (TxInitQCP) GetSignData

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

func (TxInitQCP) GetSigner

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

func (TxInitQCP) ValidateData

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

Jump to

Keyboard shortcuts

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