@hawksightco/hawk-sdk 1.3.69 → 1.3.70

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.
@@ -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.70",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",