Documentation
¶
Index ¶
Constants ¶
View Source
const ( CLLighthouse = "lighthouse" CLPrysm = "prysm" CLLodestar = "lodestar" CLNimbus = "nimbus" CLTeku = "teku" CLGrandine = "grandine" ELNethermind = "nethermind" ELNimbusel = "nimbusel" ELBesu = "besu" ELGeth = "geth" ELReth = "reth" ELErigon = "erigon" ELEthereumJS = "ethereumjs" )
Define a list of known clients.
Variables ¶
View Source
var ( // Buckets of known clients. CLClients = []string{CLLighthouse, CLPrysm, CLLodestar, CLNimbus, CLTeku, CLGrandine} ELClients = []string{ELNethermind, ELNimbusel, ELBesu, ELGeth, ELReth, ELErigon, ELEthereumJS} // TeamRoles maps clients to their respective team's Discord role. TeamRoles = map[string]string{ CLLighthouse: "sigmaprime", CLPrysm: "prysmatic", CLLodestar: "chainsafe", CLNimbus: "nethermind", CLTeku: "teku", CLGrandine: "grandine", ELNethermind: "nethermind", ELNimbusel: "nethermind", ELBesu: "besu", ELGeth: "geth", ELReth: "reth", ELErigon: "erigon", ELEthereumJS: "ethereumjs", } // AdminRoles maps admin roles to their respective Discord role. AdminRoles = map[string]string{ "ef": "ef", "admin": "admin", "mod": "mod", } // Pre-production clients. PreProductionClients = map[string]bool{ ELEthereumJS: true, ELNimbusel: true, "erigonTwo": true, } // DefaultRepositories maps clients to their default source repositories. DefaultRepositories = map[string]string{ CLLighthouse: "sigp/lighthouse", CLPrysm: "OffchainLabs/prysm", CLLodestar: "chainsafe/lodestar", CLNimbus: "status-im/nimbus-eth1", CLTeku: "ConsenSys/teku", CLGrandine: "grandinetech/grandine", ELNethermind: "NethermindEth/nethermind", ELNimbusel: "status-im/nimbus-eth2", ELBesu: "hyperledger/besu", ELGeth: "ethereum/go-ethereum", ELReth: "paradigmxyz/reth", ELErigon: "erigontech/erigon", ELEthereumJS: "ethereumjs/ethereumjs-monorepo", } // DefaultBranches maps clients to their default branches. DefaultBranches = map[string]string{ CLLighthouse: "stable", CLPrysm: "develop", CLLodestar: "unstable", CLNimbus: "master", CLTeku: "master", CLGrandine: "develop", ELNethermind: "master", ELNimbusel: "stable", ELBesu: "main", ELGeth: "master", ELReth: "main", ELErigon: "main", ELEthereumJS: "master", } )
Functions ¶
func GetClientLogo ¶
GetClientLogo returns the Twitter profile image URL for a given client.
func IsCLClient ¶
IsCLClient returns true if the client is a consensus client.
func IsELClient ¶
IsELClient returns true if the client is an execution client.
func IsPreProductionClient ¶ added in v0.0.16
IsPreProductionClient returns true if the client is considered pre-production.
Types ¶
type ClientType ¶
type ClientType string
ClientType represents the type of client.
const ( ClientTypeAll ClientType = ".*" ClientTypeCL ClientType = "consensus" ClientTypeEL ClientType = "execution" )
Define the client types.
func (ClientType) String ¶
func (c ClientType) String() string
String returns the string representation of a client type.
Click to show internal directories.
Click to hide internal directories.