@magmaprotocol/magma-clmm-sdk 0.5.60 → 0.5.62

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.d.ts CHANGED
@@ -1730,7 +1730,7 @@ type EventPositionLiquidity = {
1730
1730
  liquidity: number | string;
1731
1731
  x_equivalent: number | string;
1732
1732
  y_equivalent: number | string;
1733
- bin_ids: number[] | string[];
1733
+ bin_real_ids: number[];
1734
1734
  bin_x_eq: number[] | string[];
1735
1735
  bin_y_eq: number[] | string[];
1736
1736
  bin_liquidity: number[] | string[];
@@ -1840,7 +1840,7 @@ type DlmmPosition = {
1840
1840
  owner: SuiObjectIdType;
1841
1841
  pool: SuiObjectIdType;
1842
1842
  type: SuiAddressType;
1843
- bin_ids: number[];
1843
+ bin_real_ids: number[];
1844
1844
  };
1845
1845
  type DlmmPositionInfo = {
1846
1846
  position: DlmmPosition;
package/dist/index.js CHANGED
@@ -11204,7 +11204,7 @@ var DlmmModule = class {
11204
11204
  pos_object_id: fields.id.id,
11205
11205
  owner: ownerWarp.AddressOwner,
11206
11206
  pool: fields.pair_id,
11207
- bin_ids: fields.bin_ids,
11207
+ bin_real_ids: fields.bin_ids.map((id) => (0, import_calc_dlmm3.get_real_id)(id)),
11208
11208
  type: ""
11209
11209
  };
11210
11210
  }
@@ -11247,7 +11247,7 @@ var DlmmModule = class {
11247
11247
  liquidity: 0,
11248
11248
  x_equivalent: 0,
11249
11249
  y_equivalent: 0,
11250
- bin_ids: [],
11250
+ bin_real_ids: [],
11251
11251
  bin_x_eq: [],
11252
11252
  bin_y_eq: [],
11253
11253
  bin_liquidity: []
@@ -11258,7 +11258,7 @@ var DlmmModule = class {
11258
11258
  out.liquidity = item.parsedJson.liquidity;
11259
11259
  out.x_equivalent = item.parsedJson.x_equivalent;
11260
11260
  out.y_equivalent = item.parsedJson.y_equivalent;
11261
- out.bin_ids = item.parsedJson.bin_ids;
11261
+ out.bin_real_ids = item.parsedJson.bin_ids.map((id) => (0, import_calc_dlmm3.get_real_id)(id));
11262
11262
  out.bin_x_eq = item.parsedJson.bin_x_eq;
11263
11263
  out.bin_y_eq = item.parsedJson.bin_y_eq;
11264
11264
  out.bin_liquidity = item.parsedJson.bin_liquidity;