api

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: GPL-3.0 Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type AuctionLotsResponse added in v1.0.0

type AuctionLotsResponse struct {
	Status string       `json:"status"`
	Error  string       `json:"error"`
	Lots   []LotDetails `json:"lots"`
}

type AuctionStatusResponse added in v1.0.0

type AuctionStatusResponse struct {
	Status              string   `json:"status"`
	Error               string   `json:"error"`
	TotalRPLBalance     *big.Int `json:"totalRPLBalance"`
	AllottedRPLBalance  *big.Int `json:"allottedRPLBalance"`
	RemainingRPLBalance *big.Int `json:"remainingRPLBalance"`
	CanCreateLot        bool     `json:"canCreateLot"`
	LotCounts           struct {
		ClaimAvailable       int `json:"claimAvailable"`
		BiddingAvailable     int `json:"biddingAvailable"`
		RPLRecoveryAvailable int `json:"rplRecoveryAvailable"`
	} `json:"lotCounts"`
}

type BeaconStateResponse added in v1.18.0

type BeaconStateResponse struct {
	Proof []string `json:"proof"`
}

type BeginReduceBondAmountResponse added in v1.9.0

type BeginReduceBondAmountResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type BidOnLotResponse added in v1.0.0

type BidOnLotResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type BondClaimResult added in v1.13.0

type BondClaimResult struct {
	ProposalID        uint64   `json:"proposalId"`
	IsProposer        bool     `json:"isProposer"`
	UnlockableIndices []uint64 `json:"unlockableIndices"`
	RewardableIndices []uint64 `json:"rewardableIndices"`
	UnlockAmount      *big.Int `json:"unlockAmount"`
	RewardAmount      *big.Int `json:"rewardAmount"`
}

type CanBeginReduceBondAmountResponse added in v1.9.0

type CanBeginReduceBondAmountResponse struct {
	Status                string                `json:"status"`
	Error                 string                `json:"error"`
	BondReductionDisabled bool                  `json:"bondReductionDisabled"`
	MinipoolVersionTooLow bool                  `json:"minipoolVersionTooLow"`
	Balance               uint64                `json:"balance"`
	BalanceTooLow         bool                  `json:"balanceTooLow"`
	BorrowRequest         *big.Int              `json:"borrowRequest"`
	BeaconState           beacon.ValidatorState `json:"beaconState"`
	InvalidBeaconState    bool                  `json:"invalidBeaconState"`
	CanReduce             bool                  `json:"canReduce"`
	GasInfo               rocketpool.GasInfo    `json:"gasInfo"`
}

type CanBidOnLotResponse added in v1.0.0

type CanBidOnLotResponse struct {
	Status           string             `json:"status"`
	Error            string             `json:"error"`
	CanBid           bool               `json:"canBid"`
	DoesNotExist     bool               `json:"doesNotExist"`
	BiddingEnded     bool               `json:"biddingEnded"`
	RPLExhausted     bool               `json:"rplExhausted"`
	BidOnLotDisabled bool               `json:"bidOnLotDisabled"`
	GasInfo          rocketpool.GasInfo `json:"gasInfo"`
}

type CanCancelPDAOProposalResponse added in v1.13.0

type CanCancelPDAOProposalResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanCancel       bool               `json:"canCancel"`
	DoesNotExist    bool               `json:"doesNotExist"`
	InvalidState    bool               `json:"invalidState"`
	InvalidProposer bool               `json:"invalidProposer"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type CanCancelTNDAOProposalResponse added in v1.0.0

type CanCancelTNDAOProposalResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanCancel       bool               `json:"canCancel"`
	DoesNotExist    bool               `json:"doesNotExist"`
	InvalidState    bool               `json:"invalidState"`
	InvalidProposer bool               `json:"invalidProposer"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type CanChangeWithdrawalCredentialsResponse added in v1.9.0

type CanChangeWithdrawalCredentialsResponse struct {
	Status    string `json:"status"`
	Error     string `json:"error"`
	CanChange bool   `json:"canChange"`
}

type CanClaimFromLotResponse added in v1.0.0

type CanClaimFromLotResponse struct {
	Status           string             `json:"status"`
	Error            string             `json:"error"`
	CanClaim         bool               `json:"canClaim"`
	DoesNotExist     bool               `json:"doesNotExist"`
	NoBidFromAddress bool               `json:"noBidFromAddress"`
	NotCleared       bool               `json:"notCleared"`
	GasInfo          rocketpool.GasInfo `json:"gasInfo"`
}

type CanClaimRefundResponse added in v1.18.0

type CanClaimRefundResponse struct {
	Status   string             `json:"status"`
	Error    string             `json:"error"`
	CanClaim bool               `json:"canClaim"`
	GasInfo  rocketpool.GasInfo `json:"gasInfo"`
}

type CanClaimUnclaimedRewardsResponse added in v1.18.0

type CanClaimUnclaimedRewardsResponse struct {
	Status   string             `json:"status"`
	Error    string             `json:"error"`
	CanClaim bool               `json:"canClaim"`
	GasInfo  rocketpool.GasInfo `json:"gasInfo"`
}

type CanConfirmNodePrimaryWithdrawalAddressResponse added in v1.13.0

type CanConfirmNodePrimaryWithdrawalAddressResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanConfirm bool               `json:"canConfirm"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type CanConfirmNodeRPLWithdrawalAddressResponse added in v1.13.0

type CanConfirmNodeRPLWithdrawalAddressResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanConfirm bool               `json:"canConfirm"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type CanCreateLotResponse added in v1.0.0

type CanCreateLotResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanCreate           bool               `json:"canCreate"`
	InsufficientBalance bool               `json:"insufficientBalance"`
	CreateLotDisabled   bool               `json:"createLotDisabled"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanCreateVacantMinipoolResponse added in v1.9.0

type CanCreateVacantMinipoolResponse struct {
	Status               string             `json:"status"`
	Error                string             `json:"error"`
	CanDeposit           bool               `json:"canDeposit"`
	InsufficientRplStake bool               `json:"insufficientRplStake"`
	InvalidAmount        bool               `json:"invalidAmount"`
	DepositDisabled      bool               `json:"depositDisabled"`
	MinipoolAddress      common.Address     `json:"minipoolAddress"`
	GasInfo              rocketpool.GasInfo `json:"gasInfo"`
}

type CanDelegateRollbackResponse added in v1.0.0

type CanDelegateRollbackResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	RollbackAddress common.Address     `json:"rollbackAddress"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type CanDelegateUpgradeResponse added in v1.0.0

type CanDelegateUpgradeResponse struct {
	Status                string             `json:"status"`
	Error                 string             `json:"error"`
	LatestDelegateAddress common.Address     `json:"latestDelegateAddress"`
	GasInfo               rocketpool.GasInfo `json:"gasInfo"`
}

type CanDeployMegapoolResponse added in v1.18.0

type CanDeployMegapoolResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanDeploy       bool               `json:"canDeploy"`
	AlreadyDeployed bool               `json:"alreadyDeployed"`
	ExpectedAddress common.Address     `json:"expectedAddress"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type CanDissolveMinipoolResponse

type CanDissolveMinipoolResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanDissolve   bool               `json:"canDissolve"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanDissolveValidatorResponse added in v1.18.0

type CanDissolveValidatorResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanDissolve   bool               `json:"canDissolve"`
	NotInPrestake bool               `json:"notInPrestake"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanDissolveWithProofResponse added in v1.18.0

type CanDissolveWithProofResponse struct {
	Status           string             `json:"status"`
	Error            string             `json:"error"`
	CanDissolve      bool               `json:"canDissolve"`
	NotInPrestake    bool               `json:"notInPrestake"`
	ValidCredentials bool               `json:"validCredentials"`
	GasInfo          rocketpool.GasInfo `json:"gasInfo"`
}

type CanDistributeBalanceResponse added in v1.9.0

type CanDistributeBalanceResponse struct {
	Status          string               `json:"status"`
	Error           string               `json:"error"`
	MinipoolVersion uint8                `json:"minipoolVersion"`
	MinipoolStatus  types.MinipoolStatus `json:"minipoolStatus"`
	Balance         *big.Int             `json:"balance"`
	CanDistribute   bool                 `json:"canDistribute"`
	GasInfo         rocketpool.GasInfo   `json:"gasInfo"`
}

type CanDistributeMegapoolResponse added in v1.18.0

type CanDistributeMegapoolResponse struct {
	Status                string             `json:"status"`
	Error                 string             `json:"error"`
	MegapoolAddress       common.Address     `json:"megapoolAddress"`
	MegapoolNotDeployed   bool               `json:"megapoolNotDeployed"`
	LastDistributionBlock uint64             `json:"lastDistributionBlock"`
	LockedValidatorCount  uint32             `json:"lockedValidatorCount"`
	ExitingValidatorCount uint32             `json:"exitingValidatorCount"`
	CanDistribute         bool               `json:"canDistribute"`
	Details               MegapoolDetails    `json:"details"`
	GasInfo               rocketpool.GasInfo `json:"gasInfo"`
}

type CanExecutePDAOProposalResponse added in v1.13.0

type CanExecutePDAOProposalResponse struct {
	Status       string             `json:"status"`
	Error        string             `json:"error"`
	CanExecute   bool               `json:"canExecute"`
	DoesNotExist bool               `json:"doesNotExist"`
	InvalidState bool               `json:"invalidState"`
	GasInfo      rocketpool.GasInfo `json:"gasInfo"`
}

type CanExecuteTNDAOProposalResponse added in v1.0.0

type CanExecuteTNDAOProposalResponse struct {
	Status       string             `json:"status"`
	Error        string             `json:"error"`
	CanExecute   bool               `json:"canExecute"`
	DoesNotExist bool               `json:"doesNotExist"`
	InvalidState bool               `json:"invalidState"`
	GasInfo      rocketpool.GasInfo `json:"gasInfo"`
}

type CanExitMinipoolResponse

type CanExitMinipoolResponse struct {
	Status        string `json:"status"`
	Error         string `json:"error"`
	CanExit       bool   `json:"canExit"`
	InvalidStatus bool   `json:"invalidStatus"`
}

type CanExitQueueResponse added in v1.18.0

type CanExitQueueResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	CanExit bool               `json:"canExit"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanExitValidatorResponse added in v1.18.0

type CanExitValidatorResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanExit       bool               `json:"canExit"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanFinaliseMinipoolResponse added in v1.0.0

type CanFinaliseMinipoolResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanJoinTNDAOResponse added in v1.0.0

type CanJoinTNDAOResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanJoin                bool               `json:"canJoin"`
	ProposalExpired        bool               `json:"proposalExpired"`
	AlreadyMember          bool               `json:"alreadyMember"`
	InsufficientRplBalance bool               `json:"insufficientRplBalance"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanLeaveTNDAOResponse added in v1.0.0

type CanLeaveTNDAOResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanLeave            bool               `json:"canLeave"`
	ProposalExpired     bool               `json:"proposalExpired"`
	InsufficientMembers bool               `json:"insufficientMembers"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanNetworkGenerateRewardsTreeResponse added in v1.5.0

type CanNetworkGenerateRewardsTreeResponse struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	CurrentIndex   uint64 `json:"currentIndex"`
	TreeFileExists bool   `json:"treeFileExists"`
}

type CanNodeBurnResponse

type CanNodeBurnResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanBurn                bool               `json:"canBurn"`
	InsufficientBalance    bool               `json:"insufficientBalance"`
	InsufficientCollateral bool               `json:"insufficientCollateral"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeClaimAndStakeRewardsResponse added in v1.5.0

type CanNodeClaimAndStakeRewardsResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeClaimRewardsResponse added in v1.5.0

type CanNodeClaimRewardsResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeClaimRplResponse added in v1.0.0

