Documentation ¶
Index ¶
- type Head
- func (_m *Head[BLOCK_HASH]) BlockHash() BLOCK_HASH
- func (_m *Head[BLOCK_HASH]) BlockNumber() int64
- func (_m *Head[BLOCK_HASH]) ChainLength() uint32
- func (_m *Head[BLOCK_HASH]) EarliestHeadInChain() types.Head[BLOCK_HASH]
- func (_m *Head[BLOCK_HASH]) GetParent() types.Head[BLOCK_HASH]
- func (_m *Head[BLOCK_HASH]) HashAtHeight(blockNum int64) BLOCK_HASH
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Head ¶
Head is an autogenerated mock type for the Head type
func NewHead ¶
NewHead creates a new instance of Head. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Head[BLOCK_HASH]) BlockHash ¶
func (_m *Head[BLOCK_HASH]) BlockHash() BLOCK_HASH
BlockHash provides a mock function with given fields:
func (*Head[BLOCK_HASH]) BlockNumber ¶
BlockNumber provides a mock function with given fields:
func (*Head[BLOCK_HASH]) ChainLength ¶
ChainLength provides a mock function with given fields:
func (*Head[BLOCK_HASH]) EarliestHeadInChain ¶
EarliestHeadInChain provides a mock function with given fields:
func (*Head[BLOCK_HASH]) HashAtHeight ¶
HashAtHeight provides a mock function with given fields: blockNum
Click to show internal directories.
Click to hide internal directories.