Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *amino.Codec)
- type TxAddGuardian
- func (tx TxAddGuardian) CalcGas() btypes.BigInt
- func (tx TxAddGuardian) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxAddGuardian) GetGasPayer() btypes.AccAddress
- func (tx TxAddGuardian) GetSignData() (ret []byte)
- func (tx TxAddGuardian) GetSigner() []btypes.AccAddress
- func (tx TxAddGuardian) ValidateData(ctx context.Context) error
- func (tx TxAddGuardian) ValidateInputs() error
- type TxDeleteGuardian
- func (tx TxDeleteGuardian) CalcGas() btypes.BigInt
- func (tx TxDeleteGuardian) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxDeleteGuardian) GetGasPayer() btypes.AccAddress
- func (tx TxDeleteGuardian) GetSignData() (ret []byte)
- func (tx TxDeleteGuardian) GetSigner() []btypes.AccAddress
- func (tx TxDeleteGuardian) ValidateData(ctx context.Context) error
- func (tx TxDeleteGuardian) ValidateInputs() error
- type TxHaltNetwork
- func (tx TxHaltNetwork) CalcGas() btypes.BigInt
- func (tx TxHaltNetwork) Exec(ctx context.Context) (result btypes.Result, crossTxQcp *txs.TxQcp)
- func (tx TxHaltNetwork) GetGasPayer() btypes.AccAddress
- func (tx TxHaltNetwork) GetSignData() (ret []byte)
- func (tx TxHaltNetwork) GetSigner() []btypes.AccAddress
- func (tx TxHaltNetwork) ValidateData(ctx context.Context) error
- func (tx TxHaltNetwork) ValidateInputs() error
Constants ¶
View Source
const (
// 描述信息长度限制
MaxDescriptionLen = 1000
)
Variables ¶
View Source
var Cdc = baseabci.MakeQBaseCodec()
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec)
Types ¶
type TxAddGuardian ¶
type TxAddGuardian struct { Description string `json:"description"` // 描述信息 Address btypes.AccAddress `json:"address"` // 账户地址 Creator btypes.AccAddress `json:"creator"` // 创建账户地址 }
创建系统账户
func NewTxAddGuardian ¶
func NewTxAddGuardian(description string, address, creator btypes.AccAddress) *TxAddGuardian
func (TxAddGuardian) GetGasPayer ¶
func (tx TxAddGuardian) GetGasPayer() btypes.AccAddress
交易费支付账户:创建账户
func (TxAddGuardian) ValidateData ¶
func (tx TxAddGuardian) ValidateData(ctx context.Context) error
数据校验
func (TxAddGuardian) ValidateInputs ¶ added in v0.0.8
func (tx TxAddGuardian) ValidateInputs() error
基础数据校验
type TxDeleteGuardian ¶
type TxDeleteGuardian struct { Address btypes.AccAddress `json:"address"` // this guardian's address DeletedBy btypes.AccAddress `json:"deleted_by"` // address that initiated the AddGuardian tx }
删除系统账户
func NewTxDeleteGuardian ¶
func NewTxDeleteGuardian(address, deletedBy btypes.AccAddress) *TxDeleteGuardian
func (TxDeleteGuardian) GetGasPayer ¶
func (tx TxDeleteGuardian) GetGasPayer() btypes.AccAddress
Gas payer: DeletedBy
func (TxDeleteGuardian) GetSigner ¶
func (tx TxDeleteGuardian) GetSigner() []btypes.AccAddress
签名账户:DeletedBy
func (TxDeleteGuardian) ValidateData ¶
func (tx TxDeleteGuardian) ValidateData(ctx context.Context) error
数据校验
func (TxDeleteGuardian) ValidateInputs ¶ added in v0.0.8
func (tx TxDeleteGuardian) ValidateInputs() error
基础数据校验
type TxHaltNetwork ¶
type TxHaltNetwork struct { Guardian btypes.AccAddress `json:"guardian"` // guardian's address Reason string `json:"reason"` // reason for halting the network }
停网
func NewTxHaltNetwork ¶
func NewTxHaltNetwork(address btypes.AccAddress, reason string) *TxHaltNetwork
func (TxHaltNetwork) GetGasPayer ¶
func (tx TxHaltNetwork) GetGasPayer() btypes.AccAddress
Gas payer:操作账户
func (TxHaltNetwork) ValidateData ¶
func (tx TxHaltNetwork) ValidateData(ctx context.Context) error
数据校验
func (TxHaltNetwork) ValidateInputs ¶ added in v0.0.8
func (tx TxHaltNetwork) ValidateInputs() error
数据校验
Click to show internal directories.
Click to hide internal directories.