Skip to content

Commit

Permalink
Fix beacon client api get spec response
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Jul 16, 2024
1 parent 4d4478a commit cd42336
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions beaconclient/prod_beacon_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,19 @@ func (c *ProdBeaconInstance) GetGenesis() (*GetGenesisResponse, error) {
}

type GetSpecResponse struct {
Data *Spec `json:"data"`
}

type Spec struct {
SecondsPerSlot uint64 `json:"SECONDS_PER_SLOT,string"` //nolint:tagliatelle
DepositContractAddress string `json:"DEPOSIT_CONTRACT_ADDRESS"` //nolint:tagliatelle
DepositNetworkID string `json:"DEPOSIT_NETWORK_ID"` //nolint:tagliatelle
DomainAggregateAndProof string `json:"DOMAIN_AGGREGATE_AND_PROOF"` //nolint:tagliatelle
InactivityPenaltyQuotient string `json:"INACTIVITY_PENALTY_QUOTIENT"` //nolint:tagliatelle
InactivityPenaltyQuotientAltair string `json:"INACTIVITY_PENALTY_QUOTIENT_ALTAIR"` //nolint:tagliatelle
BellatrixForkVersion string `json:"BELLATRIX_FORK_VERSION"` //nolint:tagliatelle
CapellaForkVersion string `json:"CAPELLA_FORK_VERSION"` //nolint:tagliatelle
DenebForkVersion string `json:"DENEB_FORK_VERSION"` //nolint:tagliatelle
}

// GetSpec - https://ethereum.github.io/beacon-APIs/#/Config/getSpec
Expand Down

0 comments on commit cd42336

Please sign in to comment.