Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockController
- func (m *MockController) ActiveValidatorIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
- func (m *MockController) EXPECT() *MockControllerMockRecorder
- func (m *MockController) ExecuteDuty(logger *zap.Logger, duty *types.Duty)
- func (m *MockController) GetOperatorData() *storage.OperatorData
- 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) SetOperatorData(data *storage.OperatorData)
- func (m *MockController) StartNetworkHandlers()
- func (m *MockController) StartValidator(share *types0.SSVShare) error
- func (m *MockController) StartValidators()
- func (m *MockController) StopValidator(publicKey []byte) error
- func (m *MockController) UpdateFeeRecipient(owner, recipient common.Address) error
- func (m *MockController) UpdateValidatorMetaDataLoop()
- type MockControllerMockRecorder
- func (mr *MockControllerMockRecorder) ActiveValidatorIndices(epoch interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) ExecuteDuty(logger, duty interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) GetOperatorData() *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) SetOperatorData(data 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(publicKey interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) UpdateFeeRecipient(owner, recipient interface{}) *gomock.Call
- func (mr *MockControllerMockRecorder) UpdateValidatorMetaDataLoop() *gomock.Call
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) ActiveValidatorIndices ¶
func (m *MockController) ActiveValidatorIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
ActiveValidatorIndices 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) 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(publicKey []byte) 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.
type MockControllerMockRecorder ¶
type MockControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerMockRecorder is the mock recorder for MockController.
func (*MockControllerMockRecorder) ActiveValidatorIndices ¶
func (mr *MockControllerMockRecorder) ActiveValidatorIndices(epoch interface{}) *gomock.Call
ActiveValidatorIndices indicates an expected call of ActiveValidatorIndices.
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) 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(publicKey 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.