@xchainjs/xchain-mayachain-query 2.1.10 → 2.1.11

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/README.md CHANGED
@@ -167,15 +167,4 @@ If you plan on using the publicly accessible endpoints provided by MAYAChain (li
167
167
  - https://midgard.mayachain.info
168
168
  - https://mayanode.mayachain.info
169
169
 
170
- ## Example
171
-
172
- ```typescript
173
- import cosmosclient from '@cosmos-client/core'
174
- import axios from 'axios'
175
- import { register9Rheader } from '@xchainjs/xchain-util'
176
-
177
- register9Rheader(axios)
178
- register9Rheader(cosmosclient.config.globalAxios)
179
- ```
180
-
181
170
  For a complete example please see this [test](https://github.com/xchainjs/xchainjs-lib/blob/master/packages/xchain-mayachain-amm/__e2e__/wallet.e2e.ts)
package/lib/index.esm.js CHANGED
@@ -239,6 +239,7 @@ const KujiraAsset = assetFromStringEx('KUJI.KUJI');
239
239
  const ArbAsset = assetFromStringEx('ARB.ETH');
240
240
  const XdrAsset = assetFromStringEx('XRD.XRD');
241
241
  const ZecAsset = assetFromStringEx('ZEC.ZEC');
242
+ const AdaAsset = assetFromStringEx('ADA.ADA');
242
243
  const BtcChain = 'BTC';
243
244
  const EthChain = 'ETH';
244
245
  const MayaChain = 'MAYA';
@@ -248,6 +249,7 @@ const KujiraChain = 'KUJI';
248
249
  const ArbChain = 'ARB';
249
250
  const XdrChain = 'XRD';
250
251
  const ZecChain = 'ZEC';
252
+ const AdaChain = 'ADA';
251
253
  const DEFAULT_MAYACHAIN_DECIMALS = 8;
252
254
  const MAYA_DECIMAL = 4;
253
255
  const CACAO_DECIMAL = 10;
@@ -635,6 +637,8 @@ class MayachainQuery {
635
637
  [ArbChain]: new AssetCryptoAmount(baseAmount(0, 18), ArbAsset),
636
638
  [XdrChain]: new AssetCryptoAmount(baseAmount(0, 18), XdrAsset),
637
639
  [ZecChain]: new AssetCryptoAmount(baseAmount(1000, 8), ZecAsset),
640
+ // 1 ADA in lovelace (6 decimals); matches MAYAChain's 1 ADA inbound minimum.
641
+ [AdaChain]: new AssetCryptoAmount(baseAmount(1000000, 6), AdaAsset),
638
642
  };
639
643
  }
640
644
  /**
@@ -983,4 +987,4 @@ class MayachainQuery {
983
987
  }
984
988
  }
985
989
 
986
- export { ArbAsset, ArbChain, BtcAsset, BtcChain, CACAO_DECIMAL, CacaoAsset, DEFAULT_MAYACHAIN_DECIMALS, DashAsset, DashChain, EthAsset, EthChain, KujiraAsset, KujiraChain, MAYA_DECIMAL, MayaAsset, MayaChain, MayachainCache, MayachainQuery, Mayanode, RuneAsset, ThorChain, XdrAsset, XdrChain, ZecAsset, ZecChain, getBaseAmountWithDiffDecimals, getCryptoAmountWithNotation, isCacaoAsset };
990
+ export { AdaAsset, AdaChain, ArbAsset, ArbChain, BtcAsset, BtcChain, CACAO_DECIMAL, CacaoAsset, DEFAULT_MAYACHAIN_DECIMALS, DashAsset, DashChain, EthAsset, EthChain, KujiraAsset, KujiraChain, MAYA_DECIMAL, MayaAsset, MayaChain, MayachainCache, MayachainQuery, Mayanode, RuneAsset, ThorChain, XdrAsset, XdrChain, ZecAsset, ZecChain, getBaseAmountWithDiffDecimals, getCryptoAmountWithNotation, isCacaoAsset };
package/lib/index.js CHANGED
@@ -247,6 +247,7 @@ const KujiraAsset = xchainUtil.assetFromStringEx('KUJI.KUJI');
247
247
  const ArbAsset = xchainUtil.assetFromStringEx('ARB.ETH');
248
248
  const XdrAsset = xchainUtil.assetFromStringEx('XRD.XRD');
249
249
  const ZecAsset = xchainUtil.assetFromStringEx('ZEC.ZEC');
250
+ const AdaAsset = xchainUtil.assetFromStringEx('ADA.ADA');
250
251
  const BtcChain = 'BTC';
251
252
  const EthChain = 'ETH';
252
253
  const MayaChain = 'MAYA';
@@ -256,6 +257,7 @@ const KujiraChain = 'KUJI';
256
257
  const ArbChain = 'ARB';
257
258
  const XdrChain = 'XRD';
258
259
  const ZecChain = 'ZEC';
260
+ const AdaChain = 'ADA';
259
261
  const DEFAULT_MAYACHAIN_DECIMALS = 8;
260
262
  const MAYA_DECIMAL = 4;
261
263
  const CACAO_DECIMAL = 10;
@@ -643,6 +645,8 @@ class MayachainQuery {
643
645
  [ArbChain]: new xchainUtil.AssetCryptoAmount(xchainUtil.baseAmount(0, 18), ArbAsset),
644
646
  [XdrChain]: new xchainUtil.AssetCryptoAmount(xchainUtil.baseAmount(0, 18), XdrAsset),
645
647
  [ZecChain]: new xchainUtil.AssetCryptoAmount(xchainUtil.baseAmount(1000, 8), ZecAsset),
648
+ // 1 ADA in lovelace (6 decimals); matches MAYAChain's 1 ADA inbound minimum.
649
+ [AdaChain]: new xchainUtil.AssetCryptoAmount(xchainUtil.baseAmount(1000000, 6), AdaAsset),
646
650
  };
647
651
  }
648
652
  /**
@@ -991,6 +995,8 @@ class MayachainQuery {
991
995
  }
992
996
  }
993
997
 
998
+ exports.AdaAsset = AdaAsset;
999
+ exports.AdaChain = AdaChain;
994
1000
  exports.ArbAsset = ArbAsset;
995
1001
  exports.ArbChain = ArbChain;
996
1002
  exports.BtcAsset = BtcAsset;
@@ -9,6 +9,7 @@ export declare const KujiraAsset: Asset;
9
9
  export declare const ArbAsset: Asset;
10
10
  export declare const XdrAsset: Asset;
11
11
  export declare const ZecAsset: Asset;
12
+ export declare const AdaAsset: Asset;
12
13
  export declare const BtcChain = "BTC";
13
14
  export declare const EthChain = "ETH";
14
15
  export declare const MayaChain = "MAYA";
@@ -18,6 +19,7 @@ export declare const KujiraChain = "KUJI";
18
19
  export declare const ArbChain = "ARB";
19
20
  export declare const XdrChain = "XRD";
20
21
  export declare const ZecChain = "ZEC";
22
+ export declare const AdaChain = "ADA";
21
23
  export declare const DEFAULT_MAYACHAIN_DECIMALS = 8;
22
24
  export declare const MAYA_DECIMAL = 4;
23
25
  export declare const CACAO_DECIMAL = 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-mayachain-query",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
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": [
@@ -33,12 +33,12 @@
33
33
  "postversion": "git push --follow-tags"
34
34
  },
35
35
  "dependencies": {
36
- "@xchainjs/xchain-client": "2.0.13",
37
- "@xchainjs/xchain-mayamidgard": "1.1.2",
38
- "@xchainjs/xchain-mayamidgard-query": "1.0.15",
39
- "@xchainjs/xchain-mayanode": "1.2.2",
36
+ "@xchainjs/xchain-client": "2.0.14",
37
+ "@xchainjs/xchain-mayamidgard": "1.1.3",
38
+ "@xchainjs/xchain-mayamidgard-query": "1.0.16",
39
+ "@xchainjs/xchain-mayanode": "1.2.3",
40
40
  "@xchainjs/xchain-util": "2.0.7",
41
- "axios": "1.15.2",
41
+ "axios": "1.16.1",
42
42
  "axios-retry": "3.2.5",
43
43
  "bignumber.js": "^11.0.0"
44
44
  },