tx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxQcpMock

func NewTxQcpMock(from, to string, height int64, sequence int64) *txs.TxQcp

NewTxQcpMock 创建 Mock 交易结构实例

Types

type TxMock

type TxMock struct {
	Data string `json:"data"`
}

TxMock Mock 交易,实现txs.ITx 接口

func (*TxMock) CalcGas

func (tx *TxMock) CalcGas() btypes.BigInt

CalcGas Mock 交易,实现txs.ITx 接口

func (*TxMock) Exec

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

Exec Mock 交易,实现txs.ITx 接口

func (*TxMock) GetGasPayer

func (tx *TxMock) GetGasPayer() btypes.Address

GetGasPayer Mock 交易,实现txs.ITx 接口

func (*TxMock) GetSignData

func (tx *TxMock) GetSignData() []byte

GetSignData Mock 交易,实现txs.ITx 接口

func (*TxMock) GetSigner

func (tx *TxMock) GetSigner() []btypes.Address

GetSigner Mock 交易,实现txs.ITx 接口

func (*TxMock) ValidateData

func (tx *TxMock) ValidateData(ctx context.Context) error

ValidateData Mock 交易,实现txs.ITx 接口

Jump to

Keyboard shortcuts

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