Skip to content

Commit

Permalink
set link to testnet substrate
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy committed Oct 14, 2021
1 parent df48f8b commit b0cf29a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pkg/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ import (
)

const (
// SubstrateDefaultURL default substrate url
SubstrateDefaultURL = "wss://tfchain.dev.threefold.io"
ActivationURL = "https://tfchain.dev.threefold.io/activation/activate"
// SubstrateDevURL default substrate url
SubstrateDevURL = "wss://tfchain.dev.threefold.io"
ActivationDevURL = "https://tfchain.dev.threefold.io/activation/activate"

// SubstrateDevURL default substrate url
SubstrateTestURL = "wss://tfchain.test.threefold.io"
ActivationTestURL = "https://tfchain.test.threefold.io/activation/activate"
)

// Environment holds information about running environment of a node
Expand Down Expand Up @@ -67,26 +71,26 @@ const (
var (
envDev = Environment{
RunningMode: RunningDev,
SubstrateURL: SubstrateDefaultURL,
ActivationURL: ActivationURL,
SubstrateURL: SubstrateDevURL,
ActivationURL: ActivationDevURL,
FlistURL: "redis://hub.grid.tf:9900",
BinRepo: "tf-zos-v3-bins.dev",
}

envTest = Environment{
RunningMode: RunningTest,
// TODO: this should become a different substrate ?
SubstrateURL: SubstrateDefaultURL,
ActivationURL: ActivationURL,
SubstrateURL: SubstrateTestURL,
ActivationURL: ActivationTestURL,
FlistURL: "redis://hub.grid.tf:9900",
BinRepo: "tf-zos-v3-bins.test",
}

// same as testnet for now. will be updated the day of the launch of production network
envProd = Environment{
RunningMode: RunningMain,
SubstrateURL: SubstrateDefaultURL,
ActivationURL: ActivationURL,
SubstrateURL: SubstrateDevURL,
ActivationURL: ActivationDevURL,
FlistURL: "redis://hub.grid.tf:9900",
BinRepo: "tf-zos-v3-bins",
}
Expand Down

0 comments on commit b0cf29a

Please sign in to comment.