@pioneer-platform/pioneer-sdk 8.12.5 → 8.12.8
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 +4 -0
- package/dist/index.es.js +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/txbuilder/createUnsignedEvmTx.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1215,6 +1215,7 @@ async function createUnsignedEvmTx(caip, to, amount, memo, pubkeys, pioneer, pub
|
|
|
1215
1215
|
}
|
|
1216
1216
|
unsignedTx = {
|
|
1217
1217
|
chainId,
|
|
1218
|
+
from: address,
|
|
1218
1219
|
nonce: toHex(nonce),
|
|
1219
1220
|
gas: toHex(gasLimit),
|
|
1220
1221
|
gasPrice: toHex(gasPrice),
|
|
@@ -3877,6 +3878,9 @@ class SDK {
|
|
|
3877
3878
|
}
|
|
3878
3879
|
}
|
|
3879
3880
|
await this.getBalances();
|
|
3881
|
+
console.log(tag, "Loading charts (tokens + portfolio)...");
|
|
3882
|
+
await this.getCharts();
|
|
3883
|
+
console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
|
|
3880
3884
|
await this.syncMarket();
|
|
3881
3885
|
const dashboardData = {
|
|
3882
3886
|
networks: [],
|
package/dist/index.es.js
CHANGED
|
@@ -1391,6 +1391,7 @@ async function createUnsignedEvmTx(caip, to, amount, memo, pubkeys, pioneer, pub
|
|
|
1391
1391
|
}
|
|
1392
1392
|
unsignedTx = {
|
|
1393
1393
|
chainId,
|
|
1394
|
+
from: address,
|
|
1394
1395
|
nonce: toHex(nonce),
|
|
1395
1396
|
gas: toHex(gasLimit),
|
|
1396
1397
|
gasPrice: toHex(gasPrice),
|
|
@@ -4053,6 +4054,9 @@ class SDK {
|
|
|
4053
4054
|
}
|
|
4054
4055
|
}
|
|
4055
4056
|
await this.getBalances();
|
|
4057
|
+
console.log(tag, "Loading charts (tokens + portfolio)...");
|
|
4058
|
+
await this.getCharts();
|
|
4059
|
+
console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
|
|
4056
4060
|
await this.syncMarket();
|
|
4057
4061
|
const dashboardData = {
|
|
4058
4062
|
networks: [],
|
package/dist/index.js
CHANGED
|
@@ -1391,6 +1391,7 @@ async function createUnsignedEvmTx(caip, to, amount, memo, pubkeys, pioneer, pub
|
|
|
1391
1391
|
}
|
|
1392
1392
|
unsignedTx = {
|
|
1393
1393
|
chainId,
|
|
1394
|
+
from: address,
|
|
1394
1395
|
nonce: toHex(nonce),
|
|
1395
1396
|
gas: toHex(gasLimit),
|
|
1396
1397
|
gasPrice: toHex(gasPrice),
|
|
@@ -4053,6 +4054,9 @@ class SDK {
|
|
|
4053
4054
|
}
|
|
4054
4055
|
}
|
|
4055
4056
|
await this.getBalances();
|
|
4057
|
+
console.log(tag, "Loading charts (tokens + portfolio)...");
|
|
4058
|
+
await this.getCharts();
|
|
4059
|
+
console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
|
|
4056
4060
|
await this.syncMarket();
|
|
4057
4061
|
const dashboardData = {
|
|
4058
4062
|
networks: [],
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -786,6 +786,12 @@ export class SDK {
|
|
|
786
786
|
}
|
|
787
787
|
await this.getBalances();
|
|
788
788
|
|
|
789
|
+
// Load charts (portfolio + ERC20 tokens + staking positions)
|
|
790
|
+
// This is CRITICAL for discovering user's token balances (USDT, USDC, etc.)
|
|
791
|
+
console.log(tag, 'Loading charts (tokens + portfolio)...');
|
|
792
|
+
await this.getCharts();
|
|
793
|
+
console.log(tag, `Charts loaded. Total balances: ${this.balances.length}`);
|
|
794
|
+
|
|
789
795
|
// Sync market prices for all balances
|
|
790
796
|
await this.syncMarket();
|
|
791
797
|
|