@hawksightco/hawk-sdk 1.3.93 → 1.3.94

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.
@@ -2351,6 +2351,7 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
2351
2351
  const closePositionIx = yield anchor_1.Anchor.instance().iyfExtension.methods
2352
2352
  .meteoraDlmmClosePositionAutomationV2()
2353
2353
  .accounts({
2354
+ farm,
2354
2355
  userPda,
2355
2356
  authority,
2356
2357
  iyfProgram,
@@ -2364,15 +2365,15 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
2364
2365
  // Instruction via main hawksight contract
2365
2366
  // @ts-ignore
2366
2367
  const ix = yield anchor_1.Anchor.instance().iyfMain.methods
2367
- .iyfExtensionExecuteV2(closePositionIx.data)
2368
+ .iyfExtensionExecute(closePositionIx.data)
2368
2369
  .accounts({
2369
- // farm,
2370
+ farm,
2370
2371
  userPda,
2371
2372
  authority: hawksightAuthority,
2372
- // iyfProgram,
2373
+ iyfProgram,
2373
2374
  iyfExtensionProgram: addresses_1.IYF_EXTENSION,
2374
2375
  })
2375
- .remainingAccounts(closePositionIx.keys.slice(2))
2376
+ .remainingAccounts(closePositionIx.keys.slice(4))
2376
2377
  .instruction();
2377
2378
  // Override the instruction
2378
2379
  this._ix = ix;
@@ -5056,14 +5056,72 @@ export type IyfExtension = {
5056
5056
  31
5057
5057
  ];
5058
5058
  "accounts": [
5059
+ {
5060
+ "name": "farm";
5061
+ "docs": [
5062
+ "Hawksight multi-index farm"
5063
+ ];
5064
+ },
5059
5065
  {
5060
5066
  "name": "userPda";
5061
5067
  "docs": [
5062
5068
  "Hawksight user pda"
5063
5069
  ];
5070
+ "pda": {
5071
+ "seeds": [
5072
+ {
5073
+ "kind": "const";
5074
+ "value": [
5075
+ 109,
5076
+ 117,
5077
+ 108,
5078
+ 116,
5079
+ 105,
5080
+ 45,
5081
+ 117,
5082
+ 115,
5083
+ 101,
5084
+ 114
5085
+ ];
5086
+ },
5087
+ {
5088
+ "kind": "account";
5089
+ "path": "farm";
5090
+ },
5091
+ {
5092
+ "kind": "account";
5093
+ "path": "authority";
5094
+ }
5095
+ ];
5096
+ "program": {
5097
+ "kind": "account";
5098
+ "path": "iyfProgram";
5099
+ };
5100
+ };
5101
+ },
5102
+ {
5103
+ "name": "authority";
5104
+ "docs": [
5105
+ "User wallet",
5106
+ "* No need to check"
5107
+ ];
5108
+ "writable": true;
5109
+ "relations": [
5110
+ "userPda"
5111
+ ];
5112
+ },
5113
+ {
5114
+ "name": "iyfProgram";
5115
+ "docs": [
5116
+ "Main index yield farming program"
5117
+ ];
5118
+ "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
5064
5119
  },
5065
5120
  {
5066
5121
  "name": "hawksightAuthority";
5122
+ "docs": [
5123
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
5124
+ ];
5067
5125
  "writable": true;
5068
5126
  "signer": true;
5069
5127
  },