@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 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
- (0, functions_2.allocateIncentive)(tx, {
366
- version: _1.STAKE_POOL_VERSION,
367
- registry: _1.STAKE_POOL,
368
- index: BigInt(0),
369
- clock: constants_1.CLOCK,
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[1].returnValues[0][0];
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",