api

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: AGPL-3.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSubmitTxsBody

type BatchSubmitTxsBody struct {
	Submissions    []*eth.TransactionSubmission `json:"submissions"`
	FirstNonce     *big.Int                     `json:"firstNonce,omitempty"`
	MaxFee         *big.Int                     `json:"maxFee"`
	MaxPriorityFee *big.Int                     `json:"maxPriorityFee"`
}

type BatchTxData

type BatchTxData struct {
	TxHashes []common.Hash `json:"txHashes"`
}

type NodeSetConstellation_GetDepositSignatureData added in v1.1.0

type NodeSetConstellation_GetDepositSignatureData struct {
	NotRegistered            bool   `json:"notRegistered"`
	NotWhitelisted           bool   `json:"notWhitelisted"`
	IncorrectNodeAddress     bool   `json:"incorrectNodeAddress"`
	LimitReached             bool   `json:"limitReached"`
	MissingExitMessage       bool   `json:"missingExitMessage"`
	AddressAlreadyRegistered bool   `json:"addressAlreadyRegistered"`
	InvalidPermissions       bool   `json:"invalidPermissions"`
	Signature                []byte `json:"signature"`
}

type NodeSetConstellation_GetRegisteredAddressData added in v1.1.0

type NodeSetConstellation_GetRegisteredAddressData struct {
	NotRegisteredWithNodeSet       bool           `json:"notRegisteredWithNodeSet"`
	NotRegisteredWithConstellation bool           `json:"notRegisteredWithConstellation"`
	InvalidPermissions             bool           `json:"invalidPermissions"`
	RegisteredAddress              common.Address `json:"registeredAddress"`
}

type NodeSetConstellation_GetRegistrationSignatureData added in v1.1.0

type NodeSetConstellation_GetRegistrationSignatureData struct {
	NotRegistered        bool   `json:"notRegistered"`
	NotAuthorized        bool   `json:"notAuthorized"`
	InvalidPermissions   bool   `json:"invalidPermissions"`
	IncorrectNodeAddress bool   `json:"incorrectNodeAddress"`
	Signature            []byte `json:"signature"`
}

type NodeSetConstellation_GetValidatorsData added in v1.1.0

type NodeSetConstellation_GetValidatorsData struct {
	NotRegistered        bool                              `json:"notRegistered"`
	NotWhitelisted       bool                              `json:"notWhitelisted"`
	IncorrectNodeAddress bool                              `json:"incorrectNodeAddress"`
	InvalidPermissions   bool                              `json:"invalidPermissions"`
	Validators           []v3constellation.ValidatorStatus `json:"validators"`
}

type NodeSetConstellation_UploadSignedExitsData added in v1.1.0

type NodeSetConstellation_UploadSignedExitsData struct {
	NotRegistered            bool `json:"notRegistered"`
	NotWhitelisted           bool `json:"notWhitelisted"`
	IncorrectNodeAddress     bool `json:"incorrectNodeAddress"`
	InvalidValidatorOwner    bool `json:"invalidValidatorOwner"`
	ExitMessageAlreadyExists bool `json:"exitMessageAlreadyExists"`
	InvalidExitMessage       bool `json:"invalidExitMessage"`
	InvalidPermissions       bool `json:"invalidPermissions"`
}

type NodeSetConstellation_UploadSignedExitsRequestBody added in v1.1.0

type NodeSetConstellation_UploadSignedExitsRequestBody struct {
	Deployment   string                       `json:"deployment"`
	ExitMessages []nscommon.EncryptedExitData `json:"exitMessages"`
}

type NodeSetGetRegistrationStatusData added in v1.1.0

type NodeSetGetRegistrationStatusData struct {
	Status       NodeSetRegistrationStatus `json:"status"`
	ErrorMessage string                    `json:"errorMessage"`
}

type NodeSetRegisterNodeData added in v1.1.0

type NodeSetRegisterNodeData struct {
	Success           bool `json:"success"`
	AlreadyRegistered bool `json:"alreadyRegistered"`
	NotWhitelisted    bool `json:"notWhitelisted"`
}

type NodeSetRegistrationStatus added in v1.1.0

type NodeSetRegistrationStatus string

The registration status of the node with the NodeSet server

const (
	// The node has been registered with a user account on the NodeSet server
	NodeSetRegistrationStatus_Registered NodeSetRegistrationStatus = "registered"

	// The node has not been registered with a user account on the NodeSet server
	NodeSetRegistrationStatus_Unregistered NodeSetRegistrationStatus = "unregistered"

	// The node's registration status is unknown
	NodeSetRegistrationStatus_Unknown NodeSetRegistrationStatus = "unknown"

	// The node has no wallet yet
	NodeSetRegistrationStatus_NoWallet NodeSetRegistrationStatus = "no-wallet"
)

type NodeSetStakeWise_GetRegisteredValidatorsData added in v1.1.0

type NodeSetStakeWise_GetRegisteredValidatorsData struct {
	NotRegistered      bool                          `json:"notRegistered"`
	InvalidPermissions bool                          `json:"invalidPermissions"`
	Validators         []v3stakewise.ValidatorStatus `json:"validators"`
}

type NodeSetStakeWise_GetValidatorManagerSignatureData added in v1.2.0

type NodeSetStakeWise_GetValidatorManagerSignatureData struct {
	NotRegistered          bool   `json:"notRegistered"`
	VaultNotFound          bool   `json:"vaultNotFound"`
	InvalidPermissions     bool   `json:"invalidPermissions"`
	DepositRootAlreadyUsed bool   `json:"depositRootAlreadyUsed"`
	Signature              string `json:"signature"`
}

type NodeSetStakeWise_GetValidatorManagerSignatureRequestBody added in v1.2.0

