Documentation
¶
Index ¶
- type Parameter
- func WithAttesterSlashedScript(script string) Parameter
- func WithBlock(block string) Parameter
- func WithETH2Client(eth2Client eth2client.Service) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithProposerSlashedScript(script string) Parameter
- type Service
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 WithAttesterSlashedScript ¶
WithAttesterSlashedScript sets the script when an attester is slashed.
func WithETH2Client ¶
func WithETH2Client(eth2Client eth2client.Service) Parameter
WithETH2Client sets the Ethereum 2 client for this module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
WithMonitor sets the monitor for this module.
func WithProposerSlashedScript ¶
WithProposerSlashedScript sets the script when an proposer is slashed.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is slashings services that watches blocks for slashings.
func (*Service) OnAttesterSlashed ¶
OnAttesterSlashed handles an attester slashing event.
func (*Service) OnHeadUpdated ¶
OnHeadUpdated handles head notifications.
func (*Service) OnProposerSlashed ¶
OnProposerSlashed handles a proposer slashing event.
Click to show internal directories.
Click to hide internal directories.