@xchainjs/xchain-thorchain-query 0.1.8 → 0.1.9

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
@@ -49,13 +49,16 @@ For bash exmples, see example folder at the base of this repository xchainjs/xch
49
49
 
50
50
  ### [`xchain-thorchain-query`](http://docs.xchainjs.org/xchain-thorchain-query/)
51
51
 
52
- [`How xchain-thorchain-query works`](http://docs.xchainjs.org/xchain-thorchain-query/how-it-works.html)
53
- [`How to use xchain-thorchain-query`](http://docs.xchainjs.org/xchain-thorchain-query/how-to-use.html)
52
+ How xchain-thorchain-query works: http://docs.xchainjs.org/xchain-thorchain-query/how-it-works.html\
53
+ How to use xchain-thorchain-query: http://docs.xchainjs.org/xchain-thorchain-query/how-to-use.html
54
54
 
55
- For Live examples
55
+ ## For Live examples
56
56
 
57
- [`Estimate swap`](https://replit.com/@thorchain/estimateSwap#index.ts)\
58
- [`Estimate add`](https://replit.com/@thorchain/estimateAddliquidity)\
59
- [`Estimate withdraw`](https://replit.com/@thorchain/estimateWithdrawLiquidity)\
60
- [`Check liquidity`](https://replit.com/@thorchain/checkLiquidity)\
61
- [`List pools`](https://replit.com/@thorchain/listPools#package.json)
57
+ Estimate swap: https://replit.com/@thorchain/estimateSwap#index.ts\
58
+ Estimate add: https://replit.com/@thorchain/estimateAddliquidity\
59
+ Estimate withdraw: https://replit.com/@thorchain/estimateWithdrawLiquidity\
60
+ Check liquidity: https://replit.com/@thorchain/checkLiquidity\
61
+ List pools: https://replit.com/@thorchain/listPools#package.json\
62
+ Get Network Values: https://replit.com/@thorchain/networkValues#index.ts\
63
+
64
+ Estimate AddSaver() & WithdrawSaver() & getSaverPosition() https://replit.com/@thorchain/quoteDepositTS#index.ts
package/lib/index.esm.js CHANGED
@@ -190,11 +190,7 @@ class LiquidityPool {
190
190
  const defaultMidgardConfig = {
191
191
  mainnet: {
192
192
  apiRetries: 3,
193
- midgardBaseUrls: [
194
- 'https://midgard.ninerealms.com',
195
- 'https://midgard.thorchain.info',
196
- 'https://midgard.thorswap.net',
197
- ],
193
+ midgardBaseUrls: ['https://midgard.ninerealms.com', 'https://midgard.thorswap.net'],
198
194
  },
199
195
  stagenet: {
200
196
  apiRetries: 3,
@@ -683,11 +679,7 @@ const getChain = (chain) => {
683
679
  const defaultThornodeConfig = {
684
680
  mainnet: {
685
681
  apiRetries: 3,
686
- thornodeBaseUrls: [
687
- `https://thornode.ninerealms.com`,
688
- `https://thornode.thorswap.net`,
689
- `https://thornode.thorchain.info`,
690
- ],
682
+ thornodeBaseUrls: [`https://thornode.ninerealms.com`, `https://thornode.thorswap.net`],
691
683
  },
692
684
  stagenet: {
693
685
  apiRetries: 3,
package/lib/index.js CHANGED
@@ -199,11 +199,7 @@ class LiquidityPool {
199
199
  const defaultMidgardConfig = {
200
200
  mainnet: {
201
201
  apiRetries: 3,
202
- midgardBaseUrls: [
203
- 'https://midgard.ninerealms.com',
204
- 'https://midgard.thorchain.info',
205
- 'https://midgard.thorswap.net',
206
- ],
202
+ midgardBaseUrls: ['https://midgard.ninerealms.com', 'https://midgard.thorswap.net'],
207
203
  },
208
204
  stagenet: {
209
205
  apiRetries: 3,
@@ -692,11 +688,7 @@ const getChain = (chain) => {
692
688
  const defaultThornodeConfig = {
693
689
  mainnet: {
694
690
  apiRetries: 3,
695
- thornodeBaseUrls: [
696
- `https://thornode.ninerealms.com`,
697
- `https://thornode.thorswap.net`,
698
- `https://thornode.thorchain.info`,
699
- ],
691
+ thornodeBaseUrls: [`https://thornode.ninerealms.com`, `https://thornode.thorswap.net`],
700
692
  },
701
693
  stagenet: {
702
694
  apiRetries: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-thorchain-query",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "license": "MIT",
5
5
  "description": "Thorchain query module that is resposible for estimating swap calculations and add/remove liquidity for thorchain ",
6
6
  "keywords": [
@@ -33,9 +33,9 @@
33
33
  "postversion": "git push --follow-tags"
34
34
  },
35
35
  "devDependencies": {
36
- "@xchainjs/xchain-client": "^0.13.2",
37
- "@xchainjs/xchain-midgard": "^0.3.0",
38
- "@xchainjs/xchain-thornode": "^0.1.2",
36
+ "@xchainjs/xchain-client": "^0.13.3",
37
+ "@xchainjs/xchain-midgard": "^0.4.0",
38
+ "@xchainjs/xchain-thornode": "^0.1.3",
39
39
  "@xchainjs/xchain-util": "^0.11.0",
40
40
  "axios": "^0.25.0",
41
41
  "axios-retry": "^3.2.5",
@@ -43,7 +43,7 @@
43
43
  "rimraf": "~3.0.2"
44
44
  },
45
45
  "peerDependencies": {
46
- "@xchainjs/xchain-client": "^0.13.2",
46
+ "@xchainjs/xchain-client": "^0.13.3",
47
47
  "@xchainjs/xchain-midgard": "^0.3.0",
48
48
  "@xchainjs/xchain-thornode": "^0.1.2",
49
49
  "@xchainjs/xchain-util": "^0.11.0",