Skip to content

Commit ec08850

Browse files
authored
Remove previewnet (#740)
1 parent d704c00 commit ec08850

5 files changed

Lines changed: 4 additions & 15 deletions

File tree

access/grpc/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const EmulatorHost = "127.0.0.1:3569"
4343
const TestnetHost = "access.devnet.nodes.onflow.org:9000"
4444
const CanarynetHost = "access.canary.nodes.onflow.org:9000"
4545
const MainnetHost = "access.mainnet.nodes.onflow.org:9000"
46-
const PreviewnetHost = "access.previewnet.nodes.onflow.org:9000"
4746

4847
// ClientOption is a configuration option for the client.
4948
type ClientOption func(*options)

access/http/client.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ import (
3131
)
3232

3333
const (
34-
EmulatorHost = "http://127.0.0.1:8888/v1"
35-
TestnetHost = "https://rest-testnet.onflow.org/v1"
36-
MainnetHost = "https://rest-mainnet.onflow.org/v1"
37-
CanarynetHost = "https://rest-canary.onflow.org/v1"
38-
PreviewnetHost = "https://rest-previewnet.onflow.org/v1"
34+
EmulatorHost = "http://127.0.0.1:8888/v1"
35+
TestnetHost = "https://rest-testnet.onflow.org/v1"
36+
MainnetHost = "https://rest-mainnet.onflow.org/v1"
37+
CanarynetHost = "https://rest-canary.onflow.org/v1"
3938
)
4039

4140
// ClientOption is a configuration option for the client.

address.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ func chainCustomizer(chain ChainID) uint64 {
108108
return 0
109109
case Testnet:
110110
return invalidCodeTestNetwork
111-
case Previewnet:
112-
return invalidCodePreviewNetwork
113111
case Emulator, Localnet, Benchnet, BftTestnet:
114112
return invalidCodeTransientNetwork
115113
default:
@@ -273,9 +271,6 @@ const (
273271

274272
// invalidCodeTransientNetwork is the invalid codeword used for transient test networks.
275273
invalidCodeTransientNetwork = uint64(0x1cb159857af02018)
276-
277-
// invalidCodePreviewNetwork is the invalid codeword used for Preview networks.
278-
invalidCodePreviewNetwork = uint64(0x5211829E88528817)
279274
)
280275

281276
// Rows of the generator matrix G of the [64,45]-code used for Flow addresses.

address_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ func TestAddressConstants(t *testing.T) {
9595
Mainnet,
9696
Testnet,
9797
Emulator,
98-
Previewnet,
9998
}
10099

101100
for _, net := range networks {
@@ -136,7 +135,6 @@ func TestAddressGeneration(t *testing.T) {
136135
Mainnet,
137136
Testnet,
138137
Emulator,
139-
Previewnet,
140138
}
141139

142140
for _, net := range networks {

flow.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ const (
106106

107107
// Transient test networks
108108

109-
// Previewnet is the chain ID for the previewnet chain.
110-
Previewnet ChainID = "flow-previewnet"
111109
// Benchnet is the chain ID for the transient benchmarking chain.
112110
Benchnet ChainID = "flow-benchnet"
113111
// Localnet is the chain ID for the local development chain.

0 commit comments

Comments
 (0)