eth

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeregistrationTopic = "deregistration-subscriber"
)

Variables

This section is empty.

Functions

func DecodeSlashProposalArguments

func DecodeSlashProposalArguments(callData string) (address ethcommon.Address, amount *big.Int, err error)

Types

type DeregistrationPubsub

type DeregistrationPubsub = pubsub.Pubsub[*v1.ServiceEndpoint]

type EthService

type EthService struct {
	// contains filtered or unexported fields
}

func NewEthService

func NewEthService(dbURL, rpcURL, registryAddress string, logger *zap.Logger, environment string) *EthService

func (*EthService) GetAntiAbuseOracleAddresses added in v1.2.11

func (eth *EthService) GetAntiAbuseOracleAddresses(ctx context.Context) ([]string, error)

GetAntiAbuseOracleAddresses returns the eth addresses of registered anti-abuse oracles, as last synced from the L1 EthRewardsManager contract. These are eligible to be reward-manager senders (alongside validators) and must therefore be allow-listed for add attestations and protected from delete attestations.

func (*EthService) Register

For development purposes only

func (*EthService) Run

func (eth *EthService) Run(ctx context.Context) error

func (*EthService) SubscribeToDeregistrationEvents

func (eth *EthService) SubscribeToDeregistrationEvents() chan *v1.ServiceEndpoint

func (*EthService) UnsubscribeFromDeregistrationEvents

func (eth *EthService) UnsubscribeFromDeregistrationEvents(ch chan *v1.ServiceEndpoint)

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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