Documentation ¶
Index ¶
- type API
- func (_m *API) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)
- func (_m *API) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, ...) ([]byte, error)
- func (_m *API) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)
- func (_m *API) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (_m *API) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
- func (_m *API) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (_m *API) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)
- func (_m *API) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, flow.BlockStatus, error)
- func (_m *API) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)
- func (_m *API) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)
- func (_m *API) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)
- func (_m *API) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier, ...) ([]flow.BlockEvents, error)
- func (_m *API) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight uint64, endHeight uint64, ...) ([]flow.BlockEvents, error)
- func (_m *API) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *API) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *API) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)
- func (_m *API) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)
- func (_m *API) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
- func (_m *API) GetNetworkParameters(ctx context.Context) access.NetworkParameters
- func (_m *API) GetNodeVersionInfo(ctx context.Context) (*access.NodeVersionInfo, error)
- func (_m *API) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
- func (_m *API) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
- func (_m *API) GetSystemTransaction(ctx context.Context, blockID flow.Identifier) (*flow.TransactionBody, error)
- func (_m *API) GetSystemTransactionResult(ctx context.Context, blockID flow.Identifier, ...) (*access.TransactionResult, error)
- func (_m *API) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)
- func (_m *API) GetTransactionResult(ctx context.Context, id flow.Identifier, blockID flow.Identifier, ...) (*access.TransactionResult, error)
- func (_m *API) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, ...) (*access.TransactionResult, error)
- func (_m *API) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, ...) ([]*access.TransactionResult, error)
- func (_m *API) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)
- func (_m *API) Ping(ctx context.Context) error
- func (_m *API) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error
- func (_m *API) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (_m *API) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (_m *API) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (_m *API) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (_m *API) SubscribeTransactionStatuses(ctx context.Context, tx *flow.TransactionBody, ...) subscription.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶ added in v0.26.1
func NewAPI(t mockConstructorTestingTNewAPI) *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.
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 ¶
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) 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) 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 ¶
GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx
func (*API) GetNetworkParameters ¶
func (_m *API) GetNetworkParameters(ctx context.Context) access.NetworkParameters
GetNetworkParameters provides a mock function with given fields: ctx
func (*API) GetNodeVersionInfo ¶ added in v0.31.0
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) GetSystemTransaction ¶ added in v0.33.1
func (_m *API) GetSystemTransaction(ctx context.Context, blockID flow.Identifier) (*flow.TransactionBody, error)
GetSystemTransaction provides a mock function with given fields: ctx, blockID
func (*API) GetSystemTransactionResult ¶ added in v0.33.1
func (_m *API) GetSystemTransactionResult(ctx context.Context, blockID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
GetSystemTransactionResult provides a mock function with given fields: ctx, blockID, requiredEventEncodingVersion
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, id flow.Identifier, blockID flow.Identifier, collectionID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
GetTransactionResult provides a mock function with given fields: ctx, id, blockID, collectionID, requiredEventEncodingVersion
func (*API) GetTransactionResultByIndex ¶ added in v0.24.8
func (_m *API) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, requiredEventEncodingVersion entities.EventEncodingVersion) (*access.TransactionResult, error)
GetTransactionResultByIndex provides a mock function with given fields: ctx, blockID, index, requiredEventEncodingVersion
func (*API) GetTransactionResultsByBlockID ¶ added in v0.24.11
func (_m *API) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion) ([]*access.TransactionResult, error)
GetTransactionResultsByBlockID provides a mock function with given fields: ctx, blockID, requiredEventEncodingVersion
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) SendTransaction ¶
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, tx *flow.TransactionBody, requiredEventEncodingVersion entities.EventEncodingVersion) subscription.Subscription
SubscribeTransactionStatuses provides a mock function with given fields: ctx, tx, requiredEventEncodingVersion