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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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