Documentation ¶
Index ¶
- type Head
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockHash() BLOCK_HASH
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockNumber() int64
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) ChainID() CHAIN_ID
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) ChainLength() uint32
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) EarliestHeadInChain() types.Head[BLOCK_HASH]
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) GetParent() types.Head[BLOCK_HASH]
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) GetParentHash() BLOCK_HASH
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) HasChainID() bool
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) HashAtHeight(blockNum int64) BLOCK_HASH
- func (_m *Head[BLOCK_HASH, CHAIN_ID]) IsValid() bool
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Head ¶ added in v2.3.0
Head is an autogenerated mock type for the Head type
func NewHead ¶ added in v2.3.0
func NewHead[BLOCK_HASH types.Hashable, CHAIN_ID txmgrtypes.ID](t mockConstructorTestingTNewHead) *Head[BLOCK_HASH, CHAIN_ID]
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, CHAIN_ID]) BlockHash ¶ added in v2.3.0
func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockHash() BLOCK_HASH
BlockHash provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) BlockNumber ¶ added in v2.3.0
BlockNumber provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) ChainID ¶ added in v2.3.0
func (_m *Head[BLOCK_HASH, CHAIN_ID]) ChainID() CHAIN_ID
ChainID provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) ChainLength ¶ added in v2.3.0
ChainLength provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) EarliestHeadInChain ¶ added in v2.3.0
EarliestHeadInChain provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) GetParent ¶ added in v2.3.0
GetParent provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) GetParentHash ¶ added in v2.3.0
func (_m *Head[BLOCK_HASH, CHAIN_ID]) GetParentHash() BLOCK_HASH
GetParentHash provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) HasChainID ¶ added in v2.3.0
HasChainID provides a mock function with given fields:
func (*Head[BLOCK_HASH, CHAIN_ID]) HashAtHeight ¶ added in v2.3.0
HashAtHeight provides a mock function with given fields: blockNum
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶
func NewSubscription(t mockConstructorTestingTNewSubscription) *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.
func (*Subscription) Err ¶
func (_m *Subscription) Err() <-chan error
Err provides a mock function with given fields:
func (*Subscription) Unsubscribe ¶
func (_m *Subscription) Unsubscribe()
Unsubscribe provides a mock function with given fields: