Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Update subscan api domain (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoeOm authored Aug 24, 2021
1 parent b19ce3d commit ee31886
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react-darwinia/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import axios from 'axios';
import { i18nT } from './types';

const SUBSCAN_URL_CRAB = 'https://crab.subscan.io';
const SUBSCAN_URL_DARWINIA = 'https://darwinia.subscan.io';
const SUBSCAN_URL_CRAB = 'https://crab.webapi.subscan.io';
const SUBSCAN_URL_DARWINIA = 'https://darwinia.webapi.subscan.io';
const SUBSCAN_URL_PANGOLIN = 'https://pangolin.webapi.subscan.io';
const ETHERSCAN_URL = 'https://ropsten.etherscan.io';
let KTON_PROPERTIES = { ss58Format: 42, tokenDecimals: 9, tokenSymbol: 'CKTON' };
let RING_PROPERTIES = { ss58Format: 42, tokenDecimals: 9, tokenSymbol: 'CRING' };
Expand Down Expand Up @@ -32,8 +33,8 @@ const darwiniaInstance = axios.create({
});

const pangolinInstance = axios.create({
baseURL: 'https://pangolin.subscan.io',
timeout: 30000,
baseURL: SUBSCAN_URL_PANGOLIN,
timeout: 30000
});

export const instance = {
Expand Down

0 comments on commit ee31886

Please sign in to comment.