@typus/typus-perp-sdk 1.0.64 → 1.0.65

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
@@ -379,9 +379,7 @@ function getUserStake(config, user) {
379
379
  reader = new bcs_1.BcsReader(new Uint8Array(returnValues));
380
380
  lpShares_1 = [];
381
381
  reader.readVec(function (reader) {
382
- var length = reader.readULEB();
383
- var bytes = reader.readBytes(length);
384
- var lpShare = structs_4.LpUserShare.fromBcs(Uint8Array.from(Array.from(bytes)));
382
+ var lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
385
383
  var incentives = [];
386
384
  reader.readVec(function (reader) {
387
385
  var incentive = reader.read64();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",