@hawksightco/hawk-sdk 1.3.132 → 1.3.134

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.
@@ -2262,8 +2262,8 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2262
2262
  const authority = this.authority;
2263
2263
  const hawksightAuthority = addresses_1.HS_AUTHORITY;
2264
2264
  // New meteora parameters
2265
- const minBinId = this.ix.data.readInt32LE(12);
2266
- const maxBinId = this.ix.data.readInt32LE(16);
2265
+ const minBinId = this.ix.data.readInt32LE(16);
2266
+ const maxBinId = this.ix.data.readInt32LE(20);
2267
2267
  const remainingAccountsInfo = this.ix.data.subarray(24);
2268
2268
  const rewardMint = this.ix.keys[4].pubkey;
2269
2269
  const rewardMintInfo = AccountCache_1.AccountCache.get(rewardMint);
@@ -2290,7 +2290,6 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2290
2290
  })
2291
2291
  .remainingAccounts(this.ix.keys.slice(10))
2292
2292
  .instruction();
2293
- console.log(`meteoraDlmmProgram1`, claimReward.keys[10].pubkey.toString());
2294
2293
  const sighash = util.sighash("meteora_dlmm_claim_reward_2_automation");
2295
2294
  claimReward.data.set(sighash, 0);
2296
2295
  // Instruction via main hawksight contract
@@ -2304,7 +2303,6 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2304
2303
  })
2305
2304
  .remainingAccounts(claimReward.keys.slice(2))
2306
2305
  .instruction();
2307
- console.log(`meteoraDlmmProgram2`, ix.keys[11].pubkey.toString());
2308
2306
  // Override the instruction
2309
2307
  this._ix = ix;
2310
2308
  });
@@ -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.132",
3
+ "version": "1.3.134",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",