api

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: GPL-3.0 Imports: 5 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 CanCloseMinipoolResponse

type CanCloseMinipoolResponse struct {
	Status        string `json:"status"`
	Error         string `json:"error"`
	CanClose      bool   `json:"canClose"`
	InvalidStatus bool   `json:"invalidStatus"`
}

type CanDissolveMinipoolResponse

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

type CanExitMinipoolResponse

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

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

type CanNodeDepositResponse

type CanNodeDepositResponse struct {
	Status              string `json:"status"`
	Error               string `json:"error"`
	CanDeposit          bool   `json:"canDeposit"`
	InsufficientBalance bool   `json:"insufficientBalance"`
	InvalidAmount       bool   `json:"invalidAmount"`
	DepositDisabled     bool   `json:"depositDisabled"`
}

type CanNodeSendResponse

type CanNodeSendResponse struct {
	Status              string `json:"status"`
	Error               string `json:"error"`
	CanSend             bool   `json:"canSend"`
	InsufficientBalance bool   `json:"insufficientBalance"`
}

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

type CanRefundMinipoolResponse

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

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

type CanWithdrawMinipoolResponse

type CanWithdrawMinipoolResponse struct {
	Status                string `json:"status"`
	Error                 string `json:"error"`
	CanWithdraw           bool   `json:"canWithdraw"`
	InvalidStatus         bool   `json:"invalidStatus"`
	WithdrawalDelayActive bool   `json:"withdrawalDelayActive"`
}

type CloseMinipoolResponse

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

type DissolveMinipoolResponse

type DissolveMinipoolResponse 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 FaucetWithdrawResponse

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

type InitWalletResponse

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

type 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"`
	Staking             minipool.StakingDetails `json:"staking"`
	Balances            tokens.Balances         `json:"balances"`
	Validator           ValidatorDetails        `json:"validator"`
	RefundAvailable     bool                    `json:"refundAvailable"`
	WithdrawalAvailable bool                    `json:"withdrawalAvailable"`
	CloseAvailable      bool                    `json:"closeAvailable"`
}

type MinipoolStatusResponse

type MinipoolStatusResponse struct {
	Status    string            `json:"status"`
	Error     string            `json:"error"`
	Minipools []MinipoolDetails `json:"minipools"`
}

type NodeBurnResponse

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

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"`
	SuggestedMinNodeFee float64 `json:"suggestedMinNodeFee"`
}

type NodeSendResponse

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

type NodeStatusResponse

type NodeStatusResponse struct {
	Status           string          `json:"status"`
	Error            string          `json:"error"`
	AccountAddress   common.Address  `json:"accountAddress"`
	Registered       bool            `json:"registered"`
	Trusted          bool            `json:"trusted"`
	TimezoneLocation string          `json:"timezoneLocation"`
	Balances         tokens.Balances `json:"balances"`
	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"`
	} `json:"minipoolCounts"`
}

type ProcessQueueResponse

type ProcessQueueResponse struct {
	Status string      `json:"status"`
	Error  string      `json:"error"`
	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 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 SetNodeTimezoneResponse

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

type SetPasswordResponse

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

type ValidatorDetails

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

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

type WithdrawMinipoolResponse

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

Jump to

Keyboard shortcuts

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