Skip to content

Commit

Permalink
fix: broken types following diverged network config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie authored and reedrosenbluth committed Jul 26, 2021
1 parent 1dab3a9 commit 1cd9612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/network/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { TransactionVersion, ChainID, fetchPrivate } from '@stacks/common';

export const HIRO_MAINNET_DEFAULT = 'https://stacks-node-api.mainnet.stacks.co';
export const HIRO_REGTEST_DEFAULT = 'https://stacks-node-api.regtest.stacks.co';
export const HIRO_TESTNET_DEFAULT = 'https://stacks-node-api.testnet.stacks.co';
export const HIRO_MOCKNET_DEFAULT = 'http://localhost:3999';

Expand Down Expand Up @@ -134,5 +135,8 @@ export class StacksMocknet extends StacksMainnet implements StacksNetwork {
export class StacksRegtest extends StacksMainnet implements StacksNetwork {
version = TransactionVersion.Testnet;
chainId = ChainID.Testnet;
coreApiUrl = 'https://stacks-node-api.regtest.stacks.co';

constructor(networkUrl: NetworkConfig = { url: HIRO_REGTEST_DEFAULT }) {
super(networkUrl);
}
}

0 comments on commit 1cd9612

Please sign in to comment.