@hawksightco/hawk-sdk 1.2.74 → 1.2.75

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.
@@ -1,5 +1,5 @@
1
1
  import * as web3 from "@solana/web3.js";
2
- import { MeteoraClaim, MeteoraClaimAll, MeteoraClose, MeteoraCompound, MeteoraCreatePositionAndDeposit, MeteoraCreatePositionAndDepositPda, MeteoraDeposit, MeteoraInitializeBinArrays, MeteoraRebalance, MeteoraWithdraw, Register, TxgenParams, InitializeStorageTokenAccount, MeteoraLimitCloseAutomation, OrcaOpenPosition, OrcaClosePosition, OrcaDeposit, OrcaWithdraw, OrcaSweepDust, OrcaClaimRewards, TransactionMetadataResponse, MeteoraRebalance2, ClaimTokenFromSTA, ClaimTokensFromSTA, RaydiumClosePosition, OpenAutomationIx, RaydiumWithdrawAndClosePosition } from "../types";
2
+ import { MeteoraClaim, MeteoraClaimAll, MeteoraClose, MeteoraCompound, MeteoraCreatePositionAndDeposit, MeteoraCreatePositionAndDepositPda, MeteoraDeposit, MeteoraInitializeBinArrays, MeteoraRebalance, MeteoraWithdraw, Register, TxgenParams, InitializeStorageTokenAccount, MeteoraLimitCloseAutomation, MeteoraLimitCloseAutomation2, OrcaOpenPosition, OrcaClosePosition, OrcaDeposit, OrcaWithdraw, OrcaSweepDust, OrcaClaimRewards, TransactionMetadataResponse, MeteoraRebalance2, ClaimTokenFromSTA, ClaimTokensFromSTA, RaydiumClosePosition, OpenAutomationIx, RaydiumWithdrawAndClosePosition } from "../types";
3
3
  import { RaydiumIncreaseLiquidity, RaydiumOpenPosition, RaydiumDecreaseLiquidity } from "../types";
4
4
  import { GeneralUtility } from "./GeneralUtility";
5
5
  import { MultiTransaction } from "./MultiTransaction";
