@hawksightco/hawk-sdk 1.3.73 → 1.3.74

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.
@@ -2555,12 +2555,10 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2555
2555
  this.ix.keys[7].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
2556
2556
  this.ix.keys[8].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
2557
2557
  }
2558
- // 8 + 4 + 4 + 2
2559
- const ixDataArgs = this.ix.data.subarray(18);
2560
2558
  // Generate IX via extension contract
2561
2559
  // @ts-ignore
2562
2560
  const withdrawIx = yield anchor_1.Anchor.instance().iyfExtension.methods
2563
- .meteoraDlmmWithdraw2Automation(ixDataArgs)
2561
+ .meteoraDlmmWithdraw2Automation(this.ix.data)
2564
2562
  .accounts({
2565
2563
  farm,
2566
2564
  userPda,
@@ -2581,7 +2579,7 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2581
2579
  eventAuthority: this.ix.keys[13].pubkey,
2582
2580
  meteoraDlmmProgram: this.ix.keys[14].pubkey,
2583
2581
  memoProgram: this.ix.keys[12].pubkey,
2584
- }).instruction();
2582
+ }).remainingAccounts(this.ix.keys.slice(15)).instruction();
2585
2583
  const sighash = util.sighash("meteora_dlmm_withdraw_2_automation");
2586
2584
  withdrawIx.data.set(sighash, 0);
2587
2585
  // Instruction via main hawksight contract
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.73",
3
+ "version": "1.3.74",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",