client_consts

package
v0.1.19-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lighthouse = "lighthouse"
	Prysm      = "prysm"
	Lodestar   = "lodestar"
	Teku       = "teku"
)
View Source
const (
	Geth       = "geth"
	Nethermind = "nethermind"
)

TODO others

Variables

View Source
var (
	LighthouseBeaconPorts          = []string{"5052:5052"}
	LighthouseValidatorClientPorts = []string{"5062:5062"}

	LighthouseWeb3SignerAPIEndpoint = "/lighthouse/validators/web3signer"

	HerculesPorts                       = []string{"9003:9003"}
	HerculesLighthouseAuthTokenEndpoint = "/v1beta/internal/ethereum/lighthouse/validator/auth"
)
View Source
var GethBeaconPorts = []string{"8545:8545"}

Functions

func GetAnyClientApiPorts

func GetAnyClientApiPorts(clientName string) []string

func GetClientBeaconPortsHTTP

func GetClientBeaconPortsHTTP(clientName string) []string

func IsConsensusClient

func IsConsensusClient(name string) bool

func IsExecClient

func IsExecClient(name string) bool

Types

type ConsensusClientSyncStatus

type ConsensusClientSyncStatus struct {
	Data struct {
		HeadSlot     string `json:"head_slot"`
		SyncDistance string `json:"sync_distance"`
		IsSyncing    bool   `json:"is_syncing"`
	} `json:"data"`
}

type ExecClientSyncStatus

type ExecClientSyncStatus struct {
	JsonRPC string `json:"jsonrpc"`
	Id      int    `json:"id"`
	Result  bool   `json:"result"`
}

Jump to

Keyboard shortcuts

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