Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ApproveRPLToJoinTNDAO() (api.JoinTNDAOApproveResponse, error)
- func (c *Client) AssignGasSettings(maxFee float64, maxPrioFee float64, gasLimit uint64)
- func (c *Client) AuctionLots() (api.AuctionLotsResponse, error)
- func (c *Client) AuctionStatus() (api.AuctionStatusResponse, error)
- func (c *Client) BidOnLot(lotIndex uint64, amountWei *big.Int) (api.BidOnLotResponse, error)
- func (c *Client) CanBidOnLot(lotIndex uint64, amountWei *big.Int) (api.CanBidOnLotResponse, error)
- func (c *Client) CanCancelTNDAOProposal(proposalId uint64) (api.CanCancelTNDAOProposalResponse, error)
- func (c *Client) CanClaimFromLot(lotIndex uint64) (api.CanClaimFromLotResponse, error)
- func (c *Client) CanCloseMinipool(address common.Address) (api.CanCloseMinipoolResponse, error)
- func (c *Client) CanConfirmNodeWithdrawalAddress() (api.CanSetNodeWithdrawalAddressResponse, error)
- func (c *Client) CanCreateLot() (api.CanCreateLotResponse, error)
- func (c *Client) CanDelegateRollbackMinipool(address common.Address) (api.CanDelegateRollbackResponse, error)
- func (c *Client) CanDelegateUpgradeMinipool(address common.Address) (api.CanDelegateUpgradeResponse, error)
- func (c *Client) CanDissolveMinipool(address common.Address) (api.CanDissolveMinipoolResponse, error)
- func (c *Client) CanExecuteTNDAOProposal(proposalId uint64) (api.CanExecuteTNDAOProposalResponse, error)
- func (c *Client) CanExitMinipool(address common.Address) (api.CanExitMinipoolResponse, error)
- func (c *Client) CanFaucetWithdrawRpl() (api.CanFaucetWithdrawRplResponse, error)
- func (c *Client) CanFinaliseMinipool(address common.Address) (api.CanFinaliseMinipoolResponse, error)
- func (c *Client) CanJoinTNDAO() (api.CanJoinTNDAOResponse, error)
- func (c *Client) CanLeaveTNDAO() (api.CanLeaveTNDAOResponse, error)
- func (c *Client) CanNodeBurn(amountWei *big.Int, token string) (api.CanNodeBurnResponse, error)
- func (c *Client) CanNodeClaimRpl() (api.CanNodeClaimRplResponse, error)
- func (c *Client) CanNodeDeposit(amountWei *big.Int, minFee float64, salt *big.Int) (api.CanNodeDepositResponse, error)
- func (c *Client) CanNodeSend(amountWei *big.Int, token string) (api.CanNodeSendResponse, error)
- func (c *Client) CanNodeStakeRpl(amountWei *big.Int) (api.CanNodeStakeRplResponse, error)
- func (c *Client) CanNodeSwapRpl(amountWei *big.Int) (api.CanNodeSwapRplResponse, error)
- func (c *Client) CanNodeWithdrawRpl(amountWei *big.Int) (api.CanNodeWithdrawRplResponse, error)
- func (c *Client) CanProcessQueue() (api.CanProcessQueueResponse, error)
- func (c *Client) CanProposeInviteToTNDAO(memberAddress common.Address, memberId, memberUrl string) (api.CanProposeTNDAOInviteResponse, error)
- func (c *Client) CanProposeKickFromTNDAO(memberAddress common.Address, fineAmountWei *big.Int) (api.CanProposeTNDAOKickResponse, error)
- func (c *Client) CanProposeLeaveTNDAO() (api.CanProposeTNDAOLeaveResponse, error)
- func (c *Client) CanProposeReplaceTNDAOMember(memberAddress common.Address, memberId, memberUrl string) (api.CanProposeTNDAOReplaceResponse, error)
- func (c *Client) CanProposeTNDAOSetting() (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingMembersQuorum(quorum float64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingMembersRplBond(bondAmountWei *big.Int) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingMinipoolUnbondedMax(unbondedMinipoolMax uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingProposalActionTimespan(proposalActionTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingProposalCooldown(proposalCooldownTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingProposalExecuteTimespan(proposalExecuteTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingProposalVoteDelayTimespan(proposalDelayTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingProposalVoteTimespan(proposalVoteTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanProposeTNDAOSettingScrubPeriod(scrubPeriod uint64) (api.CanProposeTNDAOSettingResponse, error)
- func (c *Client) CanRecoverUnclaimedRPLFromLot(lotIndex uint64) (api.CanRecoverRPLFromLotResponse, error)
- func (c *Client) CanRefundMinipool(address common.Address) (api.CanRefundMinipoolResponse, error)
- func (c *Client) CanRegisterNode(timezoneLocation string) (api.CanRegisterNodeResponse, error)
- func (c *Client) CanReplaceTNDAOMember() (api.CanReplaceTNDAOPositionResponse, error)
- func (c *Client) CanSetNodeTimezone(timezoneLocation string) (api.CanSetNodeTimezoneResponse, error)
- func (c *Client) CanSetNodeWithdrawalAddress(withdrawalAddress common.Address, confirm bool) (api.CanSetNodeWithdrawalAddressResponse, error)
- func (c *Client) CanSetUseLatestDelegateMinipool(address common.Address, setting bool) (api.CanSetUseLatestDelegateResponse, error)
- func (c *Client) CanStakeMinipool(address common.Address) (api.CanStakeMinipoolResponse, error)
- func (c *Client) CanVoteOnTNDAOProposal(proposalId uint64) (api.CanVoteOnTNDAOProposalResponse, error)
- func (c *Client) CancelTNDAOProposal(proposalId uint64) (api.CancelTNDAOProposalResponse, error)
- func (c *Client) ClaimFromLot(lotIndex uint64) (api.ClaimFromLotResponse, error)
- func (c *Client) Close()
- func (c *Client) CloseMinipool(address common.Address) (api.CloseMinipoolResponse, error)
- func (c *Client) ConfirmNodeWithdrawalAddress() (api.SetNodeWithdrawalAddressResponse, error)
- func (c *Client) CreateLot() (api.CreateLotResponse, error)
- func (c *Client) DelegateRollbackMinipool(address common.Address) (api.DelegateRollbackResponse, error)
- func (c *Client) DelegateUpgradeMinipool(address common.Address) (api.DelegateUpgradeResponse, error)
- func (c *Client) DeleteVolume(volume string) (string, error)
- func (c *Client) DepositContractInfo() (api.DepositContractInfoResponse, error)
- func (c *Client) DissolveMinipool(address common.Address) (api.DissolveMinipoolResponse, error)
- func (c *Client) ExecuteTNDAOProposal(proposalId uint64) (api.ExecuteTNDAOProposalResponse, error)
- func (c *Client) ExitMinipool(address common.Address) (api.ExitMinipoolResponse, error)
- func (c *Client) ExportWallet() (api.ExportWalletResponse, error)
- func (c *Client) FaucetStatus() (api.FaucetStatusResponse, error)
- func (c *Client) FaucetWithdrawRpl() (api.FaucetWithdrawRplResponse, error)
- func (c *Client) FinaliseMinipool(address common.Address) (api.FinaliseMinipoolResponse, error)
- func (c *Client) GetClientVolumeName(container string, volumeTarget string) (string, error)
- func (c *Client) GetClientVolumeSource(container string, volumeTarget string) (string, error)
- func (c *Client) GetDockerContainerShutdownTime(container string) (time.Time, error)
- func (c *Client) GetDockerImage(container string) (string, error)
- func (c *Client) GetDockerStatus(container string) (string, error)
- func (c *Client) GetGasSettings() (float64, float64, uint64)
- func (c *Client) GetNodeStakeRplAllowance() (api.NodeStakeRplAllowanceResponse, error)
- func (c *Client) GetNodeSwapRplAllowance() (api.NodeSwapRplAllowanceResponse, error)
- func (c *Client) GetServiceVersion() (string, error)
- func (c *Client) GetTNDAOMemberSettings() (api.GetTNDAOMemberSettingsResponse, error)
- func (c *Client) GetTNDAOMinipoolSettings() (api.GetTNDAOMinipoolSettingsResponse, error)
- func (c *Client) GetTNDAOProposalSettings() (api.GetTNDAOProposalSettingsResponse, error)
- func (c *Client) GetVanityArtifacts(depositAmount *big.Int, nodeAddress string) (api.GetVanityArtifactsResponse, error)
- func (c *Client) IncrementCustomNonce()
- func (c *Client) InitWallet() (api.InitWalletResponse, error)
- func (c *Client) InstallService(verbose, noDeps bool, network, version, path string) error
- func (c *Client) InstallUpdateTracker(verbose bool, version string) error
- func (c *Client) IsFirstRun() (bool, error)
- func (c *Client) JoinTNDAO(approvalTxHash common.Hash) (api.JoinTNDAOJoinResponse, error)
- func (c *Client) LeaveTNDAO(bondRefundAddress common.Address) (api.LeaveTNDAOResponse, error)
- func (c *Client) LoadConfig() (*config.RocketPoolConfig, bool, error)
- func (c *Client) LoadGlobalConfig_Legacy(globalConfigPath string) (config.LegacyRocketPoolConfig, error)
- func (c *Client) LoadLegacyConfigFromBackup() (*config.RocketPoolConfig, error)
- func (c *Client) LoadMergedConfig_Legacy(globalConfigPath string, userConfigPath string) (config.LegacyRocketPoolConfig, error)
- func (c *Client) LoadUserConfig_Legacy(userConfigPath string) (config.LegacyRocketPoolConfig, error)
- func (c *Client) MigrateLegacyConfig(legacyConfigFilePath string, legacySettingsFilePath string) (*config.RocketPoolConfig, error)
- func (c *Client) MinipoolStatus() (api.MinipoolStatusResponse, error)
- func (c *Client) NetworkStats() (api.NetworkStatsResponse, error)
- func (c *Client) NodeBurn(amountWei *big.Int, token string) (api.NodeBurnResponse, error)
- func (c *Client) NodeClaimRpl() (api.NodeClaimRplResponse, error)
- func (c *Client) NodeDeposit(amountWei *big.Int, minFee float64, salt *big.Int) (api.NodeDepositResponse, error)
- func (c *Client) NodeFee() (api.NodeFeeResponse, error)
- func (c *Client) NodeRewards() (api.NodeRewardsResponse, error)
- func (c *Client) NodeSend(amountWei *big.Int, token string, toAddress common.Address) (api.NodeSendResponse, error)
- func (c *Client) NodeStakeRpl(amountWei *big.Int) (api.NodeStakeRplStakeResponse, error)
- func (c *Client) NodeStakeRplApprovalGas(amountWei *big.Int) (api.NodeStakeRplApproveGasResponse, error)
- func (c *Client) NodeStakeRplApprove(amountWei *big.Int) (api.NodeStakeRplApproveResponse, error)
- func (c *Client) NodeStatus() (api.NodeStatusResponse, error)
- func (c *Client) NodeSwapRpl(amountWei *big.Int) (api.NodeSwapRplSwapResponse, error)
- func (c *Client) NodeSwapRplApprovalGas(amountWei *big.Int) (api.NodeSwapRplApproveGasResponse, error)
- func (c *Client) NodeSwapRplApprove(amountWei *big.Int) (api.NodeSwapRplApproveResponse, error)
- func (c *Client) NodeSync() (api.NodeSyncProgressResponse, error)
- func (c *Client) NodeWaitAndStakeRpl(amountWei *big.Int, approvalTxHash common.Hash) (api.NodeStakeRplStakeResponse, error)
- func (c *Client) NodeWaitAndSwapRpl(amountWei *big.Int, approvalTxHash common.Hash) (api.NodeSwapRplSwapResponse, error)
- func (c *Client) NodeWithdrawRpl(amountWei *big.Int) (api.NodeWithdrawRplResponse, error)
- func (c *Client) PauseService(composeFiles []string) error
- func (rp *Client) PrintMultiTxWarning()
- func (c *Client) PrintServiceLogs(composeFiles []string, tail string, serviceNames ...string) error
- func (c *Client) PrintServiceStats(composeFiles []string) error
- func (c *Client) PrintServiceStatus(composeFiles []string) error
- func (c *Client) ProcessQueue() (api.ProcessQueueResponse, error)
- func (c *Client) ProposeInviteToTNDAO(memberAddress common.Address, memberId, memberUrl string) (api.ProposeTNDAOInviteResponse, error)
- func (c *Client) ProposeKickFromTNDAO(memberAddress common.Address, fineAmountWei *big.Int) (api.ProposeTNDAOKickResponse, error)
- func (c *Client) ProposeLeaveTNDAO() (api.ProposeTNDAOLeaveResponse, error)
- func (c *Client) ProposeReplaceTNDAOMember(memberAddress common.Address, memberId, memberUrl string) (api.ProposeTNDAOReplaceResponse, error)
- func (c *Client) ProposeTNDAOSettingMembersQuorum(quorum float64) (api.ProposeTNDAOSettingMembersQuorumResponse, error)
- func (c *Client) ProposeTNDAOSettingMembersRplBond(bondAmountWei *big.Int) (api.ProposeTNDAOSettingMembersRplBondResponse, error)
- func (c *Client) ProposeTNDAOSettingMinipoolUnbondedMax(unbondedMinipoolMax uint64) (api.ProposeTNDAOSettingMinipoolUnbondedMaxResponse, error)
- func (c *Client) ProposeTNDAOSettingProposalActionTimespan(proposalActionTimespan uint64) (api.ProposeTNDAOSettingProposalActionTimespanResponse, error)
- func (c *Client) ProposeTNDAOSettingProposalCooldown(proposalCooldownTimespan uint64) (api.ProposeTNDAOSettingProposalCooldownResponse, error)
- func (c *Client) ProposeTNDAOSettingProposalExecuteTimespan(proposalExecuteTimespan uint64) (api.ProposeTNDAOSettingProposalExecuteTimespanResponse, error)
- func (c *Client) ProposeTNDAOSettingProposalVoteDelayTimespan(proposalDelayTimespan uint64) (api.ProposeTNDAOSettingProposalVoteDelayTimespanResponse, error)
- func (c *Client) ProposeTNDAOSettingProposalVoteTimespan(proposalVoteTimespan uint64) (api.ProposeTNDAOSettingProposalVoteTimespanResponse, error)
- func (c *Client) ProposeTNDAOSettingScrubPeriod(scrubPeriod uint64) (api.ProposeTNDAOSettingScrubPeriodResponse, error)
- func (c *Client) QueueStatus() (api.QueueStatusResponse, error)
- func (c *Client) RebuildWallet() (api.RebuildWalletResponse, error)
- func (c *Client) RecoverUnclaimedRPLFromLot(lotIndex uint64) (api.RecoverRPLFromLotResponse, error)
- func (c *Client) RecoverWallet(mnemonic string) (api.RecoverWalletResponse, error)
- func (c *Client) RefundMinipool(address common.Address) (api.RefundMinipoolResponse, error)
- func (c *Client) RegisterNode(timezoneLocation string) (api.RegisterNodeResponse, error)
- func (c *Client) RemoveContainer(container string) (string, error)
- func (c *Client) ReplaceTNDAOMember() (api.ReplaceTNDAOPositionResponse, error)
- func (c *Client) RplPrice() (api.RplPriceResponse, error)
- func (c *Client) RunPruneProvisioner(container string, volume string, image string) error
- func (c *Client) SaveConfig(cfg *config.RocketPoolConfig) error
- func (c *Client) SetNodeTimezone(timezoneLocation string) (api.SetNodeTimezoneResponse, error)
- func (c *Client) SetNodeWithdrawalAddress(withdrawalAddress common.Address, confirm bool) (api.SetNodeWithdrawalAddressResponse, error)
- func (c *Client) SetPassword(password string) (api.SetPasswordResponse, error)
- func (c *Client) SetUseLatestDelegateMinipool(address common.Address, setting bool) (api.SetUseLatestDelegateResponse, error)
- func (c *Client) StakeMinipool(address common.Address) (api.StakeMinipoolResponse, error)
- func (c *Client) StartContainer(container string) (string, error)
- func (c *Client) StartService(composeFiles []string) error
- func (c *Client) StopContainer(container string) (string, error)
- func (c *Client) StopService(composeFiles []string) error
- func (c *Client) TNDAOMembers() (api.TNDAOMembersResponse, error)
- func (c *Client) TNDAOProposal(id uint64) (api.TNDAOProposalResponse, error)
- func (c *Client) TNDAOProposals() (api.TNDAOProposalsResponse, error)
- func (c *Client) TNDAOStatus() (api.TNDAOStatusResponse, error)
- func (c *Client) TerminateDataFolder() (api.TerminateDataFolderResponse, error)
- func (c *Client) TimezoneMap() (api.NetworkTimezonesResponse, error)
- func (c *Client) UpdatePrometheusConfiguration(settings map[string]string) error
- func (c *Client) VoteOnTNDAOProposal(proposalId uint64, support bool) (api.VoteOnTNDAOProposalResponse, error)
- func (c *Client) WaitForTransaction(txHash common.Hash) (api.APIResponse, error)
- func (c *Client) WalletStatus() (api.WalletStatusResponse, error)
Constants ¶
const ( InstallerURL string = "https://github.com/rocket-pool/smartnode-install/releases/download/%s/install.sh" UpdateTrackerURL string = "https://github.com/rocket-pool/smartnode-install/releases/download/%s/install-update-tracker.sh" LegacyBackupFolder string = "old_config_backup" SettingsFile string = "user-settings.yml" BackupSettingsFile string = "user-settings-backup.yml" LegacyConfigFile string = "config.yml" LegacySettingsFile string = "settings.yml" PrometheusConfigTemplate string = "prometheus.tmpl" PrometheusFile string = "prometheus.yml" APIContainerSuffix string = "_api" APIBinPath string = "/go/bin/rocketpool" DebugColor = color.FgYellow )
Config
const ( LegacyGlobalConfigFile = "config.yml" LegacyUserConfigFile = "settings.yml" LegacyComposeFile = "docker-compose.yml" LegacyMetricsComposeFile = "docker-compose-metrics.yml" LegacyFallbackComposeFile = "docker-compose-fallback.yml" )
Config
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Rocket Pool client
func NewClient ¶
func NewClient(configPath string, daemonPath string, maxFee float64, maxPrioFee float64, gasLimit uint64, customNonce string, debug bool) (*Client, error)
Create new Rocket Pool client
func NewClientFromCtx ¶
Create new Rocket Pool client from CLI context
func (*Client) ApproveRPLToJoinTNDAO ¶ added in v1.0.0
func (c *Client) ApproveRPLToJoinTNDAO() (api.JoinTNDAOApproveResponse, error)
Join the oracle DAO (requires an executed invite proposal)
func (*Client) AssignGasSettings ¶ added in v1.1.0
Get the gas fees
func (*Client) AuctionLots ¶ added in v1.0.0
func (c *Client) AuctionLots() (api.AuctionLotsResponse, error)
Get RPL lots for auction
func (*Client) AuctionStatus ¶ added in v1.0.0
func (c *Client) AuctionStatus() (api.AuctionStatusResponse, error)
Get RPL auction status
func (*Client) CanBidOnLot ¶ added in v1.0.0
Check whether the node can bid on a lot
func (*Client) CanCancelTNDAOProposal ¶ added in v1.0.0
func (c *Client) CanCancelTNDAOProposal(proposalId uint64) (api.CanCancelTNDAOProposalResponse, error)
Check whether the node can cancel a proposal
func (*Client) CanClaimFromLot ¶ added in v1.0.0
func (c *Client) CanClaimFromLot(lotIndex uint64) (api.CanClaimFromLotResponse, error)
Check whether the node can claim RPL from a lot
func (*Client) CanCloseMinipool ¶
Check whether a minipool can be closed
func (*Client) CanConfirmNodeWithdrawalAddress ¶ added in v1.0.0
func (c *Client) CanConfirmNodeWithdrawalAddress() (api.CanSetNodeWithdrawalAddressResponse, error)
Checks if the node's withdrawal address can be confirmed
func (*Client) CanCreateLot ¶ added in v1.0.0
func (c *Client) CanCreateLot() (api.CanCreateLotResponse, error)
Check whether the node can create a new lot
func (*Client) CanDelegateRollbackMinipool ¶ added in v1.0.0
func (c *Client) CanDelegateRollbackMinipool(address common.Address) (api.CanDelegateRollbackResponse, error)
Check whether a minipool can have its delegate rolled back
func (*Client) CanDelegateUpgradeMinipool ¶ added in v1.0.0
func (c *Client) CanDelegateUpgradeMinipool(address common.Address) (api.CanDelegateUpgradeResponse, error)
Check whether a minipool can have its delegate upgraded
func (*Client) CanDissolveMinipool ¶
func (c *Client) CanDissolveMinipool(address common.Address) (api.CanDissolveMinipoolResponse, error)
Check whether a minipool can be dissolved
func (*Client) CanExecuteTNDAOProposal ¶ added in v1.0.0
func (c *Client) CanExecuteTNDAOProposal(proposalId uint64) (api.CanExecuteTNDAOProposalResponse, error)
Check whether the node can execute a proposal
func (*Client) CanExitMinipool ¶
Check whether a minipool can be exited
func (*Client) CanFaucetWithdrawRpl ¶ added in v1.0.0
func (c *Client) CanFaucetWithdrawRpl() (api.CanFaucetWithdrawRplResponse, error)
Check whether the node can withdraw RPL from the faucet
func (*Client) CanFinaliseMinipool ¶ added in v1.0.0
func (c *Client) CanFinaliseMinipool(address common.Address) (api.CanFinaliseMinipoolResponse, error)
Check whether a minipool can be finalised
func (*Client) CanJoinTNDAO ¶ added in v1.0.0
func (c *Client) CanJoinTNDAO() (api.CanJoinTNDAOResponse, error)
Check whether the node can join the oracle DAO
func (*Client) CanLeaveTNDAO ¶ added in v1.0.0
func (c *Client) CanLeaveTNDAO() (api.CanLeaveTNDAOResponse, error)
Check whether the node can leave the oracle DAO
func (*Client) CanNodeBurn ¶
Check whether the node can burn tokens
func (*Client) CanNodeClaimRpl ¶ added in v1.0.0
func (c *Client) CanNodeClaimRpl() (api.CanNodeClaimRplResponse, error)
Check whether the node has RPL rewards available to claim
func (*Client) CanNodeDeposit ¶
func (c *Client) CanNodeDeposit(amountWei *big.Int, minFee float64, salt *big.Int) (api.CanNodeDepositResponse, error)
Check whether the node can make a deposit
func (*Client) CanNodeSend ¶
Check whether the node can send tokens
func (*Client) CanNodeStakeRpl ¶ added in v1.0.0
Check whether the node can stake RPL
func (*Client) CanNodeSwapRpl ¶ added in v1.0.0
Check whether the node can swap RPL tokens
func (*Client) CanNodeWithdrawRpl ¶ added in v1.0.0
Check whether the node can withdraw RPL
func (*Client) CanProcessQueue ¶
func (c *Client) CanProcessQueue() (api.CanProcessQueueResponse, error)
Check whether the queue can be processed
func (*Client) CanProposeInviteToTNDAO ¶ added in v1.0.0
func (c *Client) CanProposeInviteToTNDAO(memberAddress common.Address, memberId, memberUrl string) (api.CanProposeTNDAOInviteResponse, error)
Check whether the node can propose inviting a new member
func (*Client) CanProposeKickFromTNDAO ¶ added in v1.0.0
func (c *Client) CanProposeKickFromTNDAO(memberAddress common.Address, fineAmountWei *big.Int) (api.CanProposeTNDAOKickResponse, error)
Check whether the node can propose kicking a member
func (*Client) CanProposeLeaveTNDAO ¶ added in v1.0.0
func (c *Client) CanProposeLeaveTNDAO() (api.CanProposeTNDAOLeaveResponse, error)
Check whether the node can propose leaving the oracle DAO
func (*Client) CanProposeReplaceTNDAOMember ¶ added in v1.0.0
func (c *Client) CanProposeReplaceTNDAOMember(memberAddress common.Address, memberId, memberUrl string) (api.CanProposeTNDAOReplaceResponse, error)
Check whether the node can propose replacing its position with a new member
func (*Client) CanProposeTNDAOSetting ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSetting() (api.CanProposeTNDAOSettingResponse, error)
Check whether the node can propose a setting update
func (*Client) CanProposeTNDAOSettingMembersQuorum ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingMembersQuorum(quorum float64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingMembersRplBond ¶ added in v1.0.0
func (*Client) CanProposeTNDAOSettingMinipoolUnbondedMax ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingMinipoolUnbondedMax(unbondedMinipoolMax uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingProposalActionTimespan ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingProposalActionTimespan(proposalActionTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingProposalCooldown ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingProposalCooldown(proposalCooldownTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingProposalExecuteTimespan ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingProposalExecuteTimespan(proposalExecuteTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingProposalVoteDelayTimespan ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingProposalVoteDelayTimespan(proposalDelayTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingProposalVoteTimespan ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingProposalVoteTimespan(proposalVoteTimespan uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanProposeTNDAOSettingScrubPeriod ¶ added in v1.0.0
func (c *Client) CanProposeTNDAOSettingScrubPeriod(scrubPeriod uint64) (api.CanProposeTNDAOSettingResponse, error)
func (*Client) CanRecoverUnclaimedRPLFromLot ¶ added in v1.0.0
func (c *Client) CanRecoverUnclaimedRPLFromLot(lotIndex uint64) (api.CanRecoverRPLFromLotResponse, error)
Check whether the node can recover unclaimed RPL from a lot
func (*Client) CanRefundMinipool ¶
Check whether a minipool is eligible for a refund
func (*Client) CanRegisterNode ¶
func (c *Client) CanRegisterNode(timezoneLocation string) (api.CanRegisterNodeResponse, error)
Check whether the node can be registered
func (*Client) CanReplaceTNDAOMember ¶ added in v1.0.0
func (c *Client) CanReplaceTNDAOMember() (api.CanReplaceTNDAOPositionResponse, error)
Check whether the node can replace its position in the oracle DAO
func (*Client) CanSetNodeTimezone ¶ added in v1.0.0
func (c *Client) CanSetNodeTimezone(timezoneLocation string) (api.CanSetNodeTimezoneResponse, error)
Checks if the node's timezone location can be set
func (*Client) CanSetNodeWithdrawalAddress ¶ added in v1.0.0
func (c *Client) CanSetNodeWithdrawalAddress(withdrawalAddress common.Address, confirm bool) (api.CanSetNodeWithdrawalAddressResponse, error)
Checks if the node's withdrawal address can be set
func (*Client) CanSetUseLatestDelegateMinipool ¶ added in v1.0.0
func (c *Client) CanSetUseLatestDelegateMinipool(address common.Address, setting bool) (api.CanSetUseLatestDelegateResponse, error)
Check whether a minipool can have its auto-upgrade setting changed
func (*Client) CanStakeMinipool ¶ added in v1.2.3
Check whether a minipool is eligible for staking
func (*Client) CanVoteOnTNDAOProposal ¶ added in v1.0.0
func (c *Client) CanVoteOnTNDAOProposal(proposalId uint64) (api.CanVoteOnTNDAOProposalResponse, error)
Check whether the node can vote on a proposal
func (*Client) CancelTNDAOProposal ¶ added in v1.0.0
func (c *Client) CancelTNDAOProposal(proposalId uint64) (api.CancelTNDAOProposalResponse, error)
Cancel a proposal made by the node
func (*Client) ClaimFromLot ¶ added in v1.0.0
func (c *Client) ClaimFromLot(lotIndex uint64) (api.ClaimFromLotResponse, error)
Claim RPL from a lot
func (*Client) CloseMinipool ¶
Close a minipool
func (*Client) ConfirmNodeWithdrawalAddress ¶ added in v1.0.0
func (c *Client) ConfirmNodeWithdrawalAddress() (api.SetNodeWithdrawalAddressResponse, error)
Confirm the node's withdrawal address
func (*Client) CreateLot ¶ added in v1.0.0
func (c *Client) CreateLot() (api.CreateLotResponse, error)
Create a new lot
func (*Client) DelegateRollbackMinipool ¶ added in v1.0.0
func (c *Client) DelegateRollbackMinipool(address common.Address) (api.DelegateRollbackResponse, error)
Rollback a minipool delegate
func (*Client) DelegateUpgradeMinipool ¶ added in v1.0.0
func (c *Client) DelegateUpgradeMinipool(address common.Address) (api.DelegateUpgradeResponse, error)
Upgrade a minipool delegate
func (*Client) DeleteVolume ¶ added in v1.2.1
Deletes a container
func (*Client) DepositContractInfo ¶ added in v1.0.0
func (c *Client) DepositContractInfo() (api.DepositContractInfoResponse, error)
Get the deposit contract info for Rocket Pool and the Beacon Client
func (*Client) DissolveMinipool ¶
Dissolve a minipool
func (*Client) ExecuteTNDAOProposal ¶ added in v1.0.0
func (c *Client) ExecuteTNDAOProposal(proposalId uint64) (api.ExecuteTNDAOProposalResponse, error)
Execute a proposal
func (*Client) ExitMinipool ¶
Exit a minipool
func (*Client) ExportWallet ¶
func (c *Client) ExportWallet() (api.ExportWalletResponse, error)
Export wallet
func (*Client) FaucetStatus ¶ added in v1.0.0
func (c *Client) FaucetStatus() (api.FaucetStatusResponse, error)
Get faucet status
func (*Client) FaucetWithdrawRpl ¶ added in v1.0.0
func (c *Client) FaucetWithdrawRpl() (api.FaucetWithdrawRplResponse, error)
Withdraw RPL from the faucet
func (*Client) FinaliseMinipool ¶ added in v1.0.0
Finalise a minipool
func (*Client) GetClientVolumeName ¶ added in v1.2.1
Gets the name of the client volume
func (*Client) GetClientVolumeSource ¶ added in v1.2.1
Gets the absolute file path of the client volume
func (*Client) GetDockerContainerShutdownTime ¶ added in v1.1.0
Get the time that the given container shut down
func (*Client) GetDockerImage ¶ added in v1.1.0
Get the current Docker image used by the given container
func (*Client) GetDockerStatus ¶ added in v1.1.0
Get the current Docker image used by the given container
func (*Client) GetGasSettings ¶ added in v1.1.0
Get the gas settings
func (*Client) GetNodeStakeRplAllowance ¶ added in v1.0.0
func (c *Client) GetNodeStakeRplAllowance() (api.NodeStakeRplAllowanceResponse, error)
Get a node's RPL allowance for the staking contract
func (*Client) GetNodeSwapRplAllowance ¶ added in v1.0.0
func (c *Client) GetNodeSwapRplAllowance() (api.NodeSwapRplAllowanceResponse, error)
Get a node's legacy RPL allowance for swapping on the new RPL contract
func (*Client) GetServiceVersion ¶ added in v0.0.5
Get the Rocket Pool service version
func (*Client) GetTNDAOMemberSettings ¶ added in v1.0.0
func (c *Client) GetTNDAOMemberSettings() (api.GetTNDAOMemberSettingsResponse, error)
Get the member settings
func (*Client) GetTNDAOMinipoolSettings ¶ added in v1.0.0
func (c *Client) GetTNDAOMinipoolSettings() (api.GetTNDAOMinipoolSettingsResponse, error)
Get the proposal settings
func (*Client) GetTNDAOProposalSettings ¶ added in v1.0.0
func (c *Client) GetTNDAOProposalSettings() (api.GetTNDAOProposalSettingsResponse, error)
Get the proposal settings
func (*Client) GetVanityArtifacts ¶ added in v1.0.0
func (c *Client) GetVanityArtifacts(depositAmount *big.Int, nodeAddress string) (api.GetVanityArtifactsResponse, error)
Get the artifacts necessary for vanity address searching
func (*Client) IncrementCustomNonce ¶ added in v1.0.0
func (c *Client) IncrementCustomNonce()
Increments the custom nonce parameter. This is used for calls that involve multiple transactions, so they don't all have the same nonce.
func (*Client) InitWallet ¶
func (c *Client) InitWallet() (api.InitWalletResponse, error)
Initialize wallet
func (*Client) InstallService ¶
Install the Rocket Pool service
func (*Client) InstallUpdateTracker ¶ added in v1.0.0
Install the update tracker
func (*Client) IsFirstRun ¶ added in v1.3.0
Returns whether or not this is the first run of the configurator since a previous installation
func (*Client) JoinTNDAO ¶ added in v1.0.0
Join the oracle DAO (requires an executed invite proposal)
func (*Client) LeaveTNDAO ¶ added in v1.0.0
Leave the oracle DAO (requires an executed leave proposal)
func (*Client) LoadConfig ¶ added in v1.3.0
func (c *Client) LoadConfig() (*config.RocketPoolConfig, bool, error)
Load the config
func (*Client) LoadGlobalConfig_Legacy ¶ added in v1.3.0
func (c *Client) LoadGlobalConfig_Legacy(globalConfigPath string) (config.LegacyRocketPoolConfig, error)
Load the global config
func (*Client) LoadLegacyConfigFromBackup ¶ added in v1.3.0
func (c *Client) LoadLegacyConfigFromBackup() (*config.RocketPoolConfig, error)
Load the legacy config if one exists
func (*Client) LoadMergedConfig_Legacy ¶ added in v1.3.0
func (c *Client) LoadMergedConfig_Legacy(globalConfigPath string, userConfigPath string) (config.LegacyRocketPoolConfig, error)
Load the merged global & user config
func (*Client) LoadUserConfig_Legacy ¶ added in v1.3.0
func (c *Client) LoadUserConfig_Legacy(userConfigPath string) (config.LegacyRocketPoolConfig, error)
Load/save the user config
func (*Client) MigrateLegacyConfig ¶ added in v1.3.0
func (c *Client) MigrateLegacyConfig(legacyConfigFilePath string, legacySettingsFilePath string) (*config.RocketPoolConfig, error)
Migrate a legacy configuration (pre-v1.3) to a modern post-v1.3 one
func (*Client) MinipoolStatus ¶
func (c *Client) MinipoolStatus() (api.MinipoolStatusResponse, error)
Get minipool status
func (*Client) NetworkStats ¶ added in v1.0.0
func (c *Client) NetworkStats() (api.NetworkStatsResponse, error)
Get network stats
func (*Client) NodeClaimRpl ¶ added in v1.0.0
func (c *Client) NodeClaimRpl() (api.NodeClaimRplResponse, error)
Claim available RPL rewards
func (*Client) NodeDeposit ¶
func (c *Client) NodeDeposit(amountWei *big.Int, minFee float64, salt *big.Int) (api.NodeDepositResponse, error)
Make a node deposit
func (*Client) NodeFee ¶
func (c *Client) NodeFee() (api.NodeFeeResponse, error)
Get network node fee
func (*Client) NodeRewards ¶ added in v1.0.0
func (c *Client) NodeRewards() (api.NodeRewardsResponse, error)
Get node RPL rewards status
func (*Client) NodeSend ¶
func (c *Client) NodeSend(amountWei *big.Int, token string, toAddress common.Address) (api.NodeSendResponse, error)
Send tokens from the node to an address
func (*Client) NodeStakeRpl ¶ added in v1.0.0
Stake RPL against the node
func (*Client) NodeStakeRplApprovalGas ¶ added in v1.0.0
func (c *Client) NodeStakeRplApprovalGas(amountWei *big.Int) (api.NodeStakeRplApproveGasResponse, error)
Get the gas estimate for approving new RPL interaction
func (*Client) NodeStakeRplApprove ¶ added in v1.0.0
Approve RPL for staking against the node
func (*Client) NodeStatus ¶
func (c *Client) NodeStatus() (api.NodeStatusResponse, error)
Get node status
func (*Client) NodeSwapRpl ¶ added in v1.0.0
Swap node's old RPL tokens for new RPL tokens
func (*Client) NodeSwapRplApprovalGas ¶ added in v1.0.0
func (c *Client) NodeSwapRplApprovalGas(amountWei *big.Int) (api.NodeSwapRplApproveGasResponse, error)
Get the gas estimate for approving legacy RPL interaction
func (*Client) NodeSwapRplApprove ¶ added in v1.0.0
Approves old RPL for a token swap
func (*Client) NodeSync ¶ added in v1.0.0
func (c *Client) NodeSync() (api.NodeSyncProgressResponse, error)
Get node sync progress
func (*Client) NodeWaitAndStakeRpl ¶ added in v1.0.0
func (c *Client) NodeWaitAndStakeRpl(amountWei *big.Int, approvalTxHash common.Hash) (api.NodeStakeRplStakeResponse, error)
Stake RPL against the node waiting for approvalTxHash to be mined first
func (*Client) NodeWaitAndSwapRpl ¶ added in v1.0.0
func (c *Client) NodeWaitAndSwapRpl(amountWei *big.Int, approvalTxHash common.Hash) (api.NodeSwapRplSwapResponse, error)
Swap node's old RPL tokens for new RPL tokens, waiting for the approval to be mined first
func (*Client) NodeWithdrawRpl ¶ added in v1.0.0
Withdraw RPL staked against the node
func (*Client) PauseService ¶
Pause the Rocket Pool service
func (*Client) PrintMultiTxWarning ¶ added in v1.0.0
func (rp *Client) PrintMultiTxWarning()
Print a warning about the gas estimate for operations that have multiple transactions
func (*Client) PrintServiceLogs ¶
Print the Rocket Pool service logs
func (*Client) PrintServiceStats ¶
Print the Rocket Pool service stats
func (*Client) PrintServiceStatus ¶
Print the Rocket Pool service status
func (*Client) ProcessQueue ¶
func (c *Client) ProcessQueue() (api.ProcessQueueResponse, error)
Process the queue
func (*Client) ProposeInviteToTNDAO ¶ added in v1.0.0
func (c *Client) ProposeInviteToTNDAO(memberAddress common.Address, memberId, memberUrl string) (api.ProposeTNDAOInviteResponse, error)
Propose inviting a new member
func (*Client) ProposeKickFromTNDAO ¶ added in v1.0.0
func (c *Client) ProposeKickFromTNDAO(memberAddress common.Address, fineAmountWei *big.Int) (api.ProposeTNDAOKickResponse, error)
Propose kicking a member
func (*Client) ProposeLeaveTNDAO ¶ added in v1.0.0
func (c *Client) ProposeLeaveTNDAO() (api.ProposeTNDAOLeaveResponse, error)
Propose leaving the oracle DAO
func (*Client) ProposeReplaceTNDAOMember ¶ added in v1.0.0
func (c *Client) ProposeReplaceTNDAOMember(memberAddress common.Address, memberId, memberUrl string) (api.ProposeTNDAOReplaceResponse, error)
Propose replacing the node's position with a new member
func (*Client) ProposeTNDAOSettingMembersQuorum ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingMembersQuorum(quorum float64) (api.ProposeTNDAOSettingMembersQuorumResponse, error)
Propose a setting update
func (*Client) ProposeTNDAOSettingMembersRplBond ¶ added in v1.0.0
func (*Client) ProposeTNDAOSettingMinipoolUnbondedMax ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingMinipoolUnbondedMax(unbondedMinipoolMax uint64) (api.ProposeTNDAOSettingMinipoolUnbondedMaxResponse, error)
func (*Client) ProposeTNDAOSettingProposalActionTimespan ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingProposalActionTimespan(proposalActionTimespan uint64) (api.ProposeTNDAOSettingProposalActionTimespanResponse, error)
func (*Client) ProposeTNDAOSettingProposalCooldown ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingProposalCooldown(proposalCooldownTimespan uint64) (api.ProposeTNDAOSettingProposalCooldownResponse, error)
func (*Client) ProposeTNDAOSettingProposalExecuteTimespan ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingProposalExecuteTimespan(proposalExecuteTimespan uint64) (api.ProposeTNDAOSettingProposalExecuteTimespanResponse, error)
func (*Client) ProposeTNDAOSettingProposalVoteDelayTimespan ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingProposalVoteDelayTimespan(proposalDelayTimespan uint64) (api.ProposeTNDAOSettingProposalVoteDelayTimespanResponse, error)
func (*Client) ProposeTNDAOSettingProposalVoteTimespan ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingProposalVoteTimespan(proposalVoteTimespan uint64) (api.ProposeTNDAOSettingProposalVoteTimespanResponse, error)
func (*Client) ProposeTNDAOSettingScrubPeriod ¶ added in v1.0.0
func (c *Client) ProposeTNDAOSettingScrubPeriod(scrubPeriod uint64) (api.ProposeTNDAOSettingScrubPeriodResponse, error)
func (*Client) QueueStatus ¶
func (c *Client) QueueStatus() (api.QueueStatusResponse, error)
Get queue status
func (*Client) RebuildWallet ¶ added in v0.0.5
func (c *Client) RebuildWallet() (api.RebuildWalletResponse, error)
Rebuild wallet
func (*Client) RecoverUnclaimedRPLFromLot ¶ added in v1.0.0
func (c *Client) RecoverUnclaimedRPLFromLot(lotIndex uint64) (api.RecoverRPLFromLotResponse, error)
Recover unclaimed RPL from a lot (returning it to the auction contract)
func (*Client) RecoverWallet ¶
func (c *Client) RecoverWallet(mnemonic string) (api.RecoverWalletResponse, error)
Recover wallet
func (*Client) RefundMinipool ¶
Refund ETH from a minipool
func (*Client) RegisterNode ¶
func (c *Client) RegisterNode(timezoneLocation string) (api.RegisterNodeResponse, error)
Register the node
func (*Client) RemoveContainer ¶ added in v1.2.1
Deletes a container
func (*Client) ReplaceTNDAOMember ¶ added in v1.0.0
func (c *Client) ReplaceTNDAOMember() (api.ReplaceTNDAOPositionResponse, error)
Replace the node's position in the oracle DAO (requires an executed replace proposal)
func (*Client) RplPrice ¶ added in v1.0.0
func (c *Client) RplPrice() (api.RplPriceResponse, error)
Get network RPL price
func (*Client) RunPruneProvisioner ¶ added in v1.2.0
Runs the prune provisioner
func (*Client) SaveConfig ¶ added in v1.3.0
func (c *Client) SaveConfig(cfg *config.RocketPoolConfig) error
Save the config
func (*Client) SetNodeTimezone ¶
func (c *Client) SetNodeTimezone(timezoneLocation string) (api.SetNodeTimezoneResponse, error)
Set the node's timezone location
func (*Client) SetNodeWithdrawalAddress ¶ added in v1.0.0
func (c *Client) SetNodeWithdrawalAddress(withdrawalAddress common.Address, confirm bool) (api.SetNodeWithdrawalAddressResponse, error)
Set the node's withdrawal address
func (*Client) SetPassword ¶
func (c *Client) SetPassword(password string) (api.SetPasswordResponse, error)
Set wallet password
func (*Client) SetUseLatestDelegateMinipool ¶ added in v1.0.0
func (c *Client) SetUseLatestDelegateMinipool(address common.Address, setting bool) (api.SetUseLatestDelegateResponse, error)
Change a minipool's auto-upgrade setting
func (*Client) StakeMinipool ¶ added in v1.2.3
Stake a minipool
func (*Client) StartContainer ¶ added in v1.2.0
Start a container
func (*Client) StartService ¶
Start the Rocket Pool service
func (*Client) StopContainer ¶ added in v1.1.0
Shut down a container
func (*Client) StopService ¶
Stop the Rocket Pool service
func (*Client) TNDAOMembers ¶ added in v1.0.0
func (c *Client) TNDAOMembers() (api.TNDAOMembersResponse, error)
Get oracle DAO members
func (*Client) TNDAOProposal ¶ added in v1.0.0
func (c *Client) TNDAOProposal(id uint64) (api.TNDAOProposalResponse, error)
Get a single oracle DAO proposal
func (*Client) TNDAOProposals ¶ added in v1.0.0
func (c *Client) TNDAOProposals() (api.TNDAOProposalsResponse, error)
Get oracle DAO proposals
func (*Client) TNDAOStatus ¶ added in v1.0.0
func (c *Client) TNDAOStatus() (api.TNDAOStatusResponse, error)
Get oracle DAO status
func (*Client) TerminateDataFolder ¶ added in v1.3.0
func (c *Client) TerminateDataFolder() (api.TerminateDataFolderResponse, error)
Deletes the data folder including the wallet file, password file, and all validator keys. Don't use this unless you have a very good reason to do it (such as switching from Prater to Mainnet).
func (*Client) TimezoneMap ¶ added in v1.0.0
func (c *Client) TimezoneMap() (api.NetworkTimezonesResponse, error)
Get the timezone map
func (*Client) UpdatePrometheusConfiguration ¶ added in v1.0.0
Load the Prometheus template, do an environment variable substitution, and save it
func (*Client) VoteOnTNDAOProposal ¶ added in v1.0.0
func (c *Client) VoteOnTNDAOProposal(proposalId uint64, support bool) (api.VoteOnTNDAOProposalResponse, error)
Vote on a proposal
func (*Client) WaitForTransaction ¶ added in v1.0.0
Wait for a transaction
func (*Client) WalletStatus ¶
func (c *Client) WalletStatus() (api.WalletStatusResponse, error)
Get wallet status