type CanNodeClaimRplResponse struct {
	Status    string             `json:"status"`
	Error     string             `json:"error"`
	RplAmount *big.Int           `json:"rplAmount"`
	GasInfo   rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeDepositResponse

type CanNodeDepositResponse struct {
	Status                           string             `json:"status"`
	Error                            string             `json:"error"`
	CanDeposit                       bool               `json:"canDeposit"`
	CreditBalance                    *big.Int           `json:"creditBalance"`
	DepositBalance                   *big.Int           `json:"depositBalance"`
	CanUseCredit                     bool               `json:"canUseCredit"`
	NodeBalance                      *big.Int           `json:"nodeBalance"`
	InsufficientBalance              bool               `json:"insufficientBalance"`
	InsufficientBalanceWithoutCredit bool               `json:"insufficientBalanceWithoutCredit"`
	InvalidAmount                    bool               `json:"invalidAmount"`
	DepositDisabled                  bool               `json:"depositDisabled"`
	InConsensus                      bool               `json:"inConsensus"`
	MinipoolAddress                  common.Address     `json:"minipoolAddress"`
	MegapoolAddress                  common.Address     `json:"megapoolAddress"`
	GasInfo                          rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeSendMessageResponse added in v1.9.7

type CanNodeSendMessageResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeSendResponse

type CanNodeSendResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	Balance             float64            `json:"balance"`
	TokenName           string             `json:"name"`
	TokenSymbol         string             `json:"symbol"`
	CanSend             bool               `json:"canSend"`
	InsufficientBalance bool               `json:"insufficientBalance"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeStakeRplResponse added in v1.0.0

type CanNodeStakeRplResponse struct {
	Status               string             `json:"status"`
	Error                string             `json:"error"`
	CanStake             bool               `json:"canStake"`
	InsufficientBalance  bool               `json:"insufficientBalance"`
	MinimumRplStake      *big.Int           `json:"minimumRplStake"`
	InConsensus          bool               `json:"inConsensus"`
	MaximumStakeFraction float64            `json:"maximumStakeFraction"`
	GasInfo              rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeSwapRplResponse added in v1.0.0

type CanNodeSwapRplResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanSwap             bool               `json:"canSwap"`
	InsufficientBalance bool               `json:"insufficientBalance"`
	GasInfo             rocketpool.GasInfo `json:"GasInfo"`
}

type CanNodeUnstakeLegacyRplResponse added in v1.18.0

type CanNodeUnstakeLegacyRplResponse struct {
	Status                           string             `json:"status"`
	Error                            string             `json:"error"`
	CanUnstake                       bool               `json:"canUnstake"`
	InsufficientBalance              bool               `json:"insufficientBalance"`
	HasDifferentRPLWithdrawalAddress bool               `json:"hasDifferentRPLWithdrawalAddress"`
	BelowMaxRPLStake                 bool               `json:"belowMaxRPLStake"`
	GasInfo                          rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeUnstakeRplResponse added in v1.18.0

type CanNodeUnstakeRplResponse struct {
	Status                           string             `json:"status"`
	Error                            string             `json:"error"`
	CanUnstake                       bool               `json:"canUnstake"`
	InsufficientBalance              bool               `json:"insufficientBalance"`
	HasDifferentRPLWithdrawalAddress bool               `json:"hasDifferentRPLWithdrawalAddress"`
	GasInfo                          rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeWithdrawCreditResponse added in v1.18.0

type CanNodeWithdrawCreditResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanWithdraw         bool               `json:"canWithdraw"`
	InsufficientBalance bool               `json:"insufficientBalance"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeWithdrawEthResponse added in v1.13.0

type CanNodeWithdrawEthResponse struct {
	Status                        string             `json:"status"`
	Error                         string             `json:"error"`
	CanWithdraw                   bool               `json:"canWithdraw"`
	InsufficientBalance           bool               `json:"insufficientBalance"`
	HasDifferentWithdrawalAddress bool               `json:"hasDifferentWithdrawalAddress"`
	GasInfo                       rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeWithdrawRplResponse added in v1.0.0

type CanNodeWithdrawRplResponse struct {
	Status                           string             `json:"status"`
	Error                            string             `json:"error"`
	CanWithdraw                      bool               `json:"canWithdraw"`
	InsufficientBalance              bool               `json:"insufficientBalance"`
	UnstakingPeriodActive            bool               `json:"unstakingPeriodActive"`
	HasDifferentRPLWithdrawalAddress bool               `json:"hasDifferentRPLWithdrawalAddress"`
	GasInfo                          rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeWithdrawRplv1_3_1Response added in v1.18.0

type CanNodeWithdrawRplv1_3_1Response struct {
	Status                           string             `json:"status"`
	Error                            string             `json:"error"`
	CanWithdraw                      bool               `json:"canWithdraw"`
	InsufficientBalance              bool               `json:"insufficientBalance"`
	BelowMaxRPLStake                 bool               `json:"belowMaxRPLStake"`
	MinipoolsUndercollateralized     bool               `json:"minipoolsUndercollateralized"`
	WithdrawalDelayActive            bool               `json:"withdrawalDelayActive"`
	HasDifferentRPLWithdrawalAddress bool               `json:"hasDifferentRPLWithdrawalAddress"`
	GasInfo                          rocketpool.GasInfo `json:"gasInfo"`
}

type CanNotifyFinalBalanceResponse added in v1.18.0

type CanNotifyFinalBalanceResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanExit       bool               `json:"canExit"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanNotifyValidatorExitResponse added in v1.18.0

type CanNotifyValidatorExitResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanExit       bool               `json:"canExit"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanPenaliseMegapoolResponse added in v1.18.0

type CanPenaliseMegapoolResponse struct {
	Status      string             `json:"status"`
	Error       string             `json:"error"`
	CanPenalise bool               `json:"canPenalise"`
	GasInfo     rocketpool.GasInfo `json:"gasInfo"`
}

type CanProcessQueueResponse

type CanProcessQueueResponse struct {
	Status                     string             `json:"status"`
	Error                      string             `json:"error"`
	CanProcess                 bool               `json:"canProcess"`
	AssignDepositsDisabled     bool               `json:"assignDepositsDisabled"`
	NoMinipoolsAvailable       bool               `json:"noMinipoolsAvailable"`
	InsufficientDepositBalance bool               `json:"insufficientDepositBalance"`
	GasInfo                    rocketpool.GasInfo `json:"gasInfo"`
}

type CanProcessWithdrawalAndFinaliseResponse added in v1.0.0

type CanProcessWithdrawalAndFinaliseResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanWithdraw   bool               `json:"canWithdraw"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanProcessWithdrawalResponse added in v1.0.0

type CanProcessWithdrawalResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanWithdraw   bool               `json:"canWithdraw"`
	InvalidStatus bool               `json:"invalidStatus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanPromoteMinipoolResponse added in v1.9.0

type CanPromoteMinipoolResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanPromote bool               `json:"canPromote"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type CanProposePDAOSettingResponse added in v1.13.0

type CanProposePDAOSettingResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	InsufficientRpl        bool               `json:"proposalCooldownActive"`
	StakedRpl              *big.Int           `json:"stakedRpl"`
	LockedRpl              *big.Int           `json:"lockedRpl"`
	ProposalBond           *big.Int           `json:"proposalBond"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type CanProposeTNDAOInviteResponse added in v1.0.0

type CanProposeTNDAOInviteResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	ProposalCooldownActive bool               `json:"proposalCooldownActive"`
	MemberAlreadyExists    bool               `json:"memberAlreadyExists"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanProposeTNDAOKickResponse added in v1.0.0

type CanProposeTNDAOKickResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	ProposalCooldownActive bool               `json:"proposalCooldownActive"`
	InsufficientRplBond    bool               `json:"insufficientRplBond"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanProposeTNDAOLeaveResponse added in v1.0.0

type CanProposeTNDAOLeaveResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	ProposalCooldownActive bool               `json:"proposalCooldownActive"`
	InsufficientMembers    bool               `json:"insufficientMembers"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanProposeTNDAOReplaceResponse added in v1.0.0

type CanProposeTNDAOReplaceResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	ProposalCooldownActive bool               `json:"proposalCooldownActive"`
	MemberAlreadyExists    bool               `json:"memberAlreadyExists"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanProposeTNDAOSettingResponse added in v1.0.0

type CanProposeTNDAOSettingResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	ProposalCooldownActive bool               `json:"proposalCooldownActive"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanProvisionExpressTicketsResponse added in v1.18.0

type CanProvisionExpressTicketsResponse struct {
	Status             string             `json:"status"`
	Error              string             `json:"error"`
	CanProvision       bool               `json:"canProvision"`
	AlreadyProvisioned bool               `json:"alreadyProvisioned"`
	GasInfo            rocketpool.GasInfo `json:"gasInfo"`
}

type CanRecoverRPLFromLotResponse added in v1.0.0

type CanRecoverRPLFromLotResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanRecover          bool               `json:"canRecover"`
	DoesNotExist        bool               `json:"doesNotExist"`
	BiddingNotEnded     bool               `json:"biddingNotEnded"`
	NoUnclaimedRPL      bool               `json:"noUnclaimedRpl"`
	RPLAlreadyRecovered bool               `json:"rplAlreadyRecovered"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanReduceBondAmountResponse added in v1.9.0

type CanReduceBondAmountResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	MinipoolVersion uint8              `json:"minipoolVersion"`
	CanReduce       bool               `json:"canReduce"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type CanReduceBondResponse added in v1.18.0

type CanReduceBondResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanReduceBond bool               `json:"canReduceBond"`
	NotEnoughBond bool               `json:"notEnoughBond"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanRefundMinipoolResponse

type CanRefundMinipoolResponse struct {
	Status                    string             `json:"status"`
	Error                     string             `json:"error"`
	CanRefund                 bool               `json:"canRefund"`
	InsufficientRefundBalance bool               `json:"insufficientRefundBalance"`
	GasInfo                   rocketpool.GasInfo `json:"gasInfo"`
}

type CanRegisterNodeResponse

type CanRegisterNodeResponse struct {
	Status               string             `json:"status"`
	Error                string             `json:"error"`
	CanRegister          bool               `json:"canRegister"`
	AlreadyRegistered    bool               `json:"alreadyRegistered"`
	RegistrationDisabled bool               `json:"registrationDisabled"`
	GasInfo              rocketpool.GasInfo `json:"gasInfo"`
}

type CanRepayDebtResponse added in v1.18.0

type CanRepayDebtResponse struct {
	Status           string             `json:"status"`
	Error            string             `json:"error"`
	CanRepay         bool               `json:"canRepay"`
	NotEnoughDebt    bool               `json:"notEnoughDebt"`
	NotEnoughBalance bool               `json:"notEnoughBalance"`
	GasInfo          rocketpool.GasInfo `json:"gasInfo"`
}

type CanReplaceTNDAOPositionResponse added in v1.0.0

type CanReplaceTNDAOPositionResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanReplace          bool               `json:"canReplace"`
	ProposalExpired     bool               `json:"proposalExpired"`
	MemberAlreadyExists bool               `json:"memberAlreadyExists"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetNodePrimaryWithdrawalAddressResponse added in v1.13.0

type CanSetNodePrimaryWithdrawalAddressResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	CanSet  bool               `json:"canSet"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetNodeRPLWithdrawalAddressResponse added in v1.13.0

type CanSetNodeRPLWithdrawalAddressResponse struct {
	Status                string             `json:"status"`
	Error                 string             `json:"error"`
	CanSet                bool               `json:"canSet"`
	PrimaryAddressDiffers bool               `json:"primaryAddressDiffers"`
	RPLAddressDiffers     bool               `json:"rplAddressDiffers"`
	RPLStake              *big.Int           `json:"rplStake"`
	GasInfo               rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetNodeTimezoneResponse added in v1.0.0

type CanSetNodeTimezoneResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	CanSet  bool               `json:"canSet"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetRplLockingAllowedResponse added in v1.13.0

type CanSetRplLockingAllowedResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	CanSet  bool               `json:"canSet"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetSmoothingPoolRegistrationStatusResponse added in v1.5.0

type CanSetSmoothingPoolRegistrationStatusResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetStakeRplForAllowedResponse added in v1.9.4

type CanSetStakeRplForAllowedResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	CanSet  bool               `json:"canSet"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanSetUseLatestDelegateResponse added in v1.0.0

type CanSetUseLatestDelegateResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type CanStakeMinipoolResponse added in v1.2.3

type CanStakeMinipoolResponse struct {
	Status   string             `json:"status"`
	Error    string             `json:"error"`
	CanStake bool               `json:"canStake"`
	GasInfo  rocketpool.GasInfo `json:"gasInfo"`
}

type CanStakeResponse added in v1.18.0

type CanStakeResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanStake      bool               `json:"canStake"`
	IndexNotFound bool               `json:"indexNotFound"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanVoteOnPDAOProposalResponse added in v1.13.0

type CanVoteOnPDAOProposalResponse struct {
	Status            string             `json:"status"`
	Error             string             `json:"error"`
	CanVote           bool               `json:"canVote"`
	DoesNotExist      bool               `json:"doesNotExist"`
	InvalidState      bool               `json:"invalidState"`
	InsufficientPower bool               `json:"insufficientPower"`
	AlreadyVoted      bool               `json:"alreadyVoted"`
	VotingPower       *big.Int           `json:"votingPower"`
	GasInfo           rocketpool.GasInfo `json:"gasInfo"`
}

type CanVoteOnTNDAOProposalResponse added in v1.0.0

type CanVoteOnTNDAOProposalResponse struct {
	Status             string             `json:"status"`
	Error              string             `json:"error"`
	CanVote            bool               `json:"canVote"`
	DoesNotExist       bool               `json:"doesNotExist"`
	InvalidState       bool               `json:"invalidState"`
	JoinedAfterCreated bool               `json:"joinedAfterCreated"`
	AlreadyVoted       bool               `json:"alreadyVoted"`
	GasInfo            rocketpool.GasInfo `json:"gasInfo"`
}

type CancelPDAOProposalResponse added in v1.13.0

type CancelPDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type CancelTNDAOProposalResponse added in v1.0.0

type CancelTNDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ChangeWithdrawalCredentialsResponse added in v1.9.0

type ChangeWithdrawalCredentialsResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type CheckCollateralResponse added in v1.9.0

type CheckCollateralResponse struct {
	Status                 string   `json:"status"`
	Error                  string   `json:"error"`
	EthBorrowed            *big.Int `json:"ethBorrowed"`
	EthBorrowedLimit       *big.Int `json:"ethBorrowedLimit"`
	PendingBorrowAmount    *big.Int `json:"pendingBorrowAmount"`
	InsufficientCollateral bool     `json:"insufficientCollateral"`
}

type ClaimFromLotResponse added in v1.0.0

type ClaimFromLotResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ClaimRefundResponse added in v1.18.0

type ClaimRefundResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ClaimUnclaimedRewardsResponse added in v1.18.0

type ClaimUnclaimedRewardsResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ClientManagerStatus added in v1.5.0

type ClientManagerStatus struct {
	PrimaryClientStatus  ClientStatus `json:"primaryEcStatus"`
	FallbackEnabled      bool         `json:"fallbackEnabled"`
	FallbackClientStatus ClientStatus `json:"fallbackEcStatus"`
}

This is a wrapper for the manager's overall status report

type ClientStatus added in v1.5.0

type ClientStatus struct {
	IsWorking    bool    `json:"isWorking"`
	IsSynced     bool    `json:"isSynced"`
	SyncProgress float64 `json:"syncProgress"`
	NetworkId    uint    `json:"networkId"`
	Error        string  `json:"error"`
}

This is a wrapper for the EC status report

type ClientStatusResponse added in v1.5.0

type ClientStatusResponse struct {
	Status          string              `json:"status"`
	Error           string              `json:"error"`
	EcManagerStatus ClientManagerStatus `json:"ecManagerStatus"`
	BcManagerStatus ClientManagerStatus `json:"bcManagerStatus"`
}

type CloseMinipoolResponse

type CloseMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ConfirmNodePrimaryWithdrawalAddressResponse added in v1.13.0

type ConfirmNodePrimaryWithdrawalAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ConfirmNodeRPLWithdrawalAddressResponse added in v1.13.0

type ConfirmNodeRPLWithdrawalAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type CreateFeeRecipientFileResponse added in v1.5.0

type CreateFeeRecipientFileResponse struct {
	Status      string         `json:"status"`
	Error       string         `json:"error"`
	Distributor common.Address `json:"distributor"`
}

type CreateLotResponse added in v1.0.0

type CreateLotResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	LotId  uint64      `json:"lotId"`
	TxHash common.Hash `json:"txHash"`
}

type CreateVacantMinipoolResponse added in v1.9.0

type CreateVacantMinipoolResponse struct {
	Status                string         `json:"status"`
	Error                 string         `json:"error"`
	TxHash                common.Hash    `json:"txHash"`
	MinipoolAddress       common.Address `json:"minipoolAddress"`
	ScrubPeriod           time.Duration  `json:"scrubPeriod"`
	WithdrawalCredentials common.Hash    `json:"withdrawalCredentials"`
}

type DelegateRollbackResponse added in v1.0.0

type DelegateRollbackResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DelegateUpgradeResponse added in v1.0.0

type DelegateUpgradeResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DeployMegapoolResponse added in v1.18.0

type DeployMegapoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DepositContractInfoResponse added in v1.0.0

type DepositContractInfoResponse struct {
	Status                string         `json:"status"`
	Error                 string         `json:"error"`
	RPDepositContract     common.Address `json:"rpDepositContract"`
	RPNetwork             uint64         `json:"rpNetwork"`
	BeaconDepositContract common.Address `json:"beaconDepositContract"`
	BeaconNetwork         uint64         `json:"beaconNetwork"`
	SufficientSync        bool           `json:"sufficientSync"`
}

type DissolveMinipoolResponse

type DissolveMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DissolveValidatorResponse added in v1.18.0

type DissolveValidatorResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DissolveWithProofResponse added in v1.18.0

type DissolveWithProofResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DistributeBalanceResponse added in v1.9.0

type DistributeBalanceResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DistributeMegapoolResponse added in v1.18.0

type DistributeMegapoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type DownloadRewardsFileResponse added in v1.9.0

type DownloadRewardsFileResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type EndMasqueradeResponse added in v1.15.7

type EndMasqueradeResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type EstimateDistributeBalanceGasResponse added in v1.9.0

type EstimateDistributeBalanceGasResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type ExecutePDAOProposalResponse added in v1.13.0

type ExecutePDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ExecuteTNDAOProposalResponse added in v1.0.0

type ExecuteTNDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ExitMinipoolResponse

type ExitMinipoolResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type ExitQueueResponse added in v1.18.0

type ExitQueueResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ExitValidatorResponse added in v1.18.0

type ExitValidatorResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ExportWalletResponse

type ExportWalletResponse struct {
	Status            string `json:"status"`
	Error             string `json:"error"`
	Password          string `json:"password"`
	Wallet            string `json:"wallet"`
	AccountPrivateKey string `json:"accountPrivateKey"`
}

type FinaliseMinipoolResponse added in v1.0.0

type FinaliseMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type GetBondReductionEnabledResponse added in v1.18.0

type GetBondReductionEnabledResponse struct {
	Status               string `json:"status"`
	Error                string `json:"error"`
	BondReductionEnabled bool   `json:"bondReductionEnabled"`
}

type GetDelegateResponse added in v1.0.0

type GetDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetDistributeBalanceDetailsResponse added in v1.9.0

type GetDistributeBalanceDetailsResponse struct {
	Status  string                               `json:"status"`
	Error   string                               `json:"error"`
	Details []MinipoolBalanceDistributionDetails `json:"details"`
}

type GetEffectiveDelegateResponse added in v1.0.0

type GetEffectiveDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetExpressTicketCountResponse added in v1.18.0

type GetExpressTicketCountResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
	Count  uint64 `json:"count"`
}

type GetExpressTicketsProvisionedResponse added in v1.18.0

type GetExpressTicketsProvisionedResponse struct {
	Status      string `json:"status"`
	Error       string `json:"error"`
	Provisioned bool   `json:"provisioned"`
}

type GetLatestDelegateResponse added in v1.9.0

type GetLatestDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetMinipoolCloseDetailsForNodeResponse added in v1.9.0

type GetMinipoolCloseDetailsForNodeResponse struct {
	Status                      string                 `json:"status"`
	Error                       string                 `json:"error"`
	IsFeeDistributorInitialized bool                   `json:"isFeeDistributorInitialized"`
	Details                     []MinipoolCloseDetails `json:"details"`
}

type GetMinipoolRescueDissolvedDetailsForNodeResponse added in v1.9.4

type GetMinipoolRescueDissolvedDetailsForNodeResponse struct {
	Status  string                           `json:"status"`
	Error   string                           `json:"error"`
	Details []MinipoolRescueDissolvedDetails `json:"details"`
}

type GetNodePendingPrimaryWithdrawalAddressResponse added in v1.13.0

type GetNodePendingPrimaryWithdrawalAddressResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetNodePrimaryWithdrawalAddressResponse added in v1.13.0

type GetNodePrimaryWithdrawalAddressResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetPDAOSettingsResponse added in v1.13.0

type GetPDAOSettingsResponse struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	SaturnDeployed bool   `json:"saturnDeployed"`
	Auction        struct {
		IsCreateLotEnabled    bool          `json:"isCreateLotEnabled"`
		IsBidOnLotEnabled     bool          `json:"isBidOnLotEnabled"`
		LotMinimumEthValue    *big.Int      `json:"lotMinimumEthValue"`
		LotMaximumEthValue    *big.Int      `json:"lotMaximumEthValue"`
		LotDuration           time.Duration `json:"lotDuration"`
		LotStartingPriceRatio *big.Int      `json:"lotStartingPriceRatio"`
		LotReservePriceRatio  *big.Int      `json:"lotReservePriceRatio"`
	} `json:"auction"`

	Deposit struct {
		IsDepositingEnabled                    bool     `json:"isDepositingEnabled"`
		AreDepositAssignmentsEnabled           bool     `json:"areDepositAssignmentsEnabled"`
		MinimumDeposit                         *big.Int `json:"minimumDeposit"`
		MaximumDepositPoolSize                 *big.Int `json:"maximumDepositPoolSize"`
		MaximumAssignmentsPerDeposit           uint64   `json:"maximumAssignmentsPerDeposit"`
		MaximumSocialisedAssignmentsPerDeposit uint64   `json:"maximumSocialisedAssignmentsPerDeposit"`
		DepositFee                             *big.Int `json:"depositFee"`
		ExpressQueueRate                       uint64   `json:"expressQueueRate"`
		ExpressQueueTicketsBaseProvision       uint64   `json:"expressQueueTicketsBaseProvision"`
	} `json:"deposit"`

	Inflation struct {
		IntervalRate *big.Int  `json:"intervalRate"`
		StartTime    time.Time `json:"startTime"`
	} `json:"inflation"`

	Minipool struct {
		IsSubmitWithdrawableEnabled bool          `json:"isSubmitWithdrawableEnabled"`
		LaunchTimeout               time.Duration `json:"launchTimeout"`
		IsBondReductionEnabled      bool          `json:"isBondReductionEnabled"`
		MaximumCount                uint64        `json:"maximumCount"`
		UserDistributeWindowStart   time.Duration `json:"userDistributeWindowStart"`
		UserDistributeWindowLength  time.Duration `json:"userDistributeWindowLength"`
		MaximumPenaltyCount         uint64        `json:"maximumPenaltyCount"`
	} `json:"minipool"`

	Network struct {
		OracleDaoConsensusThreshold             *big.Int         `json:"oracleDaoConsensusThreshold"`
		NodePenaltyThreshold                    *big.Int         `json:"nodePenaltyThreshold"`
		PerPenaltyRate                          *big.Int         `json:"perPenaltyRate"`
		IsSubmitBalancesEnabled                 bool             `json:"isSubmitBalancesEnabled"`
		SubmitBalancesFrequency                 time.Duration    `json:"submitBalancesFrequency"`
		IsSubmitPricesEnabled                   bool             `json:"isSubmitPricesEnabled"`
		SubmitPricesFrequency                   time.Duration    `json:"submitPricesFrequency"`
		MinimumNodeFee                          *big.Int         `json:"minimumNodeFee"`
		TargetNodeFee                           *big.Int         `json:"targetNodeFee"`
		MaximumNodeFee                          *big.Int         `json:"maximumNodeFee"`
		NodeFeeDemandRange                      *big.Int         `json:"nodeFeeDemandRange"`
		TargetRethCollateralRate                *big.Int         `json:"targetRethCollateralRate"`
		IsSubmitRewardsEnabled                  bool             `json:"isSubmitRewardsEnabled"`
		NodeCommissionShare                     *big.Int         `json:"nodeCommissionShare"`
		NodeCommissionShareSecurityCouncilAdder *big.Int         `json:"nodeCommissionShareSecurityCouncilAdder"`
		VoterShare                              *big.Int         `json:"voterShare"`
		ProtocolDAOShare                        *big.Int         `json:"protocolDAOShare"`
		MaxNodeShareSecurityCouncilAdder        *big.Int         `json:"maxNodeCommissionShareCouncilAdder"`
		MaxRethBalanceDelta                     *big.Int         `json:"maxRethBalanceDelta"`
		AllowListedControllers                  []common.Address `json:"allowListedControllers"`
	} `json:"network"`

	Node struct {
		IsRegistrationEnabled              bool          `json:"isRegistrationEnabled"`
		IsSmoothingPoolRegistrationEnabled bool          `json:"isSmoothingPoolRegistrationEnabled"`
		IsDepositingEnabled                bool          `json:"isDepositingEnabled"`
		AreVacantMinipoolsEnabled          bool          `json:"areVacantMinipoolsEnabled"`
		MinimumPerMinipoolStake            *big.Int      `json:"minimumPerMinipoolStake"`
		MaximumPerMinipoolStake            *big.Int      `json:"maximumPerMinipoolStake"`
		ReducedBond                        float64       `json:"reducedBond"`
		NodeUnstakingPeriod                time.Duration `json:"nodeUnstakingPeriod"`
	} `json:"node"`

	Proposals struct {
		VotePhase1Time  time.Duration `json:"votePhase1Time"`
		VotePhase2Time  time.Duration `json:"votePhase2Time"`
		VoteDelayTime   time.Duration `json:"voteDelayTime"`
		ExecuteTime     time.Duration `json:"executeTime"`
		ProposalBond    *big.Int      `json:"proposalBond"`
		ChallengeBond   *big.Int      `json:"challengeBond"`
		ChallengePeriod time.Duration `json:"challengePeriod"`
		Quorum          *big.Int      `json:"quorum"`
		VetoQuorum      *big.Int      `json:"vetoQuorum"`
		MaxBlockAge     uint64        `json:"maxBlockAge"`
	} `json:"proposals"`

	Rewards struct {
		IntervalTime time.Duration `json:"intervalTime"`
	} `json:"rewards"`

	Security struct {
		MembersQuorum       *big.Int      `json:"membersQuorum"`
		MembersLeaveTime    time.Duration `json:"membersLeaveTime"`
		ProposalVoteTime    time.Duration `json:"proposalVoteTime"`
		ProposalExecuteTime time.Duration `json:"proposalExecuteTime"`
		ProposalActionTime  time.Duration `json:"proposalActionTime"`
	} `json:"security"`

	Megapool struct {
		TimeBeforeDissolve         time.Duration `json:"timeBeforeDissolve"`
		MaximumEthPenalty          *big.Int      `json:"maximumEthPenalty"`
		NotifyThreshold            time.Duration `json:"notifyThreshold"`
		LateNotifyFine             *big.Int      `json:"lateNotifyFine"`
		UserDistributeWindowLength time.Duration `json:"userDistributeWindowLength"`
	} `json:"megapool"`
}

type GetPreviousDelegateResponse added in v1.0.0

type GetPreviousDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type GetQueueDetailsResponse added in v1.18.0

type GetQueueDetailsResponse struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	TotalLength    uint32 `json:"totalLength"`
	ExpressLength  uint32 `json:"expressLength"`
	StandardLength uint32 `json:"standardLength"`
	ExpressRate    uint64 `json:"expressRate"`
}

type GetSmoothingPoolRegistrationStatusResponse added in v1.5.0

type GetSmoothingPoolRegistrationStatusResponse struct {
	Status                  string        `json:"status"`
	Error                   string        `json:"error"`
	NodeRegistered          bool          `json:"nodeRegistered"`
	TimeLeftUntilChangeable time.Duration `json:"timeLeftUntilChangeable"`
}

type GetTNDAOMemberSettingsResponse added in v1.0.0

type GetTNDAOMemberSettingsResponse struct {
	Status              string   `json:"status"`
	Error               string   `json:"error"`
	Quorum              float64  `json:"quorum"`
	RPLBond             *big.Int `json:"rplBond"`
	MinipoolUnbondedMax uint64   `json:"minipoolUnbondedMax"`
	ChallengeCooldown   uint64   `json:"challengeCooldown"`
	ChallengeWindow     uint64   `json:"challengeWindow"`
	ChallengeCost       *big.Int `json:"challengeCost"`
}

type GetTNDAOMinipoolSettingsResponse added in v1.0.0

type GetTNDAOMinipoolSettingsResponse struct {
	Status                    string `json:"status"`
	Error                     string `json:"error"`
	ScrubPeriod               uint64 `json:"scrubPeriod"`
	PromotionScrubPeriod      uint64 `json:"promotionScrubPeriod"`
	ScrubPenaltyEnabled       bool   `json:"scrubPenaltyEnabled"`
	BondReductionWindowStart  uint64 `json:"bondReductionWindowStart"`
	BondReductionWindowLength uint64 `json:"bondReductionWindowLength"`
}

type GetTNDAOProposalSettingsResponse added in v1.0.0

type GetTNDAOProposalSettingsResponse struct {
	Status        string `json:"status"`
	Error         string `json:"error"`
	Cooldown      uint64 `json:"cooldown"`
	VoteTime      uint64 `json:"voteTime"`
	VoteDelayTime uint64 `json:"voteDelayTime"`
	ExecuteTime   uint64 `json:"executeTime"`
	ActionTime    uint64 `json:"actionTime"`
}

type GetUseLatestDelegateResponse added in v1.0.0

type GetUseLatestDelegateResponse struct {
	Status  string `json:"status"`
	Error   string `json:"error"`
	Setting bool   `json:"setting"`
}

type GetVanityArtifactsResponse added in v1.0.0

type GetVanityArtifactsResponse struct {
	Status                 string         `json:"status"`
	Error                  string         `json:"error"`
	NodeAddress            common.Address `json:"nodeAddress"`
	MinipoolFactoryAddress common.Address `json:"minipoolFactoryAddress"`
	InitHash               common.Hash    `json:"initHash"`
}

type ImportKeyResponse added in v1.9.0

type ImportKeyResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type InitWalletResponse

type InitWalletResponse struct {
	Status         string         `json:"status"`
	Error          string         `json:"error"`
	Mnemonic       string         `json:"mnemonic"`
	AccountAddress common.Address `json:"accountAddress"`
}

type IsSaturnDeployedResponse added in v1.18.0

type IsSaturnDeployedResponse struct {
	Status           string `json:"status"`
	Error            string `json:"error"`
	IsSaturnDeployed bool   `json:"isSaturnDeployed"`
}

type JoinTNDAOApproveResponse added in v1.0.0

type JoinTNDAOApproveResponse struct {
	Status        string      `json:"status"`
	Error         string      `json:"error"`
	ApproveTxHash common.Hash `json:"approveTxHash"`
}

type JoinTNDAOJoinResponse added in v1.0.0

type JoinTNDAOJoinResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	JoinTxHash common.Hash `json:"joinTxHash"`
}

