Documentation
¶
Index ¶
- type KVStoreAPI
- func (_m *KVStoreAPI) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
- func (_m *KVStoreAPI) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_m *KVStoreAPI) GetEpochExtensionViewCount() uint64
- func (_m *KVStoreAPI) GetEpochStateID() flow.Identifier
- func (_m *KVStoreAPI) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
- func (_m *KVStoreAPI) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_m *KVStoreAPI) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
- func (_m *KVStoreAPI) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
- func (_m *KVStoreAPI) GetFinalizationSafetyThreshold() uint64
- func (_m *KVStoreAPI) GetProtocolStateVersion() uint64
- func (_m *KVStoreAPI) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_m *KVStoreAPI) ID() flow.Identifier
- func (_m *KVStoreAPI) Replicate(protocolVersion uint64) (protocol_state.KVStoreMutator, error)
- func (_m *KVStoreAPI) VersionedEncode() (uint64, []byte, error)
- type KVStoreMutator
- func (_m *KVStoreMutator) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
- func (_m *KVStoreMutator) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_m *KVStoreMutator) GetEpochExtensionViewCount() uint64
- func (_m *KVStoreMutator) GetEpochStateID() flow.Identifier
- func (_m *KVStoreMutator) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
- func (_m *KVStoreMutator) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_m *KVStoreMutator) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
- func (_m *KVStoreMutator) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
- func (_m *KVStoreMutator) GetFinalizationSafetyThreshold() uint64
- func (_m *KVStoreMutator) GetProtocolStateVersion() uint64
- func (_m *KVStoreMutator) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_m *KVStoreMutator) ID() flow.Identifier
- func (_m *KVStoreMutator) SetEpochExtensionViewCount(viewCount uint64) error
- func (_m *KVStoreMutator) SetEpochStateID(stateID flow.Identifier)
- func (_m *KVStoreMutator) SetVersionUpgrade(version *protocol.ViewBasedActivator[uint64])
- func (_m *KVStoreMutator) VersionedEncode() (uint64, []byte, error)
- type KeyValueStoreStateMachine
- func (_m *KeyValueStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
- func (_m *KeyValueStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
- func (_m *KeyValueStoreStateMachine[P]) ParentState() protocol.KVStoreReader
- func (_m *KeyValueStoreStateMachine[P]) View() uint64
- type KeyValueStoreStateMachineFactory
- type OrthogonalStoreStateMachine
- func (_m *OrthogonalStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
- func (_m *OrthogonalStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
- func (_m *OrthogonalStoreStateMachine[P]) ParentState() P
- func (_m *OrthogonalStoreStateMachine[P]) View() uint64
- type ProtocolKVStore
- func (_m *ProtocolKVStore) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, ...) error
- func (_m *ProtocolKVStore) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, stateID flow.Identifier, ...) error
- func (_m *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)
- func (_m *ProtocolKVStore) ByID(id flow.Identifier) (protocol_state.KVStoreAPI, error)
- type StateMachineEventsTelemetryFactory
- type StateMachineTelemetryConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStoreAPI ¶
KVStoreAPI is an autogenerated mock type for the KVStoreAPI type
func NewKVStoreAPI ¶
func NewKVStoreAPI(t interface { mock.TestingT Cleanup(func()) }) *KVStoreAPI
NewKVStoreAPI creates a new instance of KVStoreAPI. 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 (*KVStoreAPI) GetCadenceComponentVersion ¶ added in v0.41.0
func (_m *KVStoreAPI) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
GetCadenceComponentVersion provides a mock function with no fields
func (*KVStoreAPI) GetCadenceComponentVersionUpgrade ¶ added in v0.41.0
func (_m *KVStoreAPI) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetCadenceComponentVersionUpgrade provides a mock function with no fields
func (*KVStoreAPI) GetEpochExtensionViewCount ¶ added in v0.37.1
func (_m *KVStoreAPI) GetEpochExtensionViewCount() uint64
GetEpochExtensionViewCount provides a mock function with no fields
func (*KVStoreAPI) GetEpochStateID ¶
func (_m *KVStoreAPI) GetEpochStateID() flow.Identifier
GetEpochStateID provides a mock function with no fields
func (*KVStoreAPI) GetExecutionComponentVersion ¶ added in v0.41.0
func (_m *KVStoreAPI) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
GetExecutionComponentVersion provides a mock function with no fields
func (*KVStoreAPI) GetExecutionComponentVersionUpgrade ¶ added in v0.41.0
func (_m *KVStoreAPI) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetExecutionComponentVersionUpgrade provides a mock function with no fields
func (*KVStoreAPI) GetExecutionMeteringParameters ¶ added in v0.41.0
func (_m *KVStoreAPI) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
GetExecutionMeteringParameters provides a mock function with no fields
func (*KVStoreAPI) GetExecutionMeteringParametersUpgrade ¶ added in v0.41.0
func (_m *KVStoreAPI) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
GetExecutionMeteringParametersUpgrade provides a mock function with no fields
func (*KVStoreAPI) GetFinalizationSafetyThreshold ¶ added in v0.39.0
func (_m *KVStoreAPI) GetFinalizationSafetyThreshold() uint64
GetFinalizationSafetyThreshold provides a mock function with no fields
func (*KVStoreAPI) GetProtocolStateVersion ¶
func (_m *KVStoreAPI) GetProtocolStateVersion() uint64
GetProtocolStateVersion provides a mock function with no fields
func (*KVStoreAPI) GetVersionUpgrade ¶
func (_m *KVStoreAPI) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
GetVersionUpgrade provides a mock function with no fields
func (*KVStoreAPI) ID ¶
func (_m *KVStoreAPI) ID() flow.Identifier
ID provides a mock function with no fields
func (*KVStoreAPI) Replicate ¶
func (_m *KVStoreAPI) Replicate(protocolVersion uint64) (protocol_state.KVStoreMutator, error)
Replicate provides a mock function with given fields: protocolVersion
func (*KVStoreAPI) VersionedEncode ¶
func (_m *KVStoreAPI) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function with no fields
type KVStoreMutator ¶
KVStoreMutator is an autogenerated mock type for the KVStoreMutator type
func NewKVStoreMutator ¶
func NewKVStoreMutator(t interface { mock.TestingT Cleanup(func()) }) *KVStoreMutator
NewKVStoreMutator creates a new instance of KVStoreMutator. 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 (*KVStoreMutator) GetCadenceComponentVersion ¶ added in v0.41.0
func (_m *KVStoreMutator) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
GetCadenceComponentVersion provides a mock function with no fields
func (*KVStoreMutator) GetCadenceComponentVersionUpgrade ¶ added in v0.41.0
func (_m *KVStoreMutator) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetCadenceComponentVersionUpgrade provides a mock function with no fields
func (*KVStoreMutator) GetEpochExtensionViewCount ¶ added in v0.37.1
func (_m *KVStoreMutator) GetEpochExtensionViewCount() uint64
GetEpochExtensionViewCount provides a mock function with no fields
func (*KVStoreMutator) GetEpochStateID ¶
func (_m *KVStoreMutator) GetEpochStateID() flow.Identifier
GetEpochStateID provides a mock function with no fields
func (*KVStoreMutator) GetExecutionComponentVersion ¶ added in v0.41.0
func (_m *KVStoreMutator) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
GetExecutionComponentVersion provides a mock function with no fields
func (*KVStoreMutator) GetExecutionComponentVersionUpgrade ¶ added in v0.41.0
func (_m *KVStoreMutator) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetExecutionComponentVersionUpgrade provides a mock function with no fields
func (*KVStoreMutator) GetExecutionMeteringParameters ¶ added in v0.41.0
func (_m *KVStoreMutator) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
GetExecutionMeteringParameters provides a mock function with no fields
func (*KVStoreMutator) GetExecutionMeteringParametersUpgrade ¶ added in v0.41.0
func (_m *KVStoreMutator) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
GetExecutionMeteringParametersUpgrade provides a mock function with no fields
func (*KVStoreMutator) GetFinalizationSafetyThreshold ¶ added in v0.39.0
func (_m *KVStoreMutator) GetFinalizationSafetyThreshold() uint64
GetFinalizationSafetyThreshold provides a mock function with no fields
func (*KVStoreMutator) GetProtocolStateVersion ¶
func (_m *KVStoreMutator) GetProtocolStateVersion() uint64
GetProtocolStateVersion provides a mock function with no fields
func (*KVStoreMutator) GetVersionUpgrade ¶
func (_m *KVStoreMutator) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
GetVersionUpgrade provides a mock function with no fields
func (*KVStoreMutator) ID ¶
func (_m *KVStoreMutator) ID() flow.Identifier
ID provides a mock function with no fields
func (*KVStoreMutator) SetEpochExtensionViewCount ¶ added in v0.37.1
func (_m *KVStoreMutator) SetEpochExtensionViewCount(viewCount uint64) error
SetEpochExtensionViewCount provides a mock function with given fields: viewCount
func (*KVStoreMutator) SetEpochStateID ¶
func (_m *KVStoreMutator) SetEpochStateID(stateID flow.Identifier)
SetEpochStateID provides a mock function with given fields: stateID
func (*KVStoreMutator) SetVersionUpgrade ¶
func (_m *KVStoreMutator) SetVersionUpgrade(version *protocol.ViewBasedActivator[uint64])
SetVersionUpgrade provides a mock function with given fields: version
func (*KVStoreMutator) VersionedEncode ¶
func (_m *KVStoreMutator) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function with no fields
type KeyValueStoreStateMachine ¶ added in v0.41.0
KeyValueStoreStateMachine is an autogenerated mock type for the KeyValueStoreStateMachine type
func NewKeyValueStoreStateMachine ¶ added in v0.41.0
func NewKeyValueStoreStateMachine[P any](t interface { mock.TestingT Cleanup(func()) }) *KeyValueStoreStateMachine[P]
NewKeyValueStoreStateMachine creates a new instance of KeyValueStoreStateMachine. 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 (*KeyValueStoreStateMachine[P]) Build ¶ added in v0.41.0
func (_m *KeyValueStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
Build provides a mock function with no fields
func (*KeyValueStoreStateMachine[P]) EvolveState ¶ added in v0.41.0
func (_m *KeyValueStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
EvolveState provides a mock function with given fields: sealedServiceEvents
func (*KeyValueStoreStateMachine[P]) ParentState ¶ added in v0.41.0
func (_m *KeyValueStoreStateMachine[P]) ParentState() protocol.KVStoreReader
ParentState provides a mock function with no fields
func (*KeyValueStoreStateMachine[P]) View ¶ added in v0.41.0
func (_m *KeyValueStoreStateMachine[P]) View() uint64
View provides a mock function with no fields
type KeyValueStoreStateMachineFactory ¶
KeyValueStoreStateMachineFactory is an autogenerated mock type for the KeyValueStoreStateMachineFactory type
func NewKeyValueStoreStateMachineFactory ¶
func NewKeyValueStoreStateMachineFactory(t interface { mock.TestingT Cleanup(func()) }) *KeyValueStoreStateMachineFactory
NewKeyValueStoreStateMachineFactory creates a new instance of KeyValueStoreStateMachineFactory. 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 (*KeyValueStoreStateMachineFactory) Create ¶
func (_m *KeyValueStoreStateMachineFactory) Create(candidateView uint64, parentID flow.Identifier, parentState protocol.KVStoreReader, mutator protocol_state.KVStoreMutator) (protocol_state.KeyValueStoreStateMachine, error)
Create provides a mock function with given fields: candidateView, parentID, parentState, mutator
type OrthogonalStoreStateMachine ¶
OrthogonalStoreStateMachine is an autogenerated mock type for the OrthogonalStoreStateMachine type
func NewOrthogonalStoreStateMachine ¶
func NewOrthogonalStoreStateMachine[P any](t interface { mock.TestingT Cleanup(func()) }) *OrthogonalStoreStateMachine[P]
NewOrthogonalStoreStateMachine creates a new instance of OrthogonalStoreStateMachine. 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 (*OrthogonalStoreStateMachine[P]) Build ¶
func (_m *OrthogonalStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
Build provides a mock function with no fields
func (*OrthogonalStoreStateMachine[P]) EvolveState ¶
func (_m *OrthogonalStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
EvolveState provides a mock function with given fields: sealedServiceEvents
func (*OrthogonalStoreStateMachine[P]) ParentState ¶
func (_m *OrthogonalStoreStateMachine[P]) ParentState() P
ParentState provides a mock function with no fields
func (*OrthogonalStoreStateMachine[P]) View ¶
func (_m *OrthogonalStoreStateMachine[P]) View() uint64
View provides a mock function with no fields
type ProtocolKVStore ¶
ProtocolKVStore is an autogenerated mock type for the ProtocolKVStore type
func NewProtocolKVStore ¶
func NewProtocolKVStore(t interface { mock.TestingT Cleanup(func()) }) *ProtocolKVStore
NewProtocolKVStore creates a new instance of ProtocolKVStore. 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 (*ProtocolKVStore) BatchIndex ¶ added in v0.43.0
func (_m *ProtocolKVStore) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, stateID flow.Identifier) error
BatchIndex provides a mock function with given fields: lctx, rw, blockID, stateID
func (*ProtocolKVStore) BatchStore ¶ added in v0.43.0
func (_m *ProtocolKVStore) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, stateID flow.Identifier, kvStore protocol.KVStoreReader) error
BatchStore provides a mock function with given fields: lctx, rw, stateID, kvStore
func (*ProtocolKVStore) ByBlockID ¶
func (_m *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)
ByBlockID provides a mock function with given fields: blockID
func (*ProtocolKVStore) ByID ¶
func (_m *ProtocolKVStore) ByID(id flow.Identifier) (protocol_state.KVStoreAPI, error)
ByID provides a mock function with given fields: id
type StateMachineEventsTelemetryFactory ¶ added in v0.37.1
StateMachineEventsTelemetryFactory is an autogenerated mock type for the StateMachineEventsTelemetryFactory type
func NewStateMachineEventsTelemetryFactory ¶ added in v0.37.1
func NewStateMachineEventsTelemetryFactory(t interface { mock.TestingT Cleanup(func()) }) *StateMachineEventsTelemetryFactory
NewStateMachineEventsTelemetryFactory creates a new instance of StateMachineEventsTelemetryFactory. 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 (*StateMachineEventsTelemetryFactory) Execute ¶ added in v0.37.1
func (_m *StateMachineEventsTelemetryFactory) Execute(candidateView uint64) protocol_state.StateMachineTelemetryConsumer
Execute provides a mock function with given fields: candidateView
type StateMachineTelemetryConsumer ¶ added in v0.37.1
StateMachineTelemetryConsumer is an autogenerated mock type for the StateMachineTelemetryConsumer type
func NewStateMachineTelemetryConsumer ¶ added in v0.37.1
func NewStateMachineTelemetryConsumer(t interface { mock.TestingT Cleanup(func()) }) *StateMachineTelemetryConsumer
NewStateMachineTelemetryConsumer creates a new instance of StateMachineTelemetryConsumer. 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 (*StateMachineTelemetryConsumer) OnInvalidServiceEvent ¶ added in v0.37.1
func (_m *StateMachineTelemetryConsumer) OnInvalidServiceEvent(event flow.ServiceEvent, err error)
OnInvalidServiceEvent provides a mock function with given fields: event, err
func (*StateMachineTelemetryConsumer) OnServiceEventProcessed ¶ added in v0.37.1
func (_m *StateMachineTelemetryConsumer) OnServiceEventProcessed(event flow.ServiceEvent)
OnServiceEventProcessed provides a mock function with given fields: event
func (*StateMachineTelemetryConsumer) OnServiceEventReceived ¶ added in v0.37.1
func (_m *StateMachineTelemetryConsumer) OnServiceEventReceived(event flow.ServiceEvent)
OnServiceEventReceived provides a mock function with given fields: event