swapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSetRegisterNodeData added in v0.2.0

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

type NodeSetRegistrationStatusData added in v0.2.0

type NodeSetRegistrationStatusData struct {
	Status       NodesetRegistrationStatus `json:"status"`
	ErrorMessage string                    `json:"errorMessage"`
}

type NodesetGenerateDepositDataData added in v1.0.0

type NodesetGenerateDepositDataData struct {
	Deposits []*types.ExtendedDepositData `json:"deposits"`
}

type NodesetRegistrationStatus added in v1.0.0

type NodesetRegistrationStatus string
const (
	NodesetRegistrationStatus_Registered   NodesetRegistrationStatus = "registered"
	NodesetRegistrationStatus_Unregistered NodesetRegistrationStatus = "unregistered"
	NodesetRegistrationStatus_Unknown      NodesetRegistrationStatus = "unknown"
	NodesetRegistrationStatus_NoWallet     NodesetRegistrationStatus = "no-wallet"
)

type NodesetUploadDepositDataData

type NodesetUploadDepositDataData struct {
	UnregisteredNode             bool                     `json:"unregisteredNode"`
	InvalidWithdrawalCredentials bool                     `json:"invalidWithdrawalCredentials"`
	NotAuthorizedForMainnet      bool                     `json:"notAuthorizedForMainnet"`
	SufficientBalance            bool                     `json:"sufficientBalance"`
	Balance                      float64                  `json:"balance"`
	NewPubkeys                   []beacon.ValidatorPubkey `json:"newPubkeys"`
	RemainingPubkeys             []beacon.ValidatorPubkey `json:"remainingPubkeys"`
	TotalCount                   uint64                   `json:"totalCount"`
	ActiveCount                  uint64                   `json:"activeCount"`
	PendingCount                 uint64                   `json:"pendingCount"`
	EthPerKey                    float64                  `json:"ethPerKey"`
	RemainingEthRequired         float64                  `json:"remainingEthRequired"`
}

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 ValidatorStateInfo

type ValidatorStateInfo struct {
	Pubkey        beacon.ValidatorPubkey `json:"pubkey"`
	Index         string                 `json:"index"`
	BeaconStatus  beacon.ValidatorState  `json:"beaconStatus"`
	NodesetStatus swtypes.NodesetStatus  `json:"nodesetStatus"`
}

type ValidatorStatusData

type ValidatorStatusData struct {
	States []ValidatorStateInfo `json:"states"`
}

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 WalletInitializeData

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

Jump to

Keyboard shortcuts

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