txs

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GasForCreateQCP = int64(1.8*qtypes.UnitQOS) * qtypes.UnitQOSGas // 1.8 QOS

Functions

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

Types

type TxInitQCP

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

初始化联盟链Tx

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.AccAddress

func (TxInitQCP) GetSignData

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

func (TxInitQCP) GetSigner

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

func (TxInitQCP) ValidateData

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

func (TxInitQCP) ValidateInputs added in v0.0.8

func (tx TxInitQCP) ValidateInputs() error

校验基础数据

Jump to

Keyboard shortcuts

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