mocks

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockController

type MockController struct {
	// contains filtered or unexported fields
}

MockController is a mock of Controller interface.

func NewMockController

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) AllActiveIndices added in v1.1.0

func (m *MockController) AllActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex

AllActiveIndices mocks base method.

func (*MockController) CommitteeActiveIndices added in v1.1.0

func (m *MockController) CommitteeActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex

CommitteeActiveIndices mocks base method.

func (*MockController) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockController) ExecuteDuty added in v1.1.0

func (m *MockController) ExecuteDuty(logger *zap.Logger, duty *types.Duty)

ExecuteDuty mocks base method.

func (*MockController) ExitValidator added in v1.2.2

func (m *MockController) ExitValidator(pubKey phase0.BLSPubKey, blockNumber uint64, validatorIndex phase0.ValidatorIndex) error

ExitValidator mocks base method.

func (*MockController) GetOperatorData added in v0.4.7

func (m *MockController) GetOperatorData() *storage.OperatorData

GetOperatorData mocks base method.

func (*MockController) GetOperatorShares added in v1.1.0

func (m *MockController) GetOperatorShares() []*types0.SSVShare

GetOperatorShares mocks base method.

func (*MockController) GetValidator

func (m *MockController) GetValidator(pubKey string) (*validator.Validator, bool)

GetValidator mocks base method.

func (*MockController) GetValidatorStats added in v0.3.2

func (m *MockController) GetValidatorStats() (uint64, uint64, uint64, error)

GetValidatorStats mocks base method.

func (*MockController) IndicesChangeChan added in v1.1.0

func (m *MockController) IndicesChangeChan() chan struct{}

IndicesChangeChan mocks base method.

func (*MockController) LiquidateCluster added in v1.1.0

func (m *MockController) LiquidateCluster(owner common.Address, operatorIDs []uint64, toLiquidate []*types0.SSVShare) error

LiquidateCluster mocks base method.

func (*MockController) ReactivateCluster added in v1.1.0

func (m *MockController) ReactivateCluster(owner common.Address, operatorIDs []uint64, toReactivate []*types0.SSVShare) error

ReactivateCluster mocks base method.

func (*MockController) SetOperatorData added in v1.1.0

func (m *MockController) SetOperatorData(data *storage.OperatorData)

SetOperatorData mocks base method.

func (*MockController) StartNetworkHandlers added in v0.3.0

func (m *MockController) StartNetworkHandlers()

StartNetworkHandlers mocks base method.

func (*MockController) StartValidator added in v1.1.0

func (m *MockController) StartValidator(share *types0.SSVShare) error

StartValidator mocks base method.

func (*MockController) StartValidators

func (m *MockController) StartValidators()

StartValidators mocks base method.

func (*MockController) StopValidator added in v1.1.0

func (m *MockController) StopValidator(pubKey types.ValidatorPK) error

StopValidator mocks base method.

func (*MockController) UpdateFeeRecipient added in v1.1.0

func (m *MockController) UpdateFeeRecipient(owner, recipient common.Address) error

UpdateFeeRecipient mocks base method.

func (*MockController) UpdateValidatorMetaDataLoop

func (m *MockController) UpdateValidatorMetaDataLoop()

UpdateValidatorMetaDataLoop mocks base method.

func (*MockController) ValidatorExitChan added in v1.2.2

func (m *MockController) ValidatorExitChan() <-chan duties.ExitDescriptor

ValidatorExitChan mocks base method.

type MockControllerMockRecorder

type MockControllerMockRecorder struct {
	// contains filtered or unexported fields
}

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) AllActiveIndices added in v1.1.0

func (mr *MockControllerMockRecorder) AllActiveIndices(epoch interface{}) *gomock.Call

AllActiveIndices indicates an expected call of AllActiveIndices.

func (*MockControllerMockRecorder) CommitteeActiveIndices added in v1.1.0

