Documentation ¶
Index ¶
- type ApiClient
- type NodesetRequester
- func (r *NodesetRequester) GenerateDepositData(pubkeys []beacon.ValidatorPubkey) (*types.ApiResponse[swapi.NodesetGenerateDepositDataData], error)
- func (r *NodesetRequester) GetContext() client.IRequesterContext
- func (r *NodesetRequester) GetName() string
- func (r *NodesetRequester) GetRoute() string
- func (r *NodesetRequester) SetValidatorsRoot(root common.Hash) (*types.ApiResponse[types.TxInfoData], error)
- func (r *NodesetRequester) UploadDepositData() (*types.ApiResponse[swapi.NodesetUploadDepositDataData], error)
- type ServiceRequester
- func (r *ServiceRequester) GetContext() client.IRequesterContext
- func (r *ServiceRequester) GetName() string
- func (r *ServiceRequester) GetNetworkSettings() (*types.ApiResponse[swapi.ServiceGetNetworkSettingsData], error)
- func (r *ServiceRequester) GetResources() (*types.ApiResponse[swapi.ServiceGetResourcesData], error)
- func (r *ServiceRequester) GetRoute() string
- func (r *ServiceRequester) Version() (*types.ApiResponse[swapi.ServiceVersionData], error)
- type StatusRequester
- type ValidatorRequester
- func (r *ValidatorRequester) Exit(pubkeys []beacon.ValidatorPubkey, epoch *uint64, noBroadcastBool bool) (*types.ApiResponse[swapi.ValidatorExitData], error)
- func (r *ValidatorRequester) GetContext() client.IRequesterContext
- func (r *ValidatorRequester) GetName() string
- func (r *ValidatorRequester) GetRoute() string
- type WalletRequester
- func (r *WalletRequester) ClaimRewards() (*types.ApiResponse[swapi.WalletClaimRewardsData], error)
- func (r *WalletRequester) GenerateKeys(count uint64, restartVc bool) (*types.ApiResponse[swapi.WalletGenerateKeysData], error)
- func (r *WalletRequester) GetContext() client.IRequesterContext
- func (r *WalletRequester) GetName() string
- func (r *WalletRequester) GetRoute() string
- func (r *WalletRequester) Initialize() (*types.ApiResponse[swapi.WalletInitializeData], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct { Nodeset *NodesetRequester Validator *ValidatorRequester Wallet *WalletRequester Service *ServiceRequester Status *StatusRequester // contains filtered or unexported fields }
Binder for the StakeWise API server
func NewApiClient ¶
func NewApiClient(apiUrl *url.URL, logger *slog.Logger, tracer *httptrace.ClientTrace, authMgr *auth.AuthorizationManager) *ApiClient
Creates a new API client instance
type NodesetRequester ¶
type NodesetRequester struct {
// contains filtered or unexported fields
}
func NewNodesetRequester ¶
func NewNodesetRequester(context client.IRequesterContext) *NodesetRequester
func (*NodesetRequester) GenerateDepositData ¶ added in v1.0.0
func (r *NodesetRequester) GenerateDepositData(pubkeys []beacon.ValidatorPubkey) (*types.ApiResponse[swapi.NodesetGenerateDepositDataData], error)
Generate deposit data for your validator keys without uploading them to NodeSet
func (*NodesetRequester) GetContext ¶
func (r *NodesetRequester) GetContext() client.IRequesterContext
func (*NodesetRequester) GetName ¶
func (r *NodesetRequester) GetName() string
func (*NodesetRequester) GetRoute ¶
func (r *NodesetRequester) GetRoute() string
func (*NodesetRequester) SetValidatorsRoot ¶
func (r *NodesetRequester) SetValidatorsRoot(root common.Hash) (*types.ApiResponse[types.TxInfoData], error)
Set the validators root for the NodeSet vault
func (*NodesetRequester) UploadDepositData ¶
func (r *NodesetRequester) UploadDepositData() (*types.ApiResponse[swapi.NodesetUploadDepositDataData], error)
Upload the aggregated deposit data file to NodeSet's servers
type ServiceRequester ¶ added in v1.1.0
type ServiceRequester struct {
// contains filtered or unexported fields
}
func NewServiceRequester ¶ added in v1.1.0
func NewServiceRequester(context client.IRequesterContext) *ServiceRequester
func (*ServiceRequester) GetContext ¶ added in v1.1.0
func (r *ServiceRequester) GetContext() client.IRequesterContext
func (*ServiceRequester) GetName ¶ added in v1.1.0
func (r *ServiceRequester) GetName() string
func (*ServiceRequester) GetNetworkSettings ¶ added in v1.1.0
func (r *ServiceRequester) GetNetworkSettings() (*types.ApiResponse[swapi.ServiceGetNetworkSettingsData], error)
Gets the network settings for the daemon's selected network
func (*ServiceRequester) GetResources ¶ added in v1.1.0
func (r *ServiceRequester) GetResources() (*types.ApiResponse[swapi.ServiceGetResourcesData], error)
Gets the resources for the daemon's selected network
func (*ServiceRequester) GetRoute ¶ added in v1.1.0
func (r *ServiceRequester) GetRoute() string
func (*ServiceRequester) Version ¶ added in v1.1.0
func (r *ServiceRequester) Version() (*types.ApiResponse[swapi.ServiceVersionData], error)
Gets the version of the daemon
type StatusRequester ¶
type StatusRequester struct {
// contains filtered or unexported fields
}
func NewStatusRequester ¶
func NewStatusRequester(context client.IRequesterContext) *StatusRequester
func (*StatusRequester) GetContext ¶
func (r *StatusRequester) GetContext() client.IRequesterContext
func (*StatusRequester) GetName ¶
func (r *StatusRequester) GetName() string
func (*StatusRequester) GetRoute ¶
func (r *StatusRequester) GetRoute() string
func (*StatusRequester) GetValidatorStatuses ¶
func (r *StatusRequester) GetValidatorStatuses() (*types.ApiResponse[swapi.ValidatorStatusData], error)
type ValidatorRequester ¶
type ValidatorRequester struct {
// contains filtered or unexported fields
}
func NewValidatorRequester ¶
func NewValidatorRequester(context client.IRequesterContext) *ValidatorRequester
func (*ValidatorRequester) Exit ¶
func (r *ValidatorRequester) Exit(pubkeys []beacon.ValidatorPubkey, epoch *uint64, noBroadcastBool bool) (*types.ApiResponse[swapi.ValidatorExitData], error)
Exit the provided validators from the Beacon Chain (or simply return their signed exit messages for later use without broadcasting), with an optional epoch parameter. If not specified, the epoch from the current chain head will be used.
func (*ValidatorRequester) GetContext ¶
func (r *ValidatorRequester) GetContext() client.IRequesterContext
func (*ValidatorRequester) GetName ¶
func (r *ValidatorRequester) GetName() string
func (*ValidatorRequester) GetRoute ¶
func (r *ValidatorRequester) GetRoute() string
type WalletRequester ¶
type WalletRequester struct {
// contains filtered or unexported fields
}
func NewWalletRequester ¶
func NewWalletRequester(context client.IRequesterContext) *WalletRequester
func (*WalletRequester) ClaimRewards ¶
func (r *WalletRequester) ClaimRewards() (*types.ApiResponse[swapi.WalletClaimRewardsData], error)
func (*WalletRequester) GenerateKeys ¶
func (r *WalletRequester) GenerateKeys(count uint64, restartVc bool) (*types.ApiResponse[swapi.WalletGenerateKeysData], error)
Generate and save new validator keys
func (*WalletRequester) GetContext ¶
func (r *WalletRequester) GetContext() client.IRequesterContext
func (*WalletRequester) GetName ¶
func (r *WalletRequester) GetName() string
func (*WalletRequester) GetRoute ¶
func (r *WalletRequester) GetRoute() string
func (*WalletRequester) Initialize ¶
func (r *WalletRequester) Initialize() (*types.ApiResponse[swapi.WalletInitializeData], error)
Export the wallet in encrypted ETH key format