txs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 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.Address `json:"from"` // 授权账号
	To   btypes.Address `json:"to"`   // 被授权账号
}

取消授权 Tx

func (TxCancelApprove) CalcGas

func (tx TxCancelApprove) CalcGas() btypes.BigInt

Gas TODO

func (TxCancelApprove) Exec

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

func (TxCancelApprove) GetGasPayer

func (tx TxCancelApprove) GetGasPayer() btypes.Address

Gas Payer:被授权账号

func (TxCancelApprove) GetSignData

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

签名字节

func (TxCancelApprove) GetSigner

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

签名账号:被授权账号

func (TxCancelApprove) ValidateData

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

type TxCreateApprove

type TxCreateApprove struct {
	types.Approve
}

创建授权

func (TxCreateApprove) CalcGas

func (tx TxCreateApprove) CalcGas() btypes.BigInt

Gas TODO

func (TxCreateApprove) Exec

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

func (TxCreateApprove) GetGasPayer

func (tx TxCreateApprove) GetGasPayer() btypes.Address

Gas Payer:授权账号

func (TxCreateApprove) GetSigner

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

签名账号:授权账号

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 TODO

func (TxDecreaseApprove) Exec

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

func (TxDecreaseApprove) GetGasPayer

func (tx TxDecreaseApprove) GetGasPayer() btypes.Address

Gas Payer:授权账号

func (TxDecreaseApprove) GetSigner

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

签名账号:授权账号

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 TODO

func (TxIncreaseApprove) Exec

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

func (TxIncreaseApprove) GetGasPayer

func (tx TxIncreaseApprove) GetGasPayer() btypes.Address

Gas Payer:授权账号

func (TxIncreaseApprove) GetSigner

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

签名账号:授权账号

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 TODO

func (TxUseApprove) Exec

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

func (TxUseApprove) GetGasPayer

func (tx TxUseApprove) GetGasPayer() btypes.Address

Gas Payer:被授权账户

func (TxUseApprove) GetSigner

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

签名账号:被授权账户

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