Versions in this module Expand all Collapse all v0 v0.0.2 Jul 8, 2026 Changes in this version type Manager + func (m *Manager) GetPaymentTracker() *payload_bidder.PaymentTracker + func (m *Manager) SetPaymentTracker(payments *payload_bidder.PaymentTracker) v0.0.1 Jun 24, 2026 Changes in this version + var BuilderDepositContractAddress = common.HexToAddress("0x0000884d2AA32eAa155F59A2f24eFa73D9008282") + var BuilderExitContractAddress = common.HexToAddress("0x000014574A74c805590AFF9499fc7A690f008282") + var ErrContractNotActive = errors.New("builder deposit contract not active yet") + var ErrDepositFeeTooHigh = errors.New("builder deposit queue fee exceeds configured limit") + var ErrNoDepositContract = errors.New("no validator deposit contract address in spec") + func BuildBuilderDepositCalldata(pubkey []byte, withdrawalCredentials []byte, amountGwei uint64, ...) ([]byte, error) + func BuildBuilderExitCalldata(pubkey []byte) ([]byte, error) + func BuilderWithdrawalCredentials(walletAddress common.Address) [32]byte + func GweiToWei(gwei uint64) *big.Int + func ReadQueueFee(ctx context.Context, reader storageReader, contract common.Address) (fee *big.Int, active bool, err error) + func ValidatorWithdrawalCredentials(walletAddress common.Address) [32]byte + type BalanceService struct + func NewBalanceService(cfg *config.Config, clClient *beacon.Client, depositSvc *DepositService, ...) *BalanceService + func (s *BalanceService) CheckAndTopup(ctx context.Context) error + func (s *BalanceService) GetCurrentBalance(ctx context.Context) (uint64, error) + func (s *BalanceService) GetEffectiveBalance(ctx context.Context) (uint64, error) + func (s *BalanceService) NeedsTopup(ctx context.Context) (bool, uint64, error) + func (s *BalanceService) RunBalanceMonitor(ctx context.Context) + type BuilderState struct + Balance uint64 + DepositEpoch uint64 + Index uint64 + IsRegistered bool + Pubkey []byte + WithdrawableEpoch uint64 + type DepositService struct + func NewDepositService(cfg *config.Config, chainSvc chain.Service, blsSigner *signer.BLSSigner, ...) (*DepositService, error) + func (s *DepositService) CreateDeposit(ctx context.Context, amountGwei uint64) error + func (s *DepositService) CreateTopup(ctx context.Context, amountGwei uint64) error + func (s *DepositService) IsBuilderRegistered(_ context.Context) (bool, *BuilderState, error) + type EarlyDepositService struct + func NewEarlyDepositService(cfg *config.Config, chainSvc chain.Service, blsSigner *signer.BLSSigner, ...) (*EarlyDepositService, error) + func (s *EarlyDepositService) CreateEarlyDeposit(ctx context.Context, amountGwei uint64) error + func (s *EarlyDepositService) HasPendingDeposit() bool + type ExitService struct + func NewExitService(chainSvc chain.Service, blsSigner *signer.BLSSigner, w *wallet.Wallet, ...) *ExitService + func (s *ExitService) CreateExit(ctx context.Context) error + type LifecycleEvent struct + Action string + Message string + Status string + type Manager struct + func NewManager(cfg *config.Config, clClient *beacon.Client, chainSvc chain.Service, ...) (*Manager, error) + func (m *Manager) CheckAndTopup(ctx context.Context) error + func (m *Manager) EnsureBuilderRegistered(ctx context.Context) error + func (m *Manager) GetBidTracker() *epbs.BidTracker + func (m *Manager) GetBuilderState() *BuilderState + func (m *Manager) GetWallet() *wallet.Wallet + func (m *Manager) InitiateExit(ctx context.Context) error + func (m *Manager) IsEnabled() bool + func (m *Manager) SetBidTracker(tracker *epbs.BidTracker) + func (m *Manager) SetDepositPendingCallback(cb func()) + func (m *Manager) SetEnabled(enabled bool) + func (m *Manager) SetEventCallback(cb func(*LifecycleEvent)) + func (m *Manager) SetRegistrationCallback(cb func(index uint64)) + func (m *Manager) Start(ctx context.Context) error + func (m *Manager) Stop() + func (m *Manager) WaitForRegistration(ctx context.Context, timeout time.Duration) error