stdr

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

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.5.0]

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

Constants

This section is empty.

Variables

View Source
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 GetValidatorRunningStatus

func GetValidatorRunningStatus(beaconValidatorStatus beacon.ValidatorStatus, validatorContractInfo contracts.Validator) (string, error)

func IsFirstRun

func IsFirstRun(configDir string) bool

Checks if this is the first run of the configurator after an install

func IsValidatorTerminal

func IsValidatorTerminal(validatorInfo contracts.Validator) bool

func LoadConfigFromFile

func LoadConfigFromFile(path string) (*config.StaderConfig, error)

Loads a config without updating it if it exists

func RemoveUpgradeFlagFile

func RemoveUpgradeFlagFile(configDir string) error

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"`
}

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
}

Jump to

Keyboard shortcuts

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