Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAuctioneer
- type MockAuctioneerMockRecorder
- type MockBeacon
- type MockBeaconMockRecorder
- type MockBlockValidationClient
- func (m *MockBlockValidationClient) EXPECT() *MockBlockValidationClientMockRecorder
- func (m *MockBlockValidationClient) IsSet() bool
- func (m *MockBlockValidationClient) ValidateBlock(arg0 context.Context, arg1 *types.BuilderBlockValidationRequest) error
- func (m *MockBlockValidationClient) ValidateBlockV2(arg0 context.Context, arg1 *types.BuilderBlockValidationRequest) error
- type MockBlockValidationClientMockRecorder
- type MockDatastore
- func (m *MockDatastore) CacheBlock(arg0 context.Context, arg1 structs.PayloadKey, ...) error
- func (m *MockDatastore) CheckSlotDelivered(arg0 context.Context, arg1 uint64) (bool, error)
- func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
- func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types0.Hash) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1, arg2 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetMaxProfitHeader(arg0 context.Context, arg1 uint64) (structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.ForkVersion, arg2 structs.PayloadKey) (structs.BlockBidAndTrace, bool, error)
- func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, ...) error
- func (m *MockDatastore) PutHeader(arg0 context.Context, arg1 structs.HeaderData, arg2 time.Duration) error
- func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 structs.BlockBidAndTrace, ...) error
- type MockDatastoreMockRecorder
- func (mr *MockDatastoreMockRecorder) CacheBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) CheckSlotDelivered(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetMaxProfitHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutHeader(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockState
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) ForkVersion(arg0 structs.Slot) structs.ForkVersion
- func (m *MockState) Genesis() structs.GenesisInfo
- func (m *MockState) HeadSlot() structs.Slot
- func (m *MockState) KnownValidators() structs.ValidatorsState
- func (m *MockState) Randao() string
- func (m *MockState) Withdrawals() structs.WithdrawalsState
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) ForkVersion(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) Genesis() *gomock.Call
- func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call
- func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call
- func (mr *MockStateMockRecorder) Randao() *gomock.Call
- func (mr *MockStateMockRecorder) Withdrawals() *gomock.Call
- type MockValidatorCache
- func (m *MockValidatorCache) Add(arg0 types0.PublicKey, arg1 structs.ValidatorCacheEntry) bool
- func (m *MockValidatorCache) EXPECT() *MockValidatorCacheMockRecorder
- func (m *MockValidatorCache) Get(arg0 types0.PublicKey) (structs.ValidatorCacheEntry, bool)
- func (m *MockValidatorCache) Remove(arg0 types0.PublicKey) bool
- type MockValidatorCacheMockRecorder
- type MockValidatorStore
- type MockValidatorStoreMockRecorder
- type MockVerifier
- type MockVerifierMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuctioneer ¶
type MockAuctioneer struct {
// contains filtered or unexported fields
}
MockAuctioneer is a mock of Auctioneer interface.
func NewMockAuctioneer ¶
func NewMockAuctioneer(ctrl *gomock.Controller) *MockAuctioneer
NewMockAuctioneer creates a new mock instance.
func (*MockAuctioneer) AddBlock ¶
func (m *MockAuctioneer) AddBlock(arg0 *structs.CompleteBlockstruct) bool
AddBlock mocks base method.
func (*MockAuctioneer) EXPECT ¶
func (m *MockAuctioneer) EXPECT() *MockAuctioneerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuctioneer) MaxProfitBlock ¶
func (m *MockAuctioneer) MaxProfitBlock(arg0 structs.Slot) (*structs.CompleteBlockstruct, bool)
MaxProfitBlock mocks base method.
type MockAuctioneerMockRecorder ¶
type MockAuctioneerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuctioneerMockRecorder is the mock recorder for MockAuctioneer.
func (*MockAuctioneerMockRecorder) AddBlock ¶
func (mr *MockAuctioneerMockRecorder) AddBlock(arg0 interface{}) *gomock.Call
AddBlock indicates an expected call of AddBlock.
func (*MockAuctioneerMockRecorder) MaxProfitBlock ¶
func (mr *MockAuctioneerMockRecorder) MaxProfitBlock(arg0 interface{}) *gomock.Call
MaxProfitBlock indicates an expected call of MaxProfitBlock.
type MockBeacon ¶
type MockBeacon struct {
// contains filtered or unexported fields
}
MockBeacon is a mock of Beacon interface.
func NewMockBeacon ¶
func NewMockBeacon(ctrl *gomock.Controller) *MockBeacon
NewMockBeacon creates a new mock instance.
func (*MockBeacon) EXPECT ¶
func (m *MockBeacon) EXPECT() *MockBeaconMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeacon) PublishBlock ¶
func (m *MockBeacon) PublishBlock(arg0 structs.SignedBeaconBlock) error
PublishBlock mocks base method.
type MockBeaconMockRecorder ¶
type MockBeaconMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconMockRecorder is the mock recorder for MockBeacon.
func (*MockBeaconMockRecorder) PublishBlock ¶
func (mr *MockBeaconMockRecorder) PublishBlock(arg0 interface{}) *gomock.Call
PublishBlock indicates an expected call of PublishBlock.
type MockBlockValidationClient ¶ added in v0.3.22
type MockBlockValidationClient struct {
// contains filtered or unexported fields
}
MockBlockValidationClient is a mock of BlockValidationClient interface.
func NewMockBlockValidationClient ¶ added in v0.3.22
func NewMockBlockValidationClient(ctrl *gomock.Controller) *MockBlockValidationClient
NewMockBlockValidationClient creates a new mock instance.
func (*MockBlockValidationClient) EXPECT ¶ added in v0.3.22
func (m *MockBlockValidationClient) EXPECT() *MockBlockValidationClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockValidationClient) IsSet ¶ added in v0.3.23
func (m *MockBlockValidationClient) IsSet() bool
IsSet mocks base method.
func (*MockBlockValidationClient) ValidateBlock ¶ added in v0.3.22
func (m *MockBlockValidationClient) ValidateBlock(arg0 context.Context, arg1 *types.BuilderBlockValidationRequest) error
ValidateBlock mocks base method.
func (*MockBlockValidationClient) ValidateBlockV2 ¶
func (m *MockBlockValidationClient) ValidateBlockV2(arg0 context.Context, arg1 *types.BuilderBlockValidationRequest) error
ValidateBlockV2 mocks base method.
type MockBlockValidationClientMockRecorder ¶ added in v0.3.22
type MockBlockValidationClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockValidationClientMockRecorder is the mock recorder for MockBlockValidationClient.
func (*MockBlockValidationClientMockRecorder) IsSet ¶ added in v0.3.23
func (mr *MockBlockValidationClientMockRecorder) IsSet() *gomock.Call
IsSet indicates an expected call of IsSet.
func (*MockBlockValidationClientMockRecorder) ValidateBlock ¶ added in v0.3.22
func (mr *MockBlockValidationClientMockRecorder) ValidateBlock(arg0, arg1 interface{}) *gomock.Call
ValidateBlock indicates an expected call of ValidateBlock.
func (*MockBlockValidationClientMockRecorder) ValidateBlockV2 ¶
func (mr *MockBlockValidationClientMockRecorder) ValidateBlockV2(arg0, arg1 interface{}) *gomock.Call
ValidateBlockV2 indicates an expected call of ValidateBlockV2.
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) CacheBlock ¶ added in v0.3.4
func (m *MockDatastore) CacheBlock(arg0 context.Context, arg1 structs.PayloadKey, arg2 *structs.CompleteBlockstruct) error
CacheBlock mocks base method.
func (*MockDatastore) CheckSlotDelivered ¶
CheckSlotDelivered mocks base method.
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatastore) GetDelivered ¶
func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
GetDelivered mocks base method.
func (*MockDatastore) GetDeliveredBatch ¶ added in v0.3.9
func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
GetDeliveredBatch mocks base method.
func (*MockDatastore) GetHeadersByBlockHash ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types0.Hash) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockHash mocks base method.
func (*MockDatastore) GetHeadersByBlockNum ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockNum mocks base method.
func (*MockDatastore) GetHeadersBySlot ¶ added in v0.3.9
func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersBySlot mocks base method.
func (*MockDatastore) GetLatestHeaders ¶ added in v0.3.9
func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1, arg2 uint64) ([]structs.HeaderAndTrace, error)
GetLatestHeaders mocks base method.
func (*MockDatastore) GetMaxProfitHeader ¶
func (m *MockDatastore) GetMaxProfitHeader(arg0 context.Context, arg1 uint64) (structs.HeaderAndTrace, error)
GetMaxProfitHeader mocks base method.
func (*MockDatastore) GetPayload ¶
func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.ForkVersion, arg2 structs.PayloadKey) (structs.BlockBidAndTrace, bool, error)
GetPayload mocks base method.
func (*MockDatastore) PutDelivered ¶
func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, arg3 time.Duration) error
PutDelivered mocks base method.
func (*MockDatastore) PutHeader ¶
func (m *MockDatastore) PutHeader(arg0 context.Context, arg1 structs.HeaderData, arg2 time.Duration) error
PutHeader mocks base method.
func (*MockDatastore) PutPayload ¶
func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 structs.BlockBidAndTrace, arg3 time.Duration) error
PutPayload mocks base method.
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore.
func (*MockDatastoreMockRecorder) CacheBlock ¶ added in v0.3.4
func (mr *MockDatastoreMockRecorder) CacheBlock(arg0, arg1, arg2 interface{}) *gomock.Call
CacheBlock indicates an expected call of CacheBlock.
func (*MockDatastoreMockRecorder) CheckSlotDelivered ¶
func (mr *MockDatastoreMockRecorder) CheckSlotDelivered(arg0, arg1 interface{}) *gomock.Call
CheckSlotDelivered indicates an expected call of CheckSlotDelivered.
func (*MockDatastoreMockRecorder) GetDelivered ¶
func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
GetDelivered indicates an expected call of GetDelivered.
func (*MockDatastoreMockRecorder) GetDeliveredBatch ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
GetDeliveredBatch indicates an expected call of GetDeliveredBatch.
func (*MockDatastoreMockRecorder) GetHeadersByBlockHash ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockHash indicates an expected call of GetHeadersByBlockHash.
func (*MockDatastoreMockRecorder) GetHeadersByBlockNum ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockNum indicates an expected call of GetHeadersByBlockNum.
func (*MockDatastoreMockRecorder) GetHeadersBySlot ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
GetHeadersBySlot indicates an expected call of GetHeadersBySlot.
func (*MockDatastoreMockRecorder) GetLatestHeaders ¶ added in v0.3.9
func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
GetLatestHeaders indicates an expected call of GetLatestHeaders.
func (*MockDatastoreMockRecorder) GetMaxProfitHeader ¶
func (mr *MockDatastoreMockRecorder) GetMaxProfitHeader(arg0, arg1 interface{}) *gomock.Call
GetMaxProfitHeader indicates an expected call of GetMaxProfitHeader.
func (*MockDatastoreMockRecorder) GetPayload ¶
func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1, arg2 interface{}) *gomock.Call
GetPayload indicates an expected call of GetPayload.
func (*MockDatastoreMockRecorder) PutDelivered ¶
func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutDelivered indicates an expected call of PutDelivered.
func (*MockDatastoreMockRecorder) PutHeader ¶
func (mr *MockDatastoreMockRecorder) PutHeader(arg0, arg1, arg2 interface{}) *gomock.Call
PutHeader indicates an expected call of PutHeader.
func (*MockDatastoreMockRecorder) PutPayload ¶
func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutPayload indicates an expected call of PutPayload.
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) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) ForkVersion ¶
func (m *MockState) ForkVersion(arg0 structs.Slot) structs.ForkVersion
ForkVersion mocks base method.
func (*MockState) Genesis ¶
func (m *MockState) Genesis() structs.GenesisInfo
Genesis mocks base method.
func (*MockState) KnownValidators ¶
func (m *MockState) KnownValidators() structs.ValidatorsState
KnownValidators mocks base method.
func (*MockState) Withdrawals ¶
func (m *MockState) Withdrawals() structs.WithdrawalsState
Withdrawals mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) ForkVersion ¶
func (mr *MockStateMockRecorder) ForkVersion(arg0 interface{}) *gomock.Call
ForkVersion indicates an expected call of ForkVersion.
func (*MockStateMockRecorder) Genesis ¶
func (mr *MockStateMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
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) Randao ¶
func (mr *MockStateMockRecorder) Randao() *gomock.Call
Randao indicates an expected call of Randao.
func (*MockStateMockRecorder) Withdrawals ¶
func (mr *MockStateMockRecorder) Withdrawals() *gomock.Call
Withdrawals indicates an expected call of Withdrawals.
type MockValidatorCache ¶ added in v0.3.19
type MockValidatorCache struct {
// contains filtered or unexported fields
}
MockValidatorCache is a mock of ValidatorCache interface.
func NewMockValidatorCache ¶ added in v0.3.19
func NewMockValidatorCache(ctrl *gomock.Controller) *MockValidatorCache
NewMockValidatorCache creates a new mock instance.
func (*MockValidatorCache) Add ¶ added in v0.3.19
func (m *MockValidatorCache) Add(arg0 types0.PublicKey, arg1 structs.ValidatorCacheEntry) bool
Add mocks base method.
func (*MockValidatorCache) EXPECT ¶ added in v0.3.19
func (m *MockValidatorCache) EXPECT() *MockValidatorCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorCache) Get ¶ added in v0.3.19
func (m *MockValidatorCache) Get(arg0 types0.PublicKey) (structs.ValidatorCacheEntry, bool)
Get mocks base method.
type MockValidatorCacheMockRecorder ¶ added in v0.3.19
type MockValidatorCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.
func (*MockValidatorCacheMockRecorder) Add ¶ added in v0.3.19
func (mr *MockValidatorCacheMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockValidatorCacheMockRecorder) Get ¶ added in v0.3.19
func (mr *MockValidatorCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockValidatorCacheMockRecorder) Remove ¶ added in v0.3.19
func (mr *MockValidatorCacheMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
type MockValidatorStore ¶ added in v0.3.19
type MockValidatorStore struct {
// contains filtered or unexported fields
}
MockValidatorStore is a mock of ValidatorStore interface.
func NewMockValidatorStore ¶ added in v0.3.19
func NewMockValidatorStore(ctrl *gomock.Controller) *MockValidatorStore
NewMockValidatorStore creates a new mock instance.
func (*MockValidatorStore) EXPECT ¶ added in v0.3.19
func (m *MockValidatorStore) EXPECT() *MockValidatorStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorStore) GetRegistration ¶ added in v0.3.19
func (m *MockValidatorStore) GetRegistration(arg0 context.Context, arg1 types0.PublicKey) (types0.SignedValidatorRegistration, error)
GetRegistration mocks base method.
type MockValidatorStoreMockRecorder ¶ added in v0.3.19
type MockValidatorStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorStoreMockRecorder is the mock recorder for MockValidatorStore.
func (*MockValidatorStoreMockRecorder) GetRegistration ¶ added in v0.3.19
func (mr *MockValidatorStoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call
GetRegistration indicates an expected call of GetRegistration.
type MockVerifier ¶
type MockVerifier struct {
// contains filtered or unexported fields
}
MockVerifier is a mock of Verifier interface.
func NewMockVerifier ¶
func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier
NewMockVerifier creates a new mock instance.
func (*MockVerifier) EXPECT ¶
func (m *MockVerifier) EXPECT() *MockVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVerifierMockRecorder ¶
type MockVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockVerifierMockRecorder is the mock recorder for MockVerifier.
func (*MockVerifierMockRecorder) Enqueue ¶
func (mr *MockVerifierMockRecorder) Enqueue(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Enqueue indicates an expected call of Enqueue.