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, error)
- func (_m *TransactionHandler) HandleNewTransaction(ctx context.Context, txReq *apitypes.TransactionRequest) (*apitypes.ManagedTX, error)
- func (_m *TransactionHandler) HandleTransactionConfirmed(ctx context.Context, txID string, confirmations []apitypes.BlockInfo) 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 mockConstructorTestingTNewManagedTxEventHandler) *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.
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 mockConstructorTestingTNewTransactionHandler) *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.
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, 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, error)
HandleNewTransaction provides a mock function with given fields: ctx, txReq
func (*TransactionHandler) HandleTransactionConfirmed ¶
func (_m *TransactionHandler) HandleTransactionConfirmed(ctx context.Context, txID string, confirmations []apitypes.BlockInfo) error
HandleTransactionConfirmed provides a mock function with given fields: ctx, txID, confirmations
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