Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExceedsValidatorUpdateBlock = fmt.Errorf("ErrExceedsValidatorUpdateBlock")
View Source
var ErrHandlerExit = fmt.Errorf("exit")
View Source
var ErrMissingEth1Block = fmt.Errorf("beacon chain missing eth1 block: %w", ErrHandlerExit)
Functions ¶
This section is empty.
Types ¶
type CachedBeaconBlock ¶
type CachedBeaconBlock struct { BeaconBlockId uint64 ExecutionBlockNumber uint64 ProposerIndex uint64 Withdrawals []*CachedWithdrawal }
type CachedTransaction ¶
type CachedWithdrawal ¶
type ExitElection ¶
type NodeNewReward ¶
type NodeNewRewardsMap ¶
type NodeNewRewardsMap map[common.Address]*NodeNewReward // nodeAddress(hex with 0x) -> nodeNewReward
type NodeReward ¶
type NodeReward struct { Address string `json:"address"` // hex with 0x Index uint32 `json:"index"` TotalRewardAmount decimal.Decimal `json:"totalRewardAmount"` // accumulative TotalExitDepositAmount decimal.Decimal `json:"totalExitDepositAmount"` // accumulative Proof string `json:"proof"` // proof of {address/index/totalRewardAmount/totalExitDepositAmount} TotalDepositAmount decimal.Decimal `json:"totalDepositAmount"` // accumulative, totalDepositAmount >= totalExitDepositAmount }
type NodeRewardsList ¶
type NodeRewardsList struct { Epoch uint64 List []*NodeReward }
type NodeRewardsMap ¶
type NodeRewardsMap map[common.Address]*NodeReward // nodeAddress(hex with 0x) -> nodeReward
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( cfg *config.Config, manager *ServiceManager, conn *connection.CachedConnection, localStore *local_store.LocalStore, ) (*Service, error)
func (*Service) GetValidatorDepositedListBeforeBlock ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
func NewServiceManager ¶
func (*ServiceManager) CacheBeaconBlock ¶
func (m *ServiceManager) CacheBeaconBlock(blockId uint64) (*CachedBeaconBlock, bool, error)
func (*ServiceManager) Start ¶
func (m *ServiceManager) Start() error
func (*ServiceManager) Stop ¶
func (m *ServiceManager) Stop()
type StakerWithdrawal ¶
type Validator ¶
type Validator struct { Pubkey []byte NodeAddress common.Address DepositSignature []byte NodeDepositAmountDeci decimal.Decimal // decimals 18 NodeDepositAmount uint64 //decimals 9 DepositBlock uint64 ActiveEpoch uint64 EligibleEpoch uint64 ExitEpoch uint64 WithdrawableEpoch uint64 NodeType uint8 // 1 light node 2 trust node ValidatorIndex uint64 // Notice!!!!!!: validator index is zero before status waiting Balance uint64 // realtime balance EffectiveBalance uint64 // realtime effectiveBalance Status uint8 // status details defined in pkg/utils/eth2.go }
Click to show internal directories.
Click to hide internal directories.