testing

package
v0.0.0-...-bb812c9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0, GPL-3.0, MIT Imports: 12 Imported by: 0

Documentation

Index

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
	ErrSubmitBlindedBlock error
	Bid                   *ethpb.SignedBuilderBid
	BidCapella            *ethpb.SignedBuilderBidCapella
	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

RegisterValidator for mocking.

func (*MockBuilderService) RegistrationByValidatorID

RegistrationByValidatorID returns either the values from the cache or db.

func (*MockBuilderService) SubmitBlindedBlock

SubmitBlindedBlock for mocking.

Jump to

Keyboard shortcuts

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