Documentation ¶
Index ¶
- type Helper
- func (_m *Helper) AddBlockchainTX(ctx context.Context, tx *core.Transaction, blockchainTXID string) error
- func (_m *Helper) FindOperationInTransaction(ctx context.Context, tx *fftypes.UUID, opType fftypes.FFEnum) (*core.Operation, error)
- func (_m *Helper) GetBlockchainEventByIDCached(ctx context.Context, id *fftypes.UUID) (*core.BlockchainEvent, error)
- func (_m *Helper) GetTransactionByIDCached(ctx context.Context, id *fftypes.UUID) (*core.Transaction, error)
- func (_m *Helper) InsertNewBlockchainEvents(ctx context.Context, events []*core.BlockchainEvent) ([]*core.BlockchainEvent, error)
- func (_m *Helper) InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (*core.BlockchainEvent, error)
- func (_m *Helper) PersistTransaction(ctx context.Context, id *fftypes.UUID, txType fftypes.FFEnum, ...) (bool, error)
- func (_m *Helper) SubmitNewTransaction(ctx context.Context, txType fftypes.FFEnum, idempotencyKey core.IdempotencyKey) (*fftypes.UUID, error)
- func (_m *Helper) SubmitNewTransactionBatch(ctx context.Context, namespace string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
Helper is an autogenerated mock type for the Helper type
func NewHelper ¶ added in v1.1.2
NewHelper creates a new instance of Helper. 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 (*Helper) AddBlockchainTX ¶ added in v0.12.0
func (_m *Helper) AddBlockchainTX(ctx context.Context, tx *core.Transaction, blockchainTXID string) error
AddBlockchainTX provides a mock function with given fields: ctx, tx, blockchainTXID
func (*Helper) FindOperationInTransaction ¶ added in v1.3.0
func (_m *Helper) FindOperationInTransaction(ctx context.Context, tx *fftypes.UUID, opType fftypes.FFEnum) (*core.Operation, error)
FindOperationInTransaction provides a mock function with given fields: ctx, tx, opType
func (*Helper) GetBlockchainEventByIDCached ¶ added in v1.0.0
func (_m *Helper) GetBlockchainEventByIDCached(ctx context.Context, id *fftypes.UUID) (*core.BlockchainEvent, error)
GetBlockchainEventByIDCached provides a mock function with given fields: ctx, id
func (*Helper) GetTransactionByIDCached ¶ added in v0.14.0
func (_m *Helper) GetTransactionByIDCached(ctx context.Context, id *fftypes.UUID) (*core.Transaction, error)
GetTransactionByIDCached provides a mock function with given fields: ctx, id
func (*Helper) InsertNewBlockchainEvents ¶ added in v1.3.0
func (_m *Helper) InsertNewBlockchainEvents(ctx context.Context, events []*core.BlockchainEvent) ([]*core.BlockchainEvent, error)
InsertNewBlockchainEvents provides a mock function with given fields: ctx, events
func (*Helper) InsertOrGetBlockchainEvent ¶ added in v1.1.0
func (_m *Helper) InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (*core.BlockchainEvent, error)
InsertOrGetBlockchainEvent provides a mock function with given fields: ctx, event
func (*Helper) PersistTransaction ¶
func (_m *Helper) PersistTransaction(ctx context.Context, id *fftypes.UUID, txType fftypes.FFEnum, blockchainTXID string) (bool, error)
PersistTransaction provides a mock function with given fields: ctx, id, txType, blockchainTXID
func (*Helper) SubmitNewTransaction ¶ added in v0.12.0
func (_m *Helper) SubmitNewTransaction(ctx context.Context, txType fftypes.FFEnum, idempotencyKey core.IdempotencyKey) (*fftypes.UUID, error)
SubmitNewTransaction provides a mock function with given fields: ctx, txType, idempotencyKey
func (*Helper) SubmitNewTransactionBatch ¶ added in v1.3.0
func (_m *Helper) SubmitNewTransactionBatch(ctx context.Context, namespace string, batch []*txcommon.BatchedTransactionInsert) error
SubmitNewTransactionBatch provides a mock function with given fields: ctx, namespace, batch