Documentation ¶
Index ¶
- type Head
- func (_m *Head[BLOCK_HASH]) BlockDifficulty() *big.Int
- 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]) GetParentHash() BLOCK_HASH
- func (_m *Head[BLOCK_HASH]) GetTimestamp() time.Time
- func (_m *Head[BLOCK_HASH]) HashAtHeight(blockNum int64) BLOCK_HASH
- func (_m *Head[BLOCK_HASH]) HeadAtHeight(blockNum int64) (types.Head[BLOCK_HASH], error)
- func (_m *Head[BLOCK_HASH]) IsValid() bool
- func (_m *Head[BLOCK_HASH]) LatestFinalizedHead() types.Head[BLOCK_HASH]
- type Subscription
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 ¶
func NewHead[BLOCK_HASH types.Hashable](t interface { mock.TestingT Cleanup(func()) }) *Head[BLOCK_HASH]
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. The first argument is typically a *testing.T value.
func (*Head[BLOCK_HASH]) BlockDifficulty ¶ added in v2.8.0
BlockDifficulty provides a mock function with given fields:
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]) GetParentHash ¶ added in v2.3.0
func (_m *Head[BLOCK_HASH]) GetParentHash() BLOCK_HASH
GetParentHash provides a mock function with given fields:
func (*Head[BLOCK_HASH]) GetTimestamp ¶ added in v2.8.0
GetTimestamp provides a mock function with given fields:
func (*Head[BLOCK_HASH]) HashAtHeight ¶
HashAtHeight provides a mock function with given fields: blockNum
func (*Head[BLOCK_HASH]) HeadAtHeight ¶ added in v2.14.0
HeadAtHeight provides a mock function with given fields: blockNum
func (*Head[BLOCK_HASH]) IsValid ¶ added in v2.11.0
IsValid provides a mock function with given fields:
func (*Head[BLOCK_HASH]) LatestFinalizedHead ¶ added in v2.13.0
LatestFinalizedHead provides a mock function with given fields:
type Subscription ¶ added in v2.3.0
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶ added in v2.3.0
func NewSubscription(t interface { mock.TestingT Cleanup(func()) }) *Subscription
NewSubscription creates a new instance of Subscription. 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 (*Subscription) Err ¶ added in v2.3.0
func (_m *Subscription) Err() <-chan error
Err provides a mock function with given fields:
func (*Subscription) Unsubscribe ¶ added in v2.3.0
func (_m *Subscription) Unsubscribe()
Unsubscribe provides a mock function with given fields: