csclient

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: AGPL-3.0 Imports: 11 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 {
	Minipool *MinipoolRequester
	Network  *NetworkRequester
	Node     *NodeRequester
	Service  *ServiceRequester
	Wallet   *WalletRequester
	// contains filtered or unexported fields
}

Binder for the Constellation 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 MinipoolRequester

type MinipoolRequester struct {
	// contains filtered or unexported fields
}

func NewMinipoolRequester

func NewMinipoolRequester(context client.IRequesterContext) *MinipoolRequester

func (*MinipoolRequester) Close

Close

func (*MinipoolRequester) Create

func (r *MinipoolRequester) Create(salt *big.Int, skipLiquidityCheck bool, skipBalanceCheck bool) (*types.ApiResponse[csapi.MinipoolCreateData], error)

Deposit to Constellation to create a new minipool

func (*MinipoolRequester) Exit

Submit voluntary exits for minipool validators to the Beacon Chain

func (*MinipoolRequester) GetCloseDetails

Get close details

func (*MinipoolRequester) GetContext

func (r *MinipoolRequester) GetContext() client.IRequesterContext

func (*MinipoolRequester) GetExitDetails

func (r *MinipoolRequester) GetExitDetails(verbose bool) (*types.ApiResponse[csapi.MinipoolExitDetailsData], error)

Get details of minipools that are eligible for exiting, optionally listing all minipools instead (even ones that are not eligible)

func (*MinipoolRequester) GetName

func (r *MinipoolRequester) GetName() string

func (*MinipoolRequester) GetPubkeys

func (r *MinipoolRequester) GetPubkeys(includeExited bool) (*types.ApiResponse[csapi.MinipoolGetPubkeysData], error)

Get the minipool address, validator pubkey, and Beacon chain index for each of this node's minipools

func (*MinipoolRequester) GetRoute

func (r *MinipoolRequester) GetRoute() string

func (*MinipoolRequester) GetVanityArtifacts

func (r *MinipoolRequester) GetVanityArtifacts(nodeAddressStr string) (*types.ApiResponse[csapi.MinipoolVanityArtifactsData], error)

Get the artifacts necessary for vanity address searching

func (*MinipoolRequester) Stake

Get details and transaction info of minipools that are eligible for staking

func (*MinipoolRequester) Status

Get all status details for minipools

func (*MinipoolRequester) UploadSignedExits

Upload signed voluntary exit messages for minipool validators to the NodeSet server

type NetworkRequester

type NetworkRequester struct {
	// contains filtered or unexported fields
}

func NewNetworkRequester

func NewNetworkRequester(context client.IRequesterContext) *NetworkRequester

func (*NetworkRequester) GetContext

func (r *NetworkRequester) GetContext() client.IRequesterContext

func (*NetworkRequester) GetName

func (r *NetworkRequester) GetName() string

func (*NetworkRequester) GetRoute

func (r *NetworkRequester) GetRoute() string

func (*NetworkRequester) Stats

Get information about the Constellation network

type NodeRequester

type NodeRequester struct {
	// contains filtered or unexported fields
}

func NewNodeRequester

func NewNodeRequester(context client.IRequesterContext) *NodeRequester

func (*NodeRequester) GetContext

func (r *NodeRequester) GetContext() client.IRequesterContext

func (*NodeRequester) GetName

func (r *NodeRequester) GetName() string

func (*NodeRequester) GetRegistrationStatus

func (r *NodeRequester) GetRegistrationStatus() (*types.ApiResponse[csapi.NodeGetRegistrationStatusData], error)

Get the registration status of the node with Constellation

func (*NodeRequester) GetRoute

func (r *NodeRequester) GetRoute() string

func (*NodeRequester) Register

Gets a TX for registering the node with Constellation

type ServiceRequester

type ServiceRequester struct {
	// contains filtered or unexported fields
}

func NewServiceRequester

func NewServiceRequester(context client.IRequesterContext) *ServiceRequester

func (*ServiceRequester) GetContext

func (r *ServiceRequester) GetContext() client.IRequesterContext

func (*ServiceRequester) GetName

func (r *ServiceRequester) GetName() string

func (*ServiceRequester) GetNetworkSettings

Gets the network settings for the daemon's selected network

func (*ServiceRequester) GetResources

Gets the resources for the daemon's selected network

func (*ServiceRequester) GetRoute

func (r *ServiceRequester) GetRoute() string

func (*ServiceRequester) Version

Gets the version of the daemon

type WalletRequester

type WalletRequester struct {
	// contains filtered or unexported fields
}

func NewWalletRequester

func NewWalletRequester(context client.IRequesterContext) *WalletRequester

func (*WalletRequester) CreateValidatorKey

func (r *WalletRequester) CreateValidatorKey(pubkey beacon.ValidatorPubkey, index uint64, maxAttempts uint64) (*types.ApiResponse[csapi.WalletCreateValidatorKeyData], error)

Recover a validator key

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

Jump to

Keyboard shortcuts

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