@hawksightco/hawk-sdk 1.3.131 → 1.3.133

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.
@@ -2290,7 +2290,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2290
2290
  })
2291
2291
  .remainingAccounts(this.ix.keys.slice(10))
2292
2292
  .instruction();
2293
- console.log(`claimReward:`, JSON.stringify(claimReward, null, 2));
2293
+ console.log(`meteoraDlmmProgram1`, claimReward.keys[10].pubkey.toString());
2294
2294
  const sighash = util.sighash("meteora_dlmm_claim_reward_2_automation");
2295
2295
  claimReward.data.set(sighash, 0);
2296
2296
  // Instruction via main hawksight contract
@@ -2304,7 +2304,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2304
2304
  })
2305
2305
  .remainingAccounts(claimReward.keys.slice(2))
2306
2306
  .instruction();
2307
- console.log(`claimRewardIx:`, JSON.stringify(ix, null, 2));
2307
+ console.log(`meteoraDlmmProgram2`, ix.keys[11].pubkey.toString());
2308
2308
  // Override the instruction
2309
2309
  this._ix = ix;
2310
2310
  });
@@ -1459,10 +1459,10 @@ class RemoveLiquidityBuilder {
1459
1459
  console.warn(`Warn: Reward instruction not found! This may happen if pool has no rewards`);
1460
1460
  return;
1461
1461
  }
1462
- const userPda = this.mainIxs[index].keys[1].pubkey;
1463
- const tokenMint = this.mainIxs[index].keys[10].pubkey;
1462
+ const userPda = this.mainIxs[index].keys[0].pubkey;
1463
+ const tokenMint = this.mainIxs[index].keys[6].pubkey;
1464
1464
  const ataToken = (0, functions_1.generateAta)(userPda, tokenMint);
1465
- this.mainIxs[index].keys[11].pubkey = ataToken;
1465
+ this.mainIxs[index].keys[7].pubkey = ataToken;
1466
1466
  }
1467
1467
  }
1468
1468
  exports.RemoveLiquidityBuilder = RemoveLiquidityBuilder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.131",
3
+ "version": "1.3.133",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",