func (mr *MockControllerMockRecorder) CommitteeActiveIndices(epoch interface{}) *gomock.Call

CommitteeActiveIndices indicates an expected call of CommitteeActiveIndices.

func (*MockControllerMockRecorder) ExecuteDuty added in v1.1.0

func (mr *MockControllerMockRecorder) ExecuteDuty(logger, duty interface{}) *gomock.Call

ExecuteDuty indicates an expected call of ExecuteDuty.

func (*MockControllerMockRecorder) ExitValidator added in v1.2.2

func (mr *MockControllerMockRecorder) ExitValidator(pubKey, blockNumber, validatorIndex interface{}) *gomock.Call

ExitValidator indicates an expected call of ExitValidator.

func (*MockControllerMockRecorder) GetOperatorData added in v0.4.7

func (mr *MockControllerMockRecorder) GetOperatorData() *gomock.Call

GetOperatorData indicates an expected call of GetOperatorData.

func (*MockControllerMockRecorder) GetOperatorShares added in v1.1.0

func (mr *MockControllerMockRecorder) GetOperatorShares() *gomock.Call

GetOperatorShares indicates an expected call of GetOperatorShares.

func (*MockControllerMockRecorder) GetValidator

func (mr *MockControllerMockRecorder) GetValidator(pubKey interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockControllerMockRecorder) GetValidatorStats added in v0.3.2

func (mr *MockControllerMockRecorder) GetValidatorStats() *gomock.Call

GetValidatorStats indicates an expected call of GetValidatorStats.

func (*MockControllerMockRecorder) IndicesChangeChan added in v1.1.0

func (mr *MockControllerMockRecorder) IndicesChangeChan() *gomock.Call

IndicesChangeChan indicates an expected call of IndicesChangeChan.

func (*MockControllerMockRecorder) LiquidateCluster added in v1.1.0

func (mr *MockControllerMockRecorder) LiquidateCluster(owner, operatorIDs, toLiquidate interface{}) *gomock.Call

LiquidateCluster indicates an expected call of LiquidateCluster.

func (*MockControllerMockRecorder) ReactivateCluster added in v1.1.0

func (mr *MockControllerMockRecorder) ReactivateCluster(owner, operatorIDs, toReactivate interface{}) *gomock.Call

ReactivateCluster indicates an expected call of ReactivateCluster.

func (*MockControllerMockRecorder) SetOperatorData added in v1.1.0

func (mr *MockControllerMockRecorder) SetOperatorData(data interface{}) *gomock.Call

SetOperatorData indicates an expected call of SetOperatorData.

func (*MockControllerMockRecorder) StartNetworkHandlers added in v0.3.0

func (mr *MockControllerMockRecorder) StartNetworkHandlers() *gomock.Call

StartNetworkHandlers indicates an expected call of StartNetworkHandlers.

func (*MockControllerMockRecorder) StartValidator added in v1.1.0

func (mr *MockControllerMockRecorder) StartValidator(share interface{}) *gomock.Call

StartValidator indicates an expected call of StartValidator.

func (*MockControllerMockRecorder) StartValidators

func (mr *MockControllerMockRecorder) StartValidators() *gomock.Call

StartValidators indicates an expected call of StartValidators.

func (*MockControllerMockRecorder) StopValidator added in v1.1.0

func (mr *MockControllerMockRecorder) StopValidator(pubKey interface{}) *gomock.Call

StopValidator indicates an expected call of StopValidator.

func (*MockControllerMockRecorder) UpdateFeeRecipient added in v1.1.0

func (mr *MockControllerMockRecorder) UpdateFeeRecipient(owner, recipient interface{}) *gomock.Call

UpdateFeeRecipient indicates an expected call of UpdateFeeRecipient.

func (*MockControllerMockRecorder) UpdateValidatorMetaDataLoop

func (mr *MockControllerMockRecorder) UpdateValidatorMetaDataLoop() *gomock.Call

