swapi

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: AGPL-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 NetworkStatusData added in v1.2.0

type NetworkStatusData struct {
	NotRegisteredWithNodeSet bool                `json:"notRegisteredWithNodeSet"`
	InvalidPermissions       bool                `json:"invalidPermissions"`
	Vaults                   []*NetworkVaultInfo `json:"vaults"`
}

type NetworkVaultInfo added in v1.2.0

type NetworkVaultInfo struct {
	Name                 string         `json:"name"`
	Address              common.Address `json:"address"`
	MaxValidators        int            `json:"maxValidators"`
	RegisteredValidators int            `json:"registeredValidators"`
	AvailableValidators  int            `json:"availableValidators"`
	Balance              *big.Int       `json:"balance"`
}

type RecoveredKey added in v1.2.0

type RecoveredKey struct {
	Pubkey beacon.ValidatorPubkey `json:"pubkey"`
	Index  uint64                 `json:"index"`
}

type ServiceGetConfigData added in v1.1.0

type ServiceGetConfigData struct {
	Config map[string]any `json:"config"`
}

type ServiceGetNetworkSettingsData added in v1.1.0

type ServiceGetNetworkSettingsData struct {
	Settings *swconfig.StakeWiseSettings `json:"settings"`
}

type ServiceGetResourcesData added in v1.1.0

type ServiceGetResourcesData struct {
	Resources *swconfig.MergedResources `json:"resources"`
}

type ServiceVersionData added in v1.1.0

type ServiceVersionData struct {
	Version string `json:"version"`
}

type ValidatorExitData

type ValidatorExitData struct {
	Epoch     uint64              `json:"epoch"`
	ExitInfos []ValidatorExitInfo `json:"exitInfos"`
}

type ValidatorExitInfo

type ValidatorExitInfo struct {
	Pubkey    beacon.ValidatorPubkey    `json:"pubkey"`
	Index     uint64                    `json:"index"`
	Signature beacon.ValidatorSignature `json:"signature"`
}

type ValidatorInfo added in v1.2.0

type ValidatorInfo struct {
	Pubkey         beacon.ValidatorPubkey `json:"pubkey"`
	HasBeaconIndex bool                   `json:"hasBeaconIndex"`
	Index          string                 `json:"index"`
	Balance        uint64                 `json:"balance"`
	State          beacon.ValidatorState  `json:"state"`
}

type ValidatorStatusData

type ValidatorStatusData struct {
	NotRegisteredWithNodeSet bool         `json:"notRegisteredWithNodeSet"`
	InvalidPermissions       bool         `json:"invalidPermissions"`
	Vaults                   []*VaultInfo `json:"vaults"`
}

type VaultInfo added in v1.2.0

type VaultInfo struct {
	Name          string           `json:"name"`
	Address       common.Address   `json:"address"`
	HasPermission bool             `json:"hasPermission"`
	Validators    []*ValidatorInfo `json:"validators"`
}

type WalletClaimRewardsData

type WalletClaimRewardsData struct {
	NativeToken             common.Address       `json:"nativeToken"`
	TokenName               string               `json:"tokenName"`
	TokenSymbol             string               `json:"tokenSymbol"`
	DistributableToken      *big.Int             `json:"distributableToken"`
	DistributableEth        *big.Int             `json:"distributableEth"`
	WithdrawableToken       *big.Int             `json:"withdrawableToken"`
	WithdrawableNativeToken *big.Int             `json:"withdrawableNativeToken"`
	TxInfo                  *eth.TransactionInfo `json:"txInfo"`
}

type WalletGenerateKeysData

type WalletGenerateKeysData struct {
	Pubkeys []beacon.ValidatorPubkey `json:"pubkeys"`
}

type WalletGetAvailableKeysData added in v1.2.0

type WalletGetAvailableKeysData struct {
	SufficientBalance         bool                     `json:"sufficientBalance"`
	Balance                   float64                  `json:"balance"`
	AvailablePubkeys          []beacon.ValidatorPubkey `json:"availablePubkeys"`
	EthPerKey                 float64                  `json:"ethPerKey"`
	RemainingEthRequired      float64                  `json:"remainingEthRequired"`
	KeysMissingPrivateKey     []beacon.ValidatorPubkey `json:"keysMissingPrivateKey"`
	KeysRequiringLookbackScan []beacon.ValidatorPubkey `json:"keysRequiringLookbackScan"`
	KeysAlreadyOnBeacon       []beacon.ValidatorPubkey `json:"keysAlreadyOnBeacon"`
	KeysWithDepositEvents     []beacon.ValidatorPubkey `json:"keysWithDepositEvents"`
	KeysUsedWithDepositRoot   []beacon.ValidatorPubkey `json:"keysUsedWithDepositRoot"`
}

type WalletInitializeData

type WalletInitializeData struct {
	AccountAddress common.Address `json:"accountAddress"`
}

type WalletRecoverKeysBody added in v1.2.0

type WalletRecoverKeysBody struct {
	Pubkeys     []beacon.ValidatorPubkey `json:"pubkeys"`
	StartIndex  uint64                   `json:"startIndex"`
	Count       uint64                   `json:"count"`
	SearchLimit uint64                   `json:"searchLimit"`
	RestartVc   bool                     `json:"restartVc"`
}

type WalletRecoverKeysData added in v1.2.0

type WalletRecoverKeysData struct {
	NotRegisteredWithNodeSet bool           `json:"notRegisteredWithNodeSet"`
	Keys                     []RecoveredKey `json:"keys"`
	SearchEnd                uint64         `json:"searchEnd"`
}

Jump to

Keyboard shortcuts

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