@hawksightco/hawk-sdk 1.3.100 → 1.3.102

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.
@@ -1409,7 +1409,7 @@ class Transactions {
1409
1409
  // Handle RemoveLiquidityByRange2 instruction with different account structure
1410
1410
  if (programIdMatch && removeLiquidityByRange2) {
1411
1411
  return {
1412
- data: ix.data,
1412
+ data: ix.data.slice(8), // Sighash not included
1413
1413
  params: {
1414
1414
  position: ix.keys[0],
1415
1415
  lbPair: ix.keys[1],
@@ -2560,7 +2560,7 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2560
2560
  // Generate IX via extension contract
2561
2561
  // @ts-ignore
2562
2562
  const withdrawIx = yield anchor_1.Anchor.instance().iyfExtension.methods
2563
- .meteoraDlmmWithdraw2Automation(this.ix.data)
2563
+ .meteoraDlmmWithdraw2Automation(this.ix.data.subarray(8))
2564
2564
  .accounts({
2565
2565
  farm,
2566
2566
  userPda,
@@ -730,7 +730,8 @@ class MeteoraDlmmIxGenerator {
730
730
  // @ts-ignore
731
731
  const meteoraDlmmLimitCloseAutomationV2Ix = yield anchor_1.Anchor.instance().iyfExtension
732
732
  .methods
733
- .meteoraDlmmLimitCloseAutomationV2(Array.from(param), minBinId, maxBinId, isHawkRefund)
733
+ .meteoraDlmmLimitCloseAutomationV2(param, // Pass Buffer directly instead of converting to Array
734
+ minBinId, maxBinId, isHawkRefund)
734
735
  .accounts({
735
736
  userPda,
736
737
  hawksightAuthority,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.100",
3
+ "version": "1.3.102",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",