Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 3b37000

Browse files
committed
fix: add devnet and soft launch cluster
1 parent 6039912 commit 3b37000

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/EndpointConfig.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@ const endpointUrlMap = {
99
? `http://${window.location.hostname}:8443`
1010
: `http://${window.location.hostname}:8899`,
1111

12-
testnet: 'https://testnet.solana.com:8443',
12+
devnet: 'https://devnet.solana.com:8443',
1313
tds: 'https://tds.solana.com:8443',
1414
};
1515

1616
const endpointHostnameMap = {
17-
'testnet.solana.com': 'testnet',
17+
'devnet.solana.com': 'devnet',
18+
'api.cluster.solana.com': 'cluster',
1819
'tds.solana.com': 'tds',
19-
'explorer.solana.com': 'testnet', // Default endpoint for explorer.solana.com
20-
'edge.explorer.solana.com': 'testnet', // Default endpoint for edge.explorer.solana.com
20+
'explorer.solana.com': 'devnet', // Default endpoint for explorer.solana.com
21+
'edge.explorer.solana.com': 'devnet', // Default endpoint for edge.explorer.solana.com
2122
};
2223

2324
const endpointFriendlyNameMap = {
24-
testnet: 'Public Testnet',
25+
devnet: 'Developer Testnet',
26+
cluster: 'Soft Launch',
2527
tds: 'Tour de SOL',
2628
local: 'Local Cluster',
2729
};
@@ -34,8 +36,7 @@ function getDefaultEndpointName() {
3436
return endpointName;
3537
}
3638

37-
// Default to the edge testnet when in dev mode.
38-
return 'testnet-edge';
39+
return 'devnet';
3940
}
4041

4142
let endpointName = getDefaultEndpointName();

0 commit comments

Comments
 (0)