@magmaprotocol/magma-clmm-sdk 0.5.124 → 0.5.126

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
@@ -567,8 +567,6 @@ type CreatePoolAddLiquidityParams = CreatePoolParams & {
567
567
  * The upper tick index for liquidity provision.
568
568
  */
569
569
  tick_upper: number;
570
- metadata_a: SuiObjectIdType;
571
- metadata_b: SuiObjectIdType;
572
570
  /**
573
571
  * The allowed slippage percentage for the liquidity provision.
574
572
  */
package/dist/index.js CHANGED
@@ -5593,9 +5593,6 @@ var PoolModule = class {
5593
5593
  const swpaCoinTypeB = params.coinTypeB;
5594
5594
  params.coinTypeB = params.coinTypeA;
5595
5595
  params.coinTypeA = swpaCoinTypeB;
5596
- const metadataB = params.metadata_b;
5597
- params.metadata_b = params.metadata_a;
5598
- params.metadata_a = metadataB;
5599
5596
  }
5600
5597
  return await this.createPoolAndAddLiquidity(params);
5601
5598
  }
@@ -5609,9 +5606,6 @@ var PoolModule = class {
5609
5606
  const swpaCoinTypeB = params.coinTypeB;
5610
5607
  params.coinTypeB = params.coinTypeA;
5611
5608
  params.coinTypeA = swpaCoinTypeB;
5612
- const metadataB = params.metadata_b;
5613
- params.metadata_b = params.metadata_a;
5614
- params.metadata_a = metadataB;
5615
5609
  }
5616
5610
  return await this.createPoolAndAddLiquidity(params);
5617
5611
  }
@@ -11604,11 +11598,12 @@ var AlmmModule = class {
11604
11598
  }
11605
11599
  const fields = getObjectFields(object);
11606
11600
  const ownerWarp = getObjectOwner(object);
11601
+ const bin_real_ids = new Array(fields.bin_count).map((_, index) => (0, import_calc_almm3.get_real_id)(fields.bin_start + index));
11607
11602
  return {
11608
11603
  pos_object_id: fields.id.id,
11609
11604
  owner: ownerWarp.AddressOwner,
11610
11605
  pool: fields.pair_id,
11611
- bin_real_ids: fields.bin_ids.map((id) => (0, import_calc_almm3.get_real_id)(id)),
11606
+ bin_real_ids,
11612
11607
  type: ""
11613
11608
  };
11614
11609
  }