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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

func ValidateData

func ValidateData(ctx context.Context, msg types.Approve) error

基础数据校验

Types

type TxCancelApprove

type TxCancelApprove struct {
	From btypes.AccAddress `json:"from"` // 授权账号
	To   btypes.AccAddress `json:"to"`   // 被授权账号
}

取消授权 Tx

func (TxCancelApprove) CalcGas

func (tx TxCancelApprove) CalcGas() btypes.BigInt

Gas

func (TxCancelApprove) Exec

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

执行交易并返回交易结果,QOS公链执行交易crossTxQcps为空

func (TxCancelApprove) GetGasPayer

func (tx TxCancelApprove) GetGasPayer() btypes.AccAddress

Gas Payer:被授权账号

func (TxCancelApprove) GetSignData

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

签名字节

func (TxCancelApprove) GetSigner

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

签名账号:被授权账号

func (TxCancelApprove) ValidateData

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

参数校验

func (TxCancelApprove) ValidateInputs added in v0.0.8

func (tx TxCancelApprove) ValidateInputs() error

基础参数校验

type TxCreateApprove

type TxCreateApprove struct {
	types.Approve
}

创建授权

func (TxCreateApprove) CalcGas

func (tx TxCreateApprove) CalcGas() btypes.BigInt

Gas

func (TxCreateApprove) Exec

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

执行交易并返回交易结果,QOS公链执行交易crossTxQcps为空

func (TxCreateApprove) GetGasPayer

func (tx TxCreateApprove) GetGasPayer() btypes.AccAddress

Gas Payer:授权账号

func (TxCreateApprove) GetSignData added in v0.0.8

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

签名字节

func (TxCreateApprove) GetSigner

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

签名账号:授权账号

func (TxCreateApprove) ValidateData

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

参数校验

type TxDecreaseApprove

type TxDecreaseApprove struct {
	types.Approve
}

减少授权

func (TxDecreaseApprove) CalcGas

func (tx TxDecreaseApprove) CalcGas() btypes.BigInt

Gas

func (TxDecreaseApprove) Exec

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

执行交易并返回交易结果,QOS公链执行交易crossTxQcps为空

func (TxDecreaseApprove) GetGasPayer

func (tx TxDecreaseApprove) GetGasPayer() btypes.AccAddress

Gas Payer:授权账号

func (TxDecreaseApprove) GetSignData added in v0.0.8

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

签名字节

func (TxDecreaseApprove) GetSigner

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

签名账号:授权账号

func (TxDecreaseApprove) ValidateData

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

参数校验

type TxIncreaseApprove

type TxIncreaseApprove struct {
	types.Approve
}

增加授权

func (TxIncreaseApprove) CalcGas

func (tx TxIncreaseApprove) CalcGas() btypes.BigInt

Gas

func (TxIncreaseApprove) Exec

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

执行交易并返回交易结果,QOS公链执行交易crossTxQcps为空

func (TxIncreaseApprove) GetGasPayer

func (tx TxIncreaseApprove) GetGasPayer() btypes.AccAddress

Gas Payer:授权账号

func (TxIncreaseApprove) GetSignData added in v0.0.8

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

签名字节

func (TxIncreaseApprove) GetSigner

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

签名账号:授权账号

func (TxIncreaseApprove) ValidateData

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

参数校验

type TxUseApprove

type TxUseApprove struct {
	types.Approve
}

使用授权

func (TxUseApprove) CalcGas

func (tx TxUseApprove) CalcGas() btypes.BigInt

Gas

func (TxUseApprove) Exec

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

执行交易并返回交易结果,QOS公链执行交易crossTxQcps为空

func (TxUseApprove) GetGasPayer

func (tx TxUseApprove) GetGasPayer() btypes.AccAddress

Gas Payer:被授权账户

func (TxUseApprove) GetSignData added in v0.0.8

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

签名字节

func (TxUseApprove) GetSigner

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

签名账号:被授权账户

func (TxUseApprove) ValidateData

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

参数校验

Jump to

Keyboard shortcuts

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