type LeaveTNDAOResponse added in v1.0.0

type LeaveTNDAOResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type LotDetails added in v1.0.0

type LotDetails struct {
	Details              auction.LotDetails `json:"details"`
	ClaimAvailable       bool               `json:"claimAvailable"`
	BiddingAvailable     bool               `json:"biddingAvailable"`
	RPLRecoveryAvailable bool               `json:"rplRecoveryAvailable"`
}

type MasqueradeResponse added in v1.15.7

type MasqueradeResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type MegapoolCanDelegateUpgradeResponse added in v1.18.0

type MegapoolCanDelegateUpgradeResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type MegapoolCanSetUseLatestDelegateResponse added in v1.18.0

type MegapoolCanSetUseLatestDelegateResponse struct {
	Status                string             `json:"status"`
	Error                 string             `json:"error"`
	GasInfo               rocketpool.GasInfo `json:"gasInfo"`
	MatchesCurrentSetting bool               `json:"matchesCurrentSetting"`
}

type MegapoolDelegateUpgradeResponse added in v1.18.0

type MegapoolDelegateUpgradeResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type MegapoolDetails added in v1.18.0

type MegapoolDetails struct {
	Address                  common.Address             `json:"address"`
	DelegateAddress          common.Address             `json:"delegate"`
	EffectiveDelegateAddress common.Address             `json:"effectiveDelegateAddress"`
	Deployed                 bool                       `json:"deployed"`
	ValidatorCount           uint32                     `json:"validatorCount"`
	ActiveValidatorCount     uint32                     `json:"activeValidatorCount"`
	ExitingValidatorCount    uint32                     `json:"exitingValidatorCount"`
	LockedValidatorCount     uint32                     `json:"lockedValidatorCount"`
	NodeDebt                 *big.Int                   `json:"nodeDebt"`
	RefundValue              *big.Int                   `json:"refundValue"`
	DelegateExpiry           uint64                     `json:"delegateExpiry"`
	DelegateExpired          bool                       `json:"delegateExpired"`
	PendingRewards           *big.Int                   `json:"pendingRewards"`
	NodeExpressTicketCount   uint64                     `json:"nodeExpressTicketCount"`
	UseLatestDelegate        bool                       `json:"useLatestDelegate"`
	AssignedValue            *big.Int                   `json:"assignedValue"`
	NodeBond                 *big.Int                   `json:"nodeBond"`
	UserCapital              *big.Int                   `json:"userCapital"`
	NodeShare                *big.Int                   `json:"nodeShare"`
	BondRequirement          *big.Int                   `json:"bondRequirement"`
	RevenueSplit             network.RevenueSplit       `json:"revenueSplit"`
	Balances                 tokens.Balances            `json:"balances"`
	LastDistributionBlock    uint64                     `json:"lastDistributionBlock"`
	PendingRewardSplit       megapool.RewardSplit       `json:"pendingRewardSplit"`
	ReducedBond              *big.Int                   `json:"reducedBond"`
	QueueDetails             QueueDetails               `json:"queueDetails"`
	Validators               []MegapoolValidatorDetails `json:"validators"`
}

