Documentation ¶
Overview ¶
This work is licensed and released under GNU GPL v3 or any other later versions. The full text of the license is below/ found at <http://www.gnu.org/licenses/>
(c) 2023 Rocket Pool Pty Ltd. Modified under GNU GPL v3. [1.4.7]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Variables
- func GetAllValidatorsRegisteredWithOperator(pnr *stader.PermissionlessNodeRegistryContractManager, operatorId *big.Int, ...) (map[types.ValidatorPubkey]contracts.Validator, []types.ValidatorPubkey, error)
- func GetValidatorRunningStatus(beaconValidatorStatus beacon.ValidatorStatus, ...) (string, error)
- func IsFirstRun(configDir string) bool
- func IsValidatorTerminal(validatorInfo contracts.Validator) bool
- func LoadConfigFromFile(path string) (*config.StaderConfig, error)
- func RemoveUpgradeFlagFile(configDir string) error
- func SaveConfig(cfg *config.StaderConfig, path string) error
- type FeeRecipientInfo
- type ValidatorInfo
Constants ¶
This section is empty.
Variables ¶
var ValidatorState = map[uint8]string{
0: "Initialized",
1: "Invalid Signature Submitted",
2: "Validator Deposit Front Run",
3: "Validator Queued for 28Eth deposit",
4: "Validator has been matched with 28Eth deposit",
5: "Funds Settled",
}
Functions ¶
func GetAllValidatorsRegisteredWithOperator ¶
func GetAllValidatorsRegisteredWithOperator(pnr *stader.PermissionlessNodeRegistryContractManager, operatorId *big.Int, operatorAddress common.Address, opts *bind.CallOpts) (map[types.ValidatorPubkey]contracts.Validator, []types.ValidatorPubkey, error)
func IsFirstRun ¶
Checks if this is the first run of the configurator after an install
func IsValidatorTerminal ¶
func LoadConfigFromFile ¶
func LoadConfigFromFile(path string) (*config.StaderConfig, error)
Loads a config without updating it if it exists
func RemoveUpgradeFlagFile ¶
Remove the upgrade flag file
func SaveConfig ¶
func SaveConfig(cfg *config.StaderConfig, path string) error
Saves a config and removes the upgrade flag file
Types ¶
type FeeRecipientInfo ¶
type FeeRecipientInfo struct { SocializingPoolAddress common.Address `json:"socializingPoolAddress"` FeeDistributorAddress common.Address `json:"feeDistributorAddress"` IsInSocializingPool bool `json:"isInSocializingPool"` }
func GetFeeRecipientInfo ¶
func GetFeeRecipientInfo(prn *stader.PermissionlessNodeRegistryContractManager, vf *stader.VaultFactoryContractManager, sdcfg *stader.StaderConfigContractManager, nodeAddress common.Address, opts *bind.CallOpts) (*FeeRecipientInfo, error)
type ValidatorInfo ¶
type ValidatorInfo struct { Status uint8 StatusToDisplay string Pubkey []byte PreDepositSignature []byte DepositSignature []byte WithdrawVaultAddress common.Address WithdrawVaultRewardBalance *big.Int WithdrawVaultWithdrawableBalance *big.Int CrossedRewardsThreshold bool OperatorId *big.Int DepositBlock *big.Int DepositTime time.Time WithdrawnBlock *big.Int WithdrawnTime time.Time }