@xchainjs/xchain-mayachain-query 2.0.4 → 2.0.6

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
@@ -1,6 +1,6 @@
1
1
  import { assetFromStringEx, assetToString, baseAmount, CryptoAmount, CachedValue, AssetCryptoAmount, eqAsset, isSynthAsset, TRADE_ASSET_DELIMITER, SYNTH_ASSET_DELIMITER, TOKEN_ASSET_DELIMITER } from '@xchainjs/xchain-util';
2
2
  import { MidgardQuery } from '@xchainjs/xchain-mayamidgard-query';
3
- import { BigNumber } from 'bignumber.js';
3
+ import BigNumber from 'bignumber.js';
4
4
  import { Network } from '@xchainjs/xchain-client';
5
5
  import { QuoteApi, Configuration, MimirApi, NetworkApi } from '@xchainjs/xchain-mayanode';
6
6
  import axios from 'axios';
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var xchainUtil = require('@xchainjs/xchain-util');
4
4
  var xchainMayamidgardQuery = require('@xchainjs/xchain-mayamidgard-query');
5
- var bignumber_js = require('bignumber.js');
5
+ var BigNumber = require('bignumber.js');
6
6
  var xchainClient = require('@xchainjs/xchain-client');
7
7
  var xchainMayanode = require('@xchainjs/xchain-mayanode');
8
8
  var axios = require('axios');
@@ -10,6 +10,7 @@ var axiosRetry = require('axios-retry');
10
10
 
11
11
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
12
 
13
+ var BigNumber__default = /*#__PURE__*/_interopDefault(BigNumber);
13
14
  var axios__default = /*#__PURE__*/_interopDefault(axios);
14
15
  var axiosRetry__default = /*#__PURE__*/_interopDefault(axiosRetry);
15
16
 
@@ -256,10 +257,10 @@ class MayachainCache {
256
257
  chain: chain,
257
258
  address: inbound.address,
258
259
  router: inbound.router,
259
- gasRate: new bignumber_js.BigNumber(inbound.gas_rate),
260
+ gasRate: new BigNumber__default.default(inbound.gas_rate),
260
261
  gasRateUnits: inbound.gas_rate_units,
261
- outboundTxSize: new bignumber_js.BigNumber(inbound.outbound_tx_size),
262
- outboundFee: new bignumber_js.BigNumber(inbound.outbound_fee),
262
+ outboundTxSize: new BigNumber__default.default(inbound.outbound_tx_size),
263
+ outboundFee: new BigNumber__default.default(inbound.outbound_fee),
263
264
  haltedChain: (inbound === null || inbound === void 0 ? void 0 : inbound.halted) || !!mimirDetails[`HALT${chain}CHAIN`] || !!mimirDetails['HALTCHAINGLOBAL'],
264
265
  haltedTrading: !!mimirDetails['HALTTRADING'] || !!mimirDetails[`HALT${chain}TRADING`],
265
266
  haltedLP: !!mimirDetails['PAUSELP'] || !!mimirDetails[`PAUSELP${chain}`],
@@ -270,10 +271,10 @@ class MayachainCache {
270
271
  chain: MayaChain,
271
272
  address: '',
272
273
  router: '',
273
- gasRate: new bignumber_js.BigNumber(0),
274
+ gasRate: new BigNumber__default.default(0),
274
275
  gasRateUnits: '',
275
- outboundTxSize: new bignumber_js.BigNumber(0),
276
- outboundFee: new bignumber_js.BigNumber(0),
276
+ outboundTxSize: new BigNumber__default.default(0),
277
+ outboundFee: new BigNumber__default.default(0),
277
278
  haltedChain: false,
278
279
  haltedTrading: !!mimirDetails['HALTTRADING'],
279
280
  haltedLP: false, //
package/lib/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TxHash } from '@xchainjs/xchain-client';
2
2
  import { Address, Asset, AssetCryptoAmount, Chain, CryptoAmount, SynthAsset, TokenAsset } from '@xchainjs/xchain-util';
3
- import { BigNumber } from 'bignumber.js';
3
+ import type BigNumber from 'bignumber.js';
4
4
  export type CompatibleAsset = Asset | TokenAsset | SynthAsset;
5
5
  /**
6
6
  * Represents fees associated with a swap.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-mayachain-query",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "license": "MIT",
5
5
  "description": "Mayachain query module that is responsible for estimating swap calculations and add/remove liquidity for thorchain",
6
6
  "keywords": [
@@ -28,16 +28,16 @@
28
28
  "build": "yarn clean && rollup -c --bundleConfigAsCjs",
29
29
  "build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
30
30
  "test": "jest",
31
- "e2e": "jest --config jest.config.e2e.js",
31
+ "e2e": "jest --config jest.config.e2e.mjs",
32
32
  "lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
33
33
  "postversion": "git push --follow-tags"
34
34
  },
35
35
  "dependencies": {
36
- "@xchainjs/xchain-client": "2.0.2",
37
- "@xchainjs/xchain-mayamidgard": "1.0.1",
38
- "@xchainjs/xchain-mayamidgard-query": "1.0.3",
39
- "@xchainjs/xchain-mayanode": "1.0.1",
40
- "@xchainjs/xchain-util": "2.0.1",
36
+ "@xchainjs/xchain-client": "2.0.4",
37
+ "@xchainjs/xchain-mayamidgard": "1.0.2",
38
+ "@xchainjs/xchain-mayamidgard-query": "1.0.5",
39
+ "@xchainjs/xchain-mayanode": "1.0.2",
40
+ "@xchainjs/xchain-util": "2.0.3",
41
41
  "axios": "1.8.4",
42
42
  "axios-retry": "3.2.5",
43
43
  "bignumber.js": "^9.0.0"