@typus/typus-perp-sdk 1.1.27 → 1.1.28
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/src/fetch.js +7 -7
- package/package.json +1 -1
package/dist/src/fetch.js
CHANGED
|
@@ -362,12 +362,12 @@ function getUserStake(config, user) {
|
|
|
362
362
|
case 0:
|
|
363
363
|
provider = new client_1.SuiClient({ url: config.rpcEndpoint });
|
|
364
364
|
tx = new transactions_1.Transaction();
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
});
|
|
365
|
+
// allocateIncentive(tx, {
|
|
366
|
+
// version: STAKE_POOL_VERSION,
|
|
367
|
+
// registry: STAKE_POOL,
|
|
368
|
+
// index: BigInt(0),
|
|
369
|
+
// clock: CLOCK,
|
|
370
|
+
// });
|
|
371
371
|
(0, functions_2.getUserShares)(tx, {
|
|
372
372
|
registry: _1.STAKE_POOL,
|
|
373
373
|
index: BigInt(0),
|
|
@@ -378,7 +378,7 @@ function getUserStake(config, user) {
|
|
|
378
378
|
res = _a.sent();
|
|
379
379
|
// console.log(res);
|
|
380
380
|
if (res.results) {
|
|
381
|
-
returnValues = res.results[
|
|
381
|
+
returnValues = res.results[0].returnValues[0][0];
|
|
382
382
|
reader = new bcs_1.BcsReader(new Uint8Array(returnValues));
|
|
383
383
|
length_3 = reader.readULEB();
|
|
384
384
|
// console.log(length);
|