From 213cc12d6afbdb1f664bb391b37dfa84bae8cdf6 Mon Sep 17 00:00:00 2001 From: Polybius93 Date: Wed, 31 Jan 2024 09:46:13 +0100 Subject: [PATCH] feat: removing goerli as selectable network --- src/app/hooks/use-bitcoin.ts | 2 +- src/app/hooks/use-endpoints.ts | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/app/hooks/use-bitcoin.ts b/src/app/hooks/use-bitcoin.ts index c9503cbc..53aa504a 100644 --- a/src/app/hooks/use-bitcoin.ts +++ b/src/app/hooks/use-bitcoin.ts @@ -40,7 +40,7 @@ export function useBitcoin(): UseBitcoinReturnType { }; const urlParams = { bitcoinContractOffer: JSON.stringify(bitcoinContractOffer), - bitcoinNetwork: JSON.stringify('regtest'), + bitcoinNetwork: JSON.stringify('testnet'), counterpartyWalletDetails: JSON.stringify(counterPartyWalletDetails), }; return urlParams; diff --git a/src/app/hooks/use-endpoints.ts b/src/app/hooks/use-endpoints.ts index cd287b2f..8c4f0908 100644 --- a/src/app/hooks/use-endpoints.ts +++ b/src/app/hooks/use-endpoints.ts @@ -37,15 +37,9 @@ export function useEndpoints(): UseEndpointsReturnType { switch (network?.id) { case EthereumNetwork.Sepolia: return { - routerWalletURL: 'https://devnet.dlc.link/wallet', + routerWalletURL: 'https://testnet.dlc.link/wallet', ethereumExplorerAPIURL: 'https://sepolia.etherscan.io/tx/', - bitcoinExplorerAPIURL: 'http://devnet.dlc.link/electrs/tx/', - }; - case EthereumNetwork.Goerli: - return { - routerWalletURL: 'https://devnet.dlc.link/wallet', - ethereumExplorerAPIURL: 'https://goerli.etherscan.io/tx/', - bitcoinExplorerAPIURL: 'https://blockstream.info/testnet/tx/', + bitcoinExplorerAPIURL: 'http://testnet.dlc.link/electrs/tx/', }; case EthereumNetwork.X1Testnet: return {