Documentation
¶
Index ¶
- type TransactionProvider
- func (_m *TransactionProvider) SystemTransaction(ctx context.Context, block *flow.GenericBlock[flow.Payload], ...) (*flow.TransactionBody, error)
- func (_m *TransactionProvider) SystemTransactionResult(ctx context.Context, block *flow.GenericBlock[flow.Payload], ...) (*access.TransactionResult, error)
- func (_m *TransactionProvider) TransactionResult(ctx context.Context, header *flow.Header, txID flow.Identifier, ...) (*access.TransactionResult, error)
- func (_m *TransactionProvider) TransactionResultByIndex(ctx context.Context, block *flow.GenericBlock[flow.Payload], index uint32, ...) (*access.TransactionResult, error)
- func (_m *TransactionProvider) TransactionResultsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload], ...) ([]*access.TransactionResult, error)
- func (_m *TransactionProvider) TransactionsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload]) ([]*flow.TransactionBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionProvider ¶
TransactionProvider is an autogenerated mock type for the TransactionProvider type
func NewTransactionProvider ¶
func NewTransactionProvider(t interface { mock.TestingT Cleanup(func()) }) *TransactionProvider
NewTransactionProvider creates a new instance of TransactionProvider. 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 (*TransactionProvider) SystemTransaction ¶
func (_m *TransactionProvider) SystemTransaction(ctx context.Context, block *flow.GenericBlock[flow.Payload], txID flow.Identifier) (*flow.TransactionBody, error)
SystemTransaction provides a mock function with given fields: ctx, block, txID
func (*TransactionProvider) SystemTransactionResult ¶
func (_m *TransactionProvider) SystemTransactionResult(ctx context.Context, block *flow.GenericBlock[flow.Payload], txID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
SystemTransactionResult provides a mock function with given fields: ctx, block, txID, requiredEventEncodingVersion
func (*TransactionProvider) TransactionResult ¶
func (_m *TransactionProvider) TransactionResult(ctx context.Context, header *flow.Header, txID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
TransactionResult provides a mock function with given fields: ctx, header, txID, encodingVersion
func (*TransactionProvider) TransactionResultByIndex ¶
func (_m *TransactionProvider) TransactionResultByIndex(ctx context.Context, block *flow.GenericBlock[flow.Payload], index uint32, encodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
TransactionResultByIndex provides a mock function with given fields: ctx, block, index, encodingVersion
func (*TransactionProvider) TransactionResultsByBlockID ¶
func (_m *TransactionProvider) TransactionResultsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload], encodingVersion entities.EventEncodingVersion) ([]*access.TransactionResult, error)
TransactionResultsByBlockID provides a mock function with given fields: ctx, block, encodingVersion
func (*TransactionProvider) TransactionsByBlockID ¶
func (_m *TransactionProvider) TransactionsByBlockID(ctx context.Context, block *flow.GenericBlock[flow.Payload]) ([]*flow.TransactionBody, error)
TransactionsByBlockID provides a mock function with given fields: ctx, block