@hawksightco/hawk-sdk 1.3.57 → 1.3.58

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.
@@ -2364,23 +2364,15 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
2364
2364
  // Instruction via main hawksight contract
2365
2365
  // @ts-ignore
2366
2366
  const ix = yield anchor_1.Anchor.instance().iyfMain.methods
2367
- .iyfExtensionExecute(closePositionIx.data)
2367
+ .iyfExtensionExecuteV2(closePositionIx.data)
2368
2368
  .accounts({
2369
- farm,
2369
+ // farm,
2370
2370
  userPda,
2371
2371
  authority,
2372
- iyfProgram,
2372
+ // iyfProgram,
2373
2373
  iyfExtensionProgram: addresses_1.IYF_EXTENSION,
2374
2374
  })
2375
- .remainingAccounts([
2376
- closePositionIx.keys[4],
2377
- closePositionIx.keys[5],
2378
- closePositionIx.keys[6],
2379
- closePositionIx.keys[7],
2380
- closePositionIx.keys[8],
2381
- closePositionIx.keys[9],
2382
- closePositionIx.keys[10],
2383
- ])
2375
+ .remainingAccounts(closePositionIx.keys.slice(2))
2384
2376
  .instruction();
2385
2377
  // Override the instruction
2386
2378
  this._ix = ix;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.57",
3
+ "version": "1.3.58",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",