@shapeshiftoss/caip 6.9.1 → 6.10.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assetIdToPoolAssetId = exports.poolAssetIdToAssetId = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
// derived from https://midgard.thorchain.info/v2/pools
|
|
5
6
|
// Rarely changes. Will need to be updated as we add additional assets to thor swapper
|
|
6
7
|
const thorPoolIdAssetIdSymbolMap = {
|
|
@@ -26,8 +27,12 @@ const thorPoolIdAssetIdSymbolMap = {
|
|
|
26
27
|
'ETH.ALPHA-0XA1FAA113CBE53436DF28FF0AEE54275C13B40975': 'eip155:1/erc20:0xa1faa113cbe53436df28ff0aee54275c13b40975',
|
|
27
28
|
'ETH.ALCX-0XDBDB4D16EDA451D0503B854CF79D55697F90C8DF': 'eip155:1/erc20:0xdbdb4d16eda451d0503b854cf79d55697f90c8df',
|
|
28
29
|
'ETH.AAVE-0X7FC66500C84A76AD7E9C93437BFC5AC33E2DDAE9': 'eip155:1/erc20:0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9',
|
|
29
|
-
'BTC.BTC':
|
|
30
|
-
'ETH.ETH':
|
|
30
|
+
'BTC.BTC': constants_1.btcAssetId,
|
|
31
|
+
'ETH.ETH': constants_1.ethAssetId,
|
|
32
|
+
'LTC.LTC': constants_1.ltcAssetId,
|
|
33
|
+
'DOGE.DOGE': constants_1.dogeAssetId,
|
|
34
|
+
'GAIA.ATOM': constants_1.cosmosAssetId
|
|
35
|
+
// 'BCH.BCH': bchAssetId // uncomment when we support bch
|
|
31
36
|
};
|
|
32
37
|
const invert = (data) => Object.entries(data).reduce((acc, [k, v]) => ((acc[v] = k), acc), {});
|
|
33
38
|
const assetIdToPoolAssetIdMap = invert(thorPoolIdAssetIdSymbolMap);
|