intercept

package
v0.0.0-...-2578c2a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor interface {
	InterceptAttesterDuties(
		ctx context.Context,
		epoch phase0.Epoch,
		indices []phase0.ValidatorIndex,
		duties []*v1.AttesterDuty,
	) ([]*v1.AttesterDuty, error)
	InterceptProposerDuties(
		ctx context.Context,
		epoch phase0.Epoch,
		indices []phase0.ValidatorIndex,
		duties []*v1.ProposerDuty,
	) ([]*v1.ProposerDuty, error)
	InterceptAttestationData(
		ctx context.Context,
		slot phase0.Slot,
		committeeIndex phase0.CommitteeIndex,
		data *phase0.AttestationData,
	) (*phase0.AttestationData, error)
	InterceptBlockProposal(
		ctx context.Context,
		slot phase0.Slot,
		randaoReveal phase0.BLSSignature,
		graffiti [32]byte,
		block *spec.VersionedBeaconBlock,
	) (*spec.VersionedBeaconBlock, error)
	InterceptSubmitAttestations(
		ctx context.Context,
		attestations []*phase0.Attestation,
	) ([]*phase0.Attestation, error)
	InterceptSubmitBlockProposal(
		ctx context.Context,
		block *spec.VersionedSignedBeaconBlock,
	) (*spec.VersionedSignedBeaconBlock, error)
}

func Chain

func Chain(interceptors ...Interceptor) Interceptor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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