type MegapoolGetDelegateResponse added in v1.18.0

type MegapoolGetDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type MegapoolGetEffectiveDelegateResponse added in v1.18.0

type MegapoolGetEffectiveDelegateResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
}

type MegapoolGetUseLatestDelegateResponse added in v1.18.0

type MegapoolGetUseLatestDelegateResponse struct {
	Status  string `json:"status"`
	Error   string `json:"error"`
	Setting bool   `json:"setting"`
}

type MegapoolRewardSplitResponse added in v1.18.0

type MegapoolRewardSplitResponse struct {
	Status      string               `json:"status"`
	Error       string               `json:"error"`
	RewardSplit megapool.RewardSplit `json:"rewardSplit"`
}

type MegapoolSetUseLatestDelegateResponse added in v1.18.0

type MegapoolSetUseLatestDelegateResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type MegapoolStatusResponse added in v1.18.0

type MegapoolStatusResponse struct {
	Status         string          `json:"status"`
	Error          string          `json:"error"`
	Megapool       MegapoolDetails `json:"megapoolDetails"`
	LatestDelegate common.Address  `json:"latestDelegate"`
}

type MegapoolValidatorDetails added in v1.18.0

type MegapoolValidatorDetails struct {
	ValidatorId        uint32                 `json:"validatorId"`
	PubKey             types.ValidatorPubkey  `json:"pubKey"`
	LastAssignmentTime time.Time              `json:"lastAssignmentTime"`
	LastRequestedValue uint32                 `json:"lastRequestedValue"`
	LastRequestedBond  uint32                 `json:"lastRequestedBond"`
	DepositValue       uint32                 `json:"DepositValue"`
	Staked             bool                   `json:"staked"`
	Exited             bool                   `json:"exited"`
	InQueue            bool                   `json:"inQueue"`
	QueuePosition      *big.Int               `json:"queuePosition"`
	InPrestake         bool                   `json:"inPrestake"`
	ExpressUsed        bool                   `json:"expressUsed"`
	Dissolved          bool                   `json:"dissolved"`
	Exiting            bool                   `json:"exiting"`
	Locked             bool                   `json:"locked"`
	ValidatorIndex     uint64                 `json:"validatorIndex"`
	ExitBalance        uint64                 `json:"exitBalance"`
	WithdrawableEpoch  uint64                 `json:"withdrawableEpoch"`
	LockedSlot         uint64                 `json:"lockedSlot"`
	Activated          bool                   `json:"activated"`
	BeaconStatus       beacon.ValidatorStatus `json:"beaconStatus"`
}

type MegapoolValidatorMapAndRewardsResponse added in v1.18.0

type MegapoolValidatorMapAndRewardsResponse struct {
	Status               string                                `json:"status"`
	Error                string                                `json:"error"`
	MegapoolValidatorMap map[string][]MegapoolValidatorDetails `json:"megapoolValidatorMap"`
	TotalBeaconBalance   *big.Int                              `json:"totalBeaconBalance"`
	NodeShareOfCLBalance *big.Int                              `json:"nodeShareOfCLBalance"`
	NodeBond             *big.Int                              `json:"nodeBond"`
}

type MinipoolBalanceDistributionDetails added in v1.9.0

type MinipoolBalanceDistributionDetails struct {
	Address            common.Address       `json:"address"`
	Balance            *big.Int             `json:"balance"`
	Refund             *big.Int             `json:"refund"`
	NodeShareOfBalance *big.Int             `json:"nodeShareOfBalance"`
	MinipoolVersion    uint8                `json:"minipoolVersion"`
	Status             types.MinipoolStatus `json:"status"`
	IsFinalized        bool                 `json:"isFinalized"`
	CanDistribute      bool                 `json:"canDistribute"`
	GasInfo            rocketpool.GasInfo   `json:"gasInfo"`
}

type MinipoolCloseDetails added in v1.9.0

