Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBeaconNode
- func (m *MockBeaconNode) AttesterDuties(ctx context.Context, epoch phase0.Epoch, ...) ([]*v1.AttesterDuty, error)
- func (m *MockBeaconNode) EXPECT() *MockBeaconNodeMockRecorder
- func (m *MockBeaconNode) Events(ctx context.Context, topics []string, handler client.EventHandlerFunc) error
- func (m *MockBeaconNode) ProposerDuties(ctx context.Context, epoch phase0.Epoch, ...) ([]*v1.ProposerDuty, error)
- func (m *MockBeaconNode) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscription []*v1.BeaconCommitteeSubscription) error
- func (m *MockBeaconNode) SubmitSyncCommitteeSubscriptions(ctx context.Context, subscription []*v1.SyncCommitteeSubscription) error
- func (m *MockBeaconNode) SyncCommitteeDuties(ctx context.Context, epoch phase0.Epoch, indices []phase0.ValidatorIndex) ([]*v1.SyncCommitteeDuty, error)
- type MockBeaconNodeMockRecorder
- func (mr *MockBeaconNodeMockRecorder) AttesterDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call
- func (mr *MockBeaconNodeMockRecorder) Events(ctx, topics, handler interface{}) *gomock.Call
- func (mr *MockBeaconNodeMockRecorder) ProposerDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call
- func (mr *MockBeaconNodeMockRecorder) SubmitBeaconCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call
- func (mr *MockBeaconNodeMockRecorder) SubmitSyncCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call
- func (mr *MockBeaconNodeMockRecorder) SyncCommitteeDuties(ctx, epoch, indices interface{}) *gomock.Call
- type MockExecutionClient
- type MockExecutionClientMockRecorder
- type MockSlotTicker
- type MockSlotTickerMockRecorder
- type MockValidatorController
- func (m *MockValidatorController) AllActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
- func (m *MockValidatorController) CommitteeActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
- func (m *MockValidatorController) EXPECT() *MockValidatorControllerMockRecorder
- func (m *MockValidatorController) GetOperatorShares() []*types.SSVShare
- type MockValidatorControllerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBeaconNode ¶ added in v1.1.0
type MockBeaconNode struct {
// contains filtered or unexported fields
}
MockBeaconNode is a mock of BeaconNode interface.
func NewMockBeaconNode ¶ added in v1.1.0
func NewMockBeaconNode(ctrl *gomock.Controller) *MockBeaconNode
NewMockBeaconNode creates a new mock instance.
func (*MockBeaconNode) AttesterDuties ¶ added in v1.1.0
func (m *MockBeaconNode) AttesterDuties(ctx context.Context, epoch phase0.Epoch, validatorIndices []phase0.ValidatorIndex) ([]*v1.AttesterDuty, error)
AttesterDuties mocks base method.
func (*MockBeaconNode) EXPECT ¶ added in v1.1.0
func (m *MockBeaconNode) EXPECT() *MockBeaconNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeaconNode) Events ¶ added in v1.1.0
func (m *MockBeaconNode) Events(ctx context.Context, topics []string, handler client.EventHandlerFunc) error
Events mocks base method.
func (*MockBeaconNode) ProposerDuties ¶ added in v1.1.0
func (m *MockBeaconNode) ProposerDuties(ctx context.Context, epoch phase0.Epoch, validatorIndices []phase0.ValidatorIndex) ([]*v1.ProposerDuty, error)
ProposerDuties mocks base method.
func (*MockBeaconNode) SubmitBeaconCommitteeSubscriptions ¶ added in v1.1.0
func (m *MockBeaconNode) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscription []*v1.BeaconCommitteeSubscription) error
SubmitBeaconCommitteeSubscriptions mocks base method.
func (*MockBeaconNode) SubmitSyncCommitteeSubscriptions ¶ added in v1.1.0
func (m *MockBeaconNode) SubmitSyncCommitteeSubscriptions(ctx context.Context, subscription []*v1.SyncCommitteeSubscription) error
SubmitSyncCommitteeSubscriptions mocks base method.
func (*MockBeaconNode) SyncCommitteeDuties ¶ added in v1.1.0
func (m *MockBeaconNode) SyncCommitteeDuties(ctx context.Context, epoch phase0.Epoch, indices []phase0.ValidatorIndex) ([]*v1.SyncCommitteeDuty, error)
SyncCommitteeDuties mocks base method.
type MockBeaconNodeMockRecorder ¶ added in v1.1.0
type MockBeaconNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconNodeMockRecorder is the mock recorder for MockBeaconNode.
func (*MockBeaconNodeMockRecorder) AttesterDuties ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) AttesterDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call
AttesterDuties indicates an expected call of AttesterDuties.
func (*MockBeaconNodeMockRecorder) Events ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) Events(ctx, topics, handler interface{}) *gomock.Call
Events indicates an expected call of Events.
func (*MockBeaconNodeMockRecorder) ProposerDuties ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) ProposerDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call
ProposerDuties indicates an expected call of ProposerDuties.
func (*MockBeaconNodeMockRecorder) SubmitBeaconCommitteeSubscriptions ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) SubmitBeaconCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call
SubmitBeaconCommitteeSubscriptions indicates an expected call of SubmitBeaconCommitteeSubscriptions.
func (*MockBeaconNodeMockRecorder) SubmitSyncCommitteeSubscriptions ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) SubmitSyncCommitteeSubscriptions(ctx, subscription interface{}) *gomock.Call
SubmitSyncCommitteeSubscriptions indicates an expected call of SubmitSyncCommitteeSubscriptions.
func (*MockBeaconNodeMockRecorder) SyncCommitteeDuties ¶ added in v1.1.0
func (mr *MockBeaconNodeMockRecorder) SyncCommitteeDuties(ctx, epoch, indices interface{}) *gomock.Call
SyncCommitteeDuties indicates an expected call of SyncCommitteeDuties.
type MockExecutionClient ¶ added in v1.2.2
type MockExecutionClient struct {
// contains filtered or unexported fields
}
MockExecutionClient is a mock of ExecutionClient interface.
func NewMockExecutionClient ¶ added in v1.2.2
func NewMockExecutionClient(ctrl *gomock.Controller) *MockExecutionClient
NewMockExecutionClient creates a new mock instance.
func (*MockExecutionClient) BlockByNumber ¶ added in v1.2.2
func (m *MockExecutionClient) BlockByNumber(ctx context.Context, blockNumber *big.Int) (*types0.Block, error)
BlockByNumber mocks base method.
func (*MockExecutionClient) EXPECT ¶ added in v1.2.2
func (m *MockExecutionClient) EXPECT() *MockExecutionClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExecutionClientMockRecorder ¶ added in v1.2.2
type MockExecutionClientMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutionClientMockRecorder is the mock recorder for MockExecutionClient.
func (*MockExecutionClientMockRecorder) BlockByNumber ¶ added in v1.2.2
func (mr *MockExecutionClientMockRecorder) BlockByNumber(ctx, blockNumber interface{}) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
type MockSlotTicker ¶ added in v1.1.0
type MockSlotTicker struct {
// contains filtered or unexported fields
}
MockSlotTicker is a mock of SlotTicker interface.
func NewMockSlotTicker ¶ added in v1.1.0
func NewMockSlotTicker(ctrl *gomock.Controller) *MockSlotTicker
NewMockSlotTicker creates a new mock instance.
func (*MockSlotTicker) EXPECT ¶ added in v1.1.0
func (m *MockSlotTicker) EXPECT() *MockSlotTickerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlotTicker) Next ¶ added in v1.1.0
func (m *MockSlotTicker) Next() <-chan time.Time
Next mocks base method.
func (*MockSlotTicker) Slot ¶ added in v1.1.0
func (m *MockSlotTicker) Slot() phase0.Slot
Slot mocks base method.
type MockSlotTickerMockRecorder ¶ added in v1.1.0
type MockSlotTickerMockRecorder struct {
// contains filtered or unexported fields
}
MockSlotTickerMockRecorder is the mock recorder for MockSlotTicker.
func (*MockSlotTickerMockRecorder) Next ¶ added in v1.1.0
func (mr *MockSlotTickerMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockSlotTickerMockRecorder) Slot ¶ added in v1.1.0
func (mr *MockSlotTickerMockRecorder) Slot() *gomock.Call
Slot indicates an expected call of Slot.
type MockValidatorController ¶ added in v1.1.0
type MockValidatorController struct {
// contains filtered or unexported fields
}
MockValidatorController is a mock of ValidatorController interface.
func NewMockValidatorController ¶ added in v1.1.0
func NewMockValidatorController(ctrl *gomock.Controller) *MockValidatorController
NewMockValidatorController creates a new mock instance.
func (*MockValidatorController) AllActiveIndices ¶ added in v1.1.0
func (m *MockValidatorController) AllActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
AllActiveIndices mocks base method.
func (*MockValidatorController) CommitteeActiveIndices ¶ added in v1.1.0
func (m *MockValidatorController) CommitteeActiveIndices(epoch phase0.Epoch) []phase0.ValidatorIndex
CommitteeActiveIndices mocks base method.
func (*MockValidatorController) EXPECT ¶ added in v1.1.0
func (m *MockValidatorController) EXPECT() *MockValidatorControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorController) GetOperatorShares ¶ added in v1.1.0
func (m *MockValidatorController) GetOperatorShares() []*types.SSVShare
GetOperatorShares mocks base method.
type MockValidatorControllerMockRecorder ¶ added in v1.1.0
type MockValidatorControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorControllerMockRecorder is the mock recorder for MockValidatorController.
func (*MockValidatorControllerMockRecorder) AllActiveIndices ¶ added in v1.1.0
func (mr *MockValidatorControllerMockRecorder) AllActiveIndices(epoch interface{}) *gomock.Call
AllActiveIndices indicates an expected call of AllActiveIndices.
func (*MockValidatorControllerMockRecorder) CommitteeActiveIndices ¶ added in v1.1.0
func (mr *MockValidatorControllerMockRecorder) CommitteeActiveIndices(epoch interface{}) *gomock.Call
CommitteeActiveIndices indicates an expected call of CommitteeActiveIndices.
func (*MockValidatorControllerMockRecorder) GetOperatorShares ¶ added in v1.1.0
func (mr *MockValidatorControllerMockRecorder) GetOperatorShares() *gomock.Call
GetOperatorShares indicates an expected call of GetOperatorShares.