Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockController
- func (m *MockController) AllActiveIndices(epoch phase0.Epoch, afterInit bool) []phase0.ValidatorIndex
- func (m *MockController) CommitteeActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
- func (m *MockController) EXPECT() *MockControllerMockRecorder
- func (m *MockController) ExecuteDuty(logger *zap.Logger, duty *types.Duty)
- func (m *MockController) ExitValidator(pubKey phase0.BLSPubKey, blockNumber uint64, ...) error
- func (m *MockController) GetOperatorShares() []*types0.SSVShare
- func (m *MockController) GetValidator(pubKey string) (*validator.Validator, bool)
- func (m *MockController) GetValidatorStats() (uint64, uint64, uint64, error)
- func (m *MockController) IndicesChangeChan() chan struct{}
- func (m *MockController) LiquidateCluster(owner common.Address, operatorIDs []uint64, toLiquidate []*types0.SSVShare) error
- func (m *MockController) ReactivateCluster(owner common.Address, operatorIDs []uint64, toReactivate []*types0.SSVShare) error
- func (m *MockController) StartNetworkHandlers()
- func (m *MockController) StartValidator(share *types0.SSVShare) error
- func (m *MockController) StartValidators()
- func (m *MockController) StopValidator(pubKey types.ValidatorPK) error
- func (m *MockController) UpdateFeeRecipient(owner, recipient common.Address) error
- func (m *MockController) UpdateValidatorMetaDataLoop()
- func (m *MockController) ValidatorExitChan() <-chan duties.ExitDescriptor
- type MockControllerMockRecorder
- func (mr *MockControllerMockRecorder) AllActiveIndices(epoch, afterInit interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) CommitteeActiveIndices(epoch interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) ExecuteDuty(logger, duty interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) ExitValidator(pubKey, blockNumber, validatorIndex interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) GetOperatorShares() *gomock.Call
- func (mr *MockControllerMockRecorder) GetValidator(pubKey interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) GetValidatorStats() *gomock.Call
- func (mr *MockControllerMockRecorder) IndicesChangeChan() *gomock.Call
- func (mr *MockControllerMockRecorder) LiquidateCluster(owner, operatorIDs, toLiquidate interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) ReactivateCluster(owner, operatorIDs, toReactivate interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) StartNetworkHandlers() *gomock.Call
- func (mr *MockControllerMockRecorder) StartValidator(share interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) StartValidators() *gomock.Call
- func (mr *MockControllerMockRecorder) StopValidator(pubKey interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) UpdateFeeRecipient(owner, recipient interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) UpdateValidatorMetaDataLoop() *gomock.Call
- func (mr *MockControllerMockRecorder) ValidatorExitChan() *gomock.Call
- type MockP2PNetwork
- func (m *MockP2PNetwork) Broadcast(message *types.SSVMessage) error
- func (m *MockP2PNetwork) EXPECT() *MockP2PNetworkMockRecorder
- func (m *MockP2PNetwork) Peers(pk types.ValidatorPK) ([]peer.ID, error)
- func (m *MockP2PNetwork) RegisterHandlers(logger *zap.Logger, handlers ...*protocolp2p.SyncHandler)
- func (m *MockP2PNetwork) SubscribeRandoms(logger *zap.Logger, numSubnets int) error
- func (m *MockP2PNetwork) UseMessageRouter(router network.MessageRouter)
- type MockP2PNetworkMockRecorder
- func (mr *MockP2PNetworkMockRecorder) Broadcast(message interface{}) *gomock.Call
- func (mr *MockP2PNetworkMockRecorder) Peers(pk interface{}) *gomock.Call
- func (mr *MockP2PNetworkMockRecorder) RegisterHandlers(logger interface{}, handlers ...interface{}) *gomock.Call
- func (mr *MockP2PNetworkMockRecorder) SubscribeRandoms(logger, numSubnets interface{}) *gomock.Call
- func (mr *MockP2PNetworkMockRecorder) UseMessageRouter(router interface{}) *gomock.Call
- type MockRecipients
- type MockRecipientsMockRecorder
- type MockSharesStorage
- func (m *MockSharesStorage) EXPECT() *MockSharesStorageMockRecorder
- func (m *MockSharesStorage) Get(txn basedb.Reader, pubKey []byte) *types0.SSVShare
- func (m *MockSharesStorage) List(txn basedb.Reader, filters ...storage.SharesFilter) []*types0.SSVShare
- func (m *MockSharesStorage) UpdateValidatorMetadata(pk string, metadata *beacon.ValidatorMetadata) error
- type MockSharesStorageMockRecorder
- type MockValidator
- type MockValidatorMockRecorder
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, afterInit bool) []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 ¶
func (m *MockController) EXPECT() *MockControllerMockRecorder
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) 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) 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, afterInit 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) 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) 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) EXPECT ¶ added in v1.3.0
func (m *MockP2PNetwork) EXPECT() *MockP2PNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) SubscribeRandoms ¶ added in v1.3.0
func (m *MockP2PNetwork) SubscribeRandoms(logger *zap.Logger, numSubnets int) error
SubscribeRandoms 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) 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) SubscribeRandoms ¶ added in v1.3.0
func (mr *MockP2PNetworkMockRecorder) SubscribeRandoms(logger, numSubnets interface{}) *gomock.Call
SubscribeRandoms indicates an expected call of SubscribeRandoms.
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
func (m *MockRecipients) EXPECT() *MockRecipientsMockRecorder
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
func (m *MockSharesStorage) EXPECT() *MockSharesStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
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.
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.