Skip to content

Commit

Permalink
feat(models): sbtc testnet network
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Nov 20, 2024
1 parent 7021b78 commit 1be2972
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion packages/models/src/network/network.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export enum WalletDefaultNetworkConfigurationIds {
testnet = 'testnet',
testnet4 = 'testnet4',
signet = 'signet',
sbtcTestnet = 'sbtcTestnet',
sbtcDevenv = 'sbtcDevenv',
devnet = 'devnet',
}
Expand Down Expand Up @@ -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',
Expand All @@ -177,7 +196,7 @@ const networkSbtcDevenv: NetworkConfiguration = {
blockchain: 'bitcoin',
bitcoinNetwork: 'regtest',
mode: 'regtest',
bitcoinUrl: 'http://localhost:8083/api',
bitcoinUrl: 'http://localhost:3000/api/proxy',
},
},
};
Expand Down Expand Up @@ -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,
};

0 comments on commit 1be2972

Please sign in to comment.