2018-03-26 12:52:19 +00:00
|
|
|
package params
|
|
|
|
|
2018-07-25 14:03:35 +00:00
|
|
|
// Define available fleets.
|
|
|
|
const (
|
2024-05-16 00:09:28 +00:00
|
|
|
FleetUndefined = ""
|
|
|
|
FleetProd = "eth.prod"
|
2024-05-17 15:22:45 +00:00
|
|
|
FleetShardsStaging = "shards.staging"
|
|
|
|
FleetShardsTest = "shards.test"
|
|
|
|
FleetStatusProd = "status.prod"
|
|
|
|
FleetStatusTest = "status.test"
|
2024-03-15 15:30:16 +00:00
|
|
|
FleetWakuSandbox = "waku.sandbox"
|
|
|
|
FleetWakuTest = "waku.test"
|
2018-07-25 14:03:35 +00:00
|
|
|
)
|
|
|
|
|
2018-08-21 13:48:58 +00:00
|
|
|
// Cluster defines a list of Ethereum nodes.
|
|
|
|
type Cluster struct {
|
2018-08-08 08:41:46 +00:00
|
|
|
StaticNodes []string `json:"staticnodes"`
|
|
|
|
BootNodes []string `json:"bootnodes"`
|
|
|
|
MailServers []string `json:"mailservers"` // list of trusted mail servers
|
|
|
|
RendezvousNodes []string `json:"rendezvousnodes"`
|
2018-03-26 12:52:19 +00:00
|
|
|
}
|
2024-02-22 19:32:24 +00:00
|
|
|
|
|
|
|
// DefaultWakuNodes is a list of "supported" fleets. This list is populated to clients UI settings.
|
|
|
|
var supportedFleets = map[string][]string{
|
2024-05-16 00:09:28 +00:00
|
|
|
FleetShardsStaging: {"enrtree://AI4W5N5IFEUIHF5LESUAOSMV6TKWF2MB6GU2YK7PU4TYUGUNOCEPW@boot.staging.shards.nodes.status.im"},
|
2024-03-15 15:30:16 +00:00
|
|
|
FleetShardsTest: {"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im"},
|
|
|
|
FleetWakuSandbox: {"enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im"},
|
|
|
|
FleetWakuTest: {"enrtree://AOGYWMBYOUIMOENHXCHILPKY3ZRFEULMFI4DOM442QSZ73TT2A7VI@test.waku.nodes.status.im"},
|
2024-02-22 19:32:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func DefaultWakuNodes(fleet string) []string {
|
|
|
|
return supportedFleets[fleet]
|
|
|
|
}
|
|
|
|
|
|
|
|
func IsFleetSupported(fleet string) bool {
|
|
|
|
_, ok := supportedFleets[fleet]
|
|
|
|
return ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetSupportedFleets() map[string][]string {
|
|
|
|
return supportedFleets
|
|
|
|
}
|