@pioneer-platform/pioneer-sdk 8.15.4 → 8.15.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 CHANGED
@@ -773,8 +773,15 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
773
773
  balances.push(...evmBalances);
774
774
  const mayaBalances = await getMayaCharts(params, balances);
775
775
  balances.push(...mayaBalances);
776
- const stakingBalances = await getCosmosStakingCharts(params);
777
- balances.push(...stakingBalances);
776
+ console.log(tag5, "About to call getCosmosStakingCharts...");
777
+ try {
778
+ const stakingBalances = await getCosmosStakingCharts(params);
779
+ console.log(tag5, "getCosmosStakingCharts returned", stakingBalances.length, "balances");
780
+ balances.push(...stakingBalances);
781
+ } catch (stakingError) {
782
+ console.error(tag5, "Error in getCosmosStakingCharts:", stakingError);
783
+ }
784
+ console.log(tag5, "Final balance count:", balances.length);
778
785
  return balances;
779
786
  } catch (error) {
780
787
  console.error(tag5, "Error processing charts:", error);
package/dist/index.es.js CHANGED
@@ -764,8 +764,15 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
764
764
  balances.push(...evmBalances);
765
765
  const mayaBalances = await getMayaCharts(params, balances);
766
766
  balances.push(...mayaBalances);
767
- const stakingBalances = await getCosmosStakingCharts(params);
768
- balances.push(...stakingBalances);
767
+ console.log(tag5, "About to call getCosmosStakingCharts...");
768
+ try {
769
+ const stakingBalances = await getCosmosStakingCharts(params);
770
+ console.log(tag5, "getCosmosStakingCharts returned", stakingBalances.length, "balances");
771
+ balances.push(...stakingBalances);
772
+ } catch (stakingError) {
773
+ console.error(tag5, "Error in getCosmosStakingCharts:", stakingError);
774
+ }
775
+ console.log(tag5, "Final balance count:", balances.length);
769
776
  return balances;
770
777
  } catch (error) {
771
778
  console.error(tag5, "Error processing charts:", error);
package/dist/index.js CHANGED
@@ -764,8 +764,15 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
764
764
  balances.push(...evmBalances);
765
765
  const mayaBalances = await getMayaCharts(params, balances);
766
766
  balances.push(...mayaBalances);
767
- const stakingBalances = await getCosmosStakingCharts(params);
768
- balances.push(...stakingBalances);
767
+ console.log(tag5, "About to call getCosmosStakingCharts...");
768
+ try {
769
+ const stakingBalances = await getCosmosStakingCharts(params);
770
+ console.log(tag5, "getCosmosStakingCharts returned", stakingBalances.length, "balances");
771
+ balances.push(...stakingBalances);
772
+ } catch (stakingError) {
773
+ console.error(tag5, "Error in getCosmosStakingCharts:", stakingError);
774
+ }
775
+ console.log(tag5, "Final balance count:", balances.length);
769
776
  return balances;
770
777
  } catch (error) {
771
778
  console.error(tag5, "Error processing charts:", error);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "highlander",
3
3
  "name": "@pioneer-platform/pioneer-sdk",
4
- "version": "8.15.4",
4
+ "version": "8.15.5",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
7
  "@pioneer-platform/loggerdog": "^8.11.0",
@@ -35,9 +35,17 @@ export const getCharts = async (
35
35
  balances.push(...mayaBalances);
36
36
 
37
37
  // Add Cosmos Staking Positions to charts
38
- const stakingBalances = await getCosmosStakingCharts(params);
39
- balances.push(...stakingBalances);
40
-
38
+ console.log(tag, 'About to call getCosmosStakingCharts...');
39
+ try {
40
+ const stakingBalances = await getCosmosStakingCharts(params);
41
+ console.log(tag, 'getCosmosStakingCharts returned', stakingBalances.length, 'balances');
42
+ balances.push(...stakingBalances);
43
+ } catch (stakingError) {
44
+ console.error(tag, 'Error in getCosmosStakingCharts:', stakingError);
45
+ // Don't throw, continue with other balances
46
+ }
47
+
48
+ console.log(tag, 'Final balance count:', balances.length);
41
49
  return balances;
42
50
  } catch (error) {
43
51
  console.error(tag, 'Error processing charts:', error);