Versions in this module Expand all Collapse all v0 v0.6.5 Aug 18, 2023 Changes in this version + func CalculateAverageFeeAndDistributorShares_Legacy(rp *rocketpool.RocketPool, contracts *NetworkContracts, node NativeNodeDetails, ...) error + func CalculateAverageFeeAndDistributorShares_New(rp *rocketpool.RocketPool, contracts *NetworkContracts, node NativeNodeDetails, ...) error + func CalculateCompleteMinipoolShares(rp *rocketpool.RocketPool, contracts *NetworkContracts, ...) error + func GetTotalEffectiveRplStake(rp *rocketpool.RocketPool, contracts *NetworkContracts) (*big.Int, error) + type NativeMinipoolDetails struct + Balance *big.Int + Delegate common.Address + DepositType types.MinipoolDeposit + DepositTypeRaw uint8 + DistributableBalance *big.Int + EffectiveDelegate common.Address + Exists bool + Finalised bool + IsVacant bool + LastBondReductionPrevNodeFee *big.Int + LastBondReductionPrevValue *big.Int + LastBondReductionTime *big.Int + MinipoolAddress common.Address + NodeAddress common.Address + NodeDepositAssigned bool + NodeDepositBalance *big.Int + NodeFee *big.Int + NodeRefundBalance *big.Int + NodeShareOfBalance *big.Int + NodeShareOfBalanceIncludingBeacon *big.Int + NodeShareOfBeaconBalance *big.Int + PenaltyCount *big.Int + PenaltyRate *big.Int + PreMigrationBalance *big.Int + PreviousDelegate common.Address + Pubkey types.ValidatorPubkey + ReduceBondCancelled bool + ReduceBondTime *big.Int + ReduceBondValue *big.Int + Slashed bool + Status types.MinipoolStatus + StatusBlock *big.Int + StatusRaw uint8 + StatusTime *big.Int + UseLatestDelegate bool + UserDepositAssigned bool + UserDepositAssignedTime *big.Int + UserDepositBalance *big.Int + UserDistributed bool + UserShareOfBalance *big.Int + UserShareOfBalanceIncludingBeacon *big.Int + UserShareOfBeaconBalance *big.Int + Version uint8 + WithdrawalCredentials common.Hash + func GetAllNativeMinipoolDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts) ([]NativeMinipoolDetails, error) + func GetNativeMinipoolDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts, ...) (NativeMinipoolDetails, error) + func GetNodeNativeMinipoolDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts, ...) ([]NativeMinipoolDetails, error) + type NativeNodeDetails struct + AverageNodeFee *big.Int + BalanceETH *big.Int + BalanceOldRPL *big.Int + BalanceRETH *big.Int + BalanceRPL *big.Int + CollateralisationRatio *big.Int + DepositCreditBalance *big.Int + DistributorBalance *big.Int + DistributorBalanceNodeETH *big.Int + DistributorBalanceUserETH *big.Int + EffectiveRPLStake *big.Int + EthMatched *big.Int + EthMatchedLimit *big.Int + Exists bool + FeeDistributorAddress common.Address + FeeDistributorInitialised bool + MaximumRPLStake *big.Int + MinimumRPLStake *big.Int + MinipoolCount *big.Int + NodeAddress common.Address + PendingWithdrawalAddress common.Address + RegistrationTime *big.Int + RewardNetwork *big.Int + RplStake *big.Int + SmoothingPoolRegistrationChanged *big.Int + SmoothingPoolRegistrationState bool + TimezoneLocation string + WithdrawalAddress common.Address + func GetAllNativeNodeDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts, isAtlasDeployed bool) ([]NativeNodeDetails, error) + func GetNativeNodeDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts, ...) (NativeNodeDetails, error) + type NetworkContracts struct + BalanceBatcher *multicall.BalanceBatcher + ElBlockNumber *big.Int + Multicaller *multicall.MultiCaller + RocketDAONodeTrustedSettingsMinipool *rocketpool.Contract + RocketDAOProtocolSettingsMinipool *rocketpool.Contract + RocketDAOProtocolSettingsNetwork *rocketpool.Contract + RocketDAOProtocolSettingsNode *rocketpool.Contract + RocketDepositPool *rocketpool.Contract + RocketMinipoolBondReducer *rocketpool.Contract + RocketMinipoolManager *rocketpool.Contract + RocketMinipoolQueue *rocketpool.Contract + RocketNetworkBalances *rocketpool.Contract + RocketNetworkFees *rocketpool.Contract + RocketNetworkPrices *rocketpool.Contract + RocketNodeDeposit *rocketpool.Contract + RocketNodeDistributorFactory *rocketpool.Contract + RocketNodeManager *rocketpool.Contract + RocketNodeStaking *rocketpool.Contract + RocketRewardsPool *rocketpool.Contract + RocketSmoothingPool *rocketpool.Contract + RocketStorage *rocketpool.Contract + RocketTokenRETH *rocketpool.Contract + RocketTokenRPL *rocketpool.Contract + RocketTokenRPLFixedSupply *rocketpool.Contract + Version *version.Version + func NewNetworkContracts(rp *rocketpool.RocketPool, multicallerAddress common.Address, ...) (*NetworkContracts, error) + type NetworkDetails struct + BalancesBlock *big.Int + BondReductionWindowLength time.Duration + BondReductionWindowStart time.Duration + DepositPoolBalance *big.Int + DepositPoolExcess *big.Int + DepositPoolUserBalance *big.Int + ETHUtilizationRate float64 + IntervalDuration time.Duration + IntervalStart time.Time + LatestReportableBalancesBlock *big.Int + LatestReportablePricesBlock uint64 + MaxCollateralFraction *big.Int + MinCollateralFraction *big.Int + MinipoolLaunchTimeout *big.Int + NodeFee float64 + NodeOperatorRewardsPercent *big.Int + PendingRPLRewards *big.Int + PricesBlock uint64 + PromotionScrubPeriod time.Duration + ProtocolDaoRewardsPercent *big.Int + QueueCapacity minipool.QueueCapacity + QueueLength *big.Int + RETHBalance *big.Int + RETHExchangeRate float64 + RPLInflationIntervalRate *big.Int + RPLTotalSupply *big.Int + RewardIndex uint64 + RplPrice *big.Int + ScrubPeriod time.Duration + SmoothingPoolAddress common.Address + SmoothingPoolBalance *big.Int + StakingETHBalance *big.Int + SubmitBalancesEnabled bool + SubmitPricesEnabled bool + TotalETHBalance *big.Int + TotalRETHSupply *big.Int + TotalRPLStake *big.Int + TrustedNodeOperatorRewardsPercent *big.Int + func NewNetworkDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts, isAtlasDeployed bool) (*NetworkDetails, error)