From 3b37000ea2db10646c520fb1e052d78efd575eaf Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 19 Feb 2020 15:38:19 -0700 Subject: [PATCH] fix: add devnet and soft launch cluster --- src/EndpointConfig.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/EndpointConfig.js b/src/EndpointConfig.js index e5fab86b..c364da21 100644 --- a/src/EndpointConfig.js +++ b/src/EndpointConfig.js @@ -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', }; @@ -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();