type MinipoolCloseDetails struct {
	Address            common.Address        `json:"address"`
	IsFinalized        bool                  `json:"isFinalized"`
	MinipoolStatus     types.MinipoolStatus  `json:"minipoolStatus"`
	MinipoolVersion    uint8                 `json:"minipoolVersion"`
	Distributed        bool                  `json:"distributed"`
	CanClose           bool                  `json:"canClose"`
	Balance            *big.Int              `json:"balance"`
	Refund             *big.Int              `json:"refund"`
	UserDepositBalance *big.Int              `json:"userDepositBalance"`
	BeaconState        beacon.ValidatorState `json:"beaconState"`
	NodeShare          *big.Int              `json:"nodeShare"`
	GasInfo            rocketpool.GasInfo    `json:"gasInfo"`
}

type MinipoolDetails

type MinipoolDetails struct {
	Address               common.Address         `json:"address"`
	ValidatorPubkey       types.ValidatorPubkey  `json:"validatorPubkey"`
	Status                minipool.StatusDetails `json:"status"`
	DepositType           types.MinipoolDeposit  `json:"depositType"`
	Node                  minipool.NodeDetails   `json:"node"`
	User                  minipool.UserDetails   `json:"user"`
	Balances              tokens.Balances        `json:"balances"`
	NodeShareOfETHBalance *big.Int               `json:"nodeShareOfETHBalance"`
	Validator             ValidatorDetails       `json:"validator"`
	CanStake              bool                   `json:"canStake"`
	CanPromote            bool                   `json:"canPromote"`
	Queue                 minipool.QueueDetails  `json:"queue"`
	RefundAvailable       bool                   `json:"refundAvailable"`
	WithdrawalAvailable   bool                   `json:"withdrawalAvailable"`
	CloseAvailable        bool                   `json:"closeAvailable"`
	Finalised             bool                   `json:"finalised"`
	UseLatestDelegate     bool                   `json:"useLatestDelegate"`
	Delegate              common.Address         `json:"delegate"`
	PreviousDelegate      common.Address         `json:"previousDelegate"`
	EffectiveDelegate     common.Address         `json:"effectiveDelegate"`
	TimeUntilDissolve     time.Duration          `json:"timeUntilDissolve"`
	DissolveTimeout       time.Duration          `json:"dissolveTimeout"`
	Penalties             uint64                 `json:"penalties"`
	ReduceBondTime        time.Time              `json:"reduceBondTime"`
	ReduceBondCancelled   bool                   `json:"reduceBondCancelled"`
}

type MinipoolRescueDissolvedDetails added in v1.9.4

type MinipoolRescueDissolvedDetails struct {
	Address         common.Address        `json:"address"`
	CanRescue       bool                  `json:"canRescue"`
	IsFinalized     bool                  `json:"isFinalized"`
	MinipoolStatus  types.MinipoolStatus  `json:"minipoolStatus"`
	MinipoolVersion uint8                 `json:"minipoolVersion"`
	BeaconBalance   *big.Int              `json:"beaconBalance"`
	BeaconState     beacon.ValidatorState `json:"beaconState"`
	GasInfo         rocketpool.GasInfo    `json:"gasInfo"`
}

type MinipoolStatusResponse

type MinipoolStatusResponse struct {
	Status         string            `json:"status"`
	Error          string            `json:"error"`
	Minipools      []MinipoolDetails `json:"minipools"`
	LatestDelegate common.Address    `json:"latestDelegate"`
}

type NetworkDAOProposalsResponse added in v1.6.0

type NetworkDAOProposalsResponse struct {
	Status                         string                 `json:"status"`
	Error                          string                 `json:"error"`
	AccountAddress                 common.Address         `json:"accountAddress"`
	AccountAddressFormatted        string                 `json:"accountAddressFormatted"`
	TotalDelegatedVp               *big.Int               `json:"totalDelegateVp"`
	SumVotingPower                 *big.Int               `json:"sumVotingPower"`
	VotingDelegate                 common.Address         `json:"votingDelegate"`
	VotingPower                    *big.Int               `json:"votingPower"`
	BlockNumber                    uint32                 `json:"blockNumber"`
	IsNodeRegistered               bool                   `json:"isNodeRegistered"`
	OnchainVotingDelegate          common.Address         `json:"onchainVotingDelegate"`
	OnchainVotingDelegateFormatted string                 `json:"onchainVotingDelegateFormatted"`
	SnapshotResponse               SnapshotResponseStruct `json:"snapshotResponse"`
	SignallingAddress              common.Address         `json:"signallingAddress"`
	SignallingAddressFormatted     string                 `json:"SignallingAddressFormatted"`
}

type NetworkGenerateRewardsTreeResponse added in v1.5.0

type NetworkGenerateRewardsTreeResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type NetworkStatsResponse added in v1.0.0

type NetworkStatsResponse struct {
	Status                    string         `json:"status"`
	Error                     string         `json:"error"`
	TotalValueLocked          float64        `json:"totalValueLocked"`
	DepositPoolBalance        float64        `json:"depositPoolBalance"`
	MinipoolCapacity          float64        `json:"minipoolCapacity"`
	StakerUtilization         float64        `json:"stakerUtilization"`
	NodeFee                   float64        `json:"nodeFee"`
	NodeCount                 uint64         `json:"nodeCount"`
	InitializedMinipoolCount  uint64         `json:"initializedMinipoolCount"`
	PrelaunchMinipoolCount    uint64         `json:"prelaunchMinipoolCount"`
	StakingMinipoolCount      uint64         `json:"stakingMinipoolCount"`
	WithdrawableMinipoolCount uint64         `json:"withdrawableMinipoolCount"`
	DissolvedMinipoolCount    uint64         `json:"dissolvedMinipoolCount"`
	FinalizedMinipoolCount    uint64         `json:"finalizedMinipoolCount"`
	RplPrice                  float64        `json:"rplPrice"`
	TotalRplStaked            float64        `json:"totalRplStaked"`
	TotalMegapoolRplStaked    float64        `json:"totalMegapoolRplStaked"`
	TotalLegacyRplStaked      float64        `json:"totalLegacyRplStaked"`
	EffectiveRplStaked        float64        `json:"effectiveRplStaked"`
	RethPrice                 float64        `json:"rethPrice"`
	SmoothingPoolNodes        uint64         `json:"smoothingPoolNodes"`
	SmoothingPoolAddress      common.Address `json:"SmoothingPoolAddress"`
	SmoothingPoolBalance      float64        `json:"smoothingPoolBalance"`
}

type NetworkTimezonesResponse added in v1.0.0

type NetworkTimezonesResponse struct {
	Status         string            `json:"status"`
	Error          string            `json:"error"`
	TimezoneCounts map[string]uint64 `json:"timezoneCounts"`
	TimezoneTotal  uint64            `json:"timezoneTotal"`
	NodeTotal      uint64            `json:"nodeTotal"`
}

type NodeAlert added in v1.12.0

type NodeAlert struct {
	// Enum: [unprocessed active suppressed]
	State string `json:"state"`
	// NOTE: Alertmanager puts "description" and "summary" in annotations and "alertname" is in labels (along with any configured labels and annotations).
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

func (NodeAlert) ColorString added in v1.12.0

func (n NodeAlert) ColorString() string

func (NodeAlert) Description added in v1.12.0

func (n NodeAlert) Description() string

func (NodeAlert) IsActive added in v1.12.0

func (n NodeAlert) IsActive() bool

func (NodeAlert) IsSuppressed added in v1.12.0

func (n NodeAlert) IsSuppressed() bool

func (NodeAlert) Name added in v1.12.0

func (n NodeAlert) Name() string

func (NodeAlert) Severity added in v1.12.0

func (n NodeAlert) Severity() string

func (NodeAlert) Summary added in v1.12.0

func (n NodeAlert) Summary() string

type NodeAlertsResponse added in v1.12.0

type NodeAlertsResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
	// TODO: change to GettableAlerts
	Message string `json:"message"`
}

type NodeBurnResponse

type NodeBurnResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeCanDistributeResponse added in v1.5.0

type NodeCanDistributeResponse struct {
	Status    string             `json:"status"`
	Error     string             `json:"error"`
	Balance   *big.Int           `json:"balance"`
	NodeShare float64            `json:"nodeShare"`
	GasInfo   rocketpool.GasInfo `json:"gasInfo"`
}

type NodeClaimAndStakeRewardsResponse added in v1.5.0

type NodeClaimAndStakeRewardsResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeClaimRewardsResponse added in v1.5.0

type NodeClaimRewardsResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeClaimRplResponse added in v1.0.0

type NodeClaimRplResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeDepositResponse

type NodeDepositResponse struct {
	Status          string                  `json:"status"`
	Error           string                  `json:"error"`
	TxHash          common.Hash             `json:"txHash"`
	MinipoolAddress common.Address          `json:"minipoolAddress"`
	ValidatorPubkey rptypes.ValidatorPubkey `json:"validatorPubkey"`
	ScrubPeriod     time.Duration           `json:"scrubPeriod"`
}

type NodeDistributeResponse added in v1.5.0

type NodeDistributeResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeEthBalanceResponse added in v1.9.0

type NodeEthBalanceResponse struct {
	Status  string   `json:"status"`
	Error   string   `json:"error"`
	Balance *big.Int `json:"balance"`
}

type NodeFeeResponse

type NodeFeeResponse struct {
	Status        string  `json:"status"`
	Error         string  `json:"error"`
	NodeFee       float64 `json:"nodeFee"`
	MinNodeFee    float64 `json:"minNodeFee"`
	TargetNodeFee float64 `json:"targetNodeFee"`
	MaxNodeFee    float64 `json:"maxNodeFee"`
}

type NodeGetRewardsInfoResponse added in v1.5.0

type NodeGetRewardsInfoResponse struct {
	Status                  string                 `json:"status"`
	Error                   string                 `json:"error"`
	Registered              bool                   `json:"registered"`
	ClaimedIntervals        []uint64               `json:"claimedIntervals"`
	UnclaimedIntervals      []rewards.IntervalInfo `json:"unclaimedIntervals"`
	InvalidIntervals        []rewards.IntervalInfo `json:"invalidIntervals"`
	RplStake                *big.Int               `json:"rplStake"`
	RplPrice                *big.Int               `json:"rplPrice"`
	ActiveMinipools         int                    `json:"activeMinipools"`
	MinimumRplStake         *big.Int               `json:"minimumRplStake"`
	EthBorrowed             *big.Int               `json:"ethBorrowed"`
	EthBorrowLimit          *big.Int               `json:"ethBorrowLimit"`
	PendingBorrowAmount     *big.Int               `json:"pendingBorrowAmount"`
	BorrowedCollateralRatio float64                `json:"borrowedCollateralRatio"`
	BondedCollateralRatio   float64                `json:"bondedCollateralRatio"`
}

type NodeInitializeFeeDistributorGasResponse added in v1.5.0

type NodeInitializeFeeDistributorGasResponse struct {
	Status      string             `json:"status"`
	Error       string             `json:"error"`
	Distributor common.Address     `json:"distributor"`
	GasInfo     rocketpool.GasInfo `json:"gasInfo"`
}

type NodeInitializeFeeDistributorResponse added in v1.5.0

type NodeInitializeFeeDistributorResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeIsFeeDistributorInitializedResponse added in v1.5.0

type NodeIsFeeDistributorInitializedResponse struct {
	Status        string `json:"status"`
	Error         string `json:"error"`
	IsInitialized bool   `json:"isInitialized"`
}

type NodeRewardsResponse added in v1.0.0

type NodeRewardsResponse struct {
	Status                      string        `json:"status"`
	Error                       string        `json:"error"`
	NodeRegistrationTime        time.Time     `json:"nodeRegistrationTime"`
	RewardsInterval             time.Duration `json:"rewardsInterval"`
	LastCheckpoint              time.Time     `json:"lastCheckpoint"`
	Trusted                     bool          `json:"trusted"`
	Registered                  bool          `json:"registered"`
	EffectiveRplStake           float64       `json:"effectiveRplStake"`
	TotalRplStake               float64       `json:"totalRplStake"`
	TrustedRplBond              float64       `json:"trustedRplBond"`
	EstimatedRewards            float64       `json:"estimatedRewards"`
	CumulativeRplRewards        float64       `json:"cumulativeRplRewards"`
	CumulativeEthRewards        float64       `json:"cumulativeEthRewards"`
	EstimatedTrustedRplRewards  float64       `json:"estimatedTrustedRplRewards"`
	CumulativeTrustedRplRewards float64       `json:"cumulativeTrustedRplRewards"`
	UnclaimedRplRewards         float64       `json:"unclaimedRplRewards"`
	UnclaimedEthRewards         float64       `json:"unclaimedEthRewards"`
	UnclaimedTrustedRplRewards  float64       `json:"unclaimedTrustedRplRewards"`
	BeaconRewards               float64       `json:"beaconRewards"`
	TxHash                      common.Hash   `json:"txHash"`
}

