Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CanCloseMinipool(address common.Address) (api.CanCloseMinipoolResponse, error)
- func (c *Client) CanDissolveMinipool(address common.Address) (api.CanDissolveMinipoolResponse, error)
- func (c *Client) CanExitMinipool(address common.Address) (api.CanExitMinipoolResponse, error)
- func (c *Client) CanNodeBurn(amountWei *big.Int, token string) (api.CanNodeBurnResponse, error)
- func (c *Client) CanNodeDeposit(amountWei *big.Int) (api.CanNodeDepositResponse, error)
- func (c *Client) CanNodeSend(amountWei *big.Int, token string) (api.CanNodeSendResponse, error)
- func (c *Client) CanProcessQueue() (api.CanProcessQueueResponse, error)
- func (c *Client) CanRefundMinipool(address common.Address) (api.CanRefundMinipoolResponse, error)
- func (c *Client) CanRegisterNode() (api.CanRegisterNodeResponse, error)
- func (c *Client) CanWithdrawMinipool(address common.Address) (api.CanWithdrawMinipoolResponse, error)
- func (c *Client) Close()
- func (c *Client) CloseMinipool(address common.Address) (api.CloseMinipoolResponse, error)
- func (c *Client) DissolveMinipool(address common.Address) (api.DissolveMinipoolResponse, error)
- func (c *Client) ExitMinipool(address common.Address) (api.ExitMinipoolResponse, error)
- func (c *Client) ExportWallet() (api.ExportWalletResponse, error)
- func (c *Client) FaucetWithdraw(token string) (api.FaucetWithdrawResponse, error)
- func (c *Client) InitWallet() (api.InitWalletResponse, error)
- func (c *Client) InstallService(verbose, noDeps bool, network, version string) error
- func (c *Client) LoadGlobalConfig() (config.RocketPoolConfig, error)
- func (c *Client) MinipoolStatus() (api.MinipoolStatusResponse, error)
- func (c *Client) NodeBurn(amountWei *big.Int, token string) (api.NodeBurnResponse, error)
- func (c *Client) NodeDeposit(amountWei *big.Int, minFee float64) (api.NodeDepositResponse, error)
- func (c *Client) NodeFee() (api.NodeFeeResponse, error)
- func (c *Client) NodeSend(amountWei *big.Int, token string, toAddress common.Address) (api.NodeSendResponse, error)
- func (c *Client) NodeStatus() (api.NodeStatusResponse, error)
- func (c *Client) PauseService() error
- func (c *Client) PrintServiceLogs(tail string, serviceNames ...string) error
- func (c *Client) PrintServiceStats() error
- func (c *Client) PrintServiceStatus() error
- func (c *Client) ProcessQueue() (api.ProcessQueueResponse, error)
- func (c *Client) QueueStatus() (api.QueueStatusResponse, 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) SaveUserConfig(cfg config.RocketPoolConfig) error
- func (c *Client) SetNodeTimezone(timezoneLocation string) (api.SetNodeTimezoneResponse, error)
- func (c *Client) SetPassword(password string) (api.SetPasswordResponse, error)
- func (c *Client) StartService() error
- func (c *Client) StopService() error
- func (c *Client) WalletStatus() (api.WalletStatusResponse, error)
- func (c *Client) WithdrawMinipool(address common.Address) (api.WithdrawMinipoolResponse, error)
Constants ¶
const ( InstallerURL = "https://github.com/rocket-pool/smartnode-install/releases/latest/download/install.sh" RocketPoolPath = "~/.rocketpool" GlobalConfigFile = "config.yml" UserConfigFile = "settings.yml" ComposeFile = "docker-compose.yml" APIContainerName = "rocketpool_api" APIBinPath = "/go/bin/rocketpool" DebugColor = color.FgYellow )
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 NewClientFromCtx ¶
Create new Rocket Pool client from CLI context
func (*Client) CanCloseMinipool ¶
Check whether a minipool can be closed
func (*Client) CanDissolveMinipool ¶
func (c *Client) CanDissolveMinipool(address common.Address) (api.CanDissolveMinipoolResponse, error)
Check whether a minipool can be dissolved
func (*Client) CanExitMinipool ¶
Check whether a minipool can be exited
func (*Client) CanNodeBurn ¶
Check whether the node can burn tokens
func (*Client) CanNodeDeposit ¶
Check whether the node can make a deposit
func (*Client) CanNodeSend ¶
Check whether the node can send tokens
func (*Client) CanProcessQueue ¶
func (c *Client) CanProcessQueue() (api.CanProcessQueueResponse, error)
Check whether the queue can be processed
func (*Client) CanRefundMinipool ¶
Check whether a minipool is eligible for a refund
func (*Client) CanRegisterNode ¶
func (c *Client) CanRegisterNode() (api.CanRegisterNodeResponse, error)
Check whether the node can be registered
func (*Client) CanWithdrawMinipool ¶
func (c *Client) CanWithdrawMinipool(address common.Address) (api.CanWithdrawMinipoolResponse, error)
Check whether a minipool can be withdrawn
func (*Client) CloseMinipool ¶
Close a minipool
func (*Client) DissolveMinipool ¶
Dissolve a minipool
func (*Client) ExitMinipool ¶
Exit a minipool
func (*Client) ExportWallet ¶
func (c *Client) ExportWallet() (api.ExportWalletResponse, error)
Export wallet
func (*Client) FaucetWithdraw ¶
func (c *Client) FaucetWithdraw(token string) (api.FaucetWithdrawResponse, error)
Withdraw from faucet
func (*Client) InitWallet ¶
func (c *Client) InitWallet() (api.InitWalletResponse, error)
Initialize wallet
func (*Client) InstallService ¶
Install the Rocket Pool service
func (*Client) LoadGlobalConfig ¶
func (c *Client) LoadGlobalConfig() (config.RocketPoolConfig, error)
Load the global config
func (*Client) MinipoolStatus ¶
func (c *Client) MinipoolStatus() (api.MinipoolStatusResponse, error)
Get minipool status
func (*Client) NodeDeposit ¶
Make a node deposit
func (*Client) NodeFee ¶
func (c *Client) NodeFee() (api.NodeFeeResponse, error)
Get network node fee
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) NodeStatus ¶
func (c *Client) NodeStatus() (api.NodeStatusResponse, error)
Get node status
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) QueueStatus ¶
func (c *Client) QueueStatus() (api.QueueStatusResponse, error)
Get queue status
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) SaveUserConfig ¶
func (c *Client) SaveUserConfig(cfg config.RocketPoolConfig) error
Save the user config
func (*Client) SetNodeTimezone ¶
func (c *Client) SetNodeTimezone(timezoneLocation string) (api.SetNodeTimezoneResponse, error)
Set the node's timezone location
func (*Client) SetPassword ¶
func (c *Client) SetPassword(password string) (api.SetPasswordResponse, error)
Set wallet password
func (*Client) WalletStatus ¶
func (c *Client) WalletStatus() (api.WalletStatusResponse, error)
Get wallet status
func (*Client) WithdrawMinipool ¶
Withdraw a minipool