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)
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 ¶
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) 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