@pioneer-platform/pioneer-sdk 8.13.0 → 8.13.1

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 CHANGED
@@ -4747,6 +4747,13 @@ class SDK {
4747
4747
  console.log(`⏱️ [PERF] Enrichment completed in ${enrichTime.toFixed(0)}ms`);
4748
4748
  this.balances = balances;
4749
4749
  this.events.emit("SET_BALANCES", this.balances);
4750
+ console.log(`⏱️ [PERF] Building dashboard from ${balances.length} balances...`);
4751
+ const dashboardStart = performance.now();
4752
+ const dashboardData = this.buildDashboardFromBalances();
4753
+ this.dashboard = dashboardData;
4754
+ this.events.emit("SET_DASHBOARD", this.dashboard);
4755
+ console.log(`⏱️ [PERF] Dashboard built in ${(performance.now() - dashboardStart).toFixed(0)}ms`);
4756
+ console.log(`\uD83D\uDCCA Dashboard created: ${this.dashboard?.networks?.length || 0} networks, $${this.dashboard?.totalValueUsd?.toFixed(2) || "0.00"} total`);
4750
4757
  console.log(`⏱️ [PERF] Total getBalancesForNetworks: ${(performance.now() - apiCallStart).toFixed(0)}ms`);
4751
4758
  return this.balances;
4752
4759
  } catch (apiError) {
package/dist/index.es.js CHANGED
@@ -4923,6 +4923,13 @@ class SDK {
4923
4923
  console.log(`⏱️ [PERF] Enrichment completed in ${enrichTime.toFixed(0)}ms`);
4924
4924
  this.balances = balances;
4925
4925
  this.events.emit("SET_BALANCES", this.balances);
4926
+ console.log(`⏱️ [PERF] Building dashboard from ${balances.length} balances...`);
4927
+ const dashboardStart = performance.now();
4928
+ const dashboardData = this.buildDashboardFromBalances();
4929
+ this.dashboard = dashboardData;
4930
+ this.events.emit("SET_DASHBOARD", this.dashboard);
4931
+ console.log(`⏱️ [PERF] Dashboard built in ${(performance.now() - dashboardStart).toFixed(0)}ms`);
4932
+ console.log(`\uD83D\uDCCA Dashboard created: ${this.dashboard?.networks?.length || 0} networks, $${this.dashboard?.totalValueUsd?.toFixed(2) || "0.00"} total`);
4926
4933
  console.log(`⏱️ [PERF] Total getBalancesForNetworks: ${(performance.now() - apiCallStart).toFixed(0)}ms`);
4927
4934
  return this.balances;
4928
4935
  } catch (apiError) {
package/dist/index.js CHANGED
@@ -4923,6 +4923,13 @@ class SDK {
4923
4923
  console.log(`⏱️ [PERF] Enrichment completed in ${enrichTime.toFixed(0)}ms`);
4924
4924
  this.balances = balances;
4925
4925
  this.events.emit("SET_BALANCES", this.balances);
4926
+ console.log(`⏱️ [PERF] Building dashboard from ${balances.length} balances...`);
4927
+ const dashboardStart = performance.now();
4928
+ const dashboardData = this.buildDashboardFromBalances();
4929
+ this.dashboard = dashboardData;
4930
+ this.events.emit("SET_DASHBOARD", this.dashboard);
4931
+ console.log(`⏱️ [PERF] Dashboard built in ${(performance.now() - dashboardStart).toFixed(0)}ms`);
4932
+ console.log(`\uD83D\uDCCA Dashboard created: ${this.dashboard?.networks?.length || 0} networks, $${this.dashboard?.totalValueUsd?.toFixed(2) || "0.00"} total`);
4926
4933
  console.log(`⏱️ [PERF] Total getBalancesForNetworks: ${(performance.now() - apiCallStart).toFixed(0)}ms`);
4927
4934
  return this.balances;
4928
4935
  } catch (apiError) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "highlander",
3
3
  "name": "@pioneer-platform/pioneer-sdk",
4
- "version": "8.13.0",
4
+ "version": "8.13.1",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
7
  "@pioneer-platform/loggerdog": "^8.11.0",
package/src/index.ts CHANGED
@@ -2018,6 +2018,16 @@ export class SDK {
2018
2018
 
2019
2019
  this.balances = balances;
2020
2020
  this.events.emit('SET_BALANCES', this.balances);
2021
+
2022
+ // Build dashboard from balances
2023
+ console.log(`⏱️ [PERF] Building dashboard from ${balances.length} balances...`);
2024
+ const dashboardStart = performance.now();
2025
+ const dashboardData = this.buildDashboardFromBalances();
2026
+ this.dashboard = dashboardData;
2027
+ this.events.emit('SET_DASHBOARD', this.dashboard);
2028
+ console.log(`⏱️ [PERF] Dashboard built in ${(performance.now() - dashboardStart).toFixed(0)}ms`);
2029
+ console.log(`📊 Dashboard created: ${this.dashboard?.networks?.length || 0} networks, $${this.dashboard?.totalValueUsd?.toFixed(2) || '0.00'} total`);
2030
+
2021
2031
  console.log(`⏱️ [PERF] Total getBalancesForNetworks: ${(performance.now() - apiCallStart).toFixed(0)}ms`);
2022
2032
  return this.balances;
2023
2033
  } catch (apiError: any) {