Documentation ¶
Index ¶
- type BlockTimer
- type Cluster
- type Consumer
- func (_m *Consumer) BlockFinalized(block *flow.Header)
- func (_m *Consumer) BlockProcessable(block *flow.Header, certifyingQC *flow.QuorumCertificate)
- func (_m *Consumer) EpochCommittedPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (_m *Consumer) EpochEmergencyFallbackTriggered()
- func (_m *Consumer) EpochSetupPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (_m *Consumer) EpochTransition(newEpochCounter uint64, first *flow.Header)
- type DKG
- type Epoch
- func (_m *Epoch) Cluster(index uint) (protocol.Cluster, error)
- func (_m *Epoch) ClusterByChainID(chainID flow.ChainID) (protocol.Cluster, error)
- func (_m *Epoch) Clustering() (flow.ClusterList, error)
- func (_m *Epoch) Counter() (uint64, error)
- func (_m *Epoch) DKG() (protocol.DKG, error)
- func (_m *Epoch) DKGPhase1FinalView() (uint64, error)
- func (_m *Epoch) DKGPhase2FinalView() (uint64, error)
- func (_m *Epoch) DKGPhase3FinalView() (uint64, error)
- func (_m *Epoch) FinalHeight() (uint64, error)
- func (_m *Epoch) FinalView() (uint64, error)
- func (_m *Epoch) FirstHeight() (uint64, error)
- func (_m *Epoch) FirstView() (uint64, error)
- func (_m *Epoch) InitialIdentities() (flow.GenericIdentityList[flow.IdentitySkeleton], error)
- func (_m *Epoch) RandomSource() ([]byte, error)
- func (_m *Epoch) TargetDuration() (uint64, error)
- func (_m *Epoch) TargetEndTime() (uint64, error)
- type EpochProtocolState
- func (_m *EpochProtocolState) Clustering() (flow.ClusterList, error)
- func (_m *EpochProtocolState) DKG() (protocol.DKG, error)
- func (_m *EpochProtocolState) Entry() *flow.RichEpochProtocolStateEntry
- func (_m *EpochProtocolState) Epoch() uint64
- func (_m *EpochProtocolState) EpochCommit() *flow.EpochCommit
- func (_m *EpochProtocolState) EpochPhase() flow.EpochPhase
- func (_m *EpochProtocolState) EpochSetup() *flow.EpochSetup
- func (_m *EpochProtocolState) GlobalParams() protocol.GlobalParams
- func (_m *EpochProtocolState) Identities() flow.GenericIdentityList[flow.Identity]
- func (_m *EpochProtocolState) InvalidEpochTransitionAttempted() bool
- func (_m *EpochProtocolState) PreviousEpochExists() bool
- type EpochQuery
- type FollowerState
- func (_m *FollowerState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_m *FollowerState) AtHeight(height uint64) protocol.Snapshot
- func (_m *FollowerState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error
- func (_m *FollowerState) Final() protocol.Snapshot
- func (_m *FollowerState) Finalize(ctx context.Context, blockID flow.Identifier) error
- func (_m *FollowerState) Params() protocol.Params
- func (_m *FollowerState) Sealed() protocol.Snapshot
- type GlobalParams
- type InstanceParams
- type KVStoreReader
- func (_m *KVStoreReader) GetEpochStateID() flow.Identifier
- func (_m *KVStoreReader) GetProtocolStateVersion() uint64
- func (_m *KVStoreReader) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_m *KVStoreReader) ID() flow.Identifier
- func (_m *KVStoreReader) VersionedEncode() (uint64, []byte, error)
- type MutableProtocolState
- func (_m *MutableProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
- func (_m *MutableProtocolState) EvolveState(parentBlockID flow.Identifier, candidateView uint64, ...) (flow.Identifier, *transaction.DeferredBlockPersist, error)
- func (_m *MutableProtocolState) GlobalParams() protocol.GlobalParams
- func (_m *MutableProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
- type Params
- func (_m *Params) ChainID() flow.ChainID
- func (_m *Params) EpochCommitSafetyThreshold() uint64
- func (_m *Params) EpochFallbackTriggered() (bool, error)
- func (_m *Params) FinalizedRoot() *flow.Header
- func (_m *Params) ProtocolVersion() uint
- func (_m *Params) Seal() *flow.Seal
- func (_m *Params) SealedRoot() *flow.Header
- func (_m *Params) SporkID() flow.Identifier
- func (_m *Params) SporkRootBlockHeight() uint64
- type ParticipantState
- func (_m *ParticipantState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_m *ParticipantState) AtHeight(height uint64) protocol.Snapshot
- func (_m *ParticipantState) Extend(ctx context.Context, candidate *flow.Block) error
- func (_m *ParticipantState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error
- func (_m *ParticipantState) Final() protocol.Snapshot
- func (_m *ParticipantState) Finalize(ctx context.Context, blockID flow.Identifier) error
- func (_m *ParticipantState) Params() protocol.Params
- func (_m *ParticipantState) Sealed() protocol.Snapshot
- type ProtocolState
- type Snapshot
- func (_m *Snapshot) Commit() (flow.StateCommitment, error)
- func (_m *Snapshot) Descendants() ([]flow.Identifier, error)
- func (_m *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)
- func (_m *Snapshot) Epochs() protocol.EpochQuery
- func (_m *Snapshot) Head() (*flow.Header, error)
- func (_m *Snapshot) Identities(selector flow.IdentityFilter[flow.Identity]) (flow.GenericIdentityList[flow.Identity], error)
- func (_m *Snapshot) Identity(nodeID flow.Identifier) (*flow.Identity, error)
- func (_m *Snapshot) Params() protocol.GlobalParams
- func (_m *Snapshot) Phase() (flow.EpochPhase, error)
- func (_m *Snapshot) ProtocolState() (protocol.KVStoreReader, error)
- func (_m *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)
- func (_m *Snapshot) RandomSource() ([]byte, error)
- func (_m *Snapshot) SealedResult() (*flow.ExecutionResult, *flow.Seal, error)
- func (_m *Snapshot) SealingSegment() (*flow.SealingSegment, error)
- func (_m *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)
- type State
- type VersionedEncodable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTimer ¶ added in v0.20.0
BlockTimer is an autogenerated mock type for the BlockTimer type
func NewBlockTimer ¶ added in v0.26.1
func NewBlockTimer(t mockConstructorTestingTNewBlockTimer) *BlockTimer
NewBlockTimer creates a new instance of BlockTimer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Cluster ¶
Cluster is an autogenerated mock type for the Cluster type
func NewCluster ¶ added in v0.26.1
func NewCluster(t mockConstructorTestingTNewCluster) *Cluster
NewCluster creates a new instance of Cluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Cluster) EpochCounter ¶
EpochCounter provides a mock function with given fields:
func (*Cluster) Members ¶
func (_m *Cluster) Members() flow.GenericIdentityList[flow.IdentitySkeleton]
Members provides a mock function with given fields:
func (*Cluster) RootQC ¶
func (_m *Cluster) RootQC() *flow.QuorumCertificate
RootQC provides a mock function with given fields:
type Consumer ¶
Consumer is an autogenerated mock type for the Consumer type
func NewConsumer ¶ added in v0.26.1
func NewConsumer(t mockConstructorTestingTNewConsumer) *Consumer
NewConsumer creates a new instance of Consumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Consumer) BlockFinalized ¶
BlockFinalized provides a mock function with given fields: block
func (*Consumer) BlockProcessable ¶
func (_m *Consumer) BlockProcessable(block *flow.Header, certifyingQC *flow.QuorumCertificate)
BlockProcessable provides a mock function with given fields: block, certifyingQC
func (*Consumer) EpochCommittedPhaseStarted ¶
EpochCommittedPhaseStarted provides a mock function with given fields: currentEpochCounter, first
func (*Consumer) EpochEmergencyFallbackTriggered ¶ added in v0.29.0
func (_m *Consumer) EpochEmergencyFallbackTriggered()
EpochEmergencyFallbackTriggered provides a mock function with given fields:
func (*Consumer) EpochSetupPhaseStarted ¶
EpochSetupPhaseStarted provides a mock function with given fields: currentEpochCounter, first
type DKG ¶
DKG is an autogenerated mock type for the DKG type
func NewDKG ¶ added in v0.26.1
func NewDKG(t mockConstructorTestingTNewDKG) *DKG
NewDKG creates a new instance of DKG. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DKG) Index ¶
func (_m *DKG) Index(nodeID flow.Identifier) (uint, error)
Index provides a mock function with given fields: nodeID
type Epoch ¶
Epoch is an autogenerated mock type for the Epoch type
func NewEpoch ¶ added in v0.26.1
func NewEpoch(t mockConstructorTestingTNewEpoch) *Epoch
NewEpoch creates a new instance of Epoch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Epoch) ClusterByChainID ¶ added in v0.26.1
ClusterByChainID provides a mock function with given fields: chainID
func (*Epoch) Clustering ¶
func (_m *Epoch) Clustering() (flow.ClusterList, error)
Clustering provides a mock function with given fields:
func (*Epoch) DKGPhase1FinalView ¶ added in v0.20.0
DKGPhase1FinalView provides a mock function with given fields:
func (*Epoch) DKGPhase2FinalView ¶ added in v0.20.0
DKGPhase2FinalView provides a mock function with given fields:
func (*Epoch) DKGPhase3FinalView ¶ added in v0.20.0
DKGPhase3FinalView provides a mock function with given fields:
func (*Epoch) FinalHeight ¶ added in v0.30.0
FinalHeight provides a mock function with given fields:
func (*Epoch) FirstHeight ¶ added in v0.30.0
FirstHeight provides a mock function with given fields:
func (*Epoch) InitialIdentities ¶
func (_m *Epoch) InitialIdentities() (flow.GenericIdentityList[flow.IdentitySkeleton], error)
InitialIdentities provides a mock function with given fields:
func (*Epoch) RandomSource ¶ added in v0.15.0
RandomSource provides a mock function with given fields:
func (*Epoch) TargetDuration ¶ added in v0.33.30
TargetDuration provides a mock function with given fields:
func (*Epoch) TargetEndTime ¶ added in v0.33.30
TargetEndTime provides a mock function with given fields:
type EpochProtocolState ¶ added in v0.33.30
EpochProtocolState is an autogenerated mock type for the EpochProtocolState type
func NewEpochProtocolState ¶ added in v0.33.30
func NewEpochProtocolState(t mockConstructorTestingTNewEpochProtocolState) *EpochProtocolState
NewEpochProtocolState creates a new instance of EpochProtocolState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EpochProtocolState) Clustering ¶ added in v0.33.30
func (_m *EpochProtocolState) Clustering() (flow.ClusterList, error)
Clustering provides a mock function with given fields:
func (*EpochProtocolState) DKG ¶ added in v0.33.30
func (_m *EpochProtocolState) DKG() (protocol.DKG, error)
DKG provides a mock function with given fields:
func (*EpochProtocolState) Entry ¶ added in v0.33.30
func (_m *EpochProtocolState) Entry() *flow.RichEpochProtocolStateEntry
Entry provides a mock function with given fields:
func (*EpochProtocolState) Epoch ¶ added in v0.33.30
func (_m *EpochProtocolState) Epoch() uint64
Epoch provides a mock function with given fields:
func (*EpochProtocolState) EpochCommit ¶ added in v0.33.30
func (_m *EpochProtocolState) EpochCommit() *flow.EpochCommit
EpochCommit provides a mock function with given fields:
func (*EpochProtocolState) EpochPhase ¶ added in v0.33.30
func (_m *EpochProtocolState) EpochPhase() flow.EpochPhase
EpochPhase provides a mock function with given fields:
func (*EpochProtocolState) EpochSetup ¶ added in v0.33.30
func (_m *EpochProtocolState) EpochSetup() *flow.EpochSetup
EpochSetup provides a mock function with given fields:
func (*EpochProtocolState) GlobalParams ¶ added in v0.33.30
func (_m *EpochProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function with given fields:
func (*EpochProtocolState) Identities ¶ added in v0.33.30
func (_m *EpochProtocolState) Identities() flow.GenericIdentityList[flow.Identity]
Identities provides a mock function with given fields:
func (*EpochProtocolState) InvalidEpochTransitionAttempted ¶ added in v0.33.30
func (_m *EpochProtocolState) InvalidEpochTransitionAttempted() bool
InvalidEpochTransitionAttempted provides a mock function with given fields:
func (*EpochProtocolState) PreviousEpochExists ¶ added in v0.33.30
func (_m *EpochProtocolState) PreviousEpochExists() bool
PreviousEpochExists provides a mock function with given fields:
type EpochQuery ¶
EpochQuery is an autogenerated mock type for the EpochQuery type
func NewEpochQuery ¶ added in v0.26.1
func NewEpochQuery(t mockConstructorTestingTNewEpochQuery) *EpochQuery
NewEpochQuery creates a new instance of EpochQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EpochQuery) Current ¶
func (_m *EpochQuery) Current() protocol.Epoch
Current provides a mock function with given fields:
func (*EpochQuery) Next ¶
func (_m *EpochQuery) Next() protocol.Epoch
Next provides a mock function with given fields:
func (*EpochQuery) Previous ¶ added in v0.13.0
func (_m *EpochQuery) Previous() protocol.Epoch
Previous provides a mock function with given fields:
type FollowerState ¶ added in v0.30.0
FollowerState is an autogenerated mock type for the FollowerState type
func NewFollowerState ¶ added in v0.30.0
func NewFollowerState(t mockConstructorTestingTNewFollowerState) *FollowerState
NewFollowerState creates a new instance of FollowerState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FollowerState) AtBlockID ¶ added in v0.30.0
func (_m *FollowerState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function with given fields: blockID
func (*FollowerState) AtHeight ¶ added in v0.30.0
func (_m *FollowerState) AtHeight(height uint64) protocol.Snapshot
AtHeight provides a mock function with given fields: height
func (*FollowerState) ExtendCertified ¶ added in v0.30.0
func (_m *FollowerState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error
ExtendCertified provides a mock function with given fields: ctx, candidate, qc
func (*FollowerState) Final ¶ added in v0.30.0
func (_m *FollowerState) Final() protocol.Snapshot
Final provides a mock function with given fields:
func (*FollowerState) Finalize ¶ added in v0.30.0
func (_m *FollowerState) Finalize(ctx context.Context, blockID flow.Identifier) error
Finalize provides a mock function with given fields: ctx, blockID
func (*FollowerState) Params ¶ added in v0.30.0
func (_m *FollowerState) Params() protocol.Params
Params provides a mock function with given fields:
func (*FollowerState) Sealed ¶ added in v0.30.0
func (_m *FollowerState) Sealed() protocol.Snapshot
Sealed provides a mock function with given fields:
type GlobalParams ¶ added in v0.23.2
GlobalParams is an autogenerated mock type for the GlobalParams type
func NewGlobalParams ¶ added in v0.26.1
func NewGlobalParams(t mockConstructorTestingTNewGlobalParams) *GlobalParams
NewGlobalParams creates a new instance of GlobalParams. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GlobalParams) ChainID ¶ added in v0.23.2
func (_m *GlobalParams) ChainID() flow.ChainID
ChainID provides a mock function with given fields:
func (*GlobalParams) EpochCommitSafetyThreshold ¶ added in v0.29.0
func (_m *GlobalParams) EpochCommitSafetyThreshold() uint64
EpochCommitSafetyThreshold provides a mock function with given fields:
func (*GlobalParams) ProtocolVersion ¶ added in v0.23.2
func (_m *GlobalParams) ProtocolVersion() uint
ProtocolVersion provides a mock function with given fields:
func (*GlobalParams) SporkID ¶ added in v0.23.2
func (_m *GlobalParams) SporkID() flow.Identifier
SporkID provides a mock function with given fields:
func (*GlobalParams) SporkRootBlockHeight ¶ added in v0.29.6
func (_m *GlobalParams) SporkRootBlockHeight() uint64
SporkRootBlockHeight provides a mock function with given fields:
type InstanceParams ¶ added in v0.23.2
InstanceParams is an autogenerated mock type for the InstanceParams type
func NewInstanceParams ¶ added in v0.26.1
func NewInstanceParams(t mockConstructorTestingTNewInstanceParams) *InstanceParams
NewInstanceParams creates a new instance of InstanceParams. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InstanceParams) EpochFallbackTriggered ¶ added in v0.29.0
func (_m *InstanceParams) EpochFallbackTriggered() (bool, error)
EpochFallbackTriggered provides a mock function with given fields:
func (*InstanceParams) FinalizedRoot ¶ added in v0.30.7
func (_m *InstanceParams) FinalizedRoot() *flow.Header
FinalizedRoot provides a mock function with given fields:
func (*InstanceParams) Seal ¶ added in v0.23.2
func (_m *InstanceParams) Seal() *flow.Seal
Seal provides a mock function with given fields:
func (*InstanceParams) SealedRoot ¶ added in v0.30.7
func (_m *InstanceParams) SealedRoot() *flow.Header
SealedRoot provides a mock function with given fields:
type KVStoreReader ¶ added in v0.33.30
KVStoreReader is an autogenerated mock type for the KVStoreReader type
func NewKVStoreReader ¶ added in v0.33.30
func NewKVStoreReader(t mockConstructorTestingTNewKVStoreReader) *KVStoreReader
NewKVStoreReader creates a new instance of KVStoreReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KVStoreReader) GetEpochStateID ¶ added in v0.33.30
func (_m *KVStoreReader) GetEpochStateID() flow.Identifier
GetEpochStateID provides a mock function with given fields:
func (*KVStoreReader) GetProtocolStateVersion ¶ added in v0.33.30
func (_m *KVStoreReader) GetProtocolStateVersion() uint64
GetProtocolStateVersion provides a mock function with given fields:
func (*KVStoreReader) GetVersionUpgrade ¶ added in v0.33.30
func (_m *KVStoreReader) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
GetVersionUpgrade provides a mock function with given fields:
func (*KVStoreReader) ID ¶ added in v0.33.30
func (_m *KVStoreReader) ID() flow.Identifier
ID provides a mock function with given fields:
func (*KVStoreReader) VersionedEncode ¶ added in v0.33.30
func (_m *KVStoreReader) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function with given fields:
type MutableProtocolState ¶ added in v0.33.30
MutableProtocolState is an autogenerated mock type for the MutableProtocolState type
func NewMutableProtocolState ¶ added in v0.33.30
func NewMutableProtocolState(t mockConstructorTestingTNewMutableProtocolState) *MutableProtocolState
NewMutableProtocolState creates a new instance of MutableProtocolState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MutableProtocolState) EpochStateAtBlockID ¶ added in v0.33.30
func (_m *MutableProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
EpochStateAtBlockID provides a mock function with given fields: blockID
func (*MutableProtocolState) EvolveState ¶ added in v0.33.30
func (_m *MutableProtocolState) EvolveState(parentBlockID flow.Identifier, candidateView uint64, candidateSeals []*flow.Seal) (flow.Identifier, *transaction.DeferredBlockPersist, error)
EvolveState provides a mock function with given fields: parentBlockID, candidateView, candidateSeals
func (*MutableProtocolState) GlobalParams ¶ added in v0.33.30
func (_m *MutableProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function with given fields:
func (*MutableProtocolState) KVStoreAtBlockID ¶ added in v0.33.30
func (_m *MutableProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
KVStoreAtBlockID provides a mock function with given fields: blockID
type Params ¶
Params is an autogenerated mock type for the Params type
func NewParams ¶ added in v0.26.1
func NewParams(t mockConstructorTestingTNewParams) *Params
NewParams creates a new instance of Params. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Params) EpochCommitSafetyThreshold ¶ added in v0.29.0
EpochCommitSafetyThreshold provides a mock function with given fields:
func (*Params) EpochFallbackTriggered ¶ added in v0.29.0
EpochFallbackTriggered provides a mock function with given fields:
func (*Params) FinalizedRoot ¶ added in v0.30.7
FinalizedRoot provides a mock function with given fields:
func (*Params) ProtocolVersion ¶ added in v0.23.2
ProtocolVersion provides a mock function with given fields:
func (*Params) SealedRoot ¶ added in v0.30.7
SealedRoot provides a mock function with given fields:
func (*Params) SporkID ¶ added in v0.23.2
func (_m *Params) SporkID() flow.Identifier
SporkID provides a mock function with given fields:
func (*Params) SporkRootBlockHeight ¶ added in v0.29.6
SporkRootBlockHeight provides a mock function with given fields:
type ParticipantState ¶ added in v0.30.0
ParticipantState is an autogenerated mock type for the ParticipantState type
func NewParticipantState ¶ added in v0.30.0
func NewParticipantState(t mockConstructorTestingTNewParticipantState) *ParticipantState
NewParticipantState creates a new instance of ParticipantState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ParticipantState) AtBlockID ¶ added in v0.30.0
func (_m *ParticipantState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function with given fields: blockID
func (*ParticipantState) AtHeight ¶ added in v0.30.0
func (_m *ParticipantState) AtHeight(height uint64) protocol.Snapshot
AtHeight provides a mock function with given fields: height
func (*ParticipantState) Extend ¶ added in v0.30.0
Extend provides a mock function with given fields: ctx, candidate
func (*ParticipantState) ExtendCertified ¶ added in v0.30.0
func (_m *ParticipantState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error
ExtendCertified provides a mock function with given fields: ctx, candidate, qc
func (*ParticipantState) Final ¶ added in v0.30.0
func (_m *ParticipantState) Final() protocol.Snapshot
Final provides a mock function with given fields:
func (*ParticipantState) Finalize ¶ added in v0.30.0
func (_m *ParticipantState) Finalize(ctx context.Context, blockID flow.Identifier) error
Finalize provides a mock function with given fields: ctx, blockID
func (*ParticipantState) Params ¶ added in v0.30.0
func (_m *ParticipantState) Params() protocol.Params
Params provides a mock function with given fields:
func (*ParticipantState) Sealed ¶ added in v0.30.0
func (_m *ParticipantState) Sealed() protocol.Snapshot
Sealed provides a mock function with given fields:
type ProtocolState ¶ added in v0.33.30
ProtocolState is an autogenerated mock type for the ProtocolState type
func NewProtocolState ¶ added in v0.33.30
func NewProtocolState(t mockConstructorTestingTNewProtocolState) *ProtocolState
NewProtocolState creates a new instance of ProtocolState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProtocolState) EpochStateAtBlockID ¶ added in v0.33.30
func (_m *ProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
EpochStateAtBlockID provides a mock function with given fields: blockID
func (*ProtocolState) GlobalParams ¶ added in v0.33.30
func (_m *ProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function with given fields:
func (*ProtocolState) KVStoreAtBlockID ¶ added in v0.33.30
func (_m *ProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
KVStoreAtBlockID provides a mock function with given fields: blockID
type Snapshot ¶
Snapshot is an autogenerated mock type for the Snapshot type
func NewSnapshot ¶ added in v0.26.1
func NewSnapshot(t mockConstructorTestingTNewSnapshot) *Snapshot
NewSnapshot creates a new instance of Snapshot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Snapshot) Commit ¶
func (_m *Snapshot) Commit() (flow.StateCommitment, error)
Commit provides a mock function with given fields:
func (*Snapshot) Descendants ¶ added in v0.17.6
func (_m *Snapshot) Descendants() ([]flow.Identifier, error)
Descendants provides a mock function with given fields:
func (*Snapshot) EpochProtocolState ¶ added in v0.33.30
func (_m *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)
EpochProtocolState provides a mock function with given fields:
func (*Snapshot) Epochs ¶
func (_m *Snapshot) Epochs() protocol.EpochQuery
Epochs provides a mock function with given fields:
func (*Snapshot) Identities ¶
func (_m *Snapshot) Identities(selector flow.IdentityFilter[flow.Identity]) (flow.GenericIdentityList[flow.Identity], error)
Identities provides a mock function with given fields: selector
func (*Snapshot) Params ¶ added in v0.23.2
func (_m *Snapshot) Params() protocol.GlobalParams
Params provides a mock function with given fields:
func (*Snapshot) Phase ¶
func (_m *Snapshot) Phase() (flow.EpochPhase, error)
Phase provides a mock function with given fields:
func (*Snapshot) ProtocolState ¶ added in v0.33.30
func (_m *Snapshot) ProtocolState() (protocol.KVStoreReader, error)
ProtocolState provides a mock function with given fields:
func (*Snapshot) QuorumCertificate ¶ added in v0.15.0
func (_m *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)
QuorumCertificate provides a mock function with given fields:
func (*Snapshot) RandomSource ¶ added in v0.25.0
RandomSource provides a mock function with given fields:
func (*Snapshot) SealedResult ¶ added in v0.15.0
SealedResult provides a mock function with given fields:
func (*Snapshot) SealingSegment ¶ added in v0.15.0
func (_m *Snapshot) SealingSegment() (*flow.SealingSegment, error)
SealingSegment provides a mock function with given fields:
func (*Snapshot) VersionBeacon ¶ added in v0.31.0
func (_m *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)
VersionBeacon provides a mock function with given fields:
type State ¶
State is an autogenerated mock type for the State type
func NewState ¶ added in v0.26.1
func NewState(t mockConstructorTestingTNewState) *State
NewState creates a new instance of State. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*State) AtBlockID ¶
func (_m *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function with given fields: blockID
type VersionedEncodable ¶ added in v0.33.30
VersionedEncodable is an autogenerated mock type for the VersionedEncodable type
func NewVersionedEncodable ¶ added in v0.33.30
func NewVersionedEncodable(t mockConstructorTestingTNewVersionedEncodable) *VersionedEncodable
NewVersionedEncodable creates a new instance of VersionedEncodable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*VersionedEncodable) VersionedEncode ¶ added in v0.33.30
func (_m *VersionedEncodable) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function with given fields: