@xchainjs/xchain-midgard-query 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -39,15 +39,15 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
39
39
  const defaultMidgardConfig = {
40
40
  mainnet: {
41
41
  apiRetries: 3,
42
- midgardBaseUrls: ['https://midgard.ninerealms.com'],
42
+ midgardBaseUrls: ['https://gateway.liquify.com/chain/thorchain_midgard'],
43
43
  },
44
44
  stagenet: {
45
45
  apiRetries: 3,
46
- midgardBaseUrls: ['https://stagenet-midgard.ninerealms.com'],
46
+ midgardBaseUrls: [],
47
47
  },
48
48
  testnet: {
49
49
  apiRetries: 3,
50
- midgardBaseUrls: ['https://testnet.midgard.thorchain.info'],
50
+ midgardBaseUrls: ['deprecated'],
51
51
  },
52
52
  };
53
53
  class Midgard {
@@ -273,7 +273,7 @@ class MidgardQuery {
273
273
  getFallbackDecimals(asset) {
274
274
  const assetString = assetToString(asset);
275
275
  // Map of assets to their actual decimal places from THORChain pools
276
- // Data sourced from https://thornode-v2.ninerealms.com/thorchain/pools
276
+ // Data sourced from https://gateway.liquify.com/chain/thorchain_api/thorchain/pools
277
277
  const fallbackDecimalMap = {
278
278
  // Bitcoin and forks
279
279
  'BTC.BTC': 8,
package/lib/index.js CHANGED
@@ -46,15 +46,15 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
46
46
  const defaultMidgardConfig = {
47
47
  mainnet: {
48
48
  apiRetries: 3,
49
- midgardBaseUrls: ['https://midgard.ninerealms.com'],
49
+ midgardBaseUrls: ['https://gateway.liquify.com/chain/thorchain_midgard'],
50
50
  },
51
51
  stagenet: {
52
52
  apiRetries: 3,
53
- midgardBaseUrls: ['https://stagenet-midgard.ninerealms.com'],
53
+ midgardBaseUrls: [],
54
54
  },
55
55
  testnet: {
56
56
  apiRetries: 3,
57
- midgardBaseUrls: ['https://testnet.midgard.thorchain.info'],
57
+ midgardBaseUrls: ['deprecated'],
58
58
  },
59
59
  };
60
60
  class Midgard {
@@ -280,7 +280,7 @@ class MidgardQuery {
280
280
  getFallbackDecimals(asset) {
281
281
  const assetString = xchainUtil.assetToString(asset);
282
282
  // Map of assets to their actual decimal places from THORChain pools
283
- // Data sourced from https://thornode-v2.ninerealms.com/thorchain/pools
283
+ // Data sourced from https://gateway.liquify.com/chain/thorchain_api/thorchain/pools
284
284
  const fallbackDecimalMap = {
285
285
  // Bitcoin and forks
286
286
  'BTC.BTC': 8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-midgard-query",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "license": "MIT",
5
5
  "description": "Module that is responsible for get data from Midgard API",
6
6
  "keywords": [
@@ -32,10 +32,10 @@
32
32
  "postversion": "git push --follow-tags"
33
33
  },
34
34
  "dependencies": {
35
- "@xchainjs/xchain-client": "2.0.10",
36
- "@xchainjs/xchain-midgard": "1.1.0",
37
- "@xchainjs/xchain-util": "2.0.5",
38
- "axios": "1.13.5",
35
+ "@xchainjs/xchain-client": "2.0.12",
36
+ "@xchainjs/xchain-midgard": "1.1.1",
37
+ "@xchainjs/xchain-util": "2.0.7",
38
+ "axios": "1.15.0",
39
39
  "axios-retry": "^3.9.1"
40
40
  },
41
41
  "devDependencies": {