type NodeSendMessageResponse added in v1.9.7

type NodeSendMessageResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeSendResponse

type NodeSendResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeSignResponse added in v1.4.1

type NodeSignResponse struct {
	Status     string `json:"status"`
	Error      string `json:"error"`
	SignedData string `json:"signedData"`
}

type NodeStakeRplAllowanceResponse added in v1.0.0

type NodeStakeRplAllowanceResponse struct {
	Status    string   `json:"status"`
	Error     string   `json:"error"`
	Allowance *big.Int `json:"allowance"`
}

type NodeStakeRplApproveGasResponse added in v1.0.0

type NodeStakeRplApproveGasResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type NodeStakeRplApproveResponse added in v1.0.0

type NodeStakeRplApproveResponse struct {
	Status        string      `json:"status"`
	Error         string      `json:"error"`
	ApproveTxHash common.Hash `json:"approveTxHash"`
}

type NodeStakeRplStakeResponse added in v1.0.0

type NodeStakeRplStakeResponse struct {
	Status      string      `json:"status"`
	Error       string      `json:"error"`
	StakeTxHash common.Hash `json:"stakeTxHash"`
}

type NodeStatusResponse

type NodeStatusResponse struct {
	Status                                   string          `json:"status"`
	Error                                    string          `json:"error"`
	Warning                                  string          `json:"warning"`
	AccountAddress                           common.Address  `json:"accountAddress"`
	AccountAddressFormatted                  string          `json:"accountAddressFormatted"`
	PrimaryWithdrawalAddress                 common.Address  `json:"primaryWithdrawalAddress"`
	PrimaryWithdrawalAddressFormatted        string          `json:"primaryWithdrawalAddressFormatted"`
	PendingPrimaryWithdrawalAddress          common.Address  `json:"pendingPrimaryWithdrawalAddress"`
	PendingPrimaryWithdrawalAddressFormatted string          `json:"pendingPrimaryWithdrawalAddressFormatted"`
	IsRPLWithdrawalAddressSet                bool            `json:"isRPLWithdrawalAddressSet"`
	RPLWithdrawalAddress                     common.Address  `json:"rplWithdrawalAddress"`
	RPLWithdrawalAddressFormatted            string          `json:"rplWithdrawalAddressFormatted"`
	PendingRPLWithdrawalAddress              common.Address  `json:"pendingRPLWithdrawalAddress"`
	PendingRPLWithdrawalAddressFormatted     string          `json:"pendingRPLWithdrawalAddressFormatted"`
	IsRPLLockingAllowed                      bool            `json:"isRPLLockingAllowed"`
	NodeRPLLocked                            *big.Int        `json:"nodeRPLLocked"`
	Registered                               bool            `json:"registered"`
	Trusted                                  bool            `json:"trusted"`
	TimezoneLocation                         string          `json:"timezoneLocation"`
	AccountBalances                          tokens.Balances `json:"accountBalances"`
	PrimaryWithdrawalBalances                tokens.Balances `json:"primaryWithdrawalBalances"`
	RPLWithdrawalBalances                    tokens.Balances `json:"rplWithdrawalBalances"`
	RplStake                                 *big.Int        `json:"rplStake"`
	RplStakeMegapool                         *big.Int        `json:"rplStakeMegapool"`
	RplStakeLegacy                           *big.Int        `json:"rplStakeLegacy"`
	MaximumRplStake                          *big.Int        `json:"maximumRplStake"`
	MinimumRplStake                          *big.Int        `json:"minimumRplStake"`
	MaximumStakeFraction                     float64         `json:"maximumStakeFraction"`
	BorrowedCollateralRatio                  float64         `json:"borrowedCollateralRatio"`
	BondedCollateralRatio                    float64         `json:"bondedCollateralRatio"`
	PendingMinimumRplStake                   *big.Int        `json:"pendingMinimumRplStake"`
	PendingMaximumRplStake                   *big.Int        `json:"pendingMaximumRplStake"`
	PendingBorrowedCollateralRatio           float64         `json:"pendingBorrowedCollateralRatio"`
	PendingBondedCollateralRatio             float64         `json:"pendingBondedCollateralRatio"`
	OnchainVotingDelegate                    common.Address  `json:"onchainVotingDelegate"`
	OnchainVotingDelegateFormatted           string          `json:"onchainVotingDelegateFormatted"`
	MinipoolLimit                            uint64          `json:"minipoolLimit"`
	EthBorrowed                              *big.Int        `json:"ethBorrowed"`
	EthBorrowedLimit                         *big.Int        `json:"ethBorrowedLimit"`
	PendingBorrowAmount                      *big.Int        `json:"pendingBorrowAmount"`
	CreditBalance                            *big.Int        `json:"creditBalance"`
	CreditAndEthOnBehalfBalance              *big.Int        `json:"creditAndEthOnBehalfBalance"`
	EthOnBehalfBalance                       *big.Int        `json:"ethOnBehalfBalance"`
	UsableCreditAndEthOnBehalfBalance        *big.Int        `json:"usableCreditAndEthOnBehalfBalance"`
	MinipoolCounts                           struct {
		Total               int `json:"total"`
		Initialized         int `json:"initialized"`
		Prelaunch           int `json:"prelaunch"`
		Staking             int `json:"staking"`
		Withdrawable        int `json:"withdrawable"`
		Dissolved           int `json:"dissolved"`
		RefundAvailable     int `json:"refundAvailable"`
		WithdrawalAvailable int `json:"withdrawalAvailable"`
		CloseAvailable      int `json:"closeAvailable"`
		Finalised           int `json:"finalised"`
	} `json:"minipoolCounts"`
	IsFeeDistributorInitialized bool                      `json:"isFeeDistributorInitialized"`
	FeeRecipientInfo            rp.FeeRecipientInfo       `json:"feeRecipientInfo"`
	FeeDistributorBalance       *big.Int                  `json:"feeDistributorBalance"`
	PenalizedMinipools          map[common.Address]uint64 `json:"penalizedMinipools"`
	SnapshotResponse            struct {
		Error                   string                 `json:"error"`
		ProposalVotes           []SnapshotProposalVote `json:"proposalVotes"`
		ActiveSnapshotProposals []SnapshotProposal     `json:"activeSnapshotProposals"`
	} `json:"snapshotResponse"`
	Alerts                       []NodeAlert       `json:"alerts"`
	SignallingAddress            common.Address    `json:"signallingAddress"`
	SignallingAddressFormatted   string            `json:"signallingAddressFormatted"`
	Minipools                    []MinipoolDetails `json:"minipools"`
	LatestDelegate               common.Address    `json:"latestDelegate"`
	MegapoolDeployed             bool              `json:"megapoolDeployed"`
	MegapoolAddress              common.Address    `json:"megapoolAddress"`
	MegapoolActiveValidatorCount uint16            `json:"megapoolValidatorCount"`
	MegapoolNodeDebt             *big.Int          `json:"megapoolNodeDebt"`
	MegapoolRefundValue          *big.Int          `json:"megapoolRefundValue"`
	IsSaturnDeployed             bool              `json:"isSaturnDeployed"`
	ExpressTicketCount           uint64            `json:"expressTicketCount"`
	UnstakingRPL                 *big.Int          `json:"unstakingRPL"`
	LastRPLUnstakeTime           time.Time         `json:"lastRPLUnstakeTime"`
	UnstakingPeriodDuration      time.Duration     `json:"unstakingPeriodDuration"`
	LatestBlockTime              time.Time         `json:"latestBlockTime"`
	UnclaimedRewards             *big.Int          `json:"unclaimedRewards"`
	ReducedBond                  *big.Int          `json:"reducedBond"`
}

type NodeSwapRplAllowanceResponse added in v1.0.0

type NodeSwapRplAllowanceResponse struct {
	Status    string   `json:"status"`
	Error     string   `json:"error"`
	Allowance *big.Int `json:"allowance"`
}

type NodeSwapRplApproveGasResponse added in v1.0.0

type NodeSwapRplApproveGasResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type NodeSwapRplApproveResponse added in v1.0.0

type NodeSwapRplApproveResponse struct {
	Status        string      `json:"status"`
	Error         string      `json:"error"`
	ApproveTxHash common.Hash `json:"approveTxHash"`
}

type NodeSwapRplSwapResponse added in v1.0.0

type NodeSwapRplSwapResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	SwapTxHash common.Hash `json:"swapTxHash"`
}

type NodeSyncProgressResponse added in v1.0.0

type NodeSyncProgressResponse struct {
	Status   string              `json:"status"`
	Error    string              `json:"error"`
	EcStatus ClientManagerStatus `json:"ecStatus"`
	BcStatus ClientManagerStatus `json:"bcStatus"`
}

type NodeUnstakeLegacyRplResponse added in v1.18.0

type NodeUnstakeLegacyRplResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeUnstakeRplResponse added in v1.18.0

type NodeUnstakeRplResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeWithdrawCreditResponse added in v1.18.0

type NodeWithdrawCreditResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeWithdrawEthResponse added in v1.13.0

type NodeWithdrawEthResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NodeWithdrawRplResponse added in v1.0.0

type NodeWithdrawRplResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NotifyFinalBalanceResponse added in v1.18.0

type NotifyFinalBalanceResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type NotifyValidatorExitResponse added in v1.18.0

type NotifyValidatorExitResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOACanProposeAllowListedControllersResponse added in v1.18.0

type PDAOACanProposeAllowListedControllersResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanClaimBondsResponse added in v1.13.0

