Skip to content

Commit

Permalink
Remove previewnet (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Sep 5, 2024
1 parent d704c00 commit ec08850
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion access/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const EmulatorHost = "127.0.0.1:3569"
const TestnetHost = "access.devnet.nodes.onflow.org:9000"
const CanarynetHost = "access.canary.nodes.onflow.org:9000"
const MainnetHost = "access.mainnet.nodes.onflow.org:9000"
const PreviewnetHost = "access.previewnet.nodes.onflow.org:9000"

// ClientOption is a configuration option for the client.
type ClientOption func(*options)
Expand Down
9 changes: 4 additions & 5 deletions access/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ import (
)

const (
EmulatorHost = "http://127.0.0.1:8888/v1"
TestnetHost = "https://rest-testnet.onflow.org/v1"
MainnetHost = "https://rest-mainnet.onflow.org/v1"
CanarynetHost = "https://rest-canary.onflow.org/v1"
PreviewnetHost = "https://rest-previewnet.onflow.org/v1"
EmulatorHost = "http://127.0.0.1:8888/v1"
TestnetHost = "https://rest-testnet.onflow.org/v1"
MainnetHost = "https://rest-mainnet.onflow.org/v1"
CanarynetHost = "https://rest-canary.onflow.org/v1"
)

// ClientOption is a configuration option for the client.
Expand Down
5 changes: 0 additions & 5 deletions address.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ func chainCustomizer(chain ChainID) uint64 {
return 0
case Testnet:
return invalidCodeTestNetwork
case Previewnet:
return invalidCodePreviewNetwork
case Emulator, Localnet, Benchnet, BftTestnet:
return invalidCodeTransientNetwork
default:
Expand Down Expand Up @@ -273,9 +271,6 @@ const (

// invalidCodeTransientNetwork is the invalid codeword used for transient test networks.
invalidCodeTransientNetwork = uint64(0x1cb159857af02018)

// invalidCodePreviewNetwork is the invalid codeword used for Preview networks.
invalidCodePreviewNetwork = uint64(0x5211829E88528817)
)

// Rows of the generator matrix G of the [64,45]-code used for Flow addresses.
Expand Down
2 changes: 0 additions & 2 deletions address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func TestAddressConstants(t *testing.T) {
Mainnet,
Testnet,
Emulator,
Previewnet,
}

for _, net := range networks {
Expand Down Expand Up @@ -136,7 +135,6 @@ func TestAddressGeneration(t *testing.T) {
Mainnet,
Testnet,
Emulator,
Previewnet,
}

for _, net := range networks {
Expand Down
2 changes: 0 additions & 2 deletions flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ const (

// Transient test networks

// Previewnet is the chain ID for the previewnet chain.
Previewnet ChainID = "flow-previewnet"
// Benchnet is the chain ID for the transient benchmarking chain.
Benchnet ChainID = "flow-benchnet"
// Localnet is the chain ID for the local development chain.
Expand Down

0 comments on commit ec08850

Please sign in to comment.