From 1be29726360bf0e9a7477fa96c1c3947f39f1d62 Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Mon, 18 Nov 2024 15:12:36 -0300 Subject: [PATCH] feat(models): sbtc testnet network --- packages/models/src/network/network.model.ts | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/packages/models/src/network/network.model.ts b/packages/models/src/network/network.model.ts index 7b6845d4f..d57d71f8e 100644 --- a/packages/models/src/network/network.model.ts +++ b/packages/models/src/network/network.model.ts @@ -34,6 +34,7 @@ export enum WalletDefaultNetworkConfigurationIds { testnet = 'testnet', testnet4 = 'testnet4', signet = 'signet', + sbtcTestnet = 'sbtcTestnet', sbtcDevenv = 'sbtcDevenv', devnet = 'devnet', } @@ -164,6 +165,24 @@ const networkSignet: NetworkConfiguration = { }, }; +const networkSbtcTestnet: NetworkConfiguration = { + id: WalletDefaultNetworkConfigurationIds.sbtcTestnet, + name: 'sBTC Testnet', + chain: { + stacks: { + blockchain: 'stacks', + chainId: ChainID.Testnet, + url: HIRO_API_BASE_URL_TESTNET, + }, + bitcoin: { + blockchain: 'bitcoin', + bitcoinNetwork: 'regtest', + mode: 'regtest', + bitcoinUrl: 'https://beta.sbtc-mempool.tech/api/proxy', + }, + }, +}; + const networkSbtcDevenv: NetworkConfiguration = { id: WalletDefaultNetworkConfigurationIds.sbtcDevenv, name: 'sBTC Devenv', @@ -177,7 +196,7 @@ const networkSbtcDevenv: NetworkConfiguration = { blockchain: 'bitcoin', bitcoinNetwork: 'regtest', mode: 'regtest', - bitcoinUrl: 'http://localhost:8083/api', + bitcoinUrl: 'http://localhost:3000/api/proxy', }, }, }; @@ -210,6 +229,7 @@ export const defaultNetworksKeyedById: Record< [WalletDefaultNetworkConfigurationIds.testnet]: networkTestnet, [WalletDefaultNetworkConfigurationIds.testnet4]: networkTestnet4, [WalletDefaultNetworkConfigurationIds.signet]: networkSignet, + [WalletDefaultNetworkConfigurationIds.sbtcTestnet]: networkSbtcTestnet, [WalletDefaultNetworkConfigurationIds.sbtcDevenv]: networkSbtcDevenv, [WalletDefaultNetworkConfigurationIds.devnet]: networkDevnet, };