@shapeshiftoss/swapper 11.3.1 → 11.4.0

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.
@@ -85,7 +85,12 @@ const main = async () => {
85
85
  const swapManager = new SwapperManager_1.SwapperManager();
86
86
  const zrxSwapper = new ZrxSwapper_1.ZrxSwapper(zrxSwapperDeps);
87
87
  swapManager.addSwapper(zrxSwapper);
88
- const tcDeps = { midgardUrl: MIDGARD_URL, web3, adapterManager };
88
+ const tcDeps = {
89
+ midgardUrl: MIDGARD_URL,
90
+ daemonUrl: '',
91
+ web3,
92
+ adapterManager,
93
+ };
89
94
  const tc = new swappers_1.ThorchainSwapper(tcDeps);
90
95
  await tc.initialize();
91
96
  swapManager.addSwapper(tc);
@@ -50,17 +50,17 @@ class ThorchainSwapper {
50
50
  }
51
51
  async initialize() {
52
52
  try {
53
- const { data: responseData } = await thorService_1.thorService.get(`${this.deps.midgardUrl}/pools`);
54
- this.supportedSellAssetIds = responseData.reduce((acc, midgardPool) => {
55
- const assetId = caip_1.adapters.poolAssetIdToAssetId(midgardPool.asset);
53
+ const { data } = await thorService_1.thorService.get(`${this.deps.daemonUrl}/lcd/thorchain/pools`);
54
+ this.supportedSellAssetIds = data.reduce((acc, pool) => {
55
+ const assetId = caip_1.adapters.poolAssetIdToAssetId(pool.asset);
56
56
  if (!assetId || !this.sellSupportedChainIds[(0, caip_1.fromAssetId)(assetId).chainId])
57
57
  return acc;
58
58
  acc.push(assetId);
59
59
  return acc;
60
60
  }, []);
61
61
  this.supportedSellAssetIds.push(caip_1.thorchainAssetId);
62
- this.supportedBuyAssetIds = responseData.reduce((acc, midgardPool) => {
63
- const assetId = caip_1.adapters.poolAssetIdToAssetId(midgardPool.asset);
62
+ this.supportedBuyAssetIds = data.reduce((acc, pool) => {
63
+ const assetId = caip_1.adapters.poolAssetIdToAssetId(pool.asset);
64
64
  if (!assetId || !this.buySupportedChainIds[(0, caip_1.fromAssetId)(assetId).chainId])
65
65
  return acc;
66
66
  acc.push(assetId);
@@ -164,21 +164,20 @@ class ThorchainSwapper {
164
164
  const midgardTxid = tradeResult.tradeId.startsWith('0x')
165
165
  ? tradeResult.tradeId.slice(2)
166
166
  : tradeResult.tradeId;
167
- const { data: responseData } = await thorService_1.thorService.get(`${this.deps.midgardUrl}/actions?txid=${midgardTxid}`);
167
+ const { data } = await thorService_1.thorService.get(`${this.deps.midgardUrl}/actions?txid=${midgardTxid}`);
168
168
  // https://gitlab.com/thorchain/thornode/-/blob/develop/common/tx.go#L22
169
169
  // responseData?.actions[0].out[0].txID should be the txId for consistency, but the outbound Tx for Thor rune swaps is actually a BlankTxId
170
170
  // so we use the buyTxId for completion detection
171
- const buyTxid = ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.actions[0]) === null || _a === void 0 ? void 0 : _a.status) === 'success' && ((_b = responseData === null || responseData === void 0 ? void 0 : responseData.actions[0]) === null || _b === void 0 ? void 0 : _b.type) === 'swap'
171
+ const buyTxid = ((_a = data === null || data === void 0 ? void 0 : data.actions[0]) === null || _a === void 0 ? void 0 : _a.status) === 'success' && ((_b = data === null || data === void 0 ? void 0 : data.actions[0]) === null || _b === void 0 ? void 0 : _b.type) === 'swap'
172
172
  ? midgardTxid
173
173
  : '';
174
174
  // This will detect all the errors I have seen.
175
- if (((_c = responseData === null || responseData === void 0 ? void 0 : responseData.actions[0]) === null || _c === void 0 ? void 0 : _c.status) === 'success' &&
176
- ((_d = responseData === null || responseData === void 0 ? void 0 : responseData.actions[0]) === null || _d === void 0 ? void 0 : _d.type) !== 'swap')
175
+ if (((_c = data === null || data === void 0 ? void 0 : data.actions[0]) === null || _c === void 0 ? void 0 : _c.status) === 'success' && ((_d = data === null || data === void 0 ? void 0 : data.actions[0]) === null || _d === void 0 ? void 0 : _d.type) !== 'swap')
177
176
  throw new api_1.SwapError('[getTradeTxs]: trade failed', {
178
177
  code: api_1.SwapErrorTypes.TRADE_FAILED,
179
- cause: responseData,
178
+ cause: data,
180
179
  });
181
- const standardBuyTxid = ((_g = (_f = (_e = responseData === null || responseData === void 0 ? void 0 : responseData.actions[0]) === null || _e === void 0 ? void 0 : _e.out[0]) === null || _f === void 0 ? void 0 : _f.coins[0]) === null || _g === void 0 ? void 0 : _g.asset.startsWith('ETH.'))
180
+ const standardBuyTxid = ((_g = (_f = (_e = data === null || data === void 0 ? void 0 : data.actions[0]) === null || _e === void 0 ? void 0 : _e.out[0]) === null || _f === void 0 ? void 0 : _f.coins[0]) === null || _g === void 0 ? void 0 : _g.asset.startsWith('ETH.'))
182
181
  ? `0x${buyTxid}`
183
182
  : buyTxid;
184
183
  return {
@@ -4,7 +4,7 @@ import type { BTCSignTx, CosmosSignTx, ETHSignTx } from '@shapeshiftoss/hdwallet
4
4
  import { KnownChainIds } from '@shapeshiftoss/types';
5
5
  import type Web3 from 'web3';
6
6
  import type { Trade, UtxoSupportedChainIds } from '../../api';
7
- export declare type PoolResponse = {
7
+ export declare type MidgardPoolResponse = {
8
8
  asset: string;
9
9
  assetDepth: string;
10
10
  assetPrice: string;
@@ -18,6 +18,18 @@ export declare type PoolResponse = {
18
18
  units: string;
19
19
  volume24h: string;
20
20
  };
21
+ export declare type ThornodePoolResponse = {
22
+ LP_units: string;
23
+ asset: string;
24
+ balance_asset: string;
25
+ balance_rune: string;
26
+ pending_inbound_asset: string;
27
+ pending_inbound_rune: string;
28
+ pool_units: string;
29
+ status: string;
30
+ synth_supply: string;
31
+ synth_units: string;
32
+ };
21
33
  declare type MidgardCoins = {
22
34
  asset: string;
23
35
  }[];
@@ -44,6 +56,7 @@ export declare type InboundResponse = {
44
56
  router?: string;
45
57
  };
46
58
  export declare type ThorchainSwapperDeps = {
59
+ daemonUrl: string;
47
60
  midgardUrl: string;
48
61
  adapterManager: ChainAdapterManager;
49
62
  web3: Web3;
@@ -7,7 +7,7 @@ const makeSwapMemo_1 = require("../../makeSwapMemo/makeSwapMemo");
7
7
  const thorService_1 = require("../../thorService");
8
8
  const getThorTxInfo = async ({ deps, sellAsset, buyAsset, sellAmount, slippageTolerance, destinationAddress, xpub, tradeFee, }) => {
9
9
  try {
10
- const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.midgardUrl}/thorchain/inbound_addresses`);
10
+ const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/inbound_addresses`);
11
11
  const sellAssetInboundAddresses = inboundAddresses.find((inbound) => inbound.chain === sellAsset.symbol.toUpperCase());
12
12
  const vault = sellAssetInboundAddresses === null || sellAssetInboundAddresses === void 0 ? void 0 : sellAssetInboundAddresses.address;
13
13
  if (!vault)
@@ -9,7 +9,7 @@ const thorService_1 = require("../thorService");
9
9
  const cosmosTxData = async (input) => {
10
10
  const { bip44Params, deps, destinationAddress, sellAmount, sellAsset, buyAsset, slippageTolerance, quote, wallet, sellAdapter, } = input;
11
11
  const fromThorAsset = sellAsset.chainId == types_1.KnownChainIds.ThorchainMainnet;
12
- const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.midgardUrl}/thorchain/inbound_addresses`);
12
+ const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/inbound_addresses`);
13
13
  const atomInboundAddresses = inboundAddresses.find((inbound) => inbound.chain === 'GAIA');
14
14
  const vault = atomInboundAddresses === null || atomInboundAddresses === void 0 ? void 0 : atomInboundAddresses.address;
15
15
  if (!vault && !fromThorAsset)
@@ -19,7 +19,7 @@ const estimateTradeFee = async (deps, buyAsset) => {
19
19
  details: { buyAssetId: buyAsset.assetId },
20
20
  });
21
21
  const thorPoolChainId = thorId.slice(0, thorId.indexOf('.'));
22
- const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.midgardUrl}/thorchain/inbound_addresses`);
22
+ const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/inbound_addresses`);
23
23
  const inboundInfo = inboundAddresses.find((inbound) => inbound.chain === thorPoolChainId);
24
24
  if (!inboundInfo)
25
25
  throw new api_1.SwapError('[estimateTradeFee] - unable to locate inbound pool info', {
@@ -11,7 +11,7 @@ const getThorTxInfo = async ({ deps, sellAsset, buyAsset, sellAmount, slippageTo
11
11
  try {
12
12
  const { assetReference, assetNamespace } = (0, caip_1.fromAssetId)(sellAsset.assetId);
13
13
  const isErc20Trade = assetNamespace === 'erc20';
14
- const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.midgardUrl}/thorchain/inbound_addresses`);
14
+ const { data: inboundAddresses } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/inbound_addresses`);
15
15
  const ethInboundAddresses = inboundAddresses.find((inbound) => inbound.chain === 'ETH');
16
16
  const vault = ethInboundAddresses === null || ethInboundAddresses === void 0 ? void 0 : ethInboundAddresses.address;
17
17
  const router = ethInboundAddresses === null || ethInboundAddresses === void 0 ? void 0 : ethInboundAddresses.router;
@@ -6,25 +6,34 @@ const api_1 = require("../../../../api");
6
6
  const bignumber_1 = require("../../../utils/bignumber");
7
7
  const thorService_1 = require("../thorService");
8
8
  const getPriceRatio = async (deps, input) => {
9
- var _a, _b;
10
9
  const { buyAssetId, sellAssetId } = input;
11
10
  try {
12
11
  const buyPoolId = caip_1.adapters.assetIdToPoolAssetId({ assetId: buyAssetId });
13
12
  const sellPoolId = caip_1.adapters.assetIdToPoolAssetId({ assetId: sellAssetId });
14
- if (!buyPoolId || !sellPoolId)
13
+ if (!buyPoolId || !sellPoolId) {
15
14
  throw new api_1.SwapError(`[getPriceRatio]: No thorchain pool found`, {
16
15
  code: api_1.SwapErrorTypes.RESPONSE_ERROR,
17
16
  details: { buyPoolId, sellPoolId },
18
17
  });
19
- const { data: responseData } = await thorService_1.thorService.get(`${deps.midgardUrl}/pools`);
20
- const buyUsdPrice = (_a = responseData.find((response) => response.asset === buyPoolId)) === null || _a === void 0 ? void 0 : _a.assetPrice;
21
- const sellUsdPrice = (_b = responseData.find((response) => response.asset === sellPoolId)) === null || _b === void 0 ? void 0 : _b.assetPrice;
22
- if (!buyUsdPrice || !sellUsdPrice)
23
- throw new api_1.SwapError(`[getPriceRatio]: No rate found for pools`, {
18
+ }
19
+ const { data: responseData } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/pools`);
20
+ const buyPool = responseData.find((response) => response.asset === buyPoolId);
21
+ const sellPool = responseData.find((response) => response.asset === sellPoolId);
22
+ if (!buyPool || !sellPool) {
23
+ throw new api_1.SwapError(`[getPriceRatio]: pools not found`, {
24
24
  code: api_1.SwapErrorTypes.RESPONSE_ERROR,
25
25
  details: { buyPoolId, sellPoolId },
26
26
  });
27
- return (0, bignumber_1.bnOrZero)(sellUsdPrice).dividedBy(buyUsdPrice).toString();
27
+ }
28
+ const buyPrice = (0, bignumber_1.bn)(buyPool.balance_rune).dividedBy(buyPool.balance_asset);
29
+ const sellPrice = (0, bignumber_1.bn)(sellPool.balance_rune).dividedBy(sellPool.balance_asset);
30
+ if (!buyPrice.gt(0) || !sellPrice.gt(0)) {
31
+ throw new api_1.SwapError(`[getPriceRatio]: invalid pool price`, {
32
+ code: api_1.SwapErrorTypes.RESPONSE_ERROR,
33
+ details: { buyPrice, sellPrice },
34
+ });
35
+ }
36
+ return sellPrice.dividedBy(buyPrice).toString();
28
37
  }
29
38
  catch (e) {
30
39
  if (e instanceof api_1.SwapError)
@@ -8,12 +8,12 @@ const getPriceRatio_1 = require("../getPriceRatio/getPriceRatio");
8
8
  const isRune_1 = require("../isRune/isRune");
9
9
  const thorService_1 = require("../thorService");
10
10
  const THOR_PRECISION = 8;
11
- const getSwapOutput = (inputAmount, poolData, toRune) => {
11
+ const getSwapOutput = (inputAmount, pool, toRune) => {
12
12
  const x = inputAmount;
13
- const X = toRune ? poolData.assetBalance : poolData.runeBalance;
14
- const Y = toRune ? poolData.runeBalance : poolData.assetBalance;
15
- const numerator = x.times(X).times(Y);
16
- const denominator = x.plus(X).pow(2);
13
+ const X = toRune ? pool.balance_asset : pool.balance_rune;
14
+ const Y = toRune ? pool.balance_rune : pool.balance_asset;
15
+ const numerator = (0, bignumber_1.bn)(x).times(X).times(Y);
16
+ const denominator = (0, bignumber_1.bn)(x).plus(X).pow(2);
17
17
  return numerator.div(denominator);
18
18
  };
19
19
  const getDoubleSwapOutput = (input, inputPool, outputPool) => {
@@ -47,59 +47,18 @@ const getTradeRate = async (sellAsset, buyAssetId, sellAmount, deps) => {
47
47
  details: { sellAsset: sellAsset.assetId },
48
48
  });
49
49
  }
50
- const { data: responseData } = await thorService_1.thorService.get(`${deps.midgardUrl}/pools`);
51
- const buyPool = buyPoolId && responseData.find((response) => response.asset === buyPoolId);
52
- const sellPool = sellPoolId && responseData.find((response) => response.asset === sellPoolId);
53
- if (buyPoolId && !buyPool) {
54
- throw new api_1.SwapError(`[getTradeRate]: No buyPool for poolId ${buyPoolId}`, {
50
+ const { data } = await thorService_1.thorService.get(`${deps.daemonUrl}/lcd/thorchain/pools`);
51
+ const buyPool = buyPoolId && data.find((response) => response.asset === buyPoolId);
52
+ const sellPool = sellPoolId && data.find((response) => response.asset === sellPoolId);
53
+ if (!buyPool || !sellPool)
54
+ throw new api_1.SwapError(`[getPriceRatio]: no pools found`, {
55
55
  code: api_1.SwapErrorTypes.POOL_NOT_FOUND,
56
- fn: 'getTradeRate',
57
- details: { buyPoolId },
58
- });
59
- }
60
- if (sellPoolId && !sellPool) {
61
- throw new api_1.SwapError(`[getTradeRate]: No sellPool for poolId ${sellPoolId}`, {
62
- code: api_1.SwapErrorTypes.POOL_NOT_FOUND,
63
- fn: 'getTradeRate',
64
- details: { sellPoolId },
56
+ fn: 'getPriceRatio',
57
+ details: { buyPoolId, sellPoolId },
65
58
  });
66
- }
67
59
  // All thorchain pool amounts are base 8 regardless of token precision
68
60
  const sellBaseAmount = (0, bignumber_1.bn)((0, bignumber_1.toBaseUnit)((0, bignumber_1.fromBaseUnit)(sellAmount, sellAsset.precision), THOR_PRECISION));
69
- const doubleSwap = buyPool != undefined && sellPool != undefined;
70
- const toRune = buyAssetId === caip_1.thorchainAssetId;
71
- const outputAmountBase8 = (() => {
72
- if (doubleSwap && sellPool && buyPool) {
73
- const sellAssetPoolData = {
74
- assetBalance: (0, bignumber_1.bn)(sellPool.assetDepth),
75
- runeBalance: (0, bignumber_1.bn)(sellPool.runeDepth),
76
- };
77
- const buyAssetPoolData = {
78
- assetBalance: (0, bignumber_1.bn)(buyPool.assetDepth),
79
- runeBalance: (0, bignumber_1.bn)(buyPool.runeDepth),
80
- };
81
- return getDoubleSwapOutput(sellBaseAmount, sellAssetPoolData, buyAssetPoolData);
82
- }
83
- else {
84
- const poolData = sellPool
85
- ? {
86
- assetBalance: (0, bignumber_1.bn)(sellPool.assetDepth),
87
- runeBalance: (0, bignumber_1.bn)(sellPool.runeDepth),
88
- }
89
- : buyPool && {
90
- assetBalance: (0, bignumber_1.bn)(buyPool.assetDepth),
91
- runeBalance: (0, bignumber_1.bn)(buyPool.runeDepth),
92
- };
93
- if (!poolData) {
94
- throw new api_1.SwapError(`[getPriceRatio]: No pool data for rune swap`, {
95
- code: api_1.SwapErrorTypes.POOL_NOT_FOUND,
96
- fn: 'getPriceRatio',
97
- details: { buyAssetId, sellAsset, buyPool, sellPool },
98
- });
99
- }
100
- return getSwapOutput(sellBaseAmount, poolData, toRune);
101
- }
102
- })();
61
+ const outputAmountBase8 = getDoubleSwapOutput(sellBaseAmount, sellPool, buyPool);
103
62
  const outputAmount = (0, bignumber_1.fromBaseUnit)(outputAmountBase8, THOR_PRECISION);
104
63
  return (0, bignumber_1.bn)(outputAmount).div((0, bignumber_1.fromBaseUnit)(sellAmount, sellAsset.precision)).toString();
105
64
  };
@@ -18,10 +18,11 @@ const getUsdRate = async ({ deps, input, }) => {
18
18
  }
19
19
  return caip_1.adapters.assetIdToPoolAssetId({ assetId });
20
20
  })();
21
- if (!thorchainPoolId)
21
+ if (!thorchainPoolId) {
22
22
  throw new api_1.SwapError(`[getUsdRate]: No thorchainPoolId found for assetId: ${assetId}`, {
23
23
  code: api_1.SwapErrorTypes.USD_RATE_FAILED,
24
24
  });
25
+ }
25
26
  const { data: responseData } = await thorService_1.thorService.get(`${deps.midgardUrl}/pool/${thorchainPoolId}`);
26
27
  const rate = (() => {
27
28
  if ((0, isRune_1.isRune)(assetId)) {
@@ -0,0 +1,8 @@
1
+ import { InboundResponse, MidgardPoolResponse, ThornodePoolResponse } from '../../types';
2
+ export declare const btcMidgardPool: MidgardPoolResponse;
3
+ export declare const btcThornodePool: ThornodePoolResponse;
4
+ export declare const ethMidgardPool: MidgardPoolResponse;
5
+ export declare const ethThornodePool: ThornodePoolResponse;
6
+ export declare const foxMidgardPool: MidgardPoolResponse;
7
+ export declare const foxThornodePool: ThornodePoolResponse;
8
+ export declare const mockInboundAdresses: InboundResponse[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.poolResponse = exports.mockInboundAdresses = exports.foxMidgardPool = exports.ethMidgardPool = exports.btcMidgardPool = void 0;
3
+ exports.mockInboundAdresses = exports.foxThornodePool = exports.foxMidgardPool = exports.ethThornodePool = exports.ethMidgardPool = exports.btcThornodePool = exports.btcMidgardPool = void 0;
4
4
  exports.btcMidgardPool = {
5
5
  asset: 'BTC.BTC',
6
6
  assetDepth: '91027798705',
@@ -15,6 +15,18 @@ exports.btcMidgardPool = {
15
15
  units: '545894929144923',
16
16
  volume24h: '15031085906495',
17
17
  };
18
+ exports.btcThornodePool = {
19
+ LP_units: '536055974608843',
20
+ asset: 'BTC.BTC',
21
+ balance_asset: '91027798705',
22
+ balance_rune: '935827756491105',
23
+ pending_inbound_asset: '0',
24
+ pending_inbound_rune: '0',
25
+ pool_units: '545894929144923',
26
+ status: 'Available',
27
+ synth_supply: '3281284823',
28
+ synth_units: '9838954536080',
29
+ };
18
30
  exports.ethMidgardPool = {
19
31
  asset: 'ETH.ETH',
20
32
  assetDepth: '915018987646',
@@ -29,6 +41,18 @@ exports.ethMidgardPool = {
29
41
  units: '274245264962453',
30
42
  volume24h: '9890096673763',
31
43
  };
44
+ exports.ethThornodePool = {
45
+ LP_units: '273709963437801',
46
+ asset: 'ETH.ETH',
47
+ balance_asset: '915018987646',
48
+ balance_rune: '618746706022909',
49
+ pending_inbound_asset: '0',
50
+ pending_inbound_rune: '0',
51
+ pool_units: '274245264962453',
52
+ status: 'Available',
53
+ synth_supply: '3572065751',
54
+ synth_units: '535301524652',
55
+ };
32
56
  exports.foxMidgardPool = {
33
57
  asset: 'ETH.FOX-0XC770EEFAD204B5180DF6A14EE197D99D808EE52D',
34
58
  assetDepth: '166650912393467',
@@ -43,6 +67,18 @@ exports.foxMidgardPool = {
43
67
  units: '10568061707512',
44
68
  volume24h: '251596933033',
45
69
  };
70
+ exports.foxThornodePool = {
71
+ LP_units: '10015457121887',
72
+ asset: 'ETH.FOX-0XC770EEFAD204B5180DF6A14EE197D99D808EE52D',
73
+ balance_asset: '166650912393467',
74
+ balance_rune: '8838681437152',
75
+ pending_inbound_asset: '0',
76
+ pending_inbound_rune: '0',
77
+ pool_units: '10568061707512',
78
+ status: 'Available',
79
+ synth_supply: '17428372569375',
80
+ synth_units: '552604585625',
81
+ };
46
82
  exports.mockInboundAdresses = [
47
83
  {
48
84
  chain: 'BCH',
@@ -95,4 +131,3 @@ exports.mockInboundAdresses = [
95
131
  gas_rate: '182523800',
96
132
  },
97
133
  ];
98
- exports.poolResponse = [exports.btcMidgardPool, exports.ethMidgardPool, exports.foxMidgardPool];
@@ -44,9 +44,7 @@ const setupThorswapDeps = () => {
44
44
  },
45
45
  ],
46
46
  ]);
47
- const midgardUrl = 'localhost:3000';
48
- const ethNodeUrl = 'http://localhost:1000';
49
- const web3Provider = new web3_1.default.providers.HttpProvider(ethNodeUrl);
50
- return { adapterManager, midgardUrl, web3: new web3_1.default(web3Provider) };
47
+ const web3Provider = new web3_1.default.providers.HttpProvider('');
48
+ return { adapterManager, midgardUrl: '', daemonUrl: '', web3: new web3_1.default(web3Provider) };
51
49
  };
52
50
  exports.setupThorswapDeps = setupThorswapDeps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "11.3.1",
3
+ "version": "11.4.0",
4
4
  "description": "An interface and implementations to trade coins via various protocols",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",
@@ -1,6 +0,0 @@
1
- import { InboundResponse, PoolResponse } from '../../types';
2
- export declare const btcMidgardPool: PoolResponse;
3
- export declare const ethMidgardPool: PoolResponse;
4
- export declare const foxMidgardPool: PoolResponse;
5
- export declare const mockInboundAdresses: InboundResponse[];
6
- export declare const poolResponse: PoolResponse[];