Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI added in v0.26.1

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. 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 (*API) ExecuteScriptAtBlockHeight

func (_m *API) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockHeight provides a mock function with given fields: ctx, blockHeight, script, arguments

func (*API) ExecuteScriptAtBlockID

func (_m *API) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockID provides a mock function with given fields: ctx, blockID, script, arguments

func (*API) ExecuteScriptAtLatestBlock

func (_m *API) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtLatestBlock provides a mock function with given fields: ctx, script, arguments

func (*API) GetAccount

func (_m *API) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: ctx, address

func (*API) GetAccountAtBlockHeight

func (_m *API) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)

GetAccountAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*API) GetAccountAtLatestBlock

func (_m *API) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccountAtLatestBlock provides a mock function with given fields: ctx, address

func (*API) GetAccountBalanceAtBlockHeight added in v0.36.1

func (_m *API) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)

GetAccountBalanceAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*API) GetAccountBalanceAtLatestBlock added in v0.36.1

func (_m *API) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)

GetAccountBalanceAtLatestBlock provides a mock function with given fields: ctx, address

func (*API) GetAccountKeyAtBlockHeight added in v0.36.1

func (_m *API) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)

GetAccountKeyAtBlockHeight provides a mock function with given fields: ctx, address, keyIndex, height

func (*API) GetAccountKeyAtLatestBlock added in v0.36.1

func (_m *API) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)

GetAccountKeyAtLatestBlock provides a mock function with given fields: ctx, address, keyIndex

func (*API) GetAccountKeysAtBlockHeight added in v0.36.1

func (_m *API) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)

GetAccountKeysAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*API) GetAccountKeysAtLatestBlock added in v0.36.1

func (_m *API) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)

GetAccountKeysAtLatestBlock provides a mock function with given fields: ctx, address

func (*API) GetBlockByHeight

func (_m *API) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)

GetBlockByHeight provides a mock function with given fields: ctx, height

func (*API) GetBlockByID

func (_m *API) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, flow.BlockStatus, error)

GetBlockByID provides a mock function with given fields: ctx, id

func (*API) GetBlockHeaderByHeight

func (_m *API) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)

GetBlockHeaderByHeight provides a mock function with given fields: ctx, height

func (*API) GetBlockHeaderByID

func (_m *API) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)

GetBlockHeaderByID provides a mock function with given fields: ctx, id

func (*API) GetCollectionByID

func (_m *API) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)

GetCollectionByID provides a mock function with given fields: ctx, id

func (*API) GetEventsForBlockIDs

func (_m *API) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) ([]flow.BlockEvents, error)

GetEventsForBlockIDs provides a mock function with given fields: ctx, eventType, blockIDs, requiredEventEncodingVersion

func (*API) GetEventsForHeightRange

func (_m *API) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight uint64, endHeight uint64, requiredEventEncodingVersion entities.EventEncodingVersion) ([]flow.BlockEvents, error)

GetEventsForHeightRange provides a mock function with given fields: ctx, eventType, startHeight, endHeight, requiredEventEncodingVersion

func (*API) GetExecutionResultByID

func (_m *API) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)

GetExecutionResultByID provides a mock function with given fields: ctx, id

func (*API) GetExecutionResultForBlockID

func (_m *API) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)

GetExecutionResultForBlockID provides a mock function with given fields: ctx, blockID

func (*API) GetFullCollectionByID added in v0.33.26

func (_m *API) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)

GetFullCollectionByID provides a mock function with given fields: ctx, id

func (*API) GetLatestBlock

func (_m *API) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)

GetLatestBlock provides a mock function with given fields: ctx, isSealed

func (*API) GetLatestBlockHeader

func (_m *API) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)

GetLatestBlockHeader provides a mock function with given fields: ctx, isSealed

func (*API) GetLatestProtocolStateSnapshot

func (_m *API) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)

GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx

func (*API) GetNetworkParameters

func (_m *API) GetNetworkParameters(ctx context.Context) modelaccess.NetworkParameters