type PDAOCanClaimBondsResponse struct {
	Status       string             `json:"status"`
	Error        string             `json:"error"`
	IsProposer   bool               `json:"isProposer"`
	CanClaim     bool               `json:"canClaim"`
	DoesNotExist bool               `json:"doesNotExist"`
	InvalidState bool               `json:"invalidState"`
	GasInfo      rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanClearSignallingAddressResponse added in v1.13.6

type PDAOCanClearSignallingAddressResponse struct {
	Status            string             `json:"status"`
	Error             string             `json:"error"`
	GasInfo           rocketpool.GasInfo `json:"gasInfo"`
	VotingInitialized bool               `json:"votingInitialized"`
	NodeToSigner      common.Address     `json:"nodeToSigner"`
}

type PDAOCanDefeatProposalResponse added in v1.13.0

type PDAOCanDefeatProposalResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanDefeat              bool               `json:"canDefeat"`
	DoesNotExist           bool               `json:"doesNotExist"`
	AlreadyDefeated        bool               `json:"alreadyDefeated"`
	StillInChallengeWindow bool               `json:"stillInChallengeWindow"`
	InvalidChallengeState  bool               `json:"invalidChallengeState"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanFinalizeProposalResponse added in v1.13.0

type PDAOCanFinalizeProposalResponse struct {
	Status           string             `json:"status"`
	Error            string             `json:"error"`
	CanFinalize      bool               `json:"canFinalize"`
	DoesNotExist     bool               `json:"doesNotExist"`
	InvalidState     bool               `json:"invalidState"`
	AlreadyFinalized bool               `json:"alreadyFinalized"`
	GasInfo          rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanInitializeVotingResponse added in v1.13.0

type PDAOCanInitializeVotingResponse struct {
	Status            string             `json:"status"`
	Error             string             `json:"error"`
	VotingInitialized bool               `json:"votingInitialized"`
	GasInfo           rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanInitializeVotingWithDelegateResponse added in v1.13.6

type PDAOCanInitializeVotingWithDelegateResponse struct {
	Status            string             `json:"status"`
	Error             string             `json:"error"`
	VotingInitialized bool               `json:"votingInitialized"`
	GasInfo           rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanProposeInviteToSecurityCouncilResponse added in v1.13.0

type PDAOCanProposeInviteToSecurityCouncilResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	MemberAlreadyExists    bool               `json:"memberAlreadyExists"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeKickFromSecurityCouncilResponse added in v1.13.0

type PDAOCanProposeKickFromSecurityCouncilResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeKickMultiFromSecurityCouncilResponse added in v1.13.0

type PDAOCanProposeKickMultiFromSecurityCouncilResponse struct {
	Status      string             `json:"status"`
	Error       string             `json:"error"`
	BlockNumber uint32             `json:"blockNumber"`
	GasInfo     rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOCanProposeOneTimeSpendResponse added in v1.13.0

type PDAOCanProposeOneTimeSpendResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeRecurringSpendResponse added in v1.13.0

type PDAOCanProposeRecurringSpendResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeRecurringSpendUpdateResponse added in v1.13.0

type PDAOCanProposeRecurringSpendUpdateResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeReplaceMemberOfSecurityCouncilResponse added in v1.13.0

type PDAOCanProposeReplaceMemberOfSecurityCouncilResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanProposeRewardsPercentagesResponse added in v1.13.0

type PDAOCanProposeRewardsPercentagesResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	BlockNumber            uint32             `json:"blockNumber"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
	CanPropose             bool               `json:"canPropose"`
	IsRplLockingDisallowed bool               `json:"isRplLockingDisallowed"`
}

type PDAOCanSetSignallingAddressResponse added in v1.13.6

type PDAOCanSetSignallingAddressResponse struct {
	Status       string             `json:"status"`
	Error        string             `json:"error"`
	GasInfo      rocketpool.GasInfo `json:"gasInfo"`
	NodeToSigner common.Address     `json:"nodeToSigner"`
}

type PDAOCanSetVotingDelegateResponse added in v1.13.0

type PDAOCanSetVotingDelegateResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type PDAOClaimBondsResponse added in v1.13.0

type PDAOClaimBondsResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOClearSignallingAddressResponse added in v1.13.6

type PDAOClearSignallingAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOCurrentVotingDelegateResponse added in v1.13.0

type PDAOCurrentVotingDelegateResponse struct {
	Status         string         `json:"status"`
	Error          string         `json:"error"`
	AccountAddress common.Address `json:"accountAddress"`
	VotingDelegate common.Address `json:"votingDelegate"`
}

type PDAODefeatProposalResponse added in v1.13.0

type PDAODefeatProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOFinalizeProposalResponse added in v1.13.0

type PDAOFinalizeProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOGetClaimableBondsResponse added in v1.13.0

type PDAOGetClaimableBondsResponse struct {
	Status         string            `json:"status"`
	Error          string            `json:"error"`
	ClaimableBonds []BondClaimResult `json:"claimableBonds"`
}

type PDAOGetRewardsPercentagesResponse added in v1.13.0

type PDAOGetRewardsPercentagesResponse struct {
	Status      string   `json:"status"`
	Error       string   `json:"error"`
	Node        *big.Int `json:"node"`
	OracleDao   *big.Int `json:"odao"`
	ProtocolDao *big.Int `json:"pdao"`
}

type PDAOInitializeVotingResponse added in v1.13.0

type PDAOInitializeVotingResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOInitializeVotingWithDelegateResponse added in v1.13.6

type PDAOInitializeVotingWithDelegateResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOIsVotingInitializedResponse added in v1.13.8

type PDAOIsVotingInitializedResponse struct {
	Status            string `json:"status"`
	Error             string `json:"error"`
	VotingInitialized bool   `json:"votingInitialized"`
}

type PDAOProposalResponse added in v1.13.0

type PDAOProposalResponse struct {
	Status   string                            `json:"status"`
	Error    string                            `json:"error"`
	Proposal PDAOProposalWithNodeVoteDirection `json:"proposal"`
}

type PDAOProposalWithNodeVoteDirection added in v1.13.0

type PDAOProposalWithNodeVoteDirection struct {
	protocol.ProtocolDaoProposalDetails
	NodeVoteDirection     types.VoteDirection `json:"nodeVoteDirection"`
	DelegateVoteDirection types.VoteDirection `json:"delegateVoteDirection"`
}

type PDAOProposalsResponse added in v1.13.0

type PDAOProposalsResponse struct {
	Status    string                              `json:"status"`
	Error     string                              `json:"error"`
	Proposals []PDAOProposalWithNodeVoteDirection `json:"proposals"`
}

type PDAOProposeAllowListedControllersResponse added in v1.18.0

type PDAOProposeAllowListedControllersResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeInviteToSecurityCouncilResponse added in v1.13.0

type PDAOProposeInviteToSecurityCouncilResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeKickFromSecurityCouncilResponse added in v1.13.0

type PDAOProposeKickFromSecurityCouncilResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeKickMultiFromSecurityCouncilResponse added in v1.13.0

type PDAOProposeKickMultiFromSecurityCouncilResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeOneTimeSpendResponse added in v1.13.0

type PDAOProposeOneTimeSpendResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeRecurringSpendResponse added in v1.13.0

type PDAOProposeRecurringSpendResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeRecurringSpendUpdateResponse added in v1.13.0

type PDAOProposeRecurringSpendUpdateResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeReplaceMemberOfSecurityCouncilResponse added in v1.13.0

type PDAOProposeReplaceMemberOfSecurityCouncilResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOProposeRewardsPercentagesResponse added in v1.13.0

type PDAOProposeRewardsPercentagesResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type PDAOSetSignallingAddressResponse added in v1.13.6

type PDAOSetSignallingAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOSetVotingDelegateResponse added in v1.13.0

type PDAOSetVotingDelegateResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PDAOStatusResponse added in v1.13.2

type PDAOStatusResponse struct {
	Status                         string                 `json:"status"`
	Error                          string                 `json:"error"`
	VotingPower                    *big.Int               `json:"votingPower"`
	OnchainVotingDelegate          common.Address         `json:"onchainVotingDelegate"`
	OnchainVotingDelegateFormatted string                 `json:"onchainVotingDelegateFormatted"`
	BlockNumber                    uint32                 `json:"blockNumber"`
	VerifyEnabled                  bool                   `json:"verifyEnabled"`
	SnapshotResponse               SnapshotResponseStruct `json:"snapshotResponse"`
	IsRPLLockingAllowed            bool                   `json:"isRPLLockingAllowed"`
	NodeRPLLocked                  *big.Int               `json:"nodeRPLLocked"`
	AccountAddress                 common.Address         `json:"accountAddress"`
	AccountAddressFormatted        string                 `json:"accountAddressFormatted"`
	TotalDelegatedVp               *big.Int               `json:"totalDelegateVp"`
	SumVotingPower                 *big.Int               `json:"sumVotingPower"`
	IsNodeRegistered               bool                   `json:"isNodeRegistered"`
	SignallingAddress              common.Address         `json:"signallingAddress"`
	SignallingAddressFormatted     string                 `json:"SignallingAddressFormatted"`
}

type PenaliseMegapoolResponse added in v1.18.0

type PenaliseMegapoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ProcessQueueResponse

type ProcessQueueResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ProcessWithdrawalAndFinaliseResponse added in v1.0.0

type ProcessWithdrawalAndFinaliseResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ProcessWithdrawalResponse added in v1.0.0

type ProcessWithdrawalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PromoteMinipoolResponse added in v1.9.0

type PromoteMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ProposePDAOSettingResponse added in v1.13.0

type ProposePDAOSettingResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOInviteResponse added in v1.0.0

type ProposeTNDAOInviteResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOKickResponse added in v1.0.0

type ProposeTNDAOKickResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOLeaveResponse added in v1.0.0

type ProposeTNDAOLeaveResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOReplaceResponse added in v1.0.0

type ProposeTNDAOReplaceResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingBondReductionWindowLengthResponse added in v1.9.0

type ProposeTNDAOSettingBondReductionWindowLengthResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingBondReductionWindowStartResponse added in v1.9.0

type ProposeTNDAOSettingBondReductionWindowStartResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingMembersQuorumResponse added in v1.0.0

type ProposeTNDAOSettingMembersQuorumResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingMembersRplBondResponse added in v1.0.0

type ProposeTNDAOSettingMembersRplBondResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingMinipoolUnbondedMaxResponse added in v1.0.0

type ProposeTNDAOSettingMinipoolUnbondedMaxResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingPromotionScrubPeriodResponse added in v1.9.0

type ProposeTNDAOSettingPromotionScrubPeriodResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingProposalActionTimespanResponse added in v1.0.0

type ProposeTNDAOSettingProposalActionTimespanResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingProposalCooldownResponse added in v1.0.0

type ProposeTNDAOSettingProposalCooldownResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingProposalExecuteTimespanResponse added in v1.0.0

type ProposeTNDAOSettingProposalExecuteTimespanResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingProposalVoteDelayTimespanResponse added in v1.0.0

type ProposeTNDAOSettingProposalVoteDelayTimespanResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingProposalVoteTimespanResponse added in v1.0.0

type ProposeTNDAOSettingProposalVoteTimespanResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingScrubPenaltyEnabledResponse added in v1.9.0

type ProposeTNDAOSettingScrubPenaltyEnabledResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProposeTNDAOSettingScrubPeriodResponse added in v1.0.0

type ProposeTNDAOSettingScrubPeriodResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type ProvisionExpressTicketsResponse added in v1.18.0

type ProvisionExpressTicketsResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type PurgeResponse added in v1.6.4

type PurgeResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type QueueDetails added in v1.18.0

type QueueDetails struct {
	ExpressQueueLength  *big.Int `json:"expressQueueLength"`
	StandardQueueLength *big.Int `json:"standardQueueLength"`
	QueueIndex          *big.Int `json:"queueIndex"`
	ExpressQueueRate    uint64   `json:"expressQueueRate"`
}

type QueueStatusResponse

type QueueStatusResponse struct {
	Status                string   `json:"status"`
	Error                 string   `json:"error"`
	DepositPoolBalance    *big.Int `json:"depositPoolBalance"`
	MinipoolQueueLength   uint64   `json:"minipoolQueueLength"`
	MinipoolQueueCapacity *big.Int `json:"minipoolQueueCapacity"`
}

type RebuildWalletResponse added in v0.0.5

type RebuildWalletResponse struct {
	Status        string                  `json:"status"`
	Error         string                  `json:"error"`
	ValidatorKeys []types.ValidatorPubkey `json:"validatorKeys"`
}

type RecoverRPLFromLotResponse added in v1.0.0

type RecoverRPLFromLotResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type RecoverWalletResponse

type RecoverWalletResponse struct {
	Status         string                  `json:"status"`
	Error          string                  `json:"error"`
	AccountAddress common.Address          `json:"accountAddress"`
	ValidatorKeys  []types.ValidatorPubkey `json:"validatorKeys"`
}

type ReduceBondAmountResponse added in v1.9.0

type ReduceBondAmountResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ReduceBondResponse added in v1.18.0

type ReduceBondResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type RefundMinipoolResponse

type RefundMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type RegisterNodeResponse

type RegisterNodeResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type RepayDebtResponse added in v1.18.0

type RepayDebtResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ReplaceTNDAOPositionResponse added in v1.0.0

type ReplaceTNDAOPositionResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type RescueDissolvedMinipoolResponse added in v1.9.4

type RescueDissolvedMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type ResolveEnsNameResponse added in v1.7.0

type ResolveEnsNameResponse struct {
	Status  string         `json:"status"`
	Error   string         `json:"error"`
	Address common.Address `json:"address"`
	EnsName string         `json:"ensName"`
}

type RestartVcResponse added in v1.9.0

type RestartVcResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type RplPriceResponse added in v1.0.0

type RplPriceResponse struct {
	Status        string   `json:"status"`
	Error         string   `json:"error"`
	RplPrice      *big.Int `json:"rplPrice"`
	RplPriceBlock uint64   `json:"rplPriceBlock"`
}

type SearchAndRecoverWalletResponse added in v1.4.2

type SearchAndRecoverWalletResponse struct {
	Status         string                  `json:"status"`
	Error          string                  `json:"error"`
	FoundWallet    bool                    `json:"foundWallet"`
	AccountAddress common.Address          `json:"accountAddress"`
	DerivationPath string                  `json:"derivationPath"`
	Index          uint                    `json:"index"`
	ValidatorKeys  []types.ValidatorPubkey `json:"validatorKeys"`
}

type SecurityCanCancelProposalResponse added in v1.13.0

type SecurityCanCancelProposalResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanCancel       bool               `json:"canCancel"`
	DoesNotExist    bool               `json:"doesNotExist"`
	InvalidState    bool               `json:"invalidState"`
	InvalidProposer bool               `json:"invalidProposer"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanExecuteProposalResponse added in v1.13.0

type SecurityCanExecuteProposalResponse struct {
	Status       string             `json:"status"`
	Error        string             `json:"error"`
	CanExecute   bool               `json:"canExecute"`
	DoesNotExist bool               `json:"doesNotExist"`
	InvalidState bool               `json:"invalidState"`
	GasInfo      rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanJoinResponse added in v1.13.0

type SecurityCanJoinResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanJoin         bool               `json:"canJoin"`
	ProposalExpired bool               `json:"proposalExpired"`
	AlreadyMember   bool               `json:"alreadyMember"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanLeaveResponse added in v1.13.0

type SecurityCanLeaveResponse struct {
	Status          string             `json:"status"`
	Error           string             `json:"error"`
	CanLeave        bool               `json:"canLeave"`
	ProposalExpired bool               `json:"proposalExpired"`
	GasInfo         rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeInviteResponse added in v1.13.0

type SecurityCanProposeInviteResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	CanPropose          bool               `json:"canPropose"`
	MemberAlreadyExists bool               `json:"memberAlreadyExists"`
	GasInfo             rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeKickMultiResponse added in v1.13.0

type SecurityCanProposeKickMultiResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanPropose bool               `json:"canPropose"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeKickResponse added in v1.13.0

type SecurityCanProposeKickResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanPropose bool               `json:"canPropose"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeLeaveResponse added in v1.13.0

type SecurityCanProposeLeaveResponse struct {
	Status            string             `json:"status"`
	Error             string             `json:"error"`
	CanPropose        bool               `json:"canPropose"`
	MemberDoesntExist bool               `json:"memberDoesntExist"`
	GasInfo           rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeReplaceResponse added in v1.13.0

type SecurityCanProposeReplaceResponse struct {
	Status                 string             `json:"status"`
	Error                  string             `json:"error"`
	CanPropose             bool               `json:"canPropose"`
	OldMemberDoesntExist   bool               `json:"oldMemberDoesntExist"`
	NewMemberAlreadyExists bool               `json:"newMemberAlreadyExists"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanProposeSettingResponse added in v1.13.0

type SecurityCanProposeSettingResponse struct {
	Status     string             `json:"status"`
	Error      string             `json:"error"`
	CanPropose bool               `json:"canPropose"`
	GasInfo    rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCanVoteOnProposalResponse added in v1.13.0

type SecurityCanVoteOnProposalResponse struct {
	Status             string             `json:"status"`
	Error              string             `json:"error"`
	CanVote            bool               `json:"canVote"`
	DoesNotExist       bool               `json:"doesNotExist"`
	InvalidState       bool               `json:"invalidState"`
	JoinedAfterCreated bool               `json:"joinedAfterCreated"`
	AlreadyVoted       bool               `json:"alreadyVoted"`
	GasInfo            rocketpool.GasInfo `json:"gasInfo"`
}

type SecurityCancelProposalResponse added in v1.13.0

type SecurityCancelProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SecurityExecuteProposalResponse added in v1.13.0

type SecurityExecuteProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SecurityJoinResponse added in v1.13.0

type SecurityJoinResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SecurityLeaveResponse added in v1.13.0

type SecurityLeaveResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SecurityMembersResponse added in v1.13.0

type SecurityMembersResponse struct {
	Status  string                              `json:"status"`
	Error   string                              `json:"error"`
	Members []security.SecurityDAOMemberDetails `json:"members"`
}

type SecurityProposalResponse added in v1.13.0

type SecurityProposalResponse struct {
	Status   string              `json:"status"`
	Error    string              `json:"error"`
	Proposal dao.ProposalDetails `json:"proposal"`
}

type SecurityProposalsResponse added in v1.13.0

type SecurityProposalsResponse struct {
	Status    string                `json:"status"`
	Error     string                `json:"error"`
	Proposals []dao.ProposalDetails `json:"proposals"`
}

type SecurityProposeInviteResponse added in v1.13.0

type SecurityProposeInviteResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type SecurityProposeKickMultiResponse added in v1.13.0

type SecurityProposeKickMultiResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type SecurityProposeKickResponse added in v1.13.0

type SecurityProposeKickResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type SecurityProposeLeaveResponse added in v1.13.0

type SecurityProposeLeaveResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SecurityProposeReplaceResponse added in v1.13.0

type SecurityProposeReplaceResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type SecurityProposeSettingResponse added in v1.13.0

type SecurityProposeSettingResponse struct {
	Status     string      `json:"status"`
	Error      string      `json:"error"`
	ProposalId uint64      `json:"proposalId"`
	TxHash     common.Hash `json:"txHash"`
}

type SecurityStatusResponse added in v1.13.0

type SecurityStatusResponse struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	IsMember       bool   `json:"isMember"`
	CanJoin        bool   `json:"canJoin"`
	CanLeave       bool   `json:"canLeave"`
	TotalMembers   uint64 `json:"totalMembers"`
	ProposalCounts struct {
		Total     int `json:"total"`
		Pending   int `json:"pending"`
		Active    int `json:"active"`
		Cancelled int `json:"cancelled"`
		Defeated  int `json:"defeated"`
		Succeeded int `json:"succeeded"`
		Expired   int `json:"expired"`
		Executed  int `json:"executed"`
	} `json:"proposalCounts"`
}

type SecurityVoteOnProposalResponse added in v1.13.0

type SecurityVoteOnProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SetEnsNameResponse added in v1.7.0

type SetEnsNameResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	Address common.Address     `json:"address"`
	EnsName string             `json:"ensName"`
	TxHash  common.Hash        `json:"txHash"`
	GasInfo rocketpool.GasInfo `json:"gasInfo"`
}

type SetNodePrimaryWithdrawalAddressResponse added in v1.13.0

type SetNodePrimaryWithdrawalAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SetNodeRPLWithdrawalAddressResponse added in v1.13.0

type SetNodeRPLWithdrawalAddressResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SetNodeTimezoneResponse

type SetNodeTimezoneResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SetPasswordResponse

type SetPasswordResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type SetRplLockingAllowedResponse added in v1.13.0

type SetRplLockingAllowedResponse struct {
	Status    string      `json:"status"`
	Error     string      `json:"error"`
	SetTxHash common.Hash `json:"setTxHash"`
}

type SetSmoothingPoolRegistrationStatusResponse added in v1.5.0

type SetSmoothingPoolRegistrationStatusResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SetStakeRplForAllowedResponse added in v1.9.4

type SetStakeRplForAllowedResponse struct {
	Status    string      `json:"status"`
	Error     string      `json:"error"`
	SetTxHash common.Hash `json:"setTxHash"`
}

type SetUseLatestDelegateResponse added in v1.0.0

type SetUseLatestDelegateResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type SmoothingRewardsResponse added in v1.7.1

type SmoothingRewardsResponse struct {
	Status     string   `json:"status"`
	Error      string   `json:"error"`
	EthBalance *big.Int `json:"eth_balance"`
}

type SnapshotProposal added in v1.6.0

type SnapshotProposal struct {
	Id            string    `json:"id"`
	Title         string    `json:"title"`
	Start         int64     `json:"start"`
	End           int64     `json:"end"`
	State         string    `json:"state"`
	Snapshot      int64     `json:"snapshot"`
	Author        string    `json:"author"`
	Choices       []string  `json:"choices"`
	Scores        []float64 `json:"scores"`
	ScoresTotal   float64   `json:"scores_total"`
	ScoresUpdated int64     `json:"scores_updated"`
	Quorum        float64   `json:"quorum"`
	Link          string    `json:"link"`
}

type SnapshotProposalVote added in v1.6.0

type SnapshotProposalVote struct {
	Choice   interface{}    `json:"choice"`
	Voter    common.Address `json:"voter"`
	Proposal struct {
		Id    string `json:"id"`
		State string `json:"state"`
	} `json:"proposal"`
}

type SnapshotResponse added in v1.6.0

type SnapshotResponse struct {
	Status string `json:"status"`
	Error  string `json:"error"`
	Data   struct {
		Proposals []SnapshotProposal `json:"proposals"`
	}
}

type SnapshotResponseStruct added in v1.13.7

type SnapshotResponseStruct struct {
	Error                   string                 `json:"error"`
	ProposalVotes           []SnapshotProposalVote `json:"proposalVotes"`
	ActiveSnapshotProposals []SnapshotProposal     `json:"activeSnapshotProposals"`
}

func (*SnapshotResponseStruct) VoteCount added in v1.13.7

func (s *SnapshotResponseStruct) VoteCount() uint

type SnapshotVotedProposals added in v1.6.0

type SnapshotVotedProposals struct {
	Status string `json:"status"`
	Error  string `json:"error"`
	Data   struct {
		Votes []SnapshotProposalVote `json:"votes"`
	} `json:"data"`
}

type SnapshotVotingPower added in v1.7.1

type SnapshotVotingPower struct {
	Data struct {
		Vp struct {
			Vp float64 `json:"vp"`
		} `json:"vp"`
	} `json:"data"`
}

type StakeMinipoolResponse added in v1.2.3

type StakeMinipoolResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type StakeResponse added in v1.18.0

type StakeResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type TNDAOMembersResponse added in v1.0.0

type TNDAOMembersResponse struct {
	Status  string             `json:"status"`
	Error   string             `json:"error"`
	Members []tn.MemberDetails `json:"members"`
}

type TNDAOProposalResponse added in v1.0.0

type TNDAOProposalResponse struct {
	Status   string              `json:"status"`
	Error    string              `json:"error"`
	Proposal dao.ProposalDetails `json:"proposal"`
}

type TNDAOProposalsResponse added in v1.0.0

type TNDAOProposalsResponse struct {
	Status    string                `json:"status"`
	Error     string                `json:"error"`
	Proposals []dao.ProposalDetails `json:"proposals"`
}

type TNDAOStatusResponse added in v1.0.0

type TNDAOStatusResponse struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	IsMember       bool   `json:"isMember"`
	CanJoin        bool   `json:"canJoin"`
	CanLeave       bool   `json:"canLeave"`
	CanReplace     bool   `json:"canReplace"`
	TotalMembers   uint64 `json:"totalMembers"`
	ProposalCounts struct {
		Total     int `json:"total"`
		Pending   int `json:"pending"`
		Active    int `json:"active"`
		Cancelled int `json:"cancelled"`
		Defeated  int `json:"defeated"`
		Succeeded int `json:"succeeded"`
		Expired   int `json:"expired"`
		Executed  int `json:"executed"`
	} `json:"proposalCounts"`
}

type TerminateDataFolderResponse added in v1.3.0

type TerminateDataFolderResponse struct {
	Status        string `json:"status"`
	Error         string `json:"error"`
	FolderExisted bool   `json:"folderExisted"`
}

type TestMnemonicResponse added in v1.3.1

type TestMnemonicResponse struct {
	Status           string         `json:"status"`
	Error            string         `json:"error"`
	CurrentAddress   common.Address `json:"currentAddress"`
	RecoveredAddress common.Address `json:"recoveredAddress"`
}

type ValidatorDetails

type ValidatorDetails struct {
	Exists      bool     `json:"exists"`
	Active      bool     `json:"active"`
	Index       string   `json:"index"`
	Balance     *big.Int `json:"balance"`
	NodeBalance *big.Int `json:"nodeBalance"`
}

type ValidatorKeystore added in v1.4.3

type ValidatorKeystore struct {
	Crypto  map[string]interface{} `json:"crypto"`
	Version uint                   `json:"version"`
	UUID    uuid.UUID              `json:"uuid"`
	Path    string                 `json:"path"`
	Pubkey  types.ValidatorPubkey  `json:"pubkey"`
}

Encrypted validator keystore following the EIP-2335 standard (https://eips.ethereum.org/EIPS/eip-2335)

type ValidatorWithdrawableEpochProof added in v1.18.0

type ValidatorWithdrawableEpochProof struct {
	Slot              uint64
	ValidatorIndex    *big.Int
	Pubkey            []byte
	WithdrawableEpoch uint64
	Witnesses         [][32]byte
}

type VoteOnPDAOProposalResponse added in v1.13.0

type VoteOnPDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type VoteOnTNDAOProposalResponse added in v1.0.0

type VoteOnTNDAOProposalResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	TxHash common.Hash `json:"txHash"`
}

type WalletStatusResponse

type WalletStatusResponse struct {
	Status            string `json:"status"`
	Error             string `json:"error"`
	PasswordSet       bool   `json:"passwordSet"`
	WalletInitialized bool   `json:"walletInitialized"`
	// When masquerading, AccountAddress represents the masqueraded address.
	// When using a normal wallet, AccountAddress represents the address derived from the wallet stored on disk
	AccountAddress common.Address `json:"accountAddress"`
	// NodeAddress always represents the address drived from the wallet stored on disk
	NodeAddress    common.Address `json:"nodeAddress"`
	IsMasquerading bool           `json:"isMasquerading"`
}

type WithdrawalProofResponse added in v1.18.0

type WithdrawalProofResponse struct {
	Slot           uint64   `json:"slot"`
	WithdrawalSlot uint64   `json:"withdrawalSlot"`
	ValidatorIndex uint64   `json:"validatorIndex"`
	Amount         *big.Int `json:"amount"`
	Proof          []string `json:"proof"`

	// Contract refers to this as _withdrawalNum
	IndexInWithdrawalsArray uint `json:"indexInWithdrawalsArray"`
	// Part of the Withdrawal calldata
	WithdrawalIndex   uint64         `json:"withdrawalIndex"`
	WithdrawalAddress common.Address `json:"withdrawalAddress"`
}

Jump to

Keyboard shortcuts

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