Documentation ¶
Overview ¶
Package immediate is a submitter that immediately submits requests received.
Index ¶
- type Parameter
- func WithAggregateAttestationsSubmitter(submitter eth2client.AggregateAttestationsSubmitter) Parameter
- func WithAttestationSubmitter(submitter eth2client.AttestationSubmitter) Parameter
- func WithBeaconBlockSubmitter(submitter eth2client.BeaconBlockSubmitter) Parameter
- func WithBeaconCommitteeSubscriptionsSubmitter(submitter eth2client.BeaconCommitteeSubscriptionsSubmitter) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- type Service
- func (s *Service) SubmitAggregateAttestation(ctx context.Context, aggregate *spec.SignedAggregateAndProof) error
- func (s *Service) SubmitAttestation(ctx context.Context, attestation *spec.Attestation) error
- func (s *Service) SubmitBeaconBlock(ctx context.Context, block *spec.SignedBeaconBlock) error
- func (s *Service) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscriptions []*submitter.BeaconCommitteeSubscription) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithAggregateAttestationsSubmitter ¶
func WithAggregateAttestationsSubmitter(submitter eth2client.AggregateAttestationsSubmitter) Parameter
WithAggregateAttestationsSubmitter sets the aggregate attestation submitter
func WithAttestationSubmitter ¶
func WithAttestationSubmitter(submitter eth2client.AttestationSubmitter) Parameter
WithAttestationSubmitter sets the attestation submitter
func WithBeaconBlockSubmitter ¶
func WithBeaconBlockSubmitter(submitter eth2client.BeaconBlockSubmitter) Parameter
WithBeaconBlockSubmitter sets the beacon block submitter
func WithBeaconCommitteeSubscriptionsSubmitter ¶
func WithBeaconCommitteeSubscriptionsSubmitter(submitter eth2client.BeaconCommitteeSubscriptionsSubmitter) Parameter
WithBeaconCommitteeSubscriptionsSubmitter sets the attestation subnet subscriptions submitter
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the submitter for signed items.
func (*Service) SubmitAggregateAttestation ¶
func (s *Service) SubmitAggregateAttestation(ctx context.Context, aggregate *spec.SignedAggregateAndProof) error
SubmitAggregateAttestation submits an aggregate attestation.
func (*Service) SubmitAttestation ¶
SubmitAttestation submits an attestation.
func (*Service) SubmitBeaconBlock ¶
SubmitBeaconBlock submits a block.
func (*Service) SubmitBeaconCommitteeSubscriptions ¶
func (s *Service) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscriptions []*submitter.BeaconCommitteeSubscription) error
SubmitBeaconCommitteeSubscriptions submits a batch of beacon committee subscriptions.