Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBeaconClient
- func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
- func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
- func (m *MockBeaconClient) GetForkSchedule() (*client.GetForkScheduleResponse, error)
- func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*client.RegisteredProposersResponse, error)
- func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (client.AllValidatorsResponse, error)
- func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan client.HeadEvent)
- func (m *MockBeaconClient) SubscribeToPayloadAttributesEvents(arg0 chan client.PayloadAttributesEvent)
- func (m *MockBeaconClient) SyncStatus() (*client.SyncStatusPayloadData, error)
- type MockBeaconClientMockRecorder
- func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetForkSchedule() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SubscribeToPayloadAttributesEvents(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
- type MockDatastore
- type MockDatastoreMockRecorder
- type MockState
- func (m *MockState) Duties() structs.DutiesState
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) Fork() structs.ForkState
- func (m *MockState) HeadSlot() structs.Slot
- func (m *MockState) KnownValidators() structs.ValidatorsState
- func (m *MockState) KnownValidatorsUpdateTime() time.Time
- func (m *MockState) ParentBlockHash() types.Hash
- func (m *MockState) Randao(arg0 uint64, arg1 types.Hash) structs.RandaoState
- func (m *MockState) SetDuties(arg0 structs.DutiesState)
- func (m *MockState) SetFork(arg0 structs.ForkState)
- func (m *MockState) SetGenesis(arg0 structs.GenesisInfo)
- func (m *MockState) SetHeadSlotIfHigher(arg0 structs.Slot) (structs.Slot, bool)
- func (m *MockState) SetKnownValidators(arg0 structs.ValidatorsState)
- func (m *MockState) SetParentBlockHash(arg0 types.Hash)
- func (m *MockState) SetRandao(arg0 structs.RandaoState)
- func (m *MockState) SetWithdrawals(arg0 structs.WithdrawalsState)
- func (m *MockState) Withdrawals(arg0 uint64, arg1 types.Hash) structs.WithdrawalsState
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) Duties() *gomock.Call
- func (mr *MockStateMockRecorder) Fork() *gomock.Call
- func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call
- func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call
- func (mr *MockStateMockRecorder) KnownValidatorsUpdateTime() *gomock.Call
- func (mr *MockStateMockRecorder) ParentBlockHash() *gomock.Call
- func (mr *MockStateMockRecorder) Randao(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetDuties(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetFork(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetGenesis(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetHeadSlotIfHigher(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetKnownValidators(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetParentBlockHash(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetRandao(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetWithdrawals(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) Withdrawals(arg0, arg1 interface{}) *gomock.Call
- type MockValidatorCache
- type MockValidatorCacheMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBeaconClient ¶
type MockBeaconClient struct {
// contains filtered or unexported fields
}
MockBeaconClient is a mock of BeaconClient interface.
func NewMockBeaconClient ¶
func NewMockBeaconClient(ctrl *gomock.Controller) *MockBeaconClient
NewMockBeaconClient creates a new mock instance.
func (*MockBeaconClient) EXPECT ¶
func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeaconClient) Genesis ¶
func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
Genesis mocks base method.
func (*MockBeaconClient) GetForkSchedule ¶
func (m *MockBeaconClient) GetForkSchedule() (*client.GetForkScheduleResponse, error)
GetForkSchedule mocks base method.
func (*MockBeaconClient) GetProposerDuties ¶
func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*client.RegisteredProposersResponse, error)
GetProposerDuties mocks base method.
func (*MockBeaconClient) KnownValidators ¶
func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (client.AllValidatorsResponse, error)
KnownValidators mocks base method.
func (*MockBeaconClient) SubscribeToHeadEvents ¶
func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan client.HeadEvent)
SubscribeToHeadEvents mocks base method.
func (*MockBeaconClient) SubscribeToPayloadAttributesEvents ¶ added in v0.4.14
func (m *MockBeaconClient) SubscribeToPayloadAttributesEvents(arg0 chan client.PayloadAttributesEvent)
SubscribeToPayloadAttributesEvents mocks base method.
func (*MockBeaconClient) SyncStatus ¶
func (m *MockBeaconClient) SyncStatus() (*client.SyncStatusPayloadData, error)
SyncStatus mocks base method.
type MockBeaconClientMockRecorder ¶
type MockBeaconClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconClientMockRecorder is the mock recorder for MockBeaconClient.
func (*MockBeaconClientMockRecorder) Genesis ¶
func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockBeaconClientMockRecorder) GetForkSchedule ¶
func (mr *MockBeaconClientMockRecorder) GetForkSchedule() *gomock.Call
GetForkSchedule indicates an expected call of GetForkSchedule.
func (*MockBeaconClientMockRecorder) GetProposerDuties ¶
func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
GetProposerDuties indicates an expected call of GetProposerDuties.
func (*MockBeaconClientMockRecorder) KnownValidators ¶
func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
KnownValidators indicates an expected call of KnownValidators.
func (*MockBeaconClientMockRecorder) SubscribeToHeadEvents ¶
func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
SubscribeToHeadEvents indicates an expected call of SubscribeToHeadEvents.
func (*MockBeaconClientMockRecorder) SubscribeToPayloadAttributesEvents ¶ added in v0.4.14
func (mr *MockBeaconClientMockRecorder) SubscribeToPayloadAttributesEvents(arg0 interface{}) *gomock.Call
SubscribeToPayloadAttributesEvents indicates an expected call of SubscribeToPayloadAttributesEvents.
func (*MockBeaconClientMockRecorder) SyncStatus ¶
func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
SyncStatus indicates an expected call of SyncStatus.
type MockDatastore ¶
type MockDatastore struct {
// contains filtered or unexported fields
}
MockDatastore is a mock of Datastore interface.
func NewMockDatastore ¶
func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore
NewMockDatastore creates a new mock instance.
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatastore) GetRegistration ¶
func (m *MockDatastore) GetRegistration(arg0 context.Context, arg1 types.PublicKey) (types.SignedValidatorRegistration, error)
GetRegistration mocks base method.
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore.
func (*MockDatastoreMockRecorder) GetRegistration ¶
func (mr *MockDatastoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call
GetRegistration indicates an expected call of GetRegistration.
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface.
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance.
func (*MockState) Duties ¶
func (m *MockState) Duties() structs.DutiesState
Duties mocks base method.
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) KnownValidators ¶
func (m *MockState) KnownValidators() structs.ValidatorsState
KnownValidators mocks base method.
func (*MockState) KnownValidatorsUpdateTime ¶
KnownValidatorsUpdateTime mocks base method.
func (*MockState) ParentBlockHash ¶ added in v0.4.14
ParentBlockHash mocks base method.
func (*MockState) SetDuties ¶
func (m *MockState) SetDuties(arg0 structs.DutiesState)
SetDuties mocks base method.
func (*MockState) SetGenesis ¶
func (m *MockState) SetGenesis(arg0 structs.GenesisInfo)
SetGenesis mocks base method.
func (*MockState) SetHeadSlotIfHigher ¶ added in v0.6.0
SetHeadSlotIfHigher mocks base method.
func (*MockState) SetKnownValidators ¶
func (m *MockState) SetKnownValidators(arg0 structs.ValidatorsState)
SetKnownValidators mocks base method.
func (*MockState) SetParentBlockHash ¶ added in v0.4.14
SetParentBlockHash mocks base method.
func (*MockState) SetRandao ¶
func (m *MockState) SetRandao(arg0 structs.RandaoState)
SetRandao mocks base method.
func (*MockState) SetWithdrawals ¶
func (m *MockState) SetWithdrawals(arg0 structs.WithdrawalsState)
SetWithdrawals mocks base method.
func (*MockState) Withdrawals ¶
Withdrawals mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) Duties ¶
func (mr *MockStateMockRecorder) Duties() *gomock.Call
Duties indicates an expected call of Duties.
func (*MockStateMockRecorder) Fork ¶
func (mr *MockStateMockRecorder) Fork() *gomock.Call
Fork indicates an expected call of Fork.
func (*MockStateMockRecorder) HeadSlot ¶
func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call
HeadSlot indicates an expected call of HeadSlot.
func (*MockStateMockRecorder) KnownValidators ¶
func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call
KnownValidators indicates an expected call of KnownValidators.
func (*MockStateMockRecorder) KnownValidatorsUpdateTime ¶
func (mr *MockStateMockRecorder) KnownValidatorsUpdateTime() *gomock.Call
KnownValidatorsUpdateTime indicates an expected call of KnownValidatorsUpdateTime.
func (*MockStateMockRecorder) ParentBlockHash ¶ added in v0.4.14
func (mr *MockStateMockRecorder) ParentBlockHash() *gomock.Call
ParentBlockHash indicates an expected call of ParentBlockHash.
func (*MockStateMockRecorder) Randao ¶
func (mr *MockStateMockRecorder) Randao(arg0, arg1 interface{}) *gomock.Call
Randao indicates an expected call of Randao.
func (*MockStateMockRecorder) SetDuties ¶
func (mr *MockStateMockRecorder) SetDuties(arg0 interface{}) *gomock.Call
SetDuties indicates an expected call of SetDuties.
func (*MockStateMockRecorder) SetFork ¶
func (mr *MockStateMockRecorder) SetFork(arg0 interface{}) *gomock.Call
SetFork indicates an expected call of SetFork.
func (*MockStateMockRecorder) SetGenesis ¶
func (mr *MockStateMockRecorder) SetGenesis(arg0 interface{}) *gomock.Call
SetGenesis indicates an expected call of SetGenesis.
func (*MockStateMockRecorder) SetHeadSlotIfHigher ¶ added in v0.6.0
func (mr *MockStateMockRecorder) SetHeadSlotIfHigher(arg0 interface{}) *gomock.Call
SetHeadSlotIfHigher indicates an expected call of SetHeadSlotIfHigher.
func (*MockStateMockRecorder) SetKnownValidators ¶
func (mr *MockStateMockRecorder) SetKnownValidators(arg0 interface{}) *gomock.Call
SetKnownValidators indicates an expected call of SetKnownValidators.
func (*MockStateMockRecorder) SetParentBlockHash ¶ added in v0.4.14
func (mr *MockStateMockRecorder) SetParentBlockHash(arg0 interface{}) *gomock.Call
SetParentBlockHash indicates an expected call of SetParentBlockHash.
func (*MockStateMockRecorder) SetRandao ¶
func (mr *MockStateMockRecorder) SetRandao(arg0 interface{}) *gomock.Call
SetRandao indicates an expected call of SetRandao.
func (*MockStateMockRecorder) SetWithdrawals ¶
func (mr *MockStateMockRecorder) SetWithdrawals(arg0 interface{}) *gomock.Call
SetWithdrawals indicates an expected call of SetWithdrawals.
func (*MockStateMockRecorder) Withdrawals ¶
func (mr *MockStateMockRecorder) Withdrawals(arg0, arg1 interface{}) *gomock.Call
Withdrawals indicates an expected call of Withdrawals.
type MockValidatorCache ¶
type MockValidatorCache struct {
// contains filtered or unexported fields
}
MockValidatorCache is a mock of ValidatorCache interface.
func NewMockValidatorCache ¶
func NewMockValidatorCache(ctrl *gomock.Controller) *MockValidatorCache
NewMockValidatorCache creates a new mock instance.
func (*MockValidatorCache) EXPECT ¶
func (m *MockValidatorCache) EXPECT() *MockValidatorCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorCache) Get ¶
func (m *MockValidatorCache) Get(arg0 types.PublicKey) (structs.ValidatorCacheEntry, bool)
Get mocks base method.
type MockValidatorCacheMockRecorder ¶
type MockValidatorCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.
func (*MockValidatorCacheMockRecorder) Get ¶
func (mr *MockValidatorCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.