csapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinipoolCloseDetailsData

type MinipoolCloseDetailsData struct {
	Details []snapi.MinipoolCloseDetails `json:"details"`
}

type MinipoolCreateData

type MinipoolCreateData struct {
	CanCreate                       bool                   `json:"canCreate"`
	InsufficientBalance             bool                   `json:"insufficientBalance"`
	InsufficientLiquidity           bool                   `json:"insufficientLiquidity"`
	NotRegisteredWithNodeSet        bool                   `json:"notRegisteredWithNodeSet"`
	NotWhitelistedWithConstellation bool                   `json:"notWhitelistedWithConstellation"`
	IncorrectNodeAddress            bool                   `json:"incorrectNodeAddress"`
	MissingExitMessage              bool                   `json:"missingExitMessage"`
	InvalidPermissions              bool                   `json:"invalidPermissions"`
	RocketPoolDepositingDisabled    bool                   `json:"rocketPoolDepositingDisabled"`
	NodeSetDepositingDisabled       bool                   `json:"noteSetDepositingDisabled"`
	MaxMinipoolsReached             bool                   `json:"maxMinipoolsReached"`
	NodeBalance                     *big.Int               `json:"nodeBalance"`
	LockupAmount                    *big.Int               `json:"lockupAmount"`
	MinipoolAddress                 common.Address         `json:"minipoolAddress"`
	ValidatorPubkey                 beacon.ValidatorPubkey `json:"validatorPubkey"`
	Index                           uint64                 `json:"index"`
	ScrubPeriod                     time.Duration          `json:"scrubPeriod"`
	TxInfo                          *eth.TransactionInfo   `json:"txInfo"`
}

type MinipoolDetails

type MinipoolDetails struct {
	*snapi.MinipoolDetails
	RequiresSignedExit bool `json:"requiresSignedExit"`
}

type MinipoolExitBody

type MinipoolExitBody struct {
	Infos []MinipoolValidatorInfo `json:"infos"`
}

type MinipoolExitDetails

type MinipoolExitDetails struct {
	CanExit                bool                   `json:"canExit"`
	InvalidMinipoolStatus  bool                   `json:"invalidMinipoolStatus"`
	AlreadyFinalized       bool                   `json:"alreadyFinalized"`
	InvalidValidatorStatus bool                   `json:"invalidValidatorStatus"`
	ValidatorNotSeenYet    bool                   `json:"validatorNotSeenYet"`
	ValidatorTooYoung      bool                   `json:"validatorTooYoung"`
	Address                common.Address         `json:"address"`
	Pubkey                 beacon.ValidatorPubkey `json:"pubkey"`
	Index                  string                 `json:"index"`
	MinipoolStatus         rptypes.MinipoolStatus `json:"minipoolStatus"`
	MinipoolStatusTime     time.Time              `json:"minipoolStatusTime"`
	ValidatorStatus        beacon.ValidatorState  `json:"validatorStatus"`
	ActivationEpoch        uint64                 `json:"activationEpoch"`
	EligibleExitEpoch      uint64                 `json:"eligibleExitEpoch"`
}

type MinipoolExitDetailsData

type MinipoolExitDetailsData struct {
	Details      []MinipoolExitDetails `json:"details"`
	CurrentEpoch uint64                `json:"currentEpoch"`
}

type MinipoolGetAvailableMinipoolCountData

type MinipoolGetAvailableMinipoolCountData struct {
	Count int `json:"count"`
}

type MinipoolGetPubkeysData

type MinipoolGetPubkeysData struct {
	Infos []MinipoolValidatorInfo `json:"infos"`
}

type MinipoolStakeData

type MinipoolStakeData struct {
	NotWhitelistedWithConstellation bool                   `json:"notWhitelistedWithConstellation"`
	Details                         []MinipoolStakeDetails `json:"details"`
}

type MinipoolStakeDetails

type MinipoolStakeDetails struct {
	CanStake           bool                   `json:"canStake"`
	StillInScrubPeriod bool                   `json:"stillInScrubPeriod"`
	RemainingTime      time.Duration          `json:"remainingTime"`
	TimeUntilDissolve  time.Duration          `json:"timeUntilDissolve"`
	Address            common.Address         `json:"address"`
	Pubkey             beacon.ValidatorPubkey `json:"pubkey"`
	TxInfo             *eth.TransactionInfo   `json:"txInfo"`
}

