@hawksightco/hawk-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.
@@ -634,12 +634,12 @@ class AddLiquidityByWeightAutomation extends HawksightMeteoraAutomationCpi {
634
634
  const tokenYMint = this.ix.keys[8].pubkey;
635
635
  // Generate IX via extension contract
636
636
  const data = this.ix.data.subarray(8);
637
- const activeId = data.subarray(0, 4).readInt32LE();
638
- const maxActiveBinSlippage = data.subarray(4, 8).readInt32LE();
639
- const strategyParametersMinBinId = data.subarray(8, 12).readInt32LE();
640
- const strategyParametersMaxBinId = data.subarray(12, 16).readInt32LE();
641
- const strategyParametersStrategyType = data[16];
642
- const strategyParametersParameters = Array.from(data.subarray(17));
637
+ const activeId = data.subarray(16, 20).readInt32LE();
638
+ const maxActiveBinSlippage = data.subarray(20, 24).readInt32LE();
639
+ const strategyParametersMinBinId = data.subarray(24, 28).readInt32LE();
640
+ const strategyParametersMaxBinId = data.subarray(28, 32).readInt32LE();
641
+ const strategyParametersStrategyType = data[32];
642
+ const strategyParametersParameters = Array.from(data.subarray(33));
643
643
  const depositIx = yield anchor_1.Anchor.instance().iyfExtension.methods
644
644
  .meteoraDlmmDepositAutomation(activeId, maxActiveBinSlippage, strategyParametersMinBinId, strategyParametersMaxBinId, strategyParametersStrategyType, strategyParametersParameters)
645
645
  .accounts({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",