swclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

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

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

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

Gets the network settings for the daemon's selected network

func (*ServiceRequester) GetResources added in v1.1.0

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

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 (*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 (*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

Export the wallet in encrypted ETH key format

Jump to

Keyboard shortcuts

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