type NodeSetStakeWise_GetValidatorManagerSignatureRequestBody struct {
	Deployment            string                       `json:"deployment"`
	Vault                 common.Address               `json:"vault"`
	BeaconDepositRoot     common.Hash                  `json:"beaconDepositRoot"`
	DepositData           []beacon.ExtendedDepositData `json:"depositData"`
	EncryptedExitMessages []string                     `json:"encryptedExitMessages"`
}

type NodeSetStakeWise_GetValidatorsInfoData added in v1.2.0

type NodeSetStakeWise_GetValidatorsInfoData struct {
	NotRegistered        bool `json:"notRegistered"`
	RegisteredValidators int  `json:"registeredValidators"`
	MaxValidators        int  `json:"maxValidators"`
	AvailableValidators  int  `json:"availableValidators"`
}

type NodeSetStakeWise_GetVaultsData added in v1.2.0

type NodeSetStakeWise_GetVaultsData struct {
	NotRegistered      bool                    `json:"notRegistered"`
	InvalidPermissions bool                    `json:"invalidPermissions"`
	Vaults             []v3stakewise.VaultInfo `json:"vaults"`
}

type ServiceClientStatusData

type ServiceClientStatusData struct {
	EcManagerStatus types.ClientManagerStatus `json:"ecManagerStatus"`
	BcManagerStatus types.ClientManagerStatus `json:"bcManagerStatus"`
}

type ServiceCreateFeeRecipientFileData

type ServiceCreateFeeRecipientFileData struct {
	Distributor common.Address `json:"distributor"`
}

type ServiceGetConfigData

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

type ServiceGetNetworkSettingsData added in v1.1.0

type ServiceGetNetworkSettingsData struct {
	Settings *config.HyperdriveSettings `json:"settings"`
}

type ServiceGetResourcesData added in v1.1.0

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

type ServiceTerminateDataFolderData

type ServiceTerminateDataFolderData struct {
	FolderExisted bool `json:"folderExisted"`
}

type ServiceVersionData

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

type SubmitTxBody

type SubmitTxBody struct {
	Submission     *eth.TransactionSubmission `json:"submission"`
	Nonce          *big.Int                   `json:"nonce,omitempty"`
	MaxFee         *big.Int                   `json:"maxFee"`
	MaxPriorityFee *big.Int                   `json:"maxPriorityFee"`
}

type TxBatchSignTxData

type TxBatchSignTxData struct {
	SignedTxs []string `json:"signedTxs"`
}

type TxData

type TxData struct {
	TxHash common.Hash `json:"txHash"`
}

type TxSignTxData

type TxSignTxData struct {
	SignedTx string `json:"signedTx"`
}

type UtilsBalanceData

type UtilsBalanceData struct {
	Balance *big.Int `json:"balance"`
}

type UtilsResolveEnsData

type UtilsResolveEnsData struct {
	Address       common.Address `json:"address"`
	EnsName       string         `json:"ensName"`
	FormattedName string         `json:"formattedName"`
}

type WalletBalanceData

type WalletBalanceData struct {
	Balance *big.Int `json:"balance"`
}

type WalletExportData

type WalletExportData struct {
	Password          string `json:"password"`
	Wallet            string `json:"wallet"`
	AccountPrivateKey []byte `json:"accountPrivateKey"`
}

type WalletExportEthKeyData

type WalletExportEthKeyData struct {
	EthKeyJson []byte `json:"ethKeyJson"`
	Password   string `json:"password"`
}

type WalletGenerateValidatorKeyData

type WalletGenerateValidatorKeyData struct {
	PrivateKey []byte `json:"privateKey"`
}

type WalletInitializeData

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

type WalletRebuildData

type WalletRebuildData struct {
	ValidatorKeys []beacon.ValidatorPubkey `json:"validatorKeys"`
}

type WalletRecoverData

type WalletRecoverData struct {
	AccountAddress common.Address           `json:"accountAddress"`
	ValidatorKeys  []beacon.ValidatorPubkey `json:"validatorKeys"`
}

type WalletSearchAndRecoverData

type WalletSearchAndRecoverData struct {
	FoundWallet    bool                     `json:"foundWallet"`
	AccountAddress common.Address           `json:"accountAddress"`
	DerivationPath string                   `json:"derivationPath"`
	Index          uint                     `json:"index"`
	ValidatorKeys  []beacon.ValidatorPubkey `json:"validatorKeys"`
}

type WalletSendData

type WalletSendData struct {
	Balance             *big.Int             `json:"balance"`
	TokenName           string               `json:"name"`
	TokenSymbol         string               `json:"symbol"`
	CanSend             bool                 `json:"canSend"`
	InsufficientBalance bool                 `json:"insufficientBalance"`
	TxInfo              *eth.TransactionInfo `json:"txInfo"`
}

type WalletSetEnsNameData

type WalletSetEnsNameData struct {
	Address common.Address       `json:"address"`
	EnsName string               `json:"ensName"`
	TxInfo  *eth.TransactionInfo `json:"txInfo"`
}

type WalletSignMessageData

type WalletSignMessageData struct {
	SignedMessage []byte `json:"signedMessage"`
}

type WalletSignTxData

type WalletSignTxData struct {
	SignedTx []byte `json:"signedTx"`
}

type WalletStatusData

type WalletStatusData struct {
	WalletStatus wallet.WalletStatus `json:"walletStatus"`
}

type WalletTestMnemonicData

type WalletTestMnemonicData struct {
	CurrentAddress   common.Address `json:"currentAddress"`
	RecoveredAddress common.Address `json:"recoveredAddress"`
}

Jump to

Keyboard shortcuts

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