config

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDepositContract

func GetDepositContract(w http.ResponseWriter, r *http.Request)

GetDepositContract retrieves deposit contract address and genesis fork version.

func GetForkSchedule

func GetForkSchedule(w http.ResponseWriter, r *http.Request)

GetForkSchedule retrieve all scheduled upcoming forks this node is aware of.

func GetSpec

func GetSpec(w http.ResponseWriter, r *http.Request)

GetSpec retrieves specification configuration (without Phase 1 params) used on this node. Specification params list Values are returned with following format: - any value starting with 0x in the spec is returned as a hex string. - all other values are returned as number.

Types

type DepositContractData

type DepositContractData struct {
	ChainId string `json:"chain_id"`
	Address string `json:"address"`
}

type GetDepositContractResponse

type GetDepositContractResponse struct {
	Data *DepositContractData `json:"data"`
}

type GetForkScheduleResponse

type GetForkScheduleResponse struct {
	Data []*shared.Fork `json:"data"`
}

type GetSpecResponse

type GetSpecResponse struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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