GetNetworkParameters provides a mock function with given fields: ctx

func (*API) GetNodeVersionInfo added in v0.31.0

func (_m *API) GetNodeVersionInfo(ctx context.Context) (*modelaccess.NodeVersionInfo, error)

GetNodeVersionInfo provides a mock function with given fields: ctx

func (*API) GetProtocolStateSnapshotByBlockID added in v0.33.1

func (_m *API) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)

GetProtocolStateSnapshotByBlockID provides a mock function with given fields: ctx, blockID

func (*API) GetProtocolStateSnapshotByHeight added in v0.33.1

func (_m *API) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)

GetProtocolStateSnapshotByHeight provides a mock function with given fields: ctx, blockHeight

func (*API) GetScheduledTransaction added in v0.44.0

func (_m *API) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)

GetScheduledTransaction provides a mock function with given fields: ctx, scheduledTxID

func (*API) GetScheduledTransactionResult added in v0.44.0

func (_m *API) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetScheduledTransactionResult provides a mock function with given fields: ctx, scheduledTxID, encodingVersion

func (*API) GetSystemTransaction added in v0.33.1

func (_m *API) GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)

GetSystemTransaction provides a mock function with given fields: ctx, txID, blockID

func (*API) GetSystemTransactionResult added in v0.33.1

func (_m *API) GetSystemTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetSystemTransactionResult provides a mock function with given fields: ctx, txID, blockID, encodingVersion

func (*API) GetTransaction

func (_m *API) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)

GetTransaction provides a mock function with given fields: ctx, id

func (*API) GetTransactionResult

func (_m *API) GetTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, collectionID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetTransactionResult provides a mock function with given fields: ctx, txID, blockID, collectionID, encodingVersion

func (*API) GetTransactionResultByIndex added in v0.24.8

func (_m *API) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetTransactionResultByIndex provides a mock function with given fields: ctx, blockID, index, encodingVersion

func (*API) GetTransactionResultsByBlockID added in v0.24.11

func (_m *API) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) ([]*modelaccess.TransactionResult, error)

GetTransactionResultsByBlockID provides a mock function with given fields: ctx, blockID, encodingVersion

func (*API) GetTransactionsByBlockID added in v0.24.11

func (_m *API) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)

GetTransactionsByBlockID provides a mock function with given fields: ctx, blockID

func (*API) Ping

func (_m *API) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*API) SendAndSubscribeTransactionStatuses added in v0.38.0

func (_m *API) SendAndSubscribeTransactionStatuses(ctx context.Context, tx *flow.TransactionBody, requiredEventEncodingVersion entities.EventEncodingVersion) subscription.Subscription

SendAndSubscribeTransactionStatuses provides a mock function with given fields: ctx, tx, requiredEventEncodingVersion

func (*API) SendTransaction

func (_m *API) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*API) SubscribeBlockDigestsFromLatest added in v0.33.30

func (_m *API) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromLatest provides a mock function with given fields: ctx, blockStatus

func (*API) SubscribeBlockDigestsFromStartBlockID added in v0.33.30

func (_m *API) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus

func (*API) SubscribeBlockDigestsFromStartHeight added in v0.33.30

func (_m *API) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus

func (*API) SubscribeBlockHeadersFromLatest added in v0.33.30

func (_m *API) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromLatest provides a mock function with given fields: ctx, blockStatus

func (*API) SubscribeBlockHeadersFromStartBlockID added in v0.33.30

func (_m *API) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus

func (*API) SubscribeBlockHeadersFromStartHeight added in v0.33.30

func (_m *API) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus

func (*API) SubscribeBlocksFromLatest added in v0.33.30

func (_m *API) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromLatest provides a mock function with given fields: ctx, blockStatus

func (*API) SubscribeBlocksFromStartBlockID added in v0.33.30

func (_m *API) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus

func (*API) SubscribeBlocksFromStartHeight added in v0.33.30

func (_m *API) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus

func (*API) SubscribeTransactionStatuses added in v0.33.30

func (_m *API) SubscribeTransactionStatuses(ctx context.Context, txID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) subscription.Subscription

SubscribeTransactionStatuses provides a mock function with given fields: ctx, txID, requiredEventEncodingVersion

type AccountsAPI added in v0.43.2

type AccountsAPI struct {
	mock.Mock
}

AccountsAPI is an autogenerated mock type for the AccountsAPI type

func NewAccountsAPI added in v0.43.2

func NewAccountsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountsAPI

NewAccountsAPI creates a new instance of AccountsAPI. 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 (*AccountsAPI) GetAccount added in v0.43.2

func (_m *AccountsAPI) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: ctx, address

func (*AccountsAPI) GetAccountAtBlockHeight added in v0.43.2

func (_m *AccountsAPI) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)

GetAccountAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*AccountsAPI) GetAccountAtLatestBlock added in v0.43.2

func (_m *AccountsAPI) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccountAtLatestBlock provides a mock function with given fields: ctx, address

func (*AccountsAPI) GetAccountBalanceAtBlockHeight added in v0.43.2

func (_m *AccountsAPI) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)

GetAccountBalanceAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*AccountsAPI) GetAccountBalanceAtLatestBlock added in v0.43.2

func (_m *AccountsAPI) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)

GetAccountBalanceAtLatestBlock provides a mock function with given fields: ctx, address

func (*AccountsAPI) GetAccountKeyAtBlockHeight added in v0.43.2

func (_m *AccountsAPI) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)

GetAccountKeyAtBlockHeight provides a mock function with given fields: ctx, address, keyIndex, height

func (*AccountsAPI) GetAccountKeyAtLatestBlock added in v0.43.2

func (_m *AccountsAPI) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)

GetAccountKeyAtLatestBlock provides a mock function with given fields: ctx, address, keyIndex

func (*AccountsAPI) GetAccountKeysAtBlockHeight added in v0.43.2

func (_m *AccountsAPI) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)

GetAccountKeysAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*AccountsAPI) GetAccountKeysAtLatestBlock added in v0.43.2

func (_m *AccountsAPI) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)

GetAccountKeysAtLatestBlock provides a mock function with given fields: ctx, address

type EventsAPI added in v0.43.2

type EventsAPI struct {
	mock.Mock
}

EventsAPI is an autogenerated mock type for the EventsAPI type

func NewEventsAPI added in v0.43.2

func NewEventsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventsAPI

NewEventsAPI creates a new instance of EventsAPI. 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 (*EventsAPI) GetEventsForBlockIDs added in v0.43.2

func (_m *EventsAPI) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) ([]flow.BlockEvents, error)

GetEventsForBlockIDs provides a mock function with given fields: ctx, eventType, blockIDs, requiredEventEncodingVersion

func (*EventsAPI) GetEventsForHeightRange added in v0.43.2

func (_m *EventsAPI) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight uint64, endHeight uint64, requiredEventEncodingVersion entities.EventEncodingVersion) ([]flow.BlockEvents, error)

GetEventsForHeightRange provides a mock function with given fields: ctx, eventType, startHeight, endHeight, requiredEventEncodingVersion

type ScriptsAPI added in v0.43.2

type ScriptsAPI struct {
	mock.Mock
}

ScriptsAPI is an autogenerated mock type for the ScriptsAPI type

func NewScriptsAPI added in v0.43.2

func NewScriptsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScriptsAPI

NewScriptsAPI creates a new instance of ScriptsAPI. 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 (*ScriptsAPI) ExecuteScriptAtBlockHeight added in v0.43.2

func (_m *ScriptsAPI) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockHeight provides a mock function with given fields: ctx, blockHeight, script, arguments

func (*ScriptsAPI) ExecuteScriptAtBlockID added in v0.43.2

func (_m *ScriptsAPI) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockID provides a mock function with given fields: ctx, blockID, script, arguments

