Documentation ¶
Index ¶
- type Config
- type MockBuilderService
- func (s *MockBuilderService) Configured() bool
- func (s *MockBuilderService) GetHeader(_ context.Context, slot primitives.Slot, _ [32]byte, _ [48]byte) (builder.SignedBid, error)
- func (s *MockBuilderService) RegisterValidator(context.Context, []*ethpb.SignedValidatorRegistrationV1) error
- func (s *MockBuilderService) RegistrationByValidatorID(ctx context.Context, id primitives.ValidatorIndex) (*ethpb.ValidatorRegistrationV1, error)
- func (s *MockBuilderService) SubmitBlindedBlock(_ context.Context, b interfaces.ReadOnlySignedBeaconBlock) (interfaces.ExecutionData, *v1.BlobsBundle, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BeaconDB db.HeadAccessDatabase
}
Config defines a config struct for dependencies into the service.
type MockBuilderService ¶
type MockBuilderService struct { HasConfigured bool Payload *v1.ExecutionPayload PayloadCapella *v1.ExecutionPayloadCapella PayloadDeneb *v1.ExecutionPayloadDeneb BlobBundle *v1.BlobsBundle ErrSubmitBlindedBlock error Bid *ethpb.SignedBuilderBid BidCapella *ethpb.SignedBuilderBidCapella BidDeneb *ethpb.SignedBuilderBidDeneb RegistrationCache *cache.RegistrationCache ErrGetHeader error ErrRegisterValidator error Cfg *Config }
MockBuilderService to mock builder.
func (*MockBuilderService) Configured ¶
func (s *MockBuilderService) Configured() bool
Configured for mocking.
func (*MockBuilderService) GetHeader ¶
func (s *MockBuilderService) GetHeader(_ context.Context, slot primitives.Slot, _ [32]byte, _ [48]byte) (builder.SignedBid, error)
GetHeader for mocking.
func (*MockBuilderService) RegisterValidator ¶
func (s *MockBuilderService) RegisterValidator(context.Context, []*ethpb.SignedValidatorRegistrationV1) error
RegisterValidator for mocking.
func (*MockBuilderService) RegistrationByValidatorID ¶
func (s *MockBuilderService) RegistrationByValidatorID(ctx context.Context, id primitives.ValidatorIndex) (*ethpb.ValidatorRegistrationV1, error)
RegistrationByValidatorID returns either the values from the cache or db.
func (*MockBuilderService) SubmitBlindedBlock ¶
func (s *MockBuilderService) SubmitBlindedBlock(_ context.Context, b interfaces.ReadOnlySignedBeaconBlock) (interfaces.ExecutionData, *v1.BlobsBundle, error)
SubmitBlindedBlock for mocking.
Click to show internal directories.
Click to hide internal directories.