@clonegod/ttd-core 2.0.37 → 2.0.38
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.
|
@@ -20,8 +20,8 @@ const gecko_terminal_1 = require("./gecko_terminal");
|
|
|
20
20
|
const price_cache_1 = require("./price_cache");
|
|
21
21
|
function get_tron_token_price_info(addresses) {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
(0, index_1.log_info)(`get_tron_token_price_info`, addresses);
|
|
23
24
|
const result = new Map();
|
|
24
|
-
addresses = addresses.map(e => e.toUpperCase());
|
|
25
25
|
const PRICE_CHANNELS = [
|
|
26
26
|
{
|
|
27
27
|
name: 'CachedPrice',
|
|
@@ -192,10 +192,8 @@ function fetchPriceFromTronscanALL(addresses) {
|
|
|
192
192
|
if (require.main === module) {
|
|
193
193
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
194
194
|
let addresses = [
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9",
|
|
195
|
+
"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
|
|
196
|
+
"TMacq4TDUw5q8NFBwmbY4RLXvzvG5JTkvi",
|
|
198
197
|
];
|
|
199
|
-
console.log(yield (0, gecko_terminal_1.fetchPriceFromGeckoTerminal)(index_1.CHAIN_ID.TRON, addresses));
|
|
200
198
|
}))();
|
|
201
199
|
}
|