@clonegod/ttd-core 2.0.54 → 2.0.56

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/dist/index.d.ts CHANGED
@@ -54,7 +54,9 @@ export declare enum DEX_ID {
54
54
  UNISWAP_CLMM = "UNISWAP-CLMM",
55
55
  UNISWAP_V4 = "UNISWAP-V4",
56
56
  LFJ_V1 = "LFJ-V1",
57
- LFJ_V2 = "LFJ-V2"
57
+ LFJ_V2 = "LFJ-V2",
58
+ BLACKHOLE_V2 = "BLACKHOLE-V2",
59
+ BLACKHOLE_V3 = "BLACKHOLE-V3"
58
60
  }
59
61
  export declare enum GROUP_ID {
60
62
  TRON_DEV1 = "TRON-DEV1",
package/dist/index.js CHANGED
@@ -139,6 +139,8 @@ var DEX_ID;
139
139
  DEX_ID["UNISWAP_V4"] = "UNISWAP-V4";
140
140
  DEX_ID["LFJ_V1"] = "LFJ-V1";
141
141
  DEX_ID["LFJ_V2"] = "LFJ-V2";
142
+ DEX_ID["BLACKHOLE_V2"] = "BLACKHOLE-V2";
143
+ DEX_ID["BLACKHOLE_V3"] = "BLACKHOLE-V3";
142
144
  })(DEX_ID || (exports.DEX_ID = DEX_ID = {}));
143
145
  var GROUP_ID;
144
146
  (function (GROUP_ID) {
@@ -18,7 +18,6 @@ const axios_1 = __importDefault(require("axios"));
18
18
  const index_1 = require("../../index");
19
19
  const gecko_terminal_1 = require("./gecko_terminal");
20
20
  const price_cache_1 = require("./price_cache");
21
- const chains_1 = require("../../chains");
22
21
  function get_eth_token_price_info(evm_chain_info, addresses) {
23
22
  return __awaiter(this, void 0, void 0, function* () {
24
23
  addresses = addresses.map(addr => addr.toLowerCase());
@@ -156,14 +155,4 @@ function fetchPriceFromUniSwap(chain_name, addresses) {
156
155
  });
157
156
  }
158
157
  if (require.main === module) {
159
- (() => __awaiter(void 0, void 0, void 0, function* () {
160
- let evm_chain_info = chains_1.EvmChainConfig.AVAX;
161
- let addresses = [
162
- "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7".toLowerCase(),
163
- "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB".toLowerCase(),
164
- "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E".toLowerCase(),
165
- "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7".toLowerCase(),
166
- ];
167
- console.log(yield fetchPriceFromUniSwap(evm_chain_info.chain_full_name, addresses));
168
- }))();
169
158
  }
@@ -11,6 +11,7 @@ const formate_token_symbol = (symbol) => {
11
11
  .replace('WETH', 'ETH').replace('WHETH', 'ETH')
12
12
  .replace('WBNB', 'BNB')
13
13
  .replace('WTRX', 'TRX')
14
+ .replace('WAVAX', 'AVAX')
14
15
  .trim();
15
16
  };
16
17
  exports.formate_token_symbol = formate_token_symbol;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "2.0.54",
3
+ "version": "2.0.56",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",