Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *amino.Codec)
- type TxInitQCP
- func (tx TxInitQCP) CalcGas() btypes.BigInt
- func (tx TxInitQCP) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxInitQCP) GetGasPayer() btypes.AccAddress
- func (tx TxInitQCP) GetSignData() (ret []byte)
- func (tx TxInitQCP) GetSigner() []btypes.AccAddress
- func (tx TxInitQCP) ValidateData(ctx context.Context) error
- func (tx TxInitQCP) ValidateInputs() error
Constants ¶
View Source
const GasForCreateQCP = int64(1.8*qtypes.QOSUnit) * qtypes.GasPerUnitCost // 1.8 QOS
Variables ¶
View Source
var Cdc = baseabci.MakeQBaseCodec()
Functions ¶
func RegisterCodec ¶
Types ¶
type TxInitQCP ¶
type TxInitQCP struct {
Creator btypes.AccAddress `json:"creator"` //创建账户
QCPCA *cert.Certificate `json:"ca_qcp"` //CA信息
}
初始化联盟链Tx
func (TxInitQCP) GetGasPayer ¶
func (tx TxInitQCP) GetGasPayer() btypes.AccAddress
func (TxInitQCP) GetSignData ¶
func (TxInitQCP) GetSigner ¶
func (tx TxInitQCP) GetSigner() []btypes.AccAddress
Click to show internal directories.
Click to hide internal directories.