mocks

package
v0.5.5-jatov2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

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) ActiveValidatorIndices

func (m *MockController) ActiveValidatorIndices(logger *zap.Logger) []phase0.ValidatorIndex

ActiveValidatorIndices mocks base method.

func (*MockController) EXPECT

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

func (*MockController) Eth1EventHandler

func (m *MockController) Eth1EventHandler(logger *zap.Logger, ongoingSync bool) eth1.SyncEventHandler

Eth1EventHandler 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() []*types.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) ListenToEth1Events

func (m *MockController) ListenToEth1Events(logger *zap.Logger, feed *event.Feed)

ListenToEth1Events mocks base method.

func (*MockController) StartNetworkHandlers added in v0.3.0

func (m *MockController) StartNetworkHandlers(logger *zap.Logger)

StartNetworkHandlers mocks base method.

func (*MockController) StartValidators

func (m *MockController) StartValidators(logger *zap.Logger)

StartValidators mocks base method.

func (*MockController) UpdateValidatorMetaDataLoop

func (m *MockController) UpdateValidatorMetaDataLoop(logger *zap.Logger)

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(logger interface{}) *gomock.Call

ActiveValidatorIndices indicates an expected call of ActiveValidatorIndices.

func (*MockControllerMockRecorder) Eth1EventHandler

func (mr *MockControllerMockRecorder) Eth1EventHandler(logger, ongoingSync interface{}) *gomock.Call

Eth1EventHandler indicates an expected call of Eth1EventHandler.

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) ListenToEth1Events

func (mr *MockControllerMockRecorder) ListenToEth1Events(logger, feed interface{}) *gomock.Call

ListenToEth1Events indicates an expected call of ListenToEth1Events.

func (*MockControllerMockRecorder) StartNetworkHandlers added in v0.3.0

func (mr *MockControllerMockRecorder) StartNetworkHandlers(logger interface{}) *gomock.Call

StartNetworkHandlers indicates an expected call of StartNetworkHandlers.

func (*MockControllerMockRecorder) StartValidators

func (mr *MockControllerMockRecorder) StartValidators(logger interface{}) *gomock.Call

StartValidators indicates an expected call of StartValidators.

func (*MockControllerMockRecorder) UpdateValidatorMetaDataLoop

func (mr *MockControllerMockRecorder) UpdateValidatorMetaDataLoop(logger interface{}) *gomock.Call

UpdateValidatorMetaDataLoop indicates an expected call of UpdateValidatorMetaDataLoop.

type MockEventHandler

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

MockEventHandler is a mock of EventHandler interface.

func NewMockEventHandler

func NewMockEventHandler(ctrl *gomock.Controller) *MockEventHandler

NewMockEventHandler creates a new mock instance.

func (*MockEventHandler) BumpNonce

func (m *MockEventHandler) BumpNonce(owner common.Address) error

BumpNonce mocks base method.

func (*MockEventHandler) EXPECT

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

func (*MockEventHandler) GetEventData

func (m *MockEventHandler) GetEventData(txHash common.Hash) (*storage.EventData, bool, error)

GetEventData mocks base method.

func (*MockEventHandler) GetNextNonce

func (m *MockEventHandler) GetNextNonce(owner common.Address) (storage.Nonce, error)

GetNextNonce mocks base method.

func (*MockEventHandler) SaveEventData

func (m *MockEventHandler) SaveEventData(txHash common.Hash) error

SaveEventData mocks base method.

type MockEventHandlerMockRecorder

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

MockEventHandlerMockRecorder is the mock recorder for MockEventHandler.

func (*MockEventHandlerMockRecorder) BumpNonce

func (mr *MockEventHandlerMockRecorder) BumpNonce(owner interface{}) *gomock.Call

BumpNonce indicates an expected call of BumpNonce.

func (*MockEventHandlerMockRecorder) GetEventData

func (mr *MockEventHandlerMockRecorder) GetEventData(txHash interface{}) *gomock.Call

GetEventData indicates an expected call of GetEventData.

func (*MockEventHandlerMockRecorder) GetNextNonce

func (mr *MockEventHandlerMockRecorder) GetNextNonce(owner interface{}) *gomock.Call

GetNextNonce indicates an expected call of GetNextNonce.

func (*MockEventHandlerMockRecorder) SaveEventData

func (mr *MockEventHandlerMockRecorder) SaveEventData(txHash interface{}) *gomock.Call

SaveEventData indicates an expected call of SaveEventData.

Jump to

Keyboard shortcuts

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