Documentation ¶
Index ¶
- type Chain
- func (_m *Chain) GetBlock(blockHash types.Hash) (*types.SignedBlock, error)
- func (_m *Chain) GetBlockHash(blockNumber uint64) (types.Hash, error)
- func (_m *Chain) GetBlockHashLatest() (types.Hash, error)
- func (_m *Chain) GetBlockLatest() (*types.SignedBlock, error)
- func (_m *Chain) GetFinalizedHead() (types.Hash, error)
- func (_m *Chain) GetHeader(blockHash types.Hash) (*types.Header, error)
- func (_m *Chain) GetHeaderLatest() (*types.Header, error)
- func (_m *Chain) SubscribeFinalizedHeads() (*chain.FinalizedHeadsSubscription, error)
- func (_m *Chain) SubscribeNewHeads() (*chain.NewHeadsSubscription, error)
- type NewChainT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain is an autogenerated mock type for the Chain type
func NewChain ¶
NewChain creates a new instance of Chain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Chain) GetBlockHash ¶
GetBlockHash provides a mock function with given fields: blockNumber
func (*Chain) GetBlockHashLatest ¶
GetBlockHashLatest provides a mock function with given fields:
func (*Chain) GetBlockLatest ¶
func (_m *Chain) GetBlockLatest() (*types.SignedBlock, error)
GetBlockLatest provides a mock function with given fields:
func (*Chain) GetFinalizedHead ¶
GetFinalizedHead provides a mock function with given fields:
func (*Chain) GetHeaderLatest ¶
GetHeaderLatest provides a mock function with given fields:
func (*Chain) SubscribeFinalizedHeads ¶
func (_m *Chain) SubscribeFinalizedHeads() (*chain.FinalizedHeadsSubscription, error)
SubscribeFinalizedHeads provides a mock function with given fields:
func (*Chain) SubscribeNewHeads ¶
func (_m *Chain) SubscribeNewHeads() (*chain.NewHeadsSubscription, error)
SubscribeNewHeads provides a mock function with given fields: