txhandlermocks

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 5 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

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

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

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

func (*TransactionHandler) HandleSubmissions

func (_m *TransactionHandler) HandleSubmissions(ctx context.Context, submissions []*apitypes.SubmissionRequest) []*apitypes.SubmissionResponse

HandleSubmissions provides a mock function with given fields: ctx, submissions

func (*TransactionHandler) HandleSuspendTransaction

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

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) HandleTransactionUpdate

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

HandleTransactionUpdate provides a mock function with given fields: ctx, txID, update

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