Skip to content

Commit ac9b3f5

Browse files
committed
feat: add new network - crescendo
1 parent d64618e commit ac9b3f5

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎Sources/Models/FlowChainId.swift‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public extension Flow {
3434
/// HTTP node `https://rest-mainnet.onflow.org/`
3535
case testnet
3636

37-
/// Testnet enviroment
38-
/// Default gRPC node is `access.sandboxnet.nodes.onflow.org:9000`
39-
/// HTTP node `https://rest-sandboxnet.onflow.org/`
40-
case sandboxnet
41-
4237
/// Canarynet enviroment
4338
/// Default node is `access.canary.nodes.onflow.org:9000`
4439
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
4545

4646
/// Emulator enviroment
4747
/// Default node is `127.0.0.1:9000`
@@ -51,7 +51,7 @@ public extension Flow {
5151
case custom(name: String, transport: Flow.Transport)
5252

5353
/// List of other type chain id exclude custom type
54-
public static var allCases: [Flow.ChainID] = [.mainnet, .testnet, .canarynet, .sandboxnet, .emulator]
54+
public static var allCases: [Flow.ChainID] = [.mainnet, .testnet, .canarynet, .crescendo, .emulator]
5555

5656
/// Name of the chain id
5757
public var name: String {
@@ -60,8 +60,8 @@ public extension Flow {
6060
return "mainnet"
6161
case .testnet:
6262
return "testnet"
63-
case .sandboxnet:
64-
return "sandboxnet"
63+
case .crescendo:
64+
return "crescendo"
6565
case .canarynet:
6666
return "canarynet"
6767
case .emulator:
@@ -96,8 +96,8 @@ public extension Flow {
9696
return .HTTP(URL(string: "https://rest-testnet.onflow.org/")!)
9797
case .emulator:
9898
return .HTTP(URL(string: "http://127.0.0.1:8888/")!)
99-
case .sandboxnet:
100-
return .HTTP(URL(string: "https://rest-sandboxnet.onflow.org/")!)
99+
case .crescendo:
100+
return .HTTP(URL(string: "https://rest-crescendo.onflow.org/")!)
101101
case let .custom(_, transport):
102102
return transport
103103
default:
@@ -114,8 +114,8 @@ public extension Flow {
114114
return .gRPC(.init(node: "access.devnet.nodes.onflow.org", port: 9000))
115115
case .canarynet:
116116
return .gRPC(.init(node: "access.canary.nodes.onflow.org", port: 9000))
117-
case .sandboxnet:
118-
return .gRPC(.init(node: "access.sandboxnet.nodes.onflow.org", port: 9000))
117+
case .crescendo:
118+
return .gRPC(.init(node: "access.crescendo.nodes.onflow.org", port: 9000))
119119
case .emulator:
120120
return .gRPC(.init(node: "127.0.0.1", port: 9000))
121121
case let .custom(_, endpoint):

0 commit comments

Comments
 (0)