@pioneer-platform/pioneer-sdk 4.21.2 → 4.21.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/dist/index.cjs +210 -469
- package/dist/index.es.js +210 -469
- package/dist/index.js +210 -469
- package/package.json +2 -2
- package/src/index.ts +9 -8
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "highlander",
|
|
3
3
|
"name": "@pioneer-platform/pioneer-sdk",
|
|
4
|
-
"version": "4.21.
|
|
4
|
+
"version": "4.21.5",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@keepkey/keepkey-sdk": "^0.2.62",
|
|
7
7
|
"@pioneer-platform/loggerdog": "^8.11.0",
|
|
8
8
|
"@pioneer-platform/pioneer-caip": "^9.10.0",
|
|
9
|
-
"@pioneer-platform/pioneer-client": "^9.10.
|
|
9
|
+
"@pioneer-platform/pioneer-client": "^9.10.9",
|
|
10
10
|
"@pioneer-platform/pioneer-coins": "^9.11.0",
|
|
11
11
|
"@pioneer-platform/pioneer-discovery": "^0.8.0",
|
|
12
12
|
"@pioneer-platform/pioneer-events": "^8.11.0",
|
package/src/index.ts
CHANGED
|
@@ -188,14 +188,6 @@ export class SDK {
|
|
|
188
188
|
if (config.blockchains && config.blockchains.length !== this.blockchains.length) {
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
// Initialize pubkeys with deduplication if provided in config
|
|
192
|
-
if (config.pubkeys && config.pubkeys.length > 0) {
|
|
193
|
-
this.setPubkeys(config.pubkeys);
|
|
194
|
-
} else {
|
|
195
|
-
this.pubkeys = [];
|
|
196
|
-
this.pubkeySet.clear();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
191
|
this.balances = config.balances || [];
|
|
200
192
|
this.nodes = config.nodes || [];
|
|
201
193
|
this.charts = ['covalent', 'zapper'];
|
|
@@ -288,6 +280,15 @@ export class SDK {
|
|
|
288
280
|
}
|
|
289
281
|
};
|
|
290
282
|
|
|
283
|
+
// Initialize pubkeys with deduplication if provided in config
|
|
284
|
+
// IMPORTANT: This must come AFTER setPubkeys is defined above
|
|
285
|
+
if (config.pubkeys && config.pubkeys.length > 0) {
|
|
286
|
+
this.setPubkeys(config.pubkeys);
|
|
287
|
+
} else {
|
|
288
|
+
this.pubkeys = [];
|
|
289
|
+
this.pubkeySet.clear();
|
|
290
|
+
}
|
|
291
|
+
|
|
291
292
|
// Fast portfolio loading from kkapi:// cache
|
|
292
293
|
this.getUnifiedPortfolio = async function () {
|
|
293
294
|
const tag = `${TAG} | getUnifiedPortfolio | `;
|