fix: remaining broken sidecar urls, fixes #615

This commit is contained in:
Hank Stoever
2020-09-30 07:42:22 -07:00
committed by kyranjamie
parent 6c046aaa5e
commit 4c26fcea34
5 changed files with 6 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ export class WalletSigner {
getNetwork() {
const network = new StacksTestnet();
network.coreApiUrl = 'https://sidecar.staging.blockstack.xyz';
network.coreApiUrl = 'https://stacks-node-api.blockstack.org';
return network;
}

View File

@@ -133,7 +133,7 @@ export class RPCClient {
}
async fetchAddressTransactions({ address }: { address: string }) {
const url = `${this.url}/sidecar/v1/address/${address}/transactions`;
const url = `${this.url}/extended/v1/address/${address}/transactions`;
const res = await fetch(url);
const data: TransactionResults = await res.json();
return data.results;

View File

@@ -38,7 +38,7 @@ export const useFaucet = () => {
}, 10000);
};
try {
const url = `${client.url}/sidecar/v1/debug/faucet?address=${stxAddress}`;
const url = `${client.url}/extended/v1/debug/faucet?address=${stxAddress}`;
const res = await fetch(url, {
method: 'POST',
});

View File

@@ -26,7 +26,7 @@ export const getRPCClient = () => {
const { origin } = location;
const url = origin.includes('localhost')
? 'http://localhost:3999'
: 'https://sidecar.staging.blockstack.xyz';
: 'https://stacks-node-api.blockstack.org';
return new RPCClient(url);
};

View File

@@ -26,7 +26,7 @@ export const Faucet = ({ address: _address = '' }: { address: string }) => {
if (origin.includes('localhost')) {
return 'http://localhost:3999';
}
return 'https://sidecar.staging.blockstack.xyz';
return 'https://stacks-node-api.blockstack.org';
};
const waitForBalance = async (currentBalance: number, attempts: number) => {
@@ -53,7 +53,7 @@ export const Faucet = ({ address: _address = '' }: { address: string }) => {
setTX('');
try {
const url = `${getServerURL()}/sidecar/v1/debug/faucet?address=${address}`;
const url = `${getServerURL()}/extended/v1/debug/faucet?address=${address}`;
const res = await fetch(url, {
method: 'POST',
});