@@ -152,6 +152,7 @@ export declare class Transactions {
152
152
  openAutomationIx({ connection, params, }: TxgenParams<OpenAutomationIx>): Promise<TransactionMetadataResponse>;
153
153
  closeAutomationIx({ connection, params }: TxgenParams<MeteoraClose>): Promise<TransactionMetadataResponse>;
154
154
  limitCloseAutomationIx({ connection, params, }: TxgenParams<MeteoraLimitCloseAutomation>): Promise<TransactionMetadataResponse>;
155
+ limitCloseAutomationIx2({ connection, params, }: TxgenParams<MeteoraLimitCloseAutomation2>): Promise<TransactionMetadataResponse>;
155
156
  private removeLiquidityByRangeInfo;
156
157
  /**
157
158
  * Creates orca instruction that opens new position
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../src/classes/Transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAoBxC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,+BAA+B,EAC/B,kCAAkC,EAClC,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,QAAQ,EAGR,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,gBAAgB,EAChB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AA6BlB,OAAO,EAEL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAcxD,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO;IAIP;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAe;IAEtC;;OAEG;IACI,EAAE,EAAE,iBAAiB,CAAC;IAE7B;;;;OAIG;IACH,MAAM,CAAC,WAAW,IAAI,YAAY;IAOlC;;;;;;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BAA+B,CAAC,EACpC,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8GtF;;;;;;OAMG;IACG,oBAAoB,CAAC,EACzB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuB3E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA2F/E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAmFhF;AAED,eAAO,MAAM,KAAK,cAA6B,CAAC"}
1
+ {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../src/classes/Transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAoBxC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,+BAA+B,EAC/B,kCAAkC,EAClC,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,QAAQ,EAGR,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,gBAAgB,EAChB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AA6BlB,OAAO,EAEL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OA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e,CAAC,EACpB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAmOnE;;;;;;;OAOG;IACG,gBAAgB,CAAC,EACrB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8IvE;;;;;;OAMG;IACG,mBAAmB,CAAC,EACxB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAsH1E;;;;;;;OAOG;IACG,+BAA+B,CAAC,EACpC,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8GtF;;;;;;OAMG;IACG,oBAAoB,CAAC,EACzB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuB3E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA2F/E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAmFhF;AAED,eAAO,MAAM,KAAK,cAA6B,CAAC"}
@@ -1074,6 +1074,172 @@ class Transactions {
1074
1074
  });
1075
1075
  });
1076
1076
  }
1077
+ limitCloseAutomationIx2(_a) {
1078
+ return __awaiter(this, arguments, void 0, function* ({ connection, params, }) {
1079
+ const program = yield meteora_1.MeteoraDLMM.program(connection);
1080
+ const position = yield program.account.positionV2.fetch(params.position);
1081
+ const dlmmPool = yield meteora_1.MeteoraDLMM.create(connection, position.lbPair);
1082
+ const userPda = (0, functions_1.generateUserPda)(params.userWallet);
1083
+ // Step 1: Claim all fees/rewards, remove all liquidity and close current position
1084
+ // const { userPositions } = await dlmmPool.getPositionsByUserAndLbPair(
1085
+ // userPda
1086
+ // );
1087
+ // const binIdsToRemove = userPositions[0].positionData.positionBinData.map(
1088
+ // (bin) => bin.binId
1089
+ // );
1090
+ const binIdsToRemove = [];
1091
+ for (let i = position.lowerBinId; i <= position.upperBinId; i++) {
1092
+ binIdsToRemove.push(i);
1093
+ }
1094
+ // Claim fees and/or rewards, remove liquidity, and possibly close position from Meteora API (if set)
1095
+ const txn = yield dlmmPool.dlmm.removeLiquidity({
1096
+ user: userPda,
1097
+ position: params.position,
1098
+ binIds: binIdsToRemove,
1099
+ bps: new bn_js_1.default(10000),
1100
+ shouldClaimAndClose: true,
1101
+ });
1102
+ // Filter out non-meteora instructions
1103
+ const ixs = (0, functions_1.getIxs)(txn).filter((ix) => ix.programId.equals(addresses_1.METEORA_DLMM_PROGRAM));
1104
+ const farm = addresses_1.USDC_FARM;
1105
+ const authority = params.userWallet;
1106
+ const iyfProgram = addresses_1.IYF_MAIN;
1107
+ const hawksightAuthority = addresses_1.HS_AUTHORITY;
1108
+ const { params: _params, data } = this.removeLiquidityByRangeInfo(ixs);
1109
+ const { position: _position, lbPair, binArrayBitmapExtension, reserveX, reserveY, tokenXMint, tokenYMint, tokenXProgram, tokenYProgram, binArrayLower, binArrayUpper, eventAuthority, program: meteoraDlmmProgram, } = _params;
1110
+ let userTokenX;
1111
+ let userTokenY;
1112
+ if (params.pdaTokenType === types_1.TokenType.STA) {
1113
+ userTokenX = (0, functions_1.generateUserPdaStorageAccount)(userPda, tokenXMint.pubkey);
1114
+ userTokenY = (0, functions_1.generateUserPdaStorageAccount)(userPda, tokenYMint.pubkey);
1115
+ }
1116
+ else if (params.pdaTokenType === types_1.TokenType.LTA) {
1117
+ userTokenX = (0, functions_1.generateLimitToken)(userPda, tokenXMint.pubkey);
1118
+ userTokenY = (0, functions_1.generateLimitToken)(userPda, tokenYMint.pubkey);
1119
+ }
1120
+ else {
1121
+ userTokenX = (0, functions_1.generateAta)(userPda, tokenXMint.pubkey);
1122
+ userTokenY = (0, functions_1.generateAta)(userPda, tokenYMint.pubkey);
1123
+ }
1124
+ let ix;
1125
+ if (params.isLimitOrder) {
1126
+ const limitTokenX = (0, functions_1.generateLimitToken)(userPda, tokenXMint.pubkey);
1127
+ const limitTokenY = (0, functions_1.generateLimitToken)(userPda, tokenYMint.pubkey);
1128
+ const authorityTokenX = (0, functions_1.generateAta)(hawksightAuthority, tokenXMint.pubkey);
1129
+ const authorityTokenY = (0, functions_1.generateAta)(hawksightAuthority, tokenYMint.pubkey);
1130
+ // @ts-ignore
1131
+ const limitCloseAutomationIx = yield anchor_1.Anchor.instance()
1132
+ .iyfExtension.methods.limitOrderClose(data, params.minBinId, params.maxBinId)
1133
+ .accounts({
1134
+ userPda,
1135
+ hawksightAuthority,
1136
+ authority,
1137
+ position: _position.pubkey,
1138
+ lbPair: lbPair.pubkey,
1139
+ binArrayBitmapExtension: binArrayBitmapExtension.pubkey,
1140
+ limitTokenX,
1141
+ limitTokenY,
1142
+ authorityTokenX,
1143
+ authorityTokenY,
1144
+ systemProgram: web3.SystemProgram.programId,
1145
+ reserveX: reserveX.pubkey,
1146
+ reserveY: reserveY.pubkey,
1147
+ tokenXMint: tokenXMint.pubkey,
1148
+ tokenYMint: tokenYMint.pubkey,
1149
+ tokenProgram: addresses_1.TOKEN_PROGRAM_ID,
1150
+ rent: web3.SYSVAR_RENT_PUBKEY,
1151
+ binArrayLower: binArrayLower.pubkey,
1152
+ binArrayUpper: binArrayUpper.pubkey,
1153
+ eventAuthority: eventAuthority.pubkey,
1154
+ meteoraDlmmProgram: addresses_1.METEORA_DLMM_PROGRAM,
1155
+ ownerFeeX: (0, functions_1.generateAta)(addresses_1.SITE_FEE_OWNER, tokenXMint.pubkey),
1156
+ ownerFeeY: (0, functions_1.generateAta)(addresses_1.SITE_FEE_OWNER, tokenYMint.pubkey),
1157
+ })
1158
+ .instruction();
1159
+ // Instruction via main hawksight contract
1160
+ ix = yield anchor_1.Anchor.instance()
1161
+ .iyfMain.methods.iyfExtensionExecuteV2(limitCloseAutomationIx.data)
1162
+ .accounts({
1163
+ userPda,
1164
+ authority,
1165
+ iyfExtensionProgram: addresses_1.IYF_EXTENSION,
1166
+ })
1167
+ .remainingAccounts([...limitCloseAutomationIx.keys.slice(2)])
1168
+ .instruction();
1169
+ }
1170
+ else {
1171
+ // @ts-ignore
1172
+ const limitCloseAutomationIx = yield anchor_1.Anchor.instance()
1173
+ .iyfExtension.methods.meteoraDlmmLimitCloseAutomation2(data, params.minBinId, params.maxBinId, params.isHawkRefund)
1174
+ .accounts({
1175
+ farm,
1176
+ userPda,
1177
+ authority,
1178
+ iyfProgram,
1179
+ hawksightAuthority,
1180
+ position: _position.pubkey,
1181
+ lbPair: lbPair.pubkey,
1182
+ binArrayBitmapExtension: binArrayBitmapExtension.pubkey,
1183
+ userTokenX,
1184
+ userTokenY,
1185
+ reserveX: reserveX.pubkey,
1186
+ reserveY: reserveY.pubkey,
1187
+ tokenXMint: tokenXMint.pubkey,
1188
+ tokenYMint: tokenYMint.pubkey,
1189
+ tokenXProgram: tokenXProgram.pubkey,
1190
+ tokenYProgram: tokenYProgram.pubkey,
1191
+ binArrayLower: binArrayLower.pubkey,
1192
+ binArrayUpper: binArrayUpper.pubkey,
1193
+ eventAuthority: eventAuthority.pubkey,
1194
+ meteoraDlmmProgram: meteoraDlmmProgram.pubkey,
1195
+ ownerFeeX: (0, functions_1.generateAta)(addresses_1.SITE_FEE_OWNER, tokenXMint.pubkey),
1196
+ ownerFeeY: (0, functions_1.generateAta)(addresses_1.SITE_FEE_OWNER, tokenYMint.pubkey),
1197
+ })
1198
+ .instruction();
1199
+ // Instruction via main hawksight contract
1200
+ ix = yield anchor_1.Anchor.instance()
1201
+ .iyfMain.methods.iyfExtensionExecute(limitCloseAutomationIx.data)
1202
+ .accounts({
1203
+ farm,
1204
+ userPda,
1205
+ authority,
1206
+ iyfProgram,
1207
+ iyfExtensionProgram: addresses_1.IYF_EXTENSION,
1208
+ })
1209
+ .remainingAccounts([
1210
+ limitCloseAutomationIx.keys[4],
1211
+ limitCloseAutomationIx.keys[5],
1212
+ limitCloseAutomationIx.keys[6],
1213
+ limitCloseAutomationIx.keys[7],
1214
+ limitCloseAutomationIx.keys[8],
1215
+ limitCloseAutomationIx.keys[9],
1216
+ limitCloseAutomationIx.keys[10],
1217
+ limitCloseAutomationIx.keys[11],
1218
+ limitCloseAutomationIx.keys[12],
1219
+ limitCloseAutomationIx.keys[13],
1220
+ limitCloseAutomationIx.keys[14],
1221
+ limitCloseAutomationIx.keys[15],
1222
+ limitCloseAutomationIx.keys[16],
1223
+ limitCloseAutomationIx.keys[17],
1224
+ limitCloseAutomationIx.keys[18],
1225
+ limitCloseAutomationIx.keys[19],
1226
+ limitCloseAutomationIx.keys[20],
1227
+ limitCloseAutomationIx.keys[21],
1228
+ ])
1229
+ .instruction();
1230
+ }
1231
+ const mainInstructions = [
1232
+ // Limit Close Automation Instruction (Hawksight CPI)
1233
+ ix,
1234
+ ];
1235
+ return (0, functions_1.createTransactionMeta)({
1236
+ payer: params.userWallet,
1237
+ description: "Automation IX: Meteora limit close instruction (Full withdraw and close on to specific bin id)",
1238
+ addressLookupTableAddresses: addresses_1.GLOBAL_ALT,
1239
+ mainInstructions,
1240
+ });
1241
+ });
1242
+ }
1077
1243
  removeLiquidityByRangeInfo(ixs) {
1078
1244
  for (const ix of ixs) {
1079
1245
  const programIdMatch = ix.programId.equals(addresses_1.METEORA_DLMM_PROGRAM);
@@ -1,6 +1,6 @@
1
1
  import * as web3 from "@solana/web3.js";
2
2
  import * as _client from "@hawksightco/swagger-client";
3
- import { MeteoraClose, MeteoraCompound, MeteoraLimitCloseAutomation, MeteoraRebalance, MeteoraRebalance2, OpenAutomationIx, ResponseWithStatus, TransactionMetadata } from "../types";
3
+ import { MeteoraClose, MeteoraCompound, MeteoraLimitCloseAutomation, MeteoraLimitCloseAutomation2, MeteoraRebalance, MeteoraRebalance2, OpenAutomationIx, ResponseWithStatus, TransactionMetadata } from "../types";
4
4
  import { Client } from "./Client";
5
5
  import { GeneralUtility } from "./GeneralUtility";
6
6
  /**
@@ -82,6 +82,17 @@ export declare class TxGeneratorAutomations {
82
82
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
83
83
  */
84
84
  meteoraLimitCloseIxs(connection: web3.Connection, payer: string, params: MeteoraLimitCloseAutomation): Promise<ResponseWithStatus<TransactionMetadata>>;
85
+ /**
86
+ * Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
87
+ *
88
+ * NOTE: For hawksight devs only.
89
+ *
90
+ * @param connection The Solana web3 connection object for blockchain interactions.
91
+ * @param payer The public key of the payer for transaction fees.
92
+ * @param params Parameters required
93
+ * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
94
+ */
95
+ meteoraLimitCloseIxs2(connection: web3.Connection, payer: string, params: MeteoraLimitCloseAutomation2): Promise<ResponseWithStatus<TransactionMetadata>>;
85
96
  /**
86
97
  * Creates meteora close instruction (combination of claim fees/rewards + remove liquidity + close position)
87
98
  *
@@ -1 +1 @@
1
- {"version":3,"file":"TxGeneratorAutomations.d.ts","sourceRoot":"","sources":["../../../src/classes/TxGeneratorAutomations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAmC,2BAA2B,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,mBAAmB,EAAoD,MAAM,UAAU,CAAC;AACzQ,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;;;;;GAMG;AACH,qBAAa,sBAAsB;IAkB/B,OA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
  }
244
+ /**
245
+ * Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
246
+ *
247
+ * NOTE: For hawksight devs only.
248
+ *
249
+ * @param connection The Solana web3 connection object for blockchain interactions.
250
+ * @param payer The public key of the payer for transaction fees.
251
+ * @param params Parameters required
252
+ * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
253
+ */
254
+ meteoraLimitCloseIxs2(connection, payer, params) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ // Initialize anchor
257
+ anchor_1.Anchor.initialize(connection);
258
+ try {
259
+ const result = yield Transactions_1.txgen.limitCloseAutomationIx2({
260
+ connection,
261
+ params,
262
+ fetch: undefined,
263
+ });
264
+ return {
265
+ status: 200,
266
+ data: yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, result),
267
+ };
268
+ }
269
+ catch (e) {
270
+ return {
271
+ status: 400,
272
+ data: {
273
+ code: "custom",
274
+ message: e,
275
+ path: [],
276
+ },
277
+ };
278
+ }
279
+ });
280
+ }
244
281
  /**
245
282
  * Creates meteora close instruction (combination of claim fees/rewards + remove liquidity + close position)
246
283
  *
@@ -3472,6 +3472,176 @@ export type IyfExtension = {
3472
3472
  }
3473
3473
  ];
3474
3474
  },
3475
+ {
3476
+ "name": "meteoraDlmmLimitCloseAutomation2";
3477
+ "docs": [
3478
+ "Meteora Limit Close Position"
3479
+ ];
3480
+ "discriminator": [
3481
+ 78,
3482
+ 30,
3483
+ 202,
3484
+ 240,
3485
+ 110,
3486
+ 103,
3487
+ 85,
3488
+ 227
3489
+ ];
3490
+ "accounts": [
3491
+ {
3492
+ "name": "farm";
3493
+ "docs": [
3494
+ "Hawksight multi-index farm"
3495
+ ];
3496
+ },
3497
+ {
3498
+ "name": "userPda";
3499
+ "docs": [
3500
+ "Hawksight user pda"
3501
+ ];
3502
+ "pda": {
3503
+ "seeds": [
3504
+ {
3505
+ "kind": "const";
3506
+ "value": [
3507
+ 109,
3508
+ 117,
3509
+ 108,
3510
+ 116,
3511
+ 105,
3512
+ 45,
3513
+ 117,
3514
+ 115,
3515
+ 101,
3516
+ 114
3517
+ ];
3518
+ },
3519
+ {
3520
+ "kind": "account";
3521
+ "path": "farm";
3522
+ },
3523
+ {
3524
+ "kind": "account";
3525
+ "path": "authority";
3526
+ }
3527
+ ];
3528
+ "program": {
3529
+ "kind": "account";
3530
+ "path": "iyfProgram";
3531
+ };
3532
+ };
3533
+ },
3534
+ {
3535
+ "name": "authority";
3536
+ "docs": [
3537
+ "User wallet",
3538
+ "* No need to check"
3539
+ ];
3540
+ "writable": true;
3541
+ "relations": [
3542
+ "userPda"
3543
+ ];
3544
+ },
3545
+ {
3546
+ "name": "iyfProgram";
3547
+ "docs": [
3548
+ "Main index yield farming program"
3549
+ ];
3550
+ "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
3551
+ },
3552
+ {
3553
+ "name": "hawksightAuthority";
3554
+ "docs": [
3555
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
3556
+ ];
3557
+ "writable": true;
3558
+ "signer": true;
3559
+ },
3560
+ {
3561
+ "name": "position";
3562
+ "writable": true;
3563
+ },
3564
+ {
3565
+ "name": "lbPair";
3566
+ "writable": true;
3567
+ },
3568
+ {
3569
+ "name": "binArrayBitmapExtension";
3570
+ "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
3571
+ },
3572
+ {
3573
+ "name": "userTokenX";
3574
+ "writable": true;
3575
+ },
3576
+ {
3577
+ "name": "userTokenY";
3578
+ "writable": true;
3579
+ },
3580
+ {
3581
+ "name": "reserveX";
3582
+ "writable": true;
3583
+ },
3584
+ {
3585
+ "name": "reserveY";
3586
+ "writable": true;
3587
+ },
3588
+ {
3589
+ "name": "tokenXMint";
3590
+ },
3591
+ {
3592
+ "name": "tokenYMint";
3593
+ },
3594
+ {
3595
+ "name": "tokenXProgram";
3596
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3597
+ },
3598
+ {
3599
+ "name": "tokenYProgram";
3600
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3601
+ },
3602
+ {
3603
+ "name": "binArrayLower";
3604
+ "writable": true;
3605
+ },
3606
+ {
3607
+ "name": "binArrayUpper";
3608
+ "writable": true;
3609
+ },
3610
+ {
3611
+ "name": "eventAuthority";
3612
+ },
3613
+ {
3614
+ "name": "meteoraDlmmProgram";
3615
+ "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
3616
+ },
3617
+ {
3618
+ "name": "ownerFeeX";
3619
+ "writable": true;
3620
+ },
3621
+ {
3622
+ "name": "ownerFeeY";
3623
+ "writable": true;
3624
+ }
3625
+ ];
3626
+ "args": [
3627
+ {
3628
+ "name": "param";
3629
+ "type": "bytes";
3630
+ },
3631
+ {
3632
+ "name": "minBinId";
3633
+ "type": "i32";
3634
+ },
3635
+ {
3636
+ "name": "maxBinId";
3637
+ "type": "i32";
3638
+ },
3639
+ {
3640
+ "name": "isHawkRefund";
3641
+ "type": "bool";
3642
+ }
3643
+ ];
3644
+ },
3475
3645
  {
3476
3646
  "name": "meteoraDlmmOneSideDeposit";
3477
3647
  "discriminator": [