apollo_resp_types

package
v0.0.9-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Index                      int    `json:"index"`
	Pubkey                     string `json:"pubkey"`
	Balance                    int    `json:"balance"`
	EffectiveBalance           int    `json:"effectiveBalance"`
	ActivationEligibilityEpoch int    `json:"activationEligibilityEpoch"`
	ActivationEpoch            int    `json:"activationEpoch"`
	ExitEpoch                  int    `json:"exitEpoch"`
	WithdrawableEpoch          int    `json:"withdrawableEpoch"`
	Slashed                    bool   `json:"slashed"`
	Status                     string `json:"status"`
	WithdrawalCredentials      string `json:"withdrawalCredentials"`

	SubStatus string `json:"subStatus"`
	Network   string `json:"network,omitempty"`

	UpdatedAt time.Time `json:"updatedAt"`
}

type ValidatorBalanceEpoch

type ValidatorBalanceEpoch struct {
	Epoch                 int `json:"validatorIndex"`
	TotalBalanceGwei      int `json:"totalBalanceGwei"`
	CurrentEpochYieldGwei int `json:"currentEpochYieldGwei"`
	YieldToDateGwei       int `json:"yieldToDateGwei"`
}

type ValidatorBalanceYieldIndex

type ValidatorBalanceYieldIndex struct {
	ValidatorIndex                int `json:"validatorIndex"`
	GweiYieldOverEpochs           int `json:"gweiYieldOverEpochs"`
	GweiTotalYieldAtHigherEpoch   int `json:"gweiTotalYieldAtHigherEpoch"`
	GweiTotalBalanceAtLowerEpoch  int `json:"gweiTotalBalanceAtLowerEpoch"`
	GweiTotalBalanceAtHigherEpoch int `json:"gweiTotalBalanceAtHigherEpoch"`
}

type ValidatorBalancesEpoch

type ValidatorBalancesEpoch struct {
	ValidatorBalances []ValidatorBalanceEpoch `json:"validatorBalances"`
}

type ValidatorBalancesSum

type ValidatorBalancesSum struct {
	LowerEpoch          int                          `json:"lowerEpoch"`
	HigherEpoch         int                          `json:"higherEpoch"`
	ValidatorGweiYields []ValidatorBalanceYieldIndex `json:"validatorGweiYields"`
}

type Validators

type Validators []Validator

Jump to

Keyboard shortcuts

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