Documentation ¶
Index ¶
- type ManagedTxEventHandler
- type TransactionHandler
- func (_m *TransactionHandler) HandleCancelTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)
- func (_m *TransactionHandler) HandleNewContractDeployment(ctx context.Context, txReq *apitypes.ContractDeployRequest) (*apitypes.ManagedTX, bool, error)
- func (_m *TransactionHandler) HandleNewTransaction(ctx context.Context, txReq *apitypes.TransactionRequest) (*apitypes.ManagedTX, bool, error)
- func (_m *TransactionHandler) HandleResumeTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)
- func (_m *TransactionHandler) HandleSuspendTransaction(ctx context.Context, txID string) (*apitypes.ManagedTX, error)
- func (_m *TransactionHandler) HandleTransactionConfirmations(ctx context.Context, txID string, ...) error
- func (_m *TransactionHandler) HandleTransactionReceiptReceived(ctx context.Context, txID string, receipt *ffcapi.TransactionReceiptResponse) error
- func (_m *TransactionHandler) Init(ctx context.Context, toolkit *txhandler.Toolkit)
- func (_m *TransactionHandler) Start(ctx context.Context) (<-chan struct{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagedTxEventHandler ¶
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 ¶
func (_m *ManagedTxEventHandler) HandleEvent(ctx context.Context, e apitypes.ManagedTransactionEvent) error
HandleEvent provides a mock function with given fields: ctx, e
type TransactionHandler ¶
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