type MinipoolStatusData

type MinipoolStatusData struct {
	NotRegisteredWithNodeSet        bool              `json:"notRegisteredWithNodeSet"`
	NotWhitelistedWithConstellation bool              `json:"notWhitelistedWithConstellation"`
	IncorrectNodeAddress            bool              `json:"incorrectNodeAddress"`
	InvalidPermissions              bool              `json:"invalidPermissions"`
	Minipools                       []MinipoolDetails `json:"minipools"`
	LatestDelegate                  common.Address    `json:"latestDelegate"`
	MaxValidatorsPerNode            uint64            `json:"maxValidatorsPerNode"`
}

type MinipoolUploadSignedExitBody

type MinipoolUploadSignedExitBody struct {
	Infos []MinipoolValidatorInfo `json:"infos"`
}

type MinipoolValidatorInfo

type MinipoolValidatorInfo struct {
	Address common.Address         `json:"address"`
	Pubkey  beacon.ValidatorPubkey `json:"pubkey"`
	Index   string                 `json:"index"`
}

type MinipoolVanityArtifactsData

type MinipoolVanityArtifactsData struct {
	SubNodeAddress         common.Address `json:"subNodeAddress"`
	SuperNodeAddress       common.Address `json:"superNodeAddress"`
	MinipoolFactoryAddress common.Address `json:"minipoolFactoryAddress"`
	InitHash               common.Hash    `json:"initHash"`
}

type NetworkStatsData

type NetworkStatsData struct {
	SubnodeCount                 int            `json:"subnodeCount"`
	ActiveMinipoolCount          int            `json:"activeMinipoolCount"`
	InitializedMinipoolCount     int            `json:"initializedMinipoolCount"`
	PrelaunchMinipoolCount       int            `json:"prelaunchMinipoolCount"`
	StakingMinipoolCount         int            `json:"stakingMinipoolCount"`
	DissolvedMinipoolCount       int            `json:"dissolvedMinipoolCount"`
	FinalizedMinipoolCount       int            `json:"finalizedMinipoolCount"`
	SuperNodeAddress             common.Address `json:"superNodeAddress"`
	SuperNodeRplStake            *big.Int       `json:"superNodeRplStake"`
	ConstellationEthBalance      *big.Int       `json:"constellationEthBalance"`
	ConstellationRplBalance      *big.Int       `json:"constellationRplBalance"`
	RocketPoolEthBalance         *big.Int       `json:"rocketPoolEthBalance"`
	MinipoolQueueLength          int            `json:"minipoolQueueLength"`
	MinipoolQueueCapacity        *big.Int       `json:"minipoolQueueCapacity"`
	RplPrice                     *big.Int       `json:"rplPrice"`
	RocketPoolEthUtilizationRate *big.Int       `json:"rocketPoolEthUtilizationRate"`
	ValidatorLimit               int            `json:"validatorLimit"`
}

type NodeGetRegistrationStatusData

type NodeGetRegistrationStatusData struct {
	Registered bool `json:"registered"`
}

type NodeRegisterData

type NodeRegisterData struct {
	TxInfo                   *eth.TransactionInfo `json:"txInfo"`
	NotAuthorized            bool                 `json:"notAuthorized"`
	NotRegisteredWithNodeSet bool                 `json:"notRegisteredWithNodeSet"`
	InvalidPermissions       bool                 `json:"invalidPermissions"`
	IncorrectNodeAddress     bool                 `json:"incorrectNodeAddress"`
}

type ServiceGetConfigData

type ServiceGetConfigData struct {
	Config map[string]any `json:"config"`
}

type ServiceGetNetworkSettingsData

type ServiceGetNetworkSettingsData struct {
	Settings *csconfig.ConstellationSettings `json:"settings"`
}

type ServiceGetResourcesData

type ServiceGetResourcesData struct {
	Resources *csconfig.MergedResources `json:"resources"`
}

type ServiceVersionData

type ServiceVersionData struct {
	Version string `json:"version"`
}

type WalletCreateValidatorKeyData

type WalletCreateValidatorKeyData struct {
	Index uint64 `json:"index"`
}

Jump to

Keyboard shortcuts

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