@typus/typus-perp-sdk 1.0.64 → 1.0.66

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
@@ -380,8 +380,7 @@ function getUserStake(config, user) {
380
380
  lpShares_1 = [];
381
381
  reader.readVec(function (reader) {
382
382
  var length = reader.readULEB();
383
- var bytes = reader.readBytes(length);
384
- var lpShare = structs_4.LpUserShare.fromBcs(Uint8Array.from(Array.from(bytes)));
383
+ var lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
385
384
  var incentives = [];
386
385
  reader.readVec(function (reader) {
387
386
  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.66",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",