@pioneer-platform/pioneer 8.2.4 → 8.2.5
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/lib/index.js +9 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -328,7 +328,8 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
328
328
|
var balanceInfo = token.token;
|
|
329
329
|
balanceInfo.network = token.network;
|
|
330
330
|
//get caip for network
|
|
331
|
-
balanceInfo.blockchainCaip = token.
|
|
331
|
+
balanceInfo.blockchainCaip = token.blockchainCaip || 'caip:placeholder:' + token.network;
|
|
332
|
+
balanceInfo.assetCaip = token.assetCaip || 'caip:placeholder:' + token.network + ":" + token.token.symbol;
|
|
332
333
|
balanceInfo.asset = token.token.symbol;
|
|
333
334
|
balanceInfo.symbol = token.token.symbol;
|
|
334
335
|
balanceInfo.pubkey = pubkey.pubkey;
|
|
@@ -340,7 +341,13 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
340
341
|
balanceInfo.protocal = 'erc20';
|
|
341
342
|
}
|
|
342
343
|
balanceInfo.lastUpdated = new Date().getTime();
|
|
344
|
+
balanceInfo.price = token.token.price.toString();
|
|
345
|
+
balanceInfo.coingeckoId = token.token.coingeckoId;
|
|
346
|
+
balanceInfo.dailyVolume = token.token.price.toString();
|
|
347
|
+
balanceInfo.marketCap = token.token.marketCap.toString();
|
|
343
348
|
balanceInfo.balance = token.token.balance.toString();
|
|
349
|
+
balanceInfo.balanceUSD = token.token.balanceUSD.toString();
|
|
350
|
+
balanceInfo.balanceRaw = token.token.balanceRaw.toString();
|
|
344
351
|
balances_1.push(balanceInfo);
|
|
345
352
|
});
|
|
346
353
|
}
|
|
@@ -384,6 +391,7 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
384
391
|
description: "Pioneer",
|
|
385
392
|
source: "pioneer",
|
|
386
393
|
blockchainCaip: 'eip155:1/slip44:60',
|
|
394
|
+
assetCaip: 'eip155:1/slip44:60:' + "",
|
|
387
395
|
pubkey: pubkey.pubkey,
|
|
388
396
|
context: pubkey.context,
|
|
389
397
|
number: allPioneers.owners.indexOf(pubkey.pubkey.toLowerCase()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@pioneer-platform/loggerdog": "^8.1.30",
|
|
26
26
|
"@pioneer-platform/pioneer-caip": "^8.1.75",
|
|
27
27
|
"@pioneer-platform/redis-queue": "^8.1.23",
|
|
28
|
-
"@pioneer-platform/zapper-client": "^8.1.
|
|
28
|
+
"@pioneer-platform/zapper-client": "^8.1.25",
|
|
29
29
|
"dotenv": "^8.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|