@@ -34,19 +34,6 @@ public extension Flow {
3434 /// HTTP node `https://rest-mainnet.onflow.org/`
3535 case testnet
3636
37- /// Canarynet enviroment
38- /// Default node is `access.canary.nodes.onflow.org:9000`
39- case canarynet
40-
41- /// Canarynet enviroment
42- /// Default node is `access.crescendo.nodes.onflow.org:9000`
43- /// HTTP node `https://rest-crescendo.onflow.org/`
44- case crescendo
45-
46- /// Previewnet enviroment
47- /// Default node is `access-previewnet.onflow.org/:9000`
48- /// HTTP node `https://rest-previewnet.onflow.org/`
49- case previewnet
5037 /// Emulator enviroment
5138 /// Default node is `127.0.0.1:9000`
5239 case emulator
@@ -55,7 +42,7 @@ public extension Flow {
5542 case custom( name: String , transport: Flow . Transport )
5643
5744 /// List of other type chain id exclude custom type
58- public static var allCases : [ Flow . ChainID ] = [ . mainnet, . testnet, . canarynet , . crescendo , . previewnet , . emulator]
45+ public static var allCases : [ Flow . ChainID ] = [ . mainnet, . testnet, . emulator]
5946
6047 /// Name of the chain id
6148 public var name : String {
@@ -64,12 +51,6 @@ public extension Flow {
6451 return " mainnet "
6552 case . testnet:
6653 return " testnet "
67- case . crescendo:
68- return " crescendo "
69- case . previewnet:
70- return " previewnet "
71- case . canarynet:
72- return " canarynet "
7354 case . emulator:
7455 return " emulator "
7556 case . unknown:
@@ -102,30 +83,20 @@ public extension Flow {
10283 return . HTTP( URL ( string: " https://rest-testnet.onflow.org/ " ) !)
10384 case . emulator:
10485 return . HTTP( URL ( string: " http://127.0.0.1:8888/ " ) !)
105- case . crescendo:
106- return . HTTP( URL ( string: " https://rest-crescendo.onflow.org/ " ) !)
107- case . previewnet:
108- return . HTTP( URL ( string: " https://rest-previewnet.onflow.org/ " ) !)
10986 case let . custom( _, transport) :
11087 return transport
11188 default :
11289 return . HTTP( URL ( string: " https://rest-testnet.onflow.org/ " ) !)
11390 }
11491 }
11592
116- /// Default node for `.mainnet, .testnet, .canarynet, . emulator`
93+ /// Default node for `.mainnet, .testnet, .emulator`
11794 public var defaultNode : Flow . Transport {
11895 switch self {
11996 case . mainnet:
12097 return . gRPC( . init( node: " access.mainnet.nodes.onflow.org " , port: 9000 ) )
12198 case . testnet:
12299 return . gRPC( . init( node: " access.devnet.nodes.onflow.org " , port: 9000 ) )
123- case . canarynet:
124- return . gRPC( . init( node: " access.canary.nodes.onflow.org " , port: 9000 ) )
125- case . crescendo:
126- return . gRPC( . init( node: " access.crescendo.nodes.onflow.org " , port: 9000 ) )
127- case . previewnet:
128- return . gRPC( . init( node: " access-previewnet.onflow.org " , port: 9000 ) )
129100 case . emulator:
130101 return . gRPC( . init( node: " 127.0.0.1 " , port: 9000 ) )
131102 case let . custom( _, endpoint) :
0 commit comments