UpdateValidatorMetaDataLoop indicates an expected call of UpdateValidatorMetaDataLoop.

func (*MockControllerMockRecorder) ValidatorExitChan added in v1.2.2

func (mr *MockControllerMockRecorder) ValidatorExitChan() *gomock.Call

ValidatorExitChan indicates an expected call of ValidatorExitChan.

type MockP2PNetwork added in v1.3.0

type MockP2PNetwork struct {
	// contains filtered or unexported fields
}

MockP2PNetwork is a mock of P2PNetwork interface.

func NewMockP2PNetwork added in v1.3.0

func NewMockP2PNetwork(ctrl *gomock.Controller) *MockP2PNetwork

NewMockP2PNetwork creates a new mock instance.

func (*MockP2PNetwork) Broadcast added in v1.3.0

func (m *MockP2PNetwork) Broadcast(message *types.SSVMessage) error

Broadcast mocks base method.

func (*MockP2PNetwork) Close added in v1.3.0

func (m *MockP2PNetwork) Close() error

Close mocks base method.

func (*MockP2PNetwork) EXPECT added in v1.3.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockP2PNetwork) GetHistory added in v1.3.0

func (m *MockP2PNetwork) GetHistory(logger *zap.Logger, mid types.MessageID, from, to qbft.Height, targets ...string) ([]protocolp2p.SyncResult, qbft.Height, error)

GetHistory mocks base method.

func (*MockP2PNetwork) LastDecided added in v1.3.0

func (m *MockP2PNetwork) LastDecided(logger *zap.Logger, mid types.MessageID) ([]protocolp2p.SyncResult, error)

LastDecided mocks base method.

func (*MockP2PNetwork) Peers added in v1.3.0

func (m *MockP2PNetwork) Peers(pk types.ValidatorPK) ([]peer.ID, error)

Peers mocks base method.

func (*MockP2PNetwork) RegisterHandlers added in v1.3.0

func (m *MockP2PNetwork) RegisterHandlers(logger *zap.Logger, handlers ...*protocolp2p.SyncHandler)

RegisterHandlers mocks base method.

func (*MockP2PNetwork) ReportValidation added in v1.3.0

func (m *MockP2PNetwork) ReportValidation(logger *zap.Logger, message *types.SSVMessage, res protocolp2p.MsgValidationResult)

ReportValidation mocks base method.

func (*MockP2PNetwork) Setup added in v1.3.0

func (m *MockP2PNetwork) Setup(logger *zap.Logger) error

Setup mocks base method.

func (*MockP2PNetwork) Start added in v1.3.0

func (m *MockP2PNetwork) Start(logger *zap.Logger) error

Start mocks base method.

func (*MockP2PNetwork) Subscribe added in v1.3.0

func (m *MockP2PNetwork) Subscribe(vpk types.ValidatorPK) error

Subscribe mocks base method.

func (*MockP2PNetwork) SubscribeAll added in v1.3.0

func (m *MockP2PNetwork) SubscribeAll(logger *zap.Logger) error

SubscribeAll mocks base method.

func (*MockP2PNetwork) SubscribeRandoms added in v1.3.0

func (m *MockP2PNetwork) SubscribeRandoms(logger *zap.Logger, numSubnets int) error

SubscribeRandoms mocks base method.

func (*MockP2PNetwork) SyncDecidedByRange added in v1.3.0

func (m *MockP2PNetwork) SyncDecidedByRange(identifier types.MessageID, from, to qbft.Height)

SyncDecidedByRange mocks base method.

func (*MockP2PNetwork) SyncHighestDecided added in v1.3.0

func (m *MockP2PNetwork) SyncHighestDecided(identifier types.MessageID) error

SyncHighestDecided mocks base method.

func (*MockP2PNetwork) UpdateSubnets added in v1.3.0

func (m *MockP2PNetwork) UpdateSubnets(logger *zap.Logger)

UpdateSubnets mocks base method.

