txhandlermocks

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagedTxEventHandler

type ManagedTxEventHandler struct {
	mock.Mock
}

ManagedTxEventHandler is an autogenerated mock type for the ManagedTxEventHandler type

func NewManagedTxEventHandler

func NewManagedTxEventHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *ManagedTxEventHandler

NewManagedTxEventHandler creates a new instance of ManagedTxEventHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ManagedTxEventHandler) HandleEvent

HandleEvent provides a mock function with given fields: ctx, e

type TransactionHandler

type TransactionHandler struct {
	mock.Mock
}

TransactionHandler is an autogenerated mock type for the TransactionHandler type

func NewTransactionHandler

func NewTransactionHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionHandler

NewTransactionHandler creates a new instance of TransactionHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionHandler) HandleCancelTransaction

func (_m *TransactionHandler) HandleCancelTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)

HandleCancelTransaction provides a mock function with given fields: ctx, txID

func (*TransactionHandler) HandleNewContractDeployment

func (_m *TransactionHandler) HandleNewContractDeployment(ctx context.Context, txReq *apitypes.ContractDeployRequest) (*apitypes.ManagedTX, bool, error)

HandleNewContractDeployment provides a mock function with given fields: ctx, txReq

func (*TransactionHandler) HandleNewTransaction

func (_m *TransactionHandler) HandleNewTransaction(ctx context.Context, txReq *apitypes.TransactionRequest) (*apitypes.ManagedTX, bool, error)

HandleNewTransaction provides a mock function with given fields: ctx, txReq

func (*TransactionHandler) HandleResumeTransaction added in v1.3.0

func (_m *TransactionHandler) HandleResumeTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)

HandleResumeTransaction provides a mock function with given fields: ctx, txID

func (*TransactionHandler) HandleSuspendTransaction added in v1.3.0

func (_m *TransactionHandler) HandleSuspendTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)

HandleSuspendTransaction provides a mock function with given fields: ctx, txID

func (*TransactionHandler) HandleTransactionConfirmations added in v1.3.0

func (_m *TransactionHandler) HandleTransactionConfirmations(ctx context.Context, txID string, notification *apitypes.ConfirmationsNotification) error

HandleTransactionConfirmations provides a mock function with given fields: ctx, txID, notification

func (*TransactionHandler) HandleTransactionReceiptReceived

func (_m *TransactionHandler) HandleTransactionReceiptReceived(ctx context.Context, txID string, receipt *ffcapi.TransactionReceiptResponse) error

HandleTransactionReceiptReceived provides a mock function with given fields: ctx, txID, receipt

func (*TransactionHandler) Init

func (_m *TransactionHandler) Init(ctx context.Context, toolkit *txhandler.Toolkit)

Init provides a mock function with given fields: ctx, toolkit

func (*TransactionHandler) Start

func (_m *TransactionHandler) Start(ctx context.Context) (<-chan struct{}, error)

Start provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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