@pioneer-platform/pioneer-sdk 8.15.3 → 8.15.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/dist/index.cjs CHANGED
@@ -654,12 +654,19 @@ async function getCosmosStakingCharts(params) {
654
654
  } catch (_) {
655
655
  }
656
656
  console.log(tag4, "Adding Cosmos staking positions to charts...");
657
+ console.log(tag4, "Total pubkeys:", pubkeys.length);
658
+ console.log(tag4, "All pubkeys:", pubkeys.map((p) => ({ address: p.address, networks: p.networks })));
657
659
  const cosmosPubkeys = pubkeys.filter((p) => p.networks && Array.isArray(p.networks) && p.networks.some((n) => n.includes("cosmos:cosmoshub") || n.includes("cosmos:osmosis")));
658
660
  if (cosmosPubkeys.length === 0) {
659
661
  console.log(tag4, "No cosmos pubkeys found for staking positions");
662
+ console.log(tag4, "Available networks across all pubkeys:", pubkeys.flatMap((p) => p.networks || []).filter((n) => n));
660
663
  return balances;
661
664
  }
662
665
  console.log(tag4, "Found cosmos pubkeys for staking:", cosmosPubkeys.length);
666
+ console.log(tag4, "Cosmos pubkeys details:", cosmosPubkeys.map((p) => ({
667
+ address: p.address,
668
+ networks: p.networks.filter((n) => n.includes("cosmos"))
669
+ })));
663
670
  await Promise.allSettled(cosmosPubkeys.map(async (cosmosPubkey) => {
664
671
  if (!cosmosPubkey.address)
665
672
  return;
@@ -753,6 +760,9 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
753
760
  try {
754
761
  const balances = [];
755
762
  console.log(tag5, "init");
763
+ console.log(tag5, "blockchains passed to getCharts:", blockchains);
764
+ console.log(tag5, "pubkeys count:", pubkeys?.length || 0);
765
+ console.log(tag5, "context:", context);
756
766
  const params = {
757
767
  blockchains,
758
768
  pioneer,
package/dist/index.es.js CHANGED
@@ -645,12 +645,19 @@ async function getCosmosStakingCharts(params) {
645
645
  } catch (_2) {
646
646
  }
647
647
  console.log(tag4, "Adding Cosmos staking positions to charts...");
648
+ console.log(tag4, "Total pubkeys:", pubkeys.length);
649
+ console.log(tag4, "All pubkeys:", pubkeys.map((p) => ({ address: p.address, networks: p.networks })));
648
650
  const cosmosPubkeys = pubkeys.filter((p) => p.networks && Array.isArray(p.networks) && p.networks.some((n) => n.includes("cosmos:cosmoshub") || n.includes("cosmos:osmosis")));
649
651
  if (cosmosPubkeys.length === 0) {
650
652
  console.log(tag4, "No cosmos pubkeys found for staking positions");
653
+ console.log(tag4, "Available networks across all pubkeys:", pubkeys.flatMap((p) => p.networks || []).filter((n) => n));
651
654
  return balances;
652
655
  }
653
656
  console.log(tag4, "Found cosmos pubkeys for staking:", cosmosPubkeys.length);
657
+ console.log(tag4, "Cosmos pubkeys details:", cosmosPubkeys.map((p) => ({
658
+ address: p.address,
659
+ networks: p.networks.filter((n) => n.includes("cosmos"))
660
+ })));
654
661
  await Promise.allSettled(cosmosPubkeys.map(async (cosmosPubkey) => {
655
662
  if (!cosmosPubkey.address)
656
663
  return;
@@ -744,6 +751,9 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
744
751
  try {
745
752
  const balances = [];
746
753
  console.log(tag5, "init");
754
+ console.log(tag5, "blockchains passed to getCharts:", blockchains);
755
+ console.log(tag5, "pubkeys count:", pubkeys?.length || 0);
756
+ console.log(tag5, "context:", context);
747
757
  const params = {
748
758
  blockchains,
749
759
  pioneer,
package/dist/index.js CHANGED
@@ -645,12 +645,19 @@ async function getCosmosStakingCharts(params) {
645
645
  } catch (_2) {
646
646
  }
647
647
  console.log(tag4, "Adding Cosmos staking positions to charts...");
648
+ console.log(tag4, "Total pubkeys:", pubkeys.length);
649
+ console.log(tag4, "All pubkeys:", pubkeys.map((p) => ({ address: p.address, networks: p.networks })));
648
650
  const cosmosPubkeys = pubkeys.filter((p) => p.networks && Array.isArray(p.networks) && p.networks.some((n) => n.includes("cosmos:cosmoshub") || n.includes("cosmos:osmosis")));
649
651
  if (cosmosPubkeys.length === 0) {
650
652
  console.log(tag4, "No cosmos pubkeys found for staking positions");
653
+ console.log(tag4, "Available networks across all pubkeys:", pubkeys.flatMap((p) => p.networks || []).filter((n) => n));
651
654
  return balances;
652
655
  }
653
656
  console.log(tag4, "Found cosmos pubkeys for staking:", cosmosPubkeys.length);
657
+ console.log(tag4, "Cosmos pubkeys details:", cosmosPubkeys.map((p) => ({
658
+ address: p.address,
659
+ networks: p.networks.filter((n) => n.includes("cosmos"))
660
+ })));
654
661
  await Promise.allSettled(cosmosPubkeys.map(async (cosmosPubkey) => {
655
662
  if (!cosmosPubkey.address)
656
663
  return;
@@ -744,6 +751,9 @@ var tag5 = "| getCharts |", getCharts = async (blockchains, pioneer, pubkeys, co
744
751
  try {
745
752
  const balances = [];
746
753
  console.log(tag5, "init");
754
+ console.log(tag5, "blockchains passed to getCharts:", blockchains);
755
+ console.log(tag5, "pubkeys count:", pubkeys?.length || 0);
756
+ console.log(tag5, "context:", context);
747
757
  const params = {
748
758
  blockchains,
749
759
  pioneer,
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.3",
4
+ "version": "8.15.4",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
7
  "@pioneer-platform/loggerdog": "^8.11.0",
@@ -49,6 +49,8 @@
49
49
  },
50
50
  "react-native": "./src/index.ts",
51
51
  "repository": "https://github.com/thorswap/SwapKit.git",
52
+ "type": "module",
53
+ "types": "./dist/index.d.ts",
52
54
  "scripts": {
53
55
  "build": "bash scripts/build.sh",
54
56
  "build:watch": "nodemon --watch src --exec 'bun run build'",
@@ -56,7 +58,5 @@
56
58
  "lint": "eslint ./ --ext .ts,.tsx --fix; tsc --noEmit",
57
59
  "test": "echo 'vitest --run'",
58
60
  "test:coverage": "echo 'vitest run --coverage'"
59
- },
60
- "type": "module",
61
- "types": "./dist/index.d.ts"
62
- }
61
+ }
62
+ }
@@ -21,6 +21,8 @@ export async function getCosmosStakingCharts(params: ChartParams): Promise<Chart
21
21
  }
22
22
 
23
23
  console.log(tag, 'Adding Cosmos staking positions to charts...');
24
+ console.log(tag, 'Total pubkeys:', pubkeys.length);
25
+ console.log(tag, 'All pubkeys:', pubkeys.map((p: any) => ({ address: p.address, networks: p.networks })));
24
26
 
25
27
  // Find cosmos pubkeys that could have staking positions
26
28
  const cosmosPubkeys = pubkeys.filter(
@@ -34,10 +36,17 @@ export async function getCosmosStakingCharts(params: ChartParams): Promise<Chart
34
36
 
35
37
  if (cosmosPubkeys.length === 0) {
36
38
  console.log(tag, 'No cosmos pubkeys found for staking positions');
39
+ console.log(tag, 'Available networks across all pubkeys:',
40
+ pubkeys.flatMap((p: any) => p.networks || []).filter((n: any) => n)
41
+ );
37
42
  return balances;
38
43
  }
39
44
 
40
45
  console.log(tag, 'Found cosmos pubkeys for staking:', cosmosPubkeys.length);
46
+ console.log(tag, 'Cosmos pubkeys details:', cosmosPubkeys.map((p: any) => ({
47
+ address: p.address,
48
+ networks: p.networks.filter((n: string) => n.includes('cosmos'))
49
+ })));
41
50
 
42
51
  await Promise.allSettled(
43
52
  cosmosPubkeys.map(async (cosmosPubkey: any) => {
@@ -15,7 +15,10 @@ export const getCharts = async (
15
15
  try {
16
16
  const balances: ChartBalance[] = [];
17
17
  console.log(tag, 'init');
18
-
18
+ console.log(tag, 'blockchains passed to getCharts:', blockchains);
19
+ console.log(tag, 'pubkeys count:', pubkeys?.length || 0);
20
+ console.log(tag, 'context:', context);
21
+
19
22
  const params: ChartParams = {
20
23
  blockchains,
21
24
  pioneer,