Files
atomic-swap/common/network.go
2021-12-11 11:26:06 -05:00

25 lines
418 B
Go

package common
// Environment represents the environment the swap will run in (ie. mainnet, stagenet, or development)
type Environment byte
const (
Mainnet Environment = iota //nolint
Stagenet
Development
)
// String ...
func (env Environment) String() string {
switch env {
case Mainnet:
return "mainnet"
case Stagenet:
return "stagenet"
case Development:
return "development"
}
return "unknown"
}