@hawksightco/hawk-sdk 1.3.69 → 1.3.71

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.
@@ -2146,8 +2146,8 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
2146
2146
  * Modifies transaction keys for the purpose of claiming transaction fees.
2147
2147
  */
2148
2148
  replace() {
2149
- this._ix.keys[2].pubkey = this.userPda;
2150
- this._ix.keys[2].isSigner = false;
2149
+ // this._ix.keys[2].pubkey = this.userPda;
2150
+ // this._ix.keys[2].isSigner = false;
2151
2151
  }
2152
2152
  /**
2153
2153
  * Replaces Meteora CPI with Hawksight CPI that calls the target Meteora CPI.
@@ -2247,8 +2247,8 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
2247
2247
  * Modifies transaction keys for the purpose of claiming transaction fees.
2248
2248
  */
2249
2249
  replace() {
2250
- this.ix.keys[3].pubkey = this.userPda;
2251
- this.ix.keys[3].isSigner = false;
2250
+ // this.ix.keys[3].pubkey = this.userPda;
2251
+ // this.ix.keys[3].isSigner = false;
2252
2252
  }
2253
2253
  /**
2254
2254
  * Replaces Meteora CPI with Hawksight CPI that calls the target Meteora CPI.
@@ -2398,8 +2398,8 @@ class MeteoraDlmmDeposit2Automation extends HawksightMeteoraAutomationCpi {
2398
2398
  * Modifies transaction keys for the purpose of depositing liquidity.
2399
2399
  */
2400
2400
  replace() {
2401
- this.ix.keys[9].pubkey = this.userPda;
2402
- this.ix.keys[9].isSigner = false;
2401
+ // this.ix.keys[9].pubkey = this.userPda;
2402
+ // this.ix.keys[9].isSigner = false;
2403
2403
  }
2404
2404
  /**
2405
2405
  * Replaces Meteora CPI with Hawksight CPI that calls the target Meteora CPI.
@@ -2518,8 +2518,8 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2518
2518
  * Modifies transaction keys for the purpose of withdrawing liquidity.
2519
2519
  */
2520
2520
  replace() {
2521
- this._ix.keys[1].pubkey = this.userPda;
2522
- this._ix.keys[1].isSigner = false;
2521
+ // this._ix.keys[1].pubkey = this.userPda;
2522
+ // this._ix.keys[1].isSigner = false;
2523
2523
  }
2524
2524
  /**
2525
2525
  * Replaces Meteora CPI with Hawksight CPI that calls the target Meteora CPI.
@@ -2544,16 +2544,16 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2544
2544
  // Adjust by token type
2545
2545
  const pdaTokenType = (_a = this.opt) === null || _a === void 0 ? void 0 : _a.pdaTokenType;
2546
2546
  if (pdaTokenType === types_1.TokenType.LTA) {
2547
- this.ix.keys[3].pubkey = util.generateLimitToken(this.userPda, this.ix.keys[9].pubkey);
2548
- this.ix.keys[4].pubkey = util.generateLimitToken(this.userPda, this.ix.keys[10].pubkey);
2547
+ this.ix.keys[7].pubkey = util.generateLimitToken(this.userPda, tokenXMint);
2548
+ this.ix.keys[8].pubkey = util.generateLimitToken(this.userPda, tokenYMint);
2549
2549
  }
2550
2550
  else if (pdaTokenType === types_1.TokenType.STA) {
2551
- this.ix.keys[3].pubkey = util.generateUserPdaStorageAccount(this.userPda, this.ix.keys[9].pubkey);
2552
- this.ix.keys[4].pubkey = util.generateUserPdaStorageAccount(this.userPda, this.ix.keys[10].pubkey);
2551
+ this.ix.keys[7].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenXMint);
2552
+ this.ix.keys[8].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenYMint);
2553
2553
  }
2554
2554
  else {
2555
- this.ix.keys[3].pubkey = util.generateAta(this.userPda, this.ix.keys[9].pubkey, tokenXMintInfo.info.owner);
2556
- this.ix.keys[4].pubkey = util.generateAta(this.userPda, this.ix.keys[10].pubkey, tokenYMintInfo.info.owner);
2555
+ this.ix.keys[7].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
2556
+ this.ix.keys[8].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
2557
2557
  }
2558
2558
  // Generate IX via extension contract
2559
2559
  // @ts-ignore
@@ -2572,8 +2572,8 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
2572
2572
  userTokenY: this.ix.keys[4].pubkey,
2573
2573
  reserveX: this.ix.keys[5].pubkey,
2574
2574
  reserveY: this.ix.keys[6].pubkey,
2575
- tokenXMint: this.ix.keys[7].pubkey,
2576
- tokenYMint: this.ix.keys[8].pubkey,
2575
+ tokenXMint,
2576
+ tokenYMint,
2577
2577
  tokenXProgram: this.ix.keys[10].pubkey,
2578
2578
  tokenYProgram: this.ix.keys[11].pubkey,
2579
2579
  eventAuthority: this.ix.keys[13].pubkey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.69",
3
+ "version": "1.3.71",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",