api

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: GPL-3.0 Imports: 13 Imported by: 1

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 BidOnLotResponse added in v1.0.0

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

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 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 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 CanCloseMinipoolResponse

type CanCloseMinipoolResponse struct {
	Status        string             `json:"status"`
	Error         string             `json:"error"`
	CanClose      bool               `json:"canClose"`
	InvalidStatus bool               `json:"invalidStatus"`
	InConsensus   bool               `json:"inConsensus"`
	GasInfo       rocketpool.GasInfo `json:"gasInfo"`
}

type CanConfirmNodeWithdrawalAddressResponse added in v1.0.0

type CanConfirmNodeWithdrawalAddressResponse 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 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 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 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 CanFaucetWithdrawRplResponse added in v1.0.0

type CanFaucetWithdrawRplResponse struct {
	Status                    string             `json:"status"`
	Error                     string             `json:"error"`
	CanWithdraw               bool               `json:"canWithdraw"`
	InsufficientFaucetBalance bool               `json:"insufficientFaucetBalance"`
	InsufficientAllowance     bool               `json:"insufficientAllowance"`
	InsufficientNodeBalance   bool               `json:"insufficientNodeBalance"`
	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"`
	IsUpgraded     bool   `json:"isUpgraded"`
	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"`
	InsufficientBalance    bool               `json:"insufficientBalance"`
	InsufficientRplStake   bool               `json:"insufficientRplStake"`
	InvalidAmount          bool               `json:"invalidAmount"`
	UnbondedMinipoolsAtMax bool               `json:"unbondedMinipoolsAtMax"`
	DepositDisabled        bool               `json:"depositDisabled"`
	InConsensus            bool               `json:"inConsensus"`
	MinipoolAddress        common.Address     `json:"minipoolAddress"`
	GasInfo                rocketpool.GasInfo `json:"gasInfo"`
}

type CanNodeSendResponse

type CanNodeSendResponse struct {
	Status              string             `json:"status"`
	Error               string             `json:"error"`
	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"`
	InConsensus         bool               `json:"inConsensus"`
	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 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"`
	MinipoolsUndercollateralized bool               `json:"minipoolsUndercollateralized"`
	WithdrawalDelayActive        bool               `json:"withdrawalDelayActive"`
	InConsensus                  bool               `json:"inConsensus"`
	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 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 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 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 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 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 CanSetNodeWithdrawalAddressResponse added in v1.0.0

type CanSetNodeWithdrawalAddressResponse 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 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 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 CancelTNDAOProposalResponse added in v1.0.0

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

type ClaimFromLotResponse added in v1.0.0

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

type ClearSnapshotDelegateResponse added in v1.4.2

type ClearSnapshotDelegateResponse 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"`
	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 ConfirmNodeWithdrawalAddressResponse added in v1.0.0

type ConfirmNodeWithdrawalAddressResponse 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 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 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 EstimateClearSnapshotDelegateGasResponse added in v1.4.2

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

type EstimateSetSnapshotDelegateGasResponse added in v1.4.2

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

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 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 FaucetStatusResponse added in v1.0.0

type FaucetStatusResponse struct {
	Status             string   `json:"status"`
	Error              string   `json:"error"`
	Balance            *big.Int `json:"balance"`
	Allowance          *big.Int `json:"allowance"`
	WithdrawableAmount *big.Int `json:"withdrawableAmount"`
	WithdrawalFee      *big.Int `json:"withdrawalFee"`
	ResetsInBlocks     uint64   `json:"resetsInBlocks"`
}

type FaucetWithdrawRplResponse added in v1.0.0

type FaucetWithdrawRplResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	Amount *big.Int    `json:"amount"`
	TxHash common.Hash `json:"txHash"`
}

type FinaliseMinipoolResponse added in v1.0.0

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

type GetDelegateResponse added in v1.0.0

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

type GetEffectiveDelegateResponse added in v1.0.0

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

type GetNodePendingWithdrawalAddressResponse added in v1.0.0

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

type GetNodeWithdrawalAddressResponse added in v1.0.0

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

type GetPreviousDelegateResponse added in v1.0.0

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

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

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"`
	MinipoolManagerAddress common.Address `json:"minipoolManagerAddress"`
	InitHash               common.Hash    `json:"initHash"`
}

type InitWalletResponse

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

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 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"`
	Validator           ValidatorDetails       `json:"validator"`
	CanStake            bool                   `json:"canStake"`
	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"`
	Penalties           uint64                 `json:"penalties"`
}

type MinipoolStatusResponse

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

type NetworkGenerateRewardsTreeResponse added in v1.5.0

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

type NetworkMergeUpdateStatusResponse added in v1.5.0

type NetworkMergeUpdateStatusResponse struct {
	Status           string `json:"status"`
	Error            string `json:"error"`
	IsUpdateDeployed bool   `json:"isUpdateDeployed"`
}

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"`
	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 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"`
	AverageNodeFee float64            `json:"averageNodeFee"`
	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 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"`
	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"`
}

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"`
	IsMergeUpdateDeployed       bool          `json:"isMergeUpdateDeployed"`
	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"`
	AccountAddress           common.Address  `json:"accountAddress"`
	WithdrawalAddress        common.Address  `json:"withdrawalAddress"`
	PendingWithdrawalAddress common.Address  `json:"pendingWithdrawalAddress"`
	Registered               bool            `json:"registered"`
	Trusted                  bool            `json:"trusted"`
	TimezoneLocation         string          `json:"timezoneLocation"`
	AccountBalances          tokens.Balances `json:"accountBalances"`
	WithdrawalBalances       tokens.Balances `json:"withdrawalBalances"`
	RplStake                 *big.Int        `json:"rplStake"`
	EffectiveRplStake        *big.Int        `json:"effectiveRplStake"`
	MinimumRplStake          *big.Int        `json:"minimumRplStake"`
	MaximumRplStake          *big.Int        `json:"maximumRplStake"`
	CollateralRatio          float64         `json:"collateralRatio"`
	VotingDelegate           common.Address  `json:"votingDelegate"`
	MinipoolLimit            uint64          `json:"minipoolLimit"`
	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"`
	IsMergeUpdateDeployed       bool                      `json:"isMergeUpdateDeployed"`
	IsFeeDistributorInitialized bool                      `json:"isFeeDistributorInitialized"`
	FeeRecipientInfo            rp.FeeRecipientInfo       `json:"feeRecipientInfo"`
	FeeDistributorBalance       *big.Int                  `json:"feeDistributorBalance"`
	PenalizedMinipools          map[common.Address]uint64 `json:"penalizedMinipools"`
}

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 NodeWithdrawRplResponse added in v1.0.0

type NodeWithdrawRplResponse 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 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 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 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 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 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 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 ReplaceTNDAOPositionResponse added in v1.0.0

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

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"`
	MinPerMinipoolRplStake *big.Int `json:"minPerMinipoolRplStake"`
	MaxPerMinipoolRplStake *big.Int `json:"maxPerMinipoolRplStake"`
}

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 SetNodeTimezoneResponse

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

type SetNodeWithdrawalAddressResponse added in v1.0.0

type SetNodeWithdrawalAddressResponse 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 SetSmoothingPoolRegistrationStatusResponse added in v1.5.0

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

type SetSnapshotDelegateResponse added in v1.4.2

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

type SetUseLatestDelegateResponse added in v1.0.0

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

type StakeMinipoolResponse added in v1.2.3

type StakeMinipoolResponse 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"`
	Proposals 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       uint64   `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 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"`
	AccountAddress    common.Address `json:"accountAddress"`
}

Jump to

Keyboard shortcuts

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