func (*ScriptsAPI) ExecuteScriptAtLatestBlock added in v0.43.2

func (_m *ScriptsAPI) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtLatestBlock provides a mock function with given fields: ctx, script, arguments

type TransactionStreamAPI added in v0.43.2

type TransactionStreamAPI struct {
	mock.Mock
}

TransactionStreamAPI is an autogenerated mock type for the TransactionStreamAPI type

func NewTransactionStreamAPI added in v0.43.2

func NewTransactionStreamAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionStreamAPI

NewTransactionStreamAPI creates a new instance of TransactionStreamAPI. 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 (*TransactionStreamAPI) SendAndSubscribeTransactionStatuses added in v0.43.2

func (_m *TransactionStreamAPI) SendAndSubscribeTransactionStatuses(ctx context.Context, tx *flow.TransactionBody, requiredEventEncodingVersion entities.EventEncodingVersion) subscription.Subscription

SendAndSubscribeTransactionStatuses provides a mock function with given fields: ctx, tx, requiredEventEncodingVersion

func (*TransactionStreamAPI) SubscribeTransactionStatuses added in v0.43.2

func (_m *TransactionStreamAPI) SubscribeTransactionStatuses(ctx context.Context, txID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) subscription.Subscription

SubscribeTransactionStatuses provides a mock function with given fields: ctx, txID, requiredEventEncodingVersion

type TransactionsAPI added in v0.43.2

type TransactionsAPI struct {
	mock.Mock
}

TransactionsAPI is an autogenerated mock type for the TransactionsAPI type

func NewTransactionsAPI added in v0.43.2

func NewTransactionsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionsAPI

NewTransactionsAPI creates a new instance of TransactionsAPI. 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 (*TransactionsAPI) GetScheduledTransaction added in v0.44.0

func (_m *TransactionsAPI) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)

GetScheduledTransaction provides a mock function with given fields: ctx, scheduledTxID

func (*TransactionsAPI) GetScheduledTransactionResult added in v0.44.0

func (_m *TransactionsAPI) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetScheduledTransactionResult provides a mock function with given fields: ctx, scheduledTxID, encodingVersion

func (*TransactionsAPI) GetSystemTransaction added in v0.43.2

func (_m *TransactionsAPI) GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)

GetSystemTransaction provides a mock function with given fields: ctx, txID, blockID

func (*TransactionsAPI) GetSystemTransactionResult added in v0.43.2

func (_m *TransactionsAPI) GetSystemTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetSystemTransactionResult provides a mock function with given fields: ctx, txID, blockID, encodingVersion

func (*TransactionsAPI) GetTransaction added in v0.43.2

func (_m *TransactionsAPI) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)

GetTransaction provides a mock function with given fields: ctx, id

func (*TransactionsAPI) GetTransactionResult added in v0.43.2

func (_m *TransactionsAPI) GetTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, collectionID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetTransactionResult provides a mock function with given fields: ctx, txID, blockID, collectionID, encodingVersion

func (*TransactionsAPI) GetTransactionResultByIndex added in v0.43.2

func (_m *TransactionsAPI) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, encodingVersion entities.EventEncodingVersion) (*modelaccess.TransactionResult, error)

GetTransactionResultByIndex provides a mock function with given fields: ctx, blockID, index, encodingVersion

func (*TransactionsAPI) GetTransactionResultsByBlockID added in v0.43.2

func (_m *TransactionsAPI) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) ([]*modelaccess.TransactionResult, error)

GetTransactionResultsByBlockID provides a mock function with given fields: ctx, blockID, encodingVersion

func (*TransactionsAPI) GetTransactionsByBlockID added in v0.43.2

func (_m *TransactionsAPI) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)

GetTransactionsByBlockID provides a mock function with given fields: ctx, blockID

func (*TransactionsAPI) SendTransaction added in v0.43.2

func (_m *TransactionsAPI) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error

SendTransaction provides a mock function with given fields: ctx, tx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL