Documentation ¶
Index ¶
- type API
- func (_m *API) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)
- func (_m *API) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, error)
- func (_m *API) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, error)
- func (_m *API) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, error)
- func (_m *API) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, error)
- func (_m *API) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, 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)
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 ¶
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) GetBlockByHeight ¶
GetBlockByHeight provides a mock function with given fields: ctx, height
func (*API) GetBlockByID ¶
GetBlockByID provides a mock function with given fields: ctx, id
func (*API) GetBlockHeaderByHeight ¶
GetBlockHeaderByHeight provides a mock function with given fields: ctx, height
func (*API) GetBlockHeaderByID ¶
GetBlockHeaderByID provides a mock function with given fields: ctx, id
func (*API) GetLatestBlock ¶
GetLatestBlock provides a mock function with given fields: ctx, isSealed
func (*API) GetLatestBlockHeader ¶
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