func (*MockP2PNetwork) UseMessageRouter added in v1.3.0

func (m *MockP2PNetwork) UseMessageRouter(router network.MessageRouter)

UseMessageRouter mocks base method.

type MockP2PNetworkMockRecorder added in v1.3.0

type MockP2PNetworkMockRecorder struct {
	// contains filtered or unexported fields
}

MockP2PNetworkMockRecorder is the mock recorder for MockP2PNetwork.

func (*MockP2PNetworkMockRecorder) Broadcast added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Broadcast(message interface{}) *gomock.Call

Broadcast indicates an expected call of Broadcast.

func (*MockP2PNetworkMockRecorder) Close added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockP2PNetworkMockRecorder) GetHistory added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) GetHistory(logger, mid, from, to interface{}, targets ...interface{}) *gomock.Call

GetHistory indicates an expected call of GetHistory.

func (*MockP2PNetworkMockRecorder) LastDecided added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) LastDecided(logger, mid interface{}) *gomock.Call

LastDecided indicates an expected call of LastDecided.

func (*MockP2PNetworkMockRecorder) Peers added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Peers(pk interface{}) *gomock.Call

Peers indicates an expected call of Peers.

func (*MockP2PNetworkMockRecorder) RegisterHandlers added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) RegisterHandlers(logger interface{}, handlers ...interface{}) *gomock.Call

RegisterHandlers indicates an expected call of RegisterHandlers.

func (*MockP2PNetworkMockRecorder) ReportValidation added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) ReportValidation(logger, message, res interface{}) *gomock.Call

ReportValidation indicates an expected call of ReportValidation.

func (*MockP2PNetworkMockRecorder) Setup added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Setup(logger interface{}) *gomock.Call

Setup indicates an expected call of Setup.

func (*MockP2PNetworkMockRecorder) Start added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Start(logger interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockP2PNetworkMockRecorder) Subscribe added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) Subscribe(vpk interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockP2PNetworkMockRecorder) SubscribeAll added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) SubscribeAll(logger interface{}) *gomock.Call

SubscribeAll indicates an expected call of SubscribeAll.

func (*MockP2PNetworkMockRecorder) SubscribeRandoms added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) SubscribeRandoms(logger, numSubnets interface{}) *gomock.Call

SubscribeRandoms indicates an expected call of SubscribeRandoms.

func (*MockP2PNetworkMockRecorder) SyncDecidedByRange added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) SyncDecidedByRange(identifier, from, to interface{}) *gomock.Call

SyncDecidedByRange indicates an expected call of SyncDecidedByRange.

func (*MockP2PNetworkMockRecorder) SyncHighestDecided added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) SyncHighestDecided(identifier interface{}) *gomock.Call

SyncHighestDecided indicates an expected call of SyncHighestDecided.

func (*MockP2PNetworkMockRecorder) UpdateSubnets added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) UpdateSubnets(logger interface{}) *gomock.Call

UpdateSubnets indicates an expected call of UpdateSubnets.

func (*MockP2PNetworkMockRecorder) UseMessageRouter added in v1.3.0

func (mr *MockP2PNetworkMockRecorder) UseMessageRouter(router interface{}) *gomock.Call

UseMessageRouter indicates an expected call of UseMessageRouter.

type MockRecipients added in v1.3.0

type MockRecipients struct {
	// contains filtered or unexported fields
}

MockRecipients is a mock of Recipients interface.

func NewMockRecipients added in v1.3.0

func NewMockRecipients(ctrl *gomock.Controller) *MockRecipients

NewMockRecipients creates a new mock instance.

func (*MockRecipients) EXPECT added in v1.3.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRecipients) GetRecipientData added in v1.3.0

func (m *MockRecipients) GetRecipientData(r basedb.Reader, owner common.Address) (*storage.RecipientData, bool, error)

GetRecipientData mocks base method.

type MockRecipientsMockRecorder added in v1.3.0

type MockRecipientsMockRecorder struct {
	// contains filtered or unexported fields
}

MockRecipientsMockRecorder is the mock recorder for MockRecipients.

func (*MockRecipientsMockRecorder) GetRecipientData added in v1.3.0

func (mr *MockRecipientsMockRecorder) GetRecipientData(r, owner interface{}) *gomock.Call

GetRecipientData indicates an expected call of GetRecipientData.

type MockSharesStorage added in v1.3.0

type MockSharesStorage struct {
	// contains filtered or unexported fields
}

MockSharesStorage is a mock of SharesStorage interface.

func NewMockSharesStorage added in v1.3.0

func NewMockSharesStorage(ctrl *gomock.Controller) *MockSharesStorage

NewMockSharesStorage creates a new mock instance.

func (*MockSharesStorage) EXPECT added in v1.3.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSharesStorage) Get added in v1.3.0

func (m *MockSharesStorage) Get(txn basedb.Reader, pubKey []byte) *types0.SSVShare

Get mocks base method.

func (*MockSharesStorage) List added in v1.3.0

func (m *MockSharesStorage) List(txn basedb.Reader, filters ...storage.SharesFilter) []*types0.SSVShare

List mocks base method.

func (*MockSharesStorage) UpdateValidatorMetadata added in v1.3.0

func (m *MockSharesStorage) UpdateValidatorMetadata(pk string, metadata *beacon.ValidatorMetadata) error

UpdateValidatorMetadata mocks base method.

type MockSharesStorageMockRecorder added in v1.3.0

type MockSharesStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockSharesStorageMockRecorder is the mock recorder for MockSharesStorage.

func (*MockSharesStorageMockRecorder) Get added in v1.3.0

func (mr *MockSharesStorageMockRecorder) Get(txn, pubKey interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSharesStorageMockRecorder) List added in v1.3.0

func (mr *MockSharesStorageMockRecorder) List(txn interface{}, filters ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockSharesStorageMockRecorder) UpdateValidatorMetadata added in v1.3.0

func (mr *MockSharesStorageMockRecorder) UpdateValidatorMetadata(pk, metadata interface{}) *gomock.Call

UpdateValidatorMetadata indicates an expected call of UpdateValidatorMetadata.

type MockValidator added in v1.3.0

type MockValidator struct {
	// contains filtered or unexported fields
}

MockValidator is a mock of Validator interface.

func NewMockValidator added in v1.3.0

func NewMockValidator(ctrl *gomock.Controller) *MockValidator

NewMockValidator creates a new mock instance.

func (*MockValidator) EXPECT added in v1.3.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidator) GetShare added in v1.3.0

func (m *MockValidator) GetShare() *types0.SSVShare

GetShare mocks base method.

func (*MockValidator) ProcessMessage added in v1.3.0

func (m *MockValidator) ProcessMessage(logger *zap.Logger, msg *queue.DecodedSSVMessage) error

ProcessMessage mocks base method.

func (*MockValidator) StartDuty added in v1.3.0

func (m *MockValidator) StartDuty(logger *zap.Logger, duty *types.Duty) error

StartDuty mocks base method.

type MockValidatorMockRecorder added in v1.3.0

type MockValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockValidatorMockRecorder is the mock recorder for MockValidator.

func (*MockValidatorMockRecorder) GetShare added in v1.3.0

func (mr *MockValidatorMockRecorder) GetShare() *gomock.Call

GetShare indicates an expected call of GetShare.

func (*MockValidatorMockRecorder) ProcessMessage added in v1.3.0

func (mr *MockValidatorMockRecorder) ProcessMessage(logger, msg interface{}) *gomock.Call

ProcessMessage indicates an expected call of ProcessMessage.

func (*MockValidatorMockRecorder) StartDuty added in v1.3.0

func (mr *MockValidatorMockRecorder) StartDuty(logger, duty interface{}) *gomock.Call

StartDuty indicates an expected call of StartDuty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL