Documentation ¶
Index ¶
- func NewTxQcpMock(from, to string, height int64, sequence int64) *txs.TxQcp
- type TxMock
- func (tx *TxMock) CalcGas() btypes.BigInt
- func (tx *TxMock) Exec(ctx context.Context) (result btypes.Result, crossTxQcps *txs.TxQcp)
- func (tx *TxMock) GetGasPayer() btypes.Address
- func (tx *TxMock) GetSignData() []byte
- func (tx *TxMock) GetSigner() []btypes.Address
- func (tx *TxMock) ValidateData(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TxMock ¶
type TxMock struct {
Data string `json:"data"`
}
TxMock Mock 交易,实现txs.ITx 接口
func (*TxMock) GetGasPayer ¶
GetGasPayer Mock 交易,实现txs.ITx 接口
func (*TxMock) GetSignData ¶
GetSignData Mock 交易,实现txs.ITx 接口
Click to show internal directories.
Click to hide internal directories.