deriver

package
v0.0.157 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 6 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 {
	AttesterSlashingConfig      v2.AttesterSlashingDeriverConfig            `yaml:"attesterSlashing"`
	BLSToExecutionConfig        v2.BLSToExecutionChangeDeriverConfig        `yaml:"blsToExecutionChange"`
	DepositConfig               v2.DepositDeriverConfig                     `yaml:"deposit"`
	ExecutionTransactionConfig  v2.ExecutionTransactionDeriverConfig        `yaml:"executionTransaction"`
	ProposerSlashingConfig      v2.ProposerSlashingDeriverConfig            `yaml:"proposerSlashing"`
	VoluntaryExitConfig         v2.VoluntaryExitDeriverConfig               `yaml:"voluntaryExit"`
	WithdrawalConfig            v2.WithdrawalDeriverConfig                  `yaml:"withdrawal"`
	BeaconBlockConfig           v2.BeaconBlockDeriverConfig                 `yaml:"beaconBlock"`
	BlockClassificationConfig   blockprint.BlockClassificationDeriverConfig `yaml:"blockClassification"`
	BeaconBlobSidecarConfig     v1.BeaconBlobDeriverConfig                  `yaml:"beaconBlobSidecar"`
	ProposerDutyConfig          v1.ProposerDutyDeriverConfig                `yaml:"proposerDuty"`
	ElaboratedAttestationConfig v2.ElaboratedAttestationDeriverConfig       `yaml:"elaboratedAttestation"`
}

func (*Config) Validate

func (c *Config) Validate() error

type EventDeriver

type EventDeriver interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Name() string
	CannonType() xatu.CannonType
	// Callbacks
	OnEventsDerived(ctx context.Context, fn func(ctx context.Context, events []*xatu.DecoratedEvent) error)
	// ActivationFork is the fork at which the deriver should start deriving events
	ActivationFork() string
}

Directories

Path Synopsis
beacon

Jump to

Keyboard shortcuts

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