@pioneer-platform/pioneer 8.2.3 → 8.2.4
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.d.ts +1 -2
- package/lib/index.js +5 -22
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ declare const uuid: any;
|
|
|
4
4
|
declare let blocknative: any;
|
|
5
5
|
declare const blockbook: any;
|
|
6
6
|
declare let zapper: any;
|
|
7
|
-
declare let evmCaips: any;
|
|
8
|
-
declare const shortListSymbolToCaip: any;
|
|
7
|
+
declare let shortListSymbolToCaip: any, evmCaips: any;
|
|
9
8
|
declare const networks: any;
|
|
10
9
|
declare let supportedBlockchains: any, supportedAssets: any, getPaths: any, get_address_from_xpub: any, getNativeAssetForBlockchain: any;
|
|
11
10
|
declare var numbro: any;
|
package/lib/index.js
CHANGED
|
@@ -83,24 +83,7 @@ var blockbook = require('@pioneer-platform/blockbook');
|
|
|
83
83
|
// const foxitar = require("@pioneer-platform/foxitar-client")
|
|
84
84
|
var zapper = require("@pioneer-platform/zapper-client");
|
|
85
85
|
//@ts-ignore
|
|
86
|
-
var
|
|
87
|
-
var shortListSymbolToCaip = {
|
|
88
|
-
BTC: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
|
|
89
|
-
ATOM: 'cosmos:cosmoshub-4/slip44:118',
|
|
90
|
-
OSMO: 'cosmos:osmosis-1/slip44:118',
|
|
91
|
-
BCH: 'bip122:000000000000000000651ef99cb9fcbe/slip44:145',
|
|
92
|
-
LTC: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
|
|
93
|
-
DASH: 'bip122:dash-hash/slip44:5',
|
|
94
|
-
DGB: 'bip122:digibytes-hash/slip44:20',
|
|
95
|
-
DOGE: 'bip122:00000000001a91e3dace36e2be3bf030/slip44:3',
|
|
96
|
-
RUNE: 'cosmos:thorchain-mainnet-v1/slip44:931',
|
|
97
|
-
ETH: 'eip155:1/slip44:60',
|
|
98
|
-
AVAX: 'placeholder:caip:avalanchec:native:avalanche-c-chain',
|
|
99
|
-
ADA: 'placeholder:caip:cardano:native:cardano',
|
|
100
|
-
BNB: 'placeholder:caip:binance:native:bnb-beacon-chain',
|
|
101
|
-
EOS: 'eos:cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f/slip44:194',
|
|
102
|
-
FIO: 'placeholder:caip:fio:native:fio-protocol'
|
|
103
|
-
};
|
|
86
|
+
var _a = require("@pioneer-platform/pioneer-caip"), shortListSymbolToCaip = _a.shortListSymbolToCaip, evmCaips = _a.evmCaips;
|
|
104
87
|
var networks = {
|
|
105
88
|
'ETH': require('@pioneer-platform/eth-network'),
|
|
106
89
|
'ATOM': require('@pioneer-platform/cosmos-network'),
|
|
@@ -111,11 +94,11 @@ var networks = {
|
|
|
111
94
|
'ANY': require('@pioneer-platform/utxo-network'),
|
|
112
95
|
'RUNE': require('@pioneer-platform/thor-network'),
|
|
113
96
|
};
|
|
114
|
-
var
|
|
97
|
+
var _b = require('@pioneer-platform/cointools'), supportedBlockchains = _b.supportedBlockchains, supportedAssets = _b.supportedAssets, getPaths = _b.getPaths, get_address_from_xpub = _b.get_address_from_xpub, getNativeAssetForBlockchain = _b.getNativeAssetForBlockchain;
|
|
115
98
|
//const bcrypt = require('bcryptjs');
|
|
116
99
|
var numbro = require("numbro");
|
|
117
100
|
var log = require('@pioneer-platform/loggerdog')();
|
|
118
|
-
var
|
|
101
|
+
var _c = require('@pioneer-platform/default-redis'), subscriber = _c.subscriber, publisher = _c.publisher, redis = _c.redis, redisQueue = _c.redisQueue;
|
|
119
102
|
var connection = require("@pioneer-platform/default-mongo");
|
|
120
103
|
var wait = require('wait-promise');
|
|
121
104
|
var sleep = wait.sleep;
|
|
@@ -304,8 +287,8 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
304
287
|
// Update balance
|
|
305
288
|
balances_1.push({
|
|
306
289
|
network: pubkey.symbol,
|
|
307
|
-
blockchainCaip: shortListSymbolToCaip
|
|
308
|
-
assetCaip: shortListSymbolToCaip
|
|
290
|
+
blockchainCaip: shortListSymbolToCaip[pubkey.symbol],
|
|
291
|
+
assetCaip: shortListSymbolToCaip[pubkey.symbol],
|
|
309
292
|
asset: pubkey.symbol,
|
|
310
293
|
symbol: pubkey.symbol,
|
|
311
294
|
pubkey: pubkey.pubkey,
|