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)
- type NetworkAPI
- func (_m *NetworkAPI) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
- func (_m *NetworkAPI) GetNetworkParameters(ctx context.Context) access.NetworkParameters
- func (_m *NetworkAPI) GetNodeVersionInfo(ctx context.Context) (*access.NodeVersionInfo, error)
- func (_m *NetworkAPI) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
- func (_m *NetworkAPI) 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
type NetworkAPI ¶
NetworkAPI is an autogenerated mock type for the NetworkAPI type
func NewNetworkAPI ¶
func NewNetworkAPI(t interface { mock.TestingT Cleanup(func()) }) *NetworkAPI
NewNetworkAPI creates a new instance of NetworkAPI. 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 (*NetworkAPI) GetLatestProtocolStateSnapshot ¶
func (_m *NetworkAPI) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx
func (*NetworkAPI) GetNetworkParameters ¶
func (_m *NetworkAPI) GetNetworkParameters(ctx context.Context) access.NetworkParameters
GetNetworkParameters provides a mock function with given fields: ctx
func (*NetworkAPI) GetNodeVersionInfo ¶
func (_m *NetworkAPI) GetNodeVersionInfo(ctx context.Context) (*access.NodeVersionInfo, error)
GetNodeVersionInfo provides a mock function with given fields: ctx
func (*NetworkAPI) GetProtocolStateSnapshotByBlockID ¶
func (_m *NetworkAPI) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
GetProtocolStateSnapshotByBlockID provides a mock function with given fields: ctx, blockID
func (*NetworkAPI) GetProtocolStateSnapshotByHeight ¶
func (_m *NetworkAPI) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
GetProtocolStateSnapshotByHeight provides a mock function with given fields: ctx, blockHeight