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

Commit

Permalink
fix: add devnet and soft launch cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Feb 19, 2020
1 parent 6039912 commit 3b37000
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/EndpointConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ const endpointUrlMap = {
? `http://${window.location.hostname}:8443`
: `http://${window.location.hostname}:8899`,

testnet: 'https://testnet.solana.com:8443',
devnet: 'https://devnet.solana.com:8443',
tds: 'https://tds.solana.com:8443',
};

const endpointHostnameMap = {
'testnet.solana.com': 'testnet',
'devnet.solana.com': 'devnet',
'api.cluster.solana.com': 'cluster',
'tds.solana.com': 'tds',
'explorer.solana.com': 'testnet', // Default endpoint for explorer.solana.com
'edge.explorer.solana.com': 'testnet', // Default endpoint for edge.explorer.solana.com
'explorer.solana.com': 'devnet', // Default endpoint for explorer.solana.com
'edge.explorer.solana.com': 'devnet', // Default endpoint for edge.explorer.solana.com
};

const endpointFriendlyNameMap = {
testnet: 'Public Testnet',
devnet: 'Developer Testnet',
cluster: 'Soft Launch',
tds: 'Tour de SOL',
local: 'Local Cluster',
};
Expand All @@ -34,8 +36,7 @@ function getDefaultEndpointName() {
return endpointName;
}

// Default to the edge testnet when in dev mode.
return 'testnet-edge';
return 'devnet';
}

let endpointName = getDefaultEndpointName();
Expand Down

0 comments on commit 3b37000

Please sign in to comment.