@crypticdot/defituna-client 3.3.2 → 3.3.4

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.
package/dist/index.mjs CHANGED
@@ -977,36 +977,37 @@ var TunaInstruction = /* @__PURE__ */ ((TunaInstruction2) => {
977
977
  TunaInstruction2[TunaInstruction2["LiquidateTunaLpPositionFusion"] = 16] = "LiquidateTunaLpPositionFusion";
978
978
  TunaInstruction2[TunaInstruction2["LiquidateTunaLpPositionOrca"] = 17] = "LiquidateTunaLpPositionOrca";
979
979
  TunaInstruction2[TunaInstruction2["LiquidateTunaSpotPositionFusion"] = 18] = "LiquidateTunaSpotPositionFusion";
980
- TunaInstruction2[TunaInstruction2["LiquidateTunaSpotPositionOrca"] = 19] = "LiquidateTunaSpotPositionOrca";
981
- TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionFusion"] = 20] = "ModifyTunaSpotPositionFusion";
982
- TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionJupiter"] = 21] = "ModifyTunaSpotPositionJupiter";
983
- TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionOrca"] = 22] = "ModifyTunaSpotPositionOrca";
984
- TunaInstruction2[TunaInstruction2["OpenAndIncreaseTunaLpPositionFusion"] = 23] = "OpenAndIncreaseTunaLpPositionFusion";
985
- TunaInstruction2[TunaInstruction2["OpenAndIncreaseTunaLpPositionOrca"] = 24] = "OpenAndIncreaseTunaLpPositionOrca";
986
- TunaInstruction2[TunaInstruction2["OpenLendingPosition"] = 25] = "OpenLendingPosition";
987
- TunaInstruction2[TunaInstruction2["OpenTunaLpPositionFusion"] = 26] = "OpenTunaLpPositionFusion";
988
- TunaInstruction2[TunaInstruction2["OpenTunaLpPositionOrca"] = 27] = "OpenTunaLpPositionOrca";
989
- TunaInstruction2[TunaInstruction2["OpenTunaSpotPosition"] = 28] = "OpenTunaSpotPosition";
990
- TunaInstruction2[TunaInstruction2["RebalanceTunaLpPositionFusion"] = 29] = "RebalanceTunaLpPositionFusion";
991
- TunaInstruction2[TunaInstruction2["RebalanceTunaLpPositionOrca"] = 30] = "RebalanceTunaLpPositionOrca";
992
- TunaInstruction2[TunaInstruction2["RepayBadDebt"] = 31] = "RepayBadDebt";
993
- TunaInstruction2[TunaInstruction2["RepayTunaLpPositionDebt"] = 32] = "RepayTunaLpPositionDebt";
994
- TunaInstruction2[TunaInstruction2["ResetTunaSpotPosition"] = 33] = "ResetTunaSpotPosition";
995
- TunaInstruction2[TunaInstruction2["SetAdminAuthority"] = 34] = "SetAdminAuthority";
996
- TunaInstruction2[TunaInstruction2["SetDefaultMaxPercentageOfLeftovers"] = 35] = "SetDefaultMaxPercentageOfLeftovers";
997
- TunaInstruction2[TunaInstruction2["SetDefaultMaxSwapSlippage"] = 36] = "SetDefaultMaxSwapSlippage";
998
- TunaInstruction2[TunaInstruction2["SetDefaultOraclePriceDeviationThreshold"] = 37] = "SetDefaultOraclePriceDeviationThreshold";
999
- TunaInstruction2[TunaInstruction2["SetFeeRecipient"] = 38] = "SetFeeRecipient";
1000
- TunaInstruction2[TunaInstruction2["SetLiquidatorAuthority"] = 39] = "SetLiquidatorAuthority";
1001
- TunaInstruction2[TunaInstruction2["SetOwnerAuthority"] = 40] = "SetOwnerAuthority";
1002
- TunaInstruction2[TunaInstruction2["SetSuspendedState"] = 41] = "SetSuspendedState";
1003
- TunaInstruction2[TunaInstruction2["SetTunaLpPositionFlags"] = 42] = "SetTunaLpPositionFlags";
1004
- TunaInstruction2[TunaInstruction2["SetTunaLpPositionLimitOrders"] = 43] = "SetTunaLpPositionLimitOrders";
1005
- TunaInstruction2[TunaInstruction2["SetTunaLpPositionRebalanceThreshold"] = 44] = "SetTunaLpPositionRebalanceThreshold";
1006
- TunaInstruction2[TunaInstruction2["SetTunaSpotPositionLimitOrders"] = 45] = "SetTunaSpotPositionLimitOrders";
1007
- TunaInstruction2[TunaInstruction2["UpdateMarket"] = 46] = "UpdateMarket";
1008
- TunaInstruction2[TunaInstruction2["UpdateVault"] = 47] = "UpdateVault";
1009
- TunaInstruction2[TunaInstruction2["Withdraw"] = 48] = "Withdraw";
980
+ TunaInstruction2[TunaInstruction2["LiquidateTunaSpotPositionJupiter"] = 19] = "LiquidateTunaSpotPositionJupiter";
981
+ TunaInstruction2[TunaInstruction2["LiquidateTunaSpotPositionOrca"] = 20] = "LiquidateTunaSpotPositionOrca";
982
+ TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionFusion"] = 21] = "ModifyTunaSpotPositionFusion";
983
+ TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionJupiter"] = 22] = "ModifyTunaSpotPositionJupiter";
984
+ TunaInstruction2[TunaInstruction2["ModifyTunaSpotPositionOrca"] = 23] = "ModifyTunaSpotPositionOrca";
985
+ TunaInstruction2[TunaInstruction2["OpenAndIncreaseTunaLpPositionFusion"] = 24] = "OpenAndIncreaseTunaLpPositionFusion";
986
+ TunaInstruction2[TunaInstruction2["OpenAndIncreaseTunaLpPositionOrca"] = 25] = "OpenAndIncreaseTunaLpPositionOrca";
987
+ TunaInstruction2[TunaInstruction2["OpenLendingPosition"] = 26] = "OpenLendingPosition";
988
+ TunaInstruction2[TunaInstruction2["OpenTunaLpPositionFusion"] = 27] = "OpenTunaLpPositionFusion";
989
+ TunaInstruction2[TunaInstruction2["OpenTunaLpPositionOrca"] = 28] = "OpenTunaLpPositionOrca";
990
+ TunaInstruction2[TunaInstruction2["OpenTunaSpotPosition"] = 29] = "OpenTunaSpotPosition";
991
+ TunaInstruction2[TunaInstruction2["RebalanceTunaLpPositionFusion"] = 30] = "RebalanceTunaLpPositionFusion";
992
+ TunaInstruction2[TunaInstruction2["RebalanceTunaLpPositionOrca"] = 31] = "RebalanceTunaLpPositionOrca";
993
+ TunaInstruction2[TunaInstruction2["RepayBadDebt"] = 32] = "RepayBadDebt";
994
+ TunaInstruction2[TunaInstruction2["RepayTunaLpPositionDebt"] = 33] = "RepayTunaLpPositionDebt";
995
+ TunaInstruction2[TunaInstruction2["ResetTunaSpotPosition"] = 34] = "ResetTunaSpotPosition";
996
+ TunaInstruction2[TunaInstruction2["SetAdminAuthority"] = 35] = "SetAdminAuthority";
997
+ TunaInstruction2[TunaInstruction2["SetDefaultMaxPercentageOfLeftovers"] = 36] = "SetDefaultMaxPercentageOfLeftovers";
998
+ TunaInstruction2[TunaInstruction2["SetDefaultMaxSwapSlippage"] = 37] = "SetDefaultMaxSwapSlippage";
999
+ TunaInstruction2[TunaInstruction2["SetDefaultOraclePriceDeviationThreshold"] = 38] = "SetDefaultOraclePriceDeviationThreshold";
1000
+ TunaInstruction2[TunaInstruction2["SetFeeRecipient"] = 39] = "SetFeeRecipient";
1001
+ TunaInstruction2[TunaInstruction2["SetLiquidatorAuthority"] = 40] = "SetLiquidatorAuthority";
1002
+ TunaInstruction2[TunaInstruction2["SetOwnerAuthority"] = 41] = "SetOwnerAuthority";
1003
+ TunaInstruction2[TunaInstruction2["SetSuspendedState"] = 42] = "SetSuspendedState";
1004
+ TunaInstruction2[TunaInstruction2["SetTunaLpPositionFlags"] = 43] = "SetTunaLpPositionFlags";
1005
+ TunaInstruction2[TunaInstruction2["SetTunaLpPositionLimitOrders"] = 44] = "SetTunaLpPositionLimitOrders";
1006
+ TunaInstruction2[TunaInstruction2["SetTunaLpPositionRebalanceThreshold"] = 45] = "SetTunaLpPositionRebalanceThreshold";
1007
+ TunaInstruction2[TunaInstruction2["SetTunaSpotPositionLimitOrders"] = 46] = "SetTunaSpotPositionLimitOrders";
1008
+ TunaInstruction2[TunaInstruction2["UpdateMarket"] = 47] = "UpdateMarket";
1009
+ TunaInstruction2[TunaInstruction2["UpdateVault"] = 48] = "UpdateVault";
1010
+ TunaInstruction2[TunaInstruction2["Withdraw"] = 49] = "Withdraw";
1010
1011
  return TunaInstruction2;
1011
1012
  })(TunaInstruction || {});
1012
1013
  function identifyTunaInstruction(instruction) {
@@ -1182,6 +1183,15 @@ function identifyTunaInstruction(instruction) {
1182
1183
  )) {
1183
1184
  return 18 /* LiquidateTunaSpotPositionFusion */;
1184
1185
  }
1186
+ if (containsBytes(
1187
+ data,
1188
+ fixEncoderSize7(getBytesEncoder7(), 8).encode(
1189
+ new Uint8Array([202, 175, 176, 66, 139, 120, 175, 193])
1190
+ ),
1191
+ 0
1192
+ )) {
1193
+ return 19 /* LiquidateTunaSpotPositionJupiter */;
1194
+ }
1185
1195
  if (containsBytes(
1186
1196
  data,
1187
1197
  fixEncoderSize7(getBytesEncoder7(), 8).encode(
@@ -1189,7 +1199,7 @@ function identifyTunaInstruction(instruction) {
1189
1199
  ),
1190
1200
  0
1191
1201
  )) {
1192
- return 19 /* LiquidateTunaSpotPositionOrca */;
1202
+ return 20 /* LiquidateTunaSpotPositionOrca */;
1193
1203
  }
1194
1204
  if (containsBytes(
1195
1205
  data,
@@ -1198,7 +1208,7 @@ function identifyTunaInstruction(instruction) {
1198
1208
  ),
1199
1209
  0
1200
1210
  )) {
1201
- return 20 /* ModifyTunaSpotPositionFusion */;
1211
+ return 21 /* ModifyTunaSpotPositionFusion */;
1202
1212
  }
1203
1213
  if (containsBytes(
1204
1214
  data,
@@ -1207,7 +1217,7 @@ function identifyTunaInstruction(instruction) {
1207
1217
  ),
1208
1218
  0
1209
1219
  )) {
1210
- return 21 /* ModifyTunaSpotPositionJupiter */;
1220
+ return 22 /* ModifyTunaSpotPositionJupiter */;
1211
1221
  }
1212
1222
  if (containsBytes(
1213
1223
  data,
@@ -1216,7 +1226,7 @@ function identifyTunaInstruction(instruction) {
1216
1226
  ),
1217
1227
  0
1218
1228
  )) {
1219
- return 22 /* ModifyTunaSpotPositionOrca */;
1229
+ return 23 /* ModifyTunaSpotPositionOrca */;
1220
1230
  }
1221
1231
  if (containsBytes(
1222
1232
  data,
@@ -1225,7 +1235,7 @@ function identifyTunaInstruction(instruction) {
1225
1235
  ),
1226
1236
  0
1227
1237
  )) {
1228
- return 23 /* OpenAndIncreaseTunaLpPositionFusion */;
1238
+ return 24 /* OpenAndIncreaseTunaLpPositionFusion */;
1229
1239
  }
1230
1240
  if (containsBytes(
1231
1241
  data,
@@ -1234,7 +1244,7 @@ function identifyTunaInstruction(instruction) {
1234
1244
  ),
1235
1245
  0
1236
1246
  )) {
1237
- return 24 /* OpenAndIncreaseTunaLpPositionOrca */;
1247
+ return 25 /* OpenAndIncreaseTunaLpPositionOrca */;
1238
1248
  }
1239
1249
  if (containsBytes(
1240
1250
  data,
@@ -1243,7 +1253,7 @@ function identifyTunaInstruction(instruction) {
1243
1253
  ),
1244
1254
  0
1245
1255
  )) {
1246
- return 25 /* OpenLendingPosition */;
1256
+ return 26 /* OpenLendingPosition */;
1247
1257
  }
1248
1258
  if (containsBytes(
1249
1259
  data,
@@ -1252,7 +1262,7 @@ function identifyTunaInstruction(instruction) {
1252
1262
  ),
1253
1263
  0
1254
1264
  )) {
1255
- return 26 /* OpenTunaLpPositionFusion */;
1265
+ return 27 /* OpenTunaLpPositionFusion */;
1256
1266
  }
1257
1267
  if (containsBytes(
1258
1268
  data,
@@ -1261,7 +1271,7 @@ function identifyTunaInstruction(instruction) {
1261
1271
  ),
1262
1272
  0
1263
1273
  )) {
1264
- return 27 /* OpenTunaLpPositionOrca */;
1274
+ return 28 /* OpenTunaLpPositionOrca */;
1265
1275
  }
1266
1276
  if (containsBytes(
1267
1277
  data,
@@ -1270,7 +1280,7 @@ function identifyTunaInstruction(instruction) {
1270
1280
  ),
1271
1281
  0
1272
1282
  )) {
1273
- return 28 /* OpenTunaSpotPosition */;
1283
+ return 29 /* OpenTunaSpotPosition */;
1274
1284
  }
1275
1285
  if (containsBytes(
1276
1286
  data,
@@ -1279,7 +1289,7 @@ function identifyTunaInstruction(instruction) {
1279
1289
  ),
1280
1290
  0
1281
1291
  )) {
1282
- return 29 /* RebalanceTunaLpPositionFusion */;
1292
+ return 30 /* RebalanceTunaLpPositionFusion */;
1283
1293
  }
1284
1294
  if (containsBytes(
1285
1295
  data,
@@ -1288,7 +1298,7 @@ function identifyTunaInstruction(instruction) {
1288
1298
  ),
1289
1299
  0
1290
1300
  )) {
1291
- return 30 /* RebalanceTunaLpPositionOrca */;
1301
+ return 31 /* RebalanceTunaLpPositionOrca */;
1292
1302
  }
1293
1303
  if (containsBytes(
1294
1304
  data,
@@ -1297,7 +1307,7 @@ function identifyTunaInstruction(instruction) {
1297
1307
  ),
1298
1308
  0
1299
1309
  )) {
1300
- return 31 /* RepayBadDebt */;
1310
+ return 32 /* RepayBadDebt */;
1301
1311
  }
1302
1312
  if (containsBytes(
1303
1313
  data,
@@ -1306,7 +1316,7 @@ function identifyTunaInstruction(instruction) {
1306
1316
  ),
1307
1317
  0
1308
1318
  )) {
1309
- return 32 /* RepayTunaLpPositionDebt */;
1319
+ return 33 /* RepayTunaLpPositionDebt */;
1310
1320
  }
1311
1321
  if (containsBytes(
1312
1322
  data,
@@ -1315,7 +1325,7 @@ function identifyTunaInstruction(instruction) {
1315
1325
  ),
1316
1326
  0
1317
1327
  )) {
1318
- return 33 /* ResetTunaSpotPosition */;
1328
+ return 34 /* ResetTunaSpotPosition */;
1319
1329
  }
1320
1330
  if (containsBytes(
1321
1331
  data,
@@ -1324,7 +1334,7 @@ function identifyTunaInstruction(instruction) {
1324
1334
  ),
1325
1335
  0
1326
1336
  )) {
1327
- return 34 /* SetAdminAuthority */;
1337
+ return 35 /* SetAdminAuthority */;
1328
1338
  }
1329
1339
  if (containsBytes(
1330
1340
  data,
@@ -1333,7 +1343,7 @@ function identifyTunaInstruction(instruction) {
1333
1343
  ),
1334
1344
  0
1335
1345
  )) {
1336
- return 35 /* SetDefaultMaxPercentageOfLeftovers */;
1346
+ return 36 /* SetDefaultMaxPercentageOfLeftovers */;
1337
1347
  }
1338
1348
  if (containsBytes(
1339
1349
  data,
@@ -1342,7 +1352,7 @@ function identifyTunaInstruction(instruction) {
1342
1352
  ),
1343
1353
  0
1344
1354
  )) {
1345
- return 36 /* SetDefaultMaxSwapSlippage */;
1355
+ return 37 /* SetDefaultMaxSwapSlippage */;
1346
1356
  }
1347
1357
  if (containsBytes(
1348
1358
  data,
@@ -1351,7 +1361,7 @@ function identifyTunaInstruction(instruction) {
1351
1361
  ),
1352
1362
  0
1353
1363
  )) {
1354
- return 37 /* SetDefaultOraclePriceDeviationThreshold */;
1364
+ return 38 /* SetDefaultOraclePriceDeviationThreshold */;
1355
1365
  }
1356
1366
  if (containsBytes(
1357
1367
  data,
@@ -1360,7 +1370,7 @@ function identifyTunaInstruction(instruction) {
1360
1370
  ),
1361
1371
  0
1362
1372
  )) {
1363
- return 38 /* SetFeeRecipient */;
1373
+ return 39 /* SetFeeRecipient */;
1364
1374
  }
1365
1375
  if (containsBytes(
1366
1376
  data,
@@ -1369,7 +1379,7 @@ function identifyTunaInstruction(instruction) {
1369
1379
  ),
1370
1380
  0
1371
1381
  )) {
1372
- return 39 /* SetLiquidatorAuthority */;
1382
+ return 40 /* SetLiquidatorAuthority */;
1373
1383
  }
1374
1384
  if (containsBytes(
1375
1385
  data,
@@ -1378,7 +1388,7 @@ function identifyTunaInstruction(instruction) {
1378
1388
  ),
1379
1389
  0
1380
1390
  )) {
1381
- return 40 /* SetOwnerAuthority */;
1391
+ return 41 /* SetOwnerAuthority */;
1382
1392
  }
1383
1393
  if (containsBytes(
1384
1394
  data,
@@ -1387,7 +1397,7 @@ function identifyTunaInstruction(instruction) {
1387
1397
  ),
1388
1398
  0
1389
1399
  )) {
1390
- return 41 /* SetSuspendedState */;
1400
+ return 42 /* SetSuspendedState */;
1391
1401
  }
1392
1402
  if (containsBytes(
1393
1403
  data,
@@ -1396,7 +1406,7 @@ function identifyTunaInstruction(instruction) {
1396
1406
  ),
1397
1407
  0
1398
1408
  )) {
1399
- return 42 /* SetTunaLpPositionFlags */;
1409
+ return 43 /* SetTunaLpPositionFlags */;
1400
1410
  }
1401
1411
  if (containsBytes(
1402
1412
  data,
@@ -1405,7 +1415,7 @@ function identifyTunaInstruction(instruction) {
1405
1415
  ),
1406
1416
  0
1407
1417
  )) {
1408
- return 43 /* SetTunaLpPositionLimitOrders */;
1418
+ return 44 /* SetTunaLpPositionLimitOrders */;
1409
1419
  }
1410
1420
  if (containsBytes(
1411
1421
  data,
@@ -1414,7 +1424,7 @@ function identifyTunaInstruction(instruction) {
1414
1424
  ),
1415
1425
  0
1416
1426
  )) {
1417
- return 44 /* SetTunaLpPositionRebalanceThreshold */;
1427
+ return 45 /* SetTunaLpPositionRebalanceThreshold */;
1418
1428
  }
1419
1429
  if (containsBytes(
1420
1430
  data,
@@ -1423,7 +1433,7 @@ function identifyTunaInstruction(instruction) {
1423
1433
  ),
1424
1434
  0
1425
1435
  )) {
1426
- return 45 /* SetTunaSpotPositionLimitOrders */;
1436
+ return 46 /* SetTunaSpotPositionLimitOrders */;
1427
1437
  }
1428
1438
  if (containsBytes(
1429
1439
  data,
@@ -1432,7 +1442,7 @@ function identifyTunaInstruction(instruction) {
1432
1442
  ),
1433
1443
  0
1434
1444
  )) {
1435
- return 46 /* UpdateMarket */;
1445
+ return 47 /* UpdateMarket */;
1436
1446
  }
1437
1447
  if (containsBytes(
1438
1448
  data,
@@ -1441,7 +1451,7 @@ function identifyTunaInstruction(instruction) {
1441
1451
  ),
1442
1452
  0
1443
1453
  )) {
1444
- return 47 /* UpdateVault */;
1454
+ return 48 /* UpdateVault */;
1445
1455
  }
1446
1456
  if (containsBytes(
1447
1457
  data,
@@ -1450,7 +1460,7 @@ function identifyTunaInstruction(instruction) {
1450
1460
  ),
1451
1461
  0
1452
1462
  )) {
1453
- return 48 /* Withdraw */;
1463
+ return 49 /* Withdraw */;
1454
1464
  }
1455
1465
  throw new Error(
1456
1466
  "The provided instruction could not be identified as a tuna instruction."
@@ -4677,8 +4687,10 @@ function parseLiquidateTunaSpotPositionFusionInstruction(instruction) {
4677
4687
  };
4678
4688
  }
4679
4689
 
4680
- // src/generated/instructions/liquidateTunaSpotPositionOrca.ts
4690
+ // src/generated/instructions/liquidateTunaSpotPositionJupiter.ts
4681
4691
  import {
4692
+ addDecoderSizePrefix,
4693
+ addEncoderSizePrefix,
4682
4694
  combineCodec as combineCodec32,
4683
4695
  fixDecoderSize as fixDecoderSize26,
4684
4696
  fixEncoderSize as fixEncoderSize27,
@@ -4690,48 +4702,39 @@ import {
4690
4702
  getU32Encoder as getU32Encoder13,
4691
4703
  transformEncoder as transformEncoder26
4692
4704
  } from "@solana/kit";
4693
- var LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
4694
- 4,
4695
- 211,
4696
- 103,
4697
- 145,
4698
- 6,
4699
- 1,
4700
- 243,
4701
- 162
4702
- ]);
4703
- function getLiquidateTunaSpotPositionOrcaDiscriminatorBytes() {
4705
+ var LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR = new Uint8Array([202, 175, 176, 66, 139, 120, 175, 193]);
4706
+ function getLiquidateTunaSpotPositionJupiterDiscriminatorBytes() {
4704
4707
  return fixEncoderSize27(getBytesEncoder27(), 8).encode(
4705
- LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
4708
+ LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
4706
4709
  );
4707
4710
  }
4708
- function getLiquidateTunaSpotPositionOrcaInstructionDataEncoder() {
4711
+ function getLiquidateTunaSpotPositionJupiterInstructionDataEncoder() {
4709
4712
  return transformEncoder26(
4710
4713
  getStructEncoder28([
4711
4714
  ["discriminator", fixEncoderSize27(getBytesEncoder27(), 8)],
4712
4715
  ["decreasePercent", getU32Encoder13()],
4713
- ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
4716
+ ["routeData", addEncoderSizePrefix(getBytesEncoder27(), getU32Encoder13())]
4714
4717
  ]),
4715
4718
  (value) => ({
4716
4719
  ...value,
4717
- discriminator: LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
4720
+ discriminator: LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
4718
4721
  })
4719
4722
  );
4720
4723
  }
4721
- function getLiquidateTunaSpotPositionOrcaInstructionDataDecoder() {
4724
+ function getLiquidateTunaSpotPositionJupiterInstructionDataDecoder() {
4722
4725
  return getStructDecoder28([
4723
4726
  ["discriminator", fixDecoderSize26(getBytesDecoder26(), 8)],
4724
4727
  ["decreasePercent", getU32Decoder13()],
4725
- ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
4728
+ ["routeData", addDecoderSizePrefix(getBytesDecoder26(), getU32Decoder13())]
4726
4729
  ]);
4727
4730
  }
4728
- function getLiquidateTunaSpotPositionOrcaInstructionDataCodec() {
4731
+ function getLiquidateTunaSpotPositionJupiterInstructionDataCodec() {
4729
4732
  return combineCodec32(
4730
- getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(),
4731
- getLiquidateTunaSpotPositionOrcaInstructionDataDecoder()
4733
+ getLiquidateTunaSpotPositionJupiterInstructionDataEncoder(),
4734
+ getLiquidateTunaSpotPositionJupiterInstructionDataDecoder()
4732
4735
  );
4733
4736
  }
4734
- function getLiquidateTunaSpotPositionOrcaInstruction(input, config) {
4737
+ function getLiquidateTunaSpotPositionJupiterInstruction(input, config) {
4735
4738
  const programAddress = config?.programAddress ?? TUNA_PROGRAM_ADDRESS;
4736
4739
  const originalAccounts = {
4737
4740
  authority: { value: input.authority ?? null, isWritable: true },
@@ -4782,16 +4785,25 @@ function getLiquidateTunaSpotPositionOrcaInstruction(input, config) {
4782
4785
  value: input.pythOraclePriceFeedB ?? null,
4783
4786
  isWritable: false
4784
4787
  },
4785
- whirlpoolProgram: {
4786
- value: input.whirlpoolProgram ?? null,
4788
+ pool: { value: input.pool ?? null, isWritable: false },
4789
+ jupiterProgram: { value: input.jupiterProgram ?? null, isWritable: false },
4790
+ jupiterEventAuthority: {
4791
+ value: input.jupiterEventAuthority ?? null,
4787
4792
  isWritable: false
4788
4793
  },
4789
- whirlpool: { value: input.whirlpool ?? null, isWritable: true },
4794
+ jupiterProgramAuthority: {
4795
+ value: input.jupiterProgramAuthority ?? null,
4796
+ isWritable: false
4797
+ },
4798
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
4790
4799
  memoProgram: { value: input.memoProgram ?? null, isWritable: false },
4791
4800
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
4792
4801
  };
4793
4802
  const accounts = originalAccounts;
4794
4803
  const args = { ...input };
4804
+ if (!accounts.tokenProgram.value) {
4805
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
4806
+ }
4795
4807
  if (!accounts.systemProgram.value) {
4796
4808
  accounts.systemProgram.value = "11111111111111111111111111111111";
4797
4809
  }
@@ -4819,20 +4831,23 @@ function getLiquidateTunaSpotPositionOrcaInstruction(input, config) {
4819
4831
  getAccountMeta(accounts.tunaPositionOwnerAtaB),
4820
4832
  getAccountMeta(accounts.pythOraclePriceFeedA),
4821
4833
  getAccountMeta(accounts.pythOraclePriceFeedB),
4822
- getAccountMeta(accounts.whirlpoolProgram),
4823
- getAccountMeta(accounts.whirlpool),
4834
+ getAccountMeta(accounts.pool),
4835
+ getAccountMeta(accounts.jupiterProgram),
4836
+ getAccountMeta(accounts.jupiterEventAuthority),
4837
+ getAccountMeta(accounts.jupiterProgramAuthority),
4838
+ getAccountMeta(accounts.tokenProgram),
4824
4839
  getAccountMeta(accounts.memoProgram),
4825
4840
  getAccountMeta(accounts.systemProgram)
4826
4841
  ],
4827
4842
  programAddress,
4828
- data: getLiquidateTunaSpotPositionOrcaInstructionDataEncoder().encode(
4843
+ data: getLiquidateTunaSpotPositionJupiterInstructionDataEncoder().encode(
4829
4844
  args
4830
4845
  )
4831
4846
  };
4832
4847
  return instruction;
4833
4848
  }
4834
- function parseLiquidateTunaSpotPositionOrcaInstruction(instruction) {
4835
- if (instruction.accounts.length < 25) {
4849
+ function parseLiquidateTunaSpotPositionJupiterInstruction(instruction) {
4850
+ if (instruction.accounts.length < 28) {
4836
4851
  throw new Error("Not enough accounts");
4837
4852
  }
4838
4853
  let accountIndex = 0;
@@ -4841,10 +4856,6 @@ function parseLiquidateTunaSpotPositionOrcaInstruction(instruction) {
4841
4856
  accountIndex += 1;
4842
4857
  return accountMeta;
4843
4858
  };
4844
- const getNextOptionalAccount = () => {
4845
- const accountMeta = getNextAccount();
4846
- return accountMeta.address === TUNA_PROGRAM_ADDRESS ? void 0 : accountMeta;
4847
- };
4848
4859
  return {
4849
4860
  programAddress: instruction.programAddress,
4850
4861
  accounts: {
@@ -4865,22 +4876,25 @@ function parseLiquidateTunaSpotPositionOrcaInstruction(instruction) {
4865
4876
  feeRecipientAtaA: getNextAccount(),
4866
4877
  feeRecipientAtaB: getNextAccount(),
4867
4878
  tunaPositionOwner: getNextAccount(),
4868
- tunaPositionOwnerAtaA: getNextOptionalAccount(),
4869
- tunaPositionOwnerAtaB: getNextOptionalAccount(),
4879
+ tunaPositionOwnerAtaA: getNextAccount(),
4880
+ tunaPositionOwnerAtaB: getNextAccount(),
4870
4881
  pythOraclePriceFeedA: getNextAccount(),
4871
4882
  pythOraclePriceFeedB: getNextAccount(),
4872
- whirlpoolProgram: getNextAccount(),
4873
- whirlpool: getNextAccount(),
4883
+ pool: getNextAccount(),
4884
+ jupiterProgram: getNextAccount(),
4885
+ jupiterEventAuthority: getNextAccount(),
4886
+ jupiterProgramAuthority: getNextAccount(),
4887
+ tokenProgram: getNextAccount(),
4874
4888
  memoProgram: getNextAccount(),
4875
4889
  systemProgram: getNextAccount()
4876
4890
  },
4877
- data: getLiquidateTunaSpotPositionOrcaInstructionDataDecoder().decode(
4891
+ data: getLiquidateTunaSpotPositionJupiterInstructionDataDecoder().decode(
4878
4892
  instruction.data
4879
4893
  )
4880
4894
  };
4881
4895
  }
4882
4896
 
4883
- // src/generated/instructions/modifyTunaSpotPositionFusion.ts
4897
+ // src/generated/instructions/liquidateTunaSpotPositionOrca.ts
4884
4898
  import {
4885
4899
  combineCodec as combineCodec33,
4886
4900
  fixDecoderSize as fixDecoderSize27,
@@ -4891,58 +4905,50 @@ import {
4891
4905
  getStructEncoder as getStructEncoder29,
4892
4906
  getU32Decoder as getU32Decoder14,
4893
4907
  getU32Encoder as getU32Encoder14,
4894
- getU64Decoder as getU64Decoder13,
4895
- getU64Encoder as getU64Encoder13,
4896
4908
  transformEncoder as transformEncoder27
4897
4909
  } from "@solana/kit";
4898
- var MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
4899
- 98,
4910
+ var LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
4900
4911
  4,
4901
- 199,
4902
- 84,
4903
- 98,
4904
- 89,
4905
- 36,
4906
- 30
4912
+ 211,
4913
+ 103,
4914
+ 145,
4915
+ 6,
4916
+ 1,
4917
+ 243,
4918
+ 162
4907
4919
  ]);
4908
- function getModifyTunaSpotPositionFusionDiscriminatorBytes() {
4920
+ function getLiquidateTunaSpotPositionOrcaDiscriminatorBytes() {
4909
4921
  return fixEncoderSize28(getBytesEncoder28(), 8).encode(
4910
- MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
4922
+ LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
4911
4923
  );
4912
4924
  }
4913
- function getModifyTunaSpotPositionFusionInstructionDataEncoder() {
4925
+ function getLiquidateTunaSpotPositionOrcaInstructionDataEncoder() {
4914
4926
  return transformEncoder27(
4915
4927
  getStructEncoder29([
4916
4928
  ["discriminator", fixEncoderSize28(getBytesEncoder28(), 8)],
4917
4929
  ["decreasePercent", getU32Encoder14()],
4918
- ["collateralAmount", getU64Encoder13()],
4919
- ["borrowAmount", getU64Encoder13()],
4920
- ["requiredSwapAmount", getU64Encoder13()],
4921
4930
  ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
4922
4931
  ]),
4923
4932
  (value) => ({
4924
4933
  ...value,
4925
- discriminator: MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
4934
+ discriminator: LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
4926
4935
  })
4927
4936
  );
4928
4937
  }
4929
- function getModifyTunaSpotPositionFusionInstructionDataDecoder() {
4938
+ function getLiquidateTunaSpotPositionOrcaInstructionDataDecoder() {
4930
4939
  return getStructDecoder29([
4931
4940
  ["discriminator", fixDecoderSize27(getBytesDecoder27(), 8)],
4932
4941
  ["decreasePercent", getU32Decoder14()],
4933
- ["collateralAmount", getU64Decoder13()],
4934
- ["borrowAmount", getU64Decoder13()],
4935
- ["requiredSwapAmount", getU64Decoder13()],
4936
4942
  ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
4937
4943
  ]);
4938
4944
  }
4939
- function getModifyTunaSpotPositionFusionInstructionDataCodec() {
4945
+ function getLiquidateTunaSpotPositionOrcaInstructionDataCodec() {
4940
4946
  return combineCodec33(
4941
- getModifyTunaSpotPositionFusionInstructionDataEncoder(),
4942
- getModifyTunaSpotPositionFusionInstructionDataDecoder()
4947
+ getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(),
4948
+ getLiquidateTunaSpotPositionOrcaInstructionDataDecoder()
4943
4949
  );
4944
4950
  }
4945
- function getModifyTunaSpotPositionFusionInstruction(input, config) {
4951
+ function getLiquidateTunaSpotPositionOrcaInstruction(input, config) {
4946
4952
  const programAddress = config?.programAddress ?? TUNA_PROGRAM_ADDRESS;
4947
4953
  const originalAccounts = {
4948
4954
  authority: { value: input.authority ?? null, isWritable: true },
@@ -4965,14 +4971,6 @@ function getModifyTunaSpotPositionFusionInstruction(input, config) {
4965
4971
  value: input.tunaPositionAtaB ?? null,
4966
4972
  isWritable: true
4967
4973
  },
4968
- tunaPositionOwnerAtaA: {
4969
- value: input.tunaPositionOwnerAtaA ?? null,
4970
- isWritable: true
4971
- },
4972
- tunaPositionOwnerAtaB: {
4973
- value: input.tunaPositionOwnerAtaB ?? null,
4974
- isWritable: true
4975
- },
4976
4974
  feeRecipientAtaA: {
4977
4975
  value: input.feeRecipientAtaA ?? null,
4978
4976
  isWritable: true
@@ -4981,6 +4979,18 @@ function getModifyTunaSpotPositionFusionInstruction(input, config) {
4981
4979
  value: input.feeRecipientAtaB ?? null,
4982
4980
  isWritable: true
4983
4981
  },
4982
+ tunaPositionOwner: {
4983
+ value: input.tunaPositionOwner ?? null,
4984
+ isWritable: true
4985
+ },
4986
+ tunaPositionOwnerAtaA: {
4987
+ value: input.tunaPositionOwnerAtaA ?? null,
4988
+ isWritable: true
4989
+ },
4990
+ tunaPositionOwnerAtaB: {
4991
+ value: input.tunaPositionOwnerAtaB ?? null,
4992
+ isWritable: true
4993
+ },
4984
4994
  pythOraclePriceFeedA: {
4985
4995
  value: input.pythOraclePriceFeedA ?? null,
4986
4996
  isWritable: false
@@ -4989,11 +4999,11 @@ function getModifyTunaSpotPositionFusionInstruction(input, config) {
4989
4999
  value: input.pythOraclePriceFeedB ?? null,
4990
5000
  isWritable: false
4991
5001
  },
4992
- fusionammProgram: {
4993
- value: input.fusionammProgram ?? null,
5002
+ whirlpoolProgram: {
5003
+ value: input.whirlpoolProgram ?? null,
4994
5004
  isWritable: false
4995
5005
  },
4996
- fusionPool: { value: input.fusionPool ?? null, isWritable: true },
5006
+ whirlpool: { value: input.whirlpool ?? null, isWritable: true },
4997
5007
  memoProgram: { value: input.memoProgram ?? null, isWritable: false },
4998
5008
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
4999
5009
  };
@@ -5019,26 +5029,27 @@ function getModifyTunaSpotPositionFusionInstruction(input, config) {
5019
5029
  getAccountMeta(accounts.tunaPosition),
5020
5030
  getAccountMeta(accounts.tunaPositionAtaA),
5021
5031
  getAccountMeta(accounts.tunaPositionAtaB),
5022
- getAccountMeta(accounts.tunaPositionOwnerAtaA),
5023
- getAccountMeta(accounts.tunaPositionOwnerAtaB),
5024
5032
  getAccountMeta(accounts.feeRecipientAtaA),
5025
5033
  getAccountMeta(accounts.feeRecipientAtaB),
5034
+ getAccountMeta(accounts.tunaPositionOwner),
5035
+ getAccountMeta(accounts.tunaPositionOwnerAtaA),
5036
+ getAccountMeta(accounts.tunaPositionOwnerAtaB),
5026
5037
  getAccountMeta(accounts.pythOraclePriceFeedA),
5027
5038
  getAccountMeta(accounts.pythOraclePriceFeedB),
5028
- getAccountMeta(accounts.fusionammProgram),
5029
- getAccountMeta(accounts.fusionPool),
5039
+ getAccountMeta(accounts.whirlpoolProgram),
5040
+ getAccountMeta(accounts.whirlpool),
5030
5041
  getAccountMeta(accounts.memoProgram),
5031
5042
  getAccountMeta(accounts.systemProgram)
5032
5043
  ],
5033
5044
  programAddress,
5034
- data: getModifyTunaSpotPositionFusionInstructionDataEncoder().encode(
5045
+ data: getLiquidateTunaSpotPositionOrcaInstructionDataEncoder().encode(
5035
5046
  args
5036
5047
  )
5037
5048
  };
5038
5049
  return instruction;
5039
5050
  }
5040
- function parseModifyTunaSpotPositionFusionInstruction(instruction) {
5041
- if (instruction.accounts.length < 24) {
5051
+ function parseLiquidateTunaSpotPositionOrcaInstruction(instruction) {
5052
+ if (instruction.accounts.length < 25) {
5042
5053
  throw new Error("Not enough accounts");
5043
5054
  }
5044
5055
  let accountIndex = 0;
@@ -5068,27 +5079,26 @@ function parseModifyTunaSpotPositionFusionInstruction(instruction) {
5068
5079
  tunaPosition: getNextAccount(),
5069
5080
  tunaPositionAtaA: getNextAccount(),
5070
5081
  tunaPositionAtaB: getNextAccount(),
5071
- tunaPositionOwnerAtaA: getNextOptionalAccount(),
5072
- tunaPositionOwnerAtaB: getNextOptionalAccount(),
5073
5082
  feeRecipientAtaA: getNextAccount(),
5074
5083
  feeRecipientAtaB: getNextAccount(),
5084
+ tunaPositionOwner: getNextAccount(),
5085
+ tunaPositionOwnerAtaA: getNextOptionalAccount(),
5086
+ tunaPositionOwnerAtaB: getNextOptionalAccount(),
5075
5087
  pythOraclePriceFeedA: getNextAccount(),
5076
5088
  pythOraclePriceFeedB: getNextAccount(),
5077
- fusionammProgram: getNextAccount(),
5078
- fusionPool: getNextAccount(),
5089
+ whirlpoolProgram: getNextAccount(),
5090
+ whirlpool: getNextAccount(),
5079
5091
  memoProgram: getNextAccount(),
5080
5092
  systemProgram: getNextAccount()
5081
5093
  },
5082
- data: getModifyTunaSpotPositionFusionInstructionDataDecoder().decode(
5094
+ data: getLiquidateTunaSpotPositionOrcaInstructionDataDecoder().decode(
5083
5095
  instruction.data
5084
5096
  )
5085
5097
  };
5086
5098
  }
5087
5099
 
5088
- // src/generated/instructions/modifyTunaSpotPositionJupiter.ts
5100
+ // src/generated/instructions/modifyTunaSpotPositionFusion.ts
5089
5101
  import {
5090
- addDecoderSizePrefix,
5091
- addEncoderSizePrefix,
5092
5102
  combineCodec as combineCodec34,
5093
5103
  fixDecoderSize as fixDecoderSize28,
5094
5104
  fixEncoderSize as fixEncoderSize29,
@@ -5098,56 +5108,58 @@ import {
5098
5108
  getStructEncoder as getStructEncoder30,
5099
5109
  getU32Decoder as getU32Decoder15,
5100
5110
  getU32Encoder as getU32Encoder15,
5101
- getU64Decoder as getU64Decoder14,
5102
- getU64Encoder as getU64Encoder14,
5111
+ getU64Decoder as getU64Decoder13,
5112
+ getU64Encoder as getU64Encoder13,
5103
5113
  transformEncoder as transformEncoder28
5104
5114
  } from "@solana/kit";
5105
- var MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR = new Uint8Array([
5106
- 35,
5107
- 235,
5108
- 114,
5109
- 104,
5110
- 23,
5111
- 51,
5112
- 164,
5113
- 9
5115
+ var MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
5116
+ 98,
5117
+ 4,
5118
+ 199,
5119
+ 84,
5120
+ 98,
5121
+ 89,
5122
+ 36,
5123
+ 30
5114
5124
  ]);
5115
- function getModifyTunaSpotPositionJupiterDiscriminatorBytes() {
5125
+ function getModifyTunaSpotPositionFusionDiscriminatorBytes() {
5116
5126
  return fixEncoderSize29(getBytesEncoder29(), 8).encode(
5117
- MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
5127
+ MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
5118
5128
  );
5119
5129
  }
5120
- function getModifyTunaSpotPositionJupiterInstructionDataEncoder() {
5130
+ function getModifyTunaSpotPositionFusionInstructionDataEncoder() {
5121
5131
  return transformEncoder28(
5122
5132
  getStructEncoder30([
5123
5133
  ["discriminator", fixEncoderSize29(getBytesEncoder29(), 8)],
5124
5134
  ["decreasePercent", getU32Encoder15()],
5125
- ["collateralAmount", getU64Encoder14()],
5126
- ["borrowAmount", getU64Encoder14()],
5127
- ["routeData", addEncoderSizePrefix(getBytesEncoder29(), getU32Encoder15())]
5135
+ ["collateralAmount", getU64Encoder13()],
5136
+ ["borrowAmount", getU64Encoder13()],
5137
+ ["requiredSwapAmount", getU64Encoder13()],
5138
+ ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
5128
5139
  ]),
5129
5140
  (value) => ({
5130
5141
  ...value,
5131
- discriminator: MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
5142
+ discriminator: MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
5132
5143
  })
5133
5144
  );
5134
5145
  }
5135
- function getModifyTunaSpotPositionJupiterInstructionDataDecoder() {
5146
+ function getModifyTunaSpotPositionFusionInstructionDataDecoder() {
5136
5147
  return getStructDecoder30([
5137
5148
  ["discriminator", fixDecoderSize28(getBytesDecoder28(), 8)],
5138
5149
  ["decreasePercent", getU32Decoder15()],
5139
- ["collateralAmount", getU64Decoder14()],
5140
- ["borrowAmount", getU64Decoder14()],
5141
- ["routeData", addDecoderSizePrefix(getBytesDecoder28(), getU32Decoder15())]
5150
+ ["collateralAmount", getU64Decoder13()],
5151
+ ["borrowAmount", getU64Decoder13()],
5152
+ ["requiredSwapAmount", getU64Decoder13()],
5153
+ ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
5142
5154
  ]);
5143
5155
  }
5144
- function getModifyTunaSpotPositionJupiterInstructionDataCodec() {
5156
+ function getModifyTunaSpotPositionFusionInstructionDataCodec() {
5145
5157
  return combineCodec34(
5146
- getModifyTunaSpotPositionJupiterInstructionDataEncoder(),
5147
- getModifyTunaSpotPositionJupiterInstructionDataDecoder()
5158
+ getModifyTunaSpotPositionFusionInstructionDataEncoder(),
5159
+ getModifyTunaSpotPositionFusionInstructionDataDecoder()
5148
5160
  );
5149
5161
  }
5150
- function getModifyTunaSpotPositionJupiterInstruction(input, config) {
5162
+ function getModifyTunaSpotPositionFusionInstruction(input, config) {
5151
5163
  const programAddress = config?.programAddress ?? TUNA_PROGRAM_ADDRESS;
5152
5164
  const originalAccounts = {
5153
5165
  authority: { value: input.authority ?? null, isWritable: true },
@@ -5194,25 +5206,16 @@ function getModifyTunaSpotPositionJupiterInstruction(input, config) {
5194
5206
  value: input.pythOraclePriceFeedB ?? null,
5195
5207
  isWritable: false
5196
5208
  },
5197
- pool: { value: input.pool ?? null, isWritable: false },
5198
- jupiterProgram: { value: input.jupiterProgram ?? null, isWritable: false },
5199
- jupiterEventAuthority: {
5200
- value: input.jupiterEventAuthority ?? null,
5201
- isWritable: false
5202
- },
5203
- jupiterProgramAuthority: {
5204
- value: input.jupiterProgramAuthority ?? null,
5209
+ fusionammProgram: {
5210
+ value: input.fusionammProgram ?? null,
5205
5211
  isWritable: false
5206
5212
  },
5207
- tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
5213
+ fusionPool: { value: input.fusionPool ?? null, isWritable: true },
5208
5214
  memoProgram: { value: input.memoProgram ?? null, isWritable: false },
5209
5215
  systemProgram: { value: input.systemProgram ?? null, isWritable: false }
5210
5216
  };
5211
5217
  const accounts = originalAccounts;
5212
5218
  const args = { ...input };
5213
- if (!accounts.tokenProgram.value) {
5214
- accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
5215
- }
5216
5219
  if (!accounts.systemProgram.value) {
5217
5220
  accounts.systemProgram.value = "11111111111111111111111111111111";
5218
5221
  }
@@ -5239,23 +5242,20 @@ function getModifyTunaSpotPositionJupiterInstruction(input, config) {
5239
5242
  getAccountMeta(accounts.feeRecipientAtaB),
5240
5243
  getAccountMeta(accounts.pythOraclePriceFeedA),
5241
5244
  getAccountMeta(accounts.pythOraclePriceFeedB),
5242
- getAccountMeta(accounts.pool),
5243
- getAccountMeta(accounts.jupiterProgram),
5244
- getAccountMeta(accounts.jupiterEventAuthority),
5245
- getAccountMeta(accounts.jupiterProgramAuthority),
5246
- getAccountMeta(accounts.tokenProgram),
5245
+ getAccountMeta(accounts.fusionammProgram),
5246
+ getAccountMeta(accounts.fusionPool),
5247
5247
  getAccountMeta(accounts.memoProgram),
5248
5248
  getAccountMeta(accounts.systemProgram)
5249
5249
  ],
5250
5250
  programAddress,
5251
- data: getModifyTunaSpotPositionJupiterInstructionDataEncoder().encode(
5251
+ data: getModifyTunaSpotPositionFusionInstructionDataEncoder().encode(
5252
5252
  args
5253
5253
  )
5254
5254
  };
5255
5255
  return instruction;
5256
5256
  }
5257
- function parseModifyTunaSpotPositionJupiterInstruction(instruction) {
5258
- if (instruction.accounts.length < 27) {
5257
+ function parseModifyTunaSpotPositionFusionInstruction(instruction) {
5258
+ if (instruction.accounts.length < 24) {
5259
5259
  throw new Error("Not enough accounts");
5260
5260
  }
5261
5261
  let accountIndex = 0;
@@ -5264,6 +5264,10 @@ function parseModifyTunaSpotPositionJupiterInstruction(instruction) {
5264
5264
  accountIndex += 1;
5265
5265
  return accountMeta;
5266
5266
  };
5267
+ const getNextOptionalAccount = () => {
5268
+ const accountMeta = getNextAccount();
5269
+ return accountMeta.address === TUNA_PROGRAM_ADDRESS ? void 0 : accountMeta;
5270
+ };
5267
5271
  return {
5268
5272
  programAddress: instruction.programAddress,
5269
5273
  accounts: {
@@ -5281,28 +5285,27 @@ function parseModifyTunaSpotPositionJupiterInstruction(instruction) {
5281
5285
  tunaPosition: getNextAccount(),
5282
5286
  tunaPositionAtaA: getNextAccount(),
5283
5287
  tunaPositionAtaB: getNextAccount(),
5284
- tunaPositionOwnerAtaA: getNextAccount(),
5285
- tunaPositionOwnerAtaB: getNextAccount(),
5288
+ tunaPositionOwnerAtaA: getNextOptionalAccount(),
5289
+ tunaPositionOwnerAtaB: getNextOptionalAccount(),
5286
5290
  feeRecipientAtaA: getNextAccount(),
5287
5291
  feeRecipientAtaB: getNextAccount(),
5288
5292
  pythOraclePriceFeedA: getNextAccount(),
5289
5293
  pythOraclePriceFeedB: getNextAccount(),
5290
- pool: getNextAccount(),
5291
- jupiterProgram: getNextAccount(),
5292
- jupiterEventAuthority: getNextAccount(),
5293
- jupiterProgramAuthority: getNextAccount(),
5294
- tokenProgram: getNextAccount(),
5294
+ fusionammProgram: getNextAccount(),
5295
+ fusionPool: getNextAccount(),
5295
5296
  memoProgram: getNextAccount(),
5296
5297
  systemProgram: getNextAccount()
5297
5298
  },
5298
- data: getModifyTunaSpotPositionJupiterInstructionDataDecoder().decode(
5299
+ data: getModifyTunaSpotPositionFusionInstructionDataDecoder().decode(
5299
5300
  instruction.data
5300
5301
  )
5301
5302
  };
5302
5303
  }
5303
5304
 
5304
- // src/generated/instructions/modifyTunaSpotPositionOrca.ts
5305
+ // src/generated/instructions/modifyTunaSpotPositionJupiter.ts
5305
5306
  import {
5307
+ addDecoderSizePrefix as addDecoderSizePrefix2,
5308
+ addEncoderSizePrefix as addEncoderSizePrefix2,
5306
5309
  combineCodec as combineCodec35,
5307
5310
  fixDecoderSize as fixDecoderSize29,
5308
5311
  fixEncoderSize as fixEncoderSize30,
@@ -5312,9 +5315,223 @@ import {
5312
5315
  getStructEncoder as getStructEncoder31,
5313
5316
  getU32Decoder as getU32Decoder16,
5314
5317
  getU32Encoder as getU32Encoder16,
5318
+ getU64Decoder as getU64Decoder14,
5319
+ getU64Encoder as getU64Encoder14,
5320
+ transformEncoder as transformEncoder29
5321
+ } from "@solana/kit";
5322
+ var MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR = new Uint8Array([
5323
+ 35,
5324
+ 235,
5325
+ 114,
5326
+ 104,
5327
+ 23,
5328
+ 51,
5329
+ 164,
5330
+ 9
5331
+ ]);
5332
+ function getModifyTunaSpotPositionJupiterDiscriminatorBytes() {
5333
+ return fixEncoderSize30(getBytesEncoder30(), 8).encode(
5334
+ MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
5335
+ );
5336
+ }
5337
+ function getModifyTunaSpotPositionJupiterInstructionDataEncoder() {
5338
+ return transformEncoder29(
5339
+ getStructEncoder31([
5340
+ ["discriminator", fixEncoderSize30(getBytesEncoder30(), 8)],
5341
+ ["decreasePercent", getU32Encoder16()],
5342
+ ["collateralAmount", getU64Encoder14()],
5343
+ ["borrowAmount", getU64Encoder14()],
5344
+ ["routeData", addEncoderSizePrefix2(getBytesEncoder30(), getU32Encoder16())]
5345
+ ]),
5346
+ (value) => ({
5347
+ ...value,
5348
+ discriminator: MODIFY_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
5349
+ })
5350
+ );
5351
+ }
5352
+ function getModifyTunaSpotPositionJupiterInstructionDataDecoder() {
5353
+ return getStructDecoder31([
5354
+ ["discriminator", fixDecoderSize29(getBytesDecoder29(), 8)],
5355
+ ["decreasePercent", getU32Decoder16()],
5356
+ ["collateralAmount", getU64Decoder14()],
5357
+ ["borrowAmount", getU64Decoder14()],
5358
+ ["routeData", addDecoderSizePrefix2(getBytesDecoder29(), getU32Decoder16())]
5359
+ ]);
5360
+ }
5361
+ function getModifyTunaSpotPositionJupiterInstructionDataCodec() {
5362
+ return combineCodec35(
5363
+ getModifyTunaSpotPositionJupiterInstructionDataEncoder(),
5364
+ getModifyTunaSpotPositionJupiterInstructionDataDecoder()
5365
+ );
5366
+ }
5367
+ function getModifyTunaSpotPositionJupiterInstruction(input, config) {
5368
+ const programAddress = config?.programAddress ?? TUNA_PROGRAM_ADDRESS;
5369
+ const originalAccounts = {
5370
+ authority: { value: input.authority ?? null, isWritable: true },
5371
+ tunaConfig: { value: input.tunaConfig ?? null, isWritable: false },
5372
+ mintA: { value: input.mintA ?? null, isWritable: false },
5373
+ mintB: { value: input.mintB ?? null, isWritable: false },
5374
+ tokenProgramA: { value: input.tokenProgramA ?? null, isWritable: false },
5375
+ tokenProgramB: { value: input.tokenProgramB ?? null, isWritable: false },
5376
+ market: { value: input.market ?? null, isWritable: true },
5377
+ vaultA: { value: input.vaultA ?? null, isWritable: true },
5378
+ vaultB: { value: input.vaultB ?? null, isWritable: true },
5379
+ vaultAAta: { value: input.vaultAAta ?? null, isWritable: true },
5380
+ vaultBAta: { value: input.vaultBAta ?? null, isWritable: true },
5381
+ tunaPosition: { value: input.tunaPosition ?? null, isWritable: true },
5382
+ tunaPositionAtaA: {
5383
+ value: input.tunaPositionAtaA ?? null,
5384
+ isWritable: true
5385
+ },
5386
+ tunaPositionAtaB: {
5387
+ value: input.tunaPositionAtaB ?? null,
5388
+ isWritable: true
5389
+ },
5390
+ tunaPositionOwnerAtaA: {
5391
+ value: input.tunaPositionOwnerAtaA ?? null,
5392
+ isWritable: true
5393
+ },
5394
+ tunaPositionOwnerAtaB: {
5395
+ value: input.tunaPositionOwnerAtaB ?? null,
5396
+ isWritable: true
5397
+ },
5398
+ feeRecipientAtaA: {
5399
+ value: input.feeRecipientAtaA ?? null,
5400
+ isWritable: true
5401
+ },
5402
+ feeRecipientAtaB: {
5403
+ value: input.feeRecipientAtaB ?? null,
5404
+ isWritable: true
5405
+ },
5406
+ pythOraclePriceFeedA: {
5407
+ value: input.pythOraclePriceFeedA ?? null,
5408
+ isWritable: false
5409
+ },
5410
+ pythOraclePriceFeedB: {
5411
+ value: input.pythOraclePriceFeedB ?? null,
5412
+ isWritable: false
5413
+ },
5414
+ pool: { value: input.pool ?? null, isWritable: false },
5415
+ jupiterProgram: { value: input.jupiterProgram ?? null, isWritable: false },
5416
+ jupiterEventAuthority: {
5417
+ value: input.jupiterEventAuthority ?? null,
5418
+ isWritable: false
5419
+ },
5420
+ jupiterProgramAuthority: {
5421
+ value: input.jupiterProgramAuthority ?? null,
5422
+ isWritable: false
5423
+ },
5424
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
5425
+ memoProgram: { value: input.memoProgram ?? null, isWritable: false },
5426
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
5427
+ };
5428
+ const accounts = originalAccounts;
5429
+ const args = { ...input };
5430
+ if (!accounts.tokenProgram.value) {
5431
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
5432
+ }
5433
+ if (!accounts.systemProgram.value) {
5434
+ accounts.systemProgram.value = "11111111111111111111111111111111";
5435
+ }
5436
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
5437
+ const instruction = {
5438
+ accounts: [
5439
+ getAccountMeta(accounts.authority),
5440
+ getAccountMeta(accounts.tunaConfig),
5441
+ getAccountMeta(accounts.mintA),
5442
+ getAccountMeta(accounts.mintB),
5443
+ getAccountMeta(accounts.tokenProgramA),
5444
+ getAccountMeta(accounts.tokenProgramB),
5445
+ getAccountMeta(accounts.market),
5446
+ getAccountMeta(accounts.vaultA),
5447
+ getAccountMeta(accounts.vaultB),
5448
+ getAccountMeta(accounts.vaultAAta),
5449
+ getAccountMeta(accounts.vaultBAta),
5450
+ getAccountMeta(accounts.tunaPosition),
5451
+ getAccountMeta(accounts.tunaPositionAtaA),
5452
+ getAccountMeta(accounts.tunaPositionAtaB),
5453
+ getAccountMeta(accounts.tunaPositionOwnerAtaA),
5454
+ getAccountMeta(accounts.tunaPositionOwnerAtaB),
5455
+ getAccountMeta(accounts.feeRecipientAtaA),
5456
+ getAccountMeta(accounts.feeRecipientAtaB),
5457
+ getAccountMeta(accounts.pythOraclePriceFeedA),
5458
+ getAccountMeta(accounts.pythOraclePriceFeedB),
5459
+ getAccountMeta(accounts.pool),
5460
+ getAccountMeta(accounts.jupiterProgram),
5461
+ getAccountMeta(accounts.jupiterEventAuthority),
5462
+ getAccountMeta(accounts.jupiterProgramAuthority),
5463
+ getAccountMeta(accounts.tokenProgram),
5464
+ getAccountMeta(accounts.memoProgram),
5465
+ getAccountMeta(accounts.systemProgram)
5466
+ ],
5467
+ programAddress,
5468
+ data: getModifyTunaSpotPositionJupiterInstructionDataEncoder().encode(
5469
+ args
5470
+ )
5471
+ };
5472
+ return instruction;
5473
+ }
5474
+ function parseModifyTunaSpotPositionJupiterInstruction(instruction) {
5475
+ if (instruction.accounts.length < 27) {
5476
+ throw new Error("Not enough accounts");
5477
+ }
5478
+ let accountIndex = 0;
5479
+ const getNextAccount = () => {
5480
+ const accountMeta = instruction.accounts[accountIndex];
5481
+ accountIndex += 1;
5482
+ return accountMeta;
5483
+ };
5484
+ return {
5485
+ programAddress: instruction.programAddress,
5486
+ accounts: {
5487
+ authority: getNextAccount(),
5488
+ tunaConfig: getNextAccount(),
5489
+ mintA: getNextAccount(),
5490
+ mintB: getNextAccount(),
5491
+ tokenProgramA: getNextAccount(),
5492
+ tokenProgramB: getNextAccount(),
5493
+ market: getNextAccount(),
5494
+ vaultA: getNextAccount(),
5495
+ vaultB: getNextAccount(),
5496
+ vaultAAta: getNextAccount(),
5497
+ vaultBAta: getNextAccount(),
5498
+ tunaPosition: getNextAccount(),
5499
+ tunaPositionAtaA: getNextAccount(),
5500
+ tunaPositionAtaB: getNextAccount(),
5501
+ tunaPositionOwnerAtaA: getNextAccount(),
5502
+ tunaPositionOwnerAtaB: getNextAccount(),
5503
+ feeRecipientAtaA: getNextAccount(),
5504
+ feeRecipientAtaB: getNextAccount(),
5505
+ pythOraclePriceFeedA: getNextAccount(),
5506
+ pythOraclePriceFeedB: getNextAccount(),
5507
+ pool: getNextAccount(),
5508
+ jupiterProgram: getNextAccount(),
5509
+ jupiterEventAuthority: getNextAccount(),
5510
+ jupiterProgramAuthority: getNextAccount(),
5511
+ tokenProgram: getNextAccount(),
5512
+ memoProgram: getNextAccount(),
5513
+ systemProgram: getNextAccount()
5514
+ },
5515
+ data: getModifyTunaSpotPositionJupiterInstructionDataDecoder().decode(
5516
+ instruction.data
5517
+ )
5518
+ };
5519
+ }
5520
+
5521
+ // src/generated/instructions/modifyTunaSpotPositionOrca.ts
5522
+ import {
5523
+ combineCodec as combineCodec36,
5524
+ fixDecoderSize as fixDecoderSize30,
5525
+ fixEncoderSize as fixEncoderSize31,
5526
+ getBytesDecoder as getBytesDecoder30,
5527
+ getBytesEncoder as getBytesEncoder31,
5528
+ getStructDecoder as getStructDecoder32,
5529
+ getStructEncoder as getStructEncoder32,
5530
+ getU32Decoder as getU32Decoder17,
5531
+ getU32Encoder as getU32Encoder17,
5315
5532
  getU64Decoder as getU64Decoder15,
5316
5533
  getU64Encoder as getU64Encoder15,
5317
- transformEncoder as transformEncoder29
5534
+ transformEncoder as transformEncoder30
5318
5535
  } from "@solana/kit";
5319
5536
  var MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
5320
5537
  133,
@@ -5327,15 +5544,15 @@ var MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
5327
5544
  218
5328
5545
  ]);
5329
5546
  function getModifyTunaSpotPositionOrcaDiscriminatorBytes() {
5330
- return fixEncoderSize30(getBytesEncoder30(), 8).encode(
5547
+ return fixEncoderSize31(getBytesEncoder31(), 8).encode(
5331
5548
  MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
5332
5549
  );
5333
5550
  }
5334
5551
  function getModifyTunaSpotPositionOrcaInstructionDataEncoder() {
5335
- return transformEncoder29(
5336
- getStructEncoder31([
5337
- ["discriminator", fixEncoderSize30(getBytesEncoder30(), 8)],
5338
- ["decreasePercent", getU32Encoder16()],
5552
+ return transformEncoder30(
5553
+ getStructEncoder32([
5554
+ ["discriminator", fixEncoderSize31(getBytesEncoder31(), 8)],
5555
+ ["decreasePercent", getU32Encoder17()],
5339
5556
  ["collateralAmount", getU64Encoder15()],
5340
5557
  ["borrowAmount", getU64Encoder15()],
5341
5558
  ["requiredSwapAmount", getU64Encoder15()],
@@ -5348,9 +5565,9 @@ function getModifyTunaSpotPositionOrcaInstructionDataEncoder() {
5348
5565
  );
5349
5566
  }
5350
5567
  function getModifyTunaSpotPositionOrcaInstructionDataDecoder() {
5351
- return getStructDecoder31([
5352
- ["discriminator", fixDecoderSize29(getBytesDecoder29(), 8)],
5353
- ["decreasePercent", getU32Decoder16()],
5568
+ return getStructDecoder32([
5569
+ ["discriminator", fixDecoderSize30(getBytesDecoder30(), 8)],
5570
+ ["decreasePercent", getU32Decoder17()],
5354
5571
  ["collateralAmount", getU64Decoder15()],
5355
5572
  ["borrowAmount", getU64Decoder15()],
5356
5573
  ["requiredSwapAmount", getU64Decoder15()],
@@ -5358,7 +5575,7 @@ function getModifyTunaSpotPositionOrcaInstructionDataDecoder() {
5358
5575
  ]);
5359
5576
  }
5360
5577
  function getModifyTunaSpotPositionOrcaInstructionDataCodec() {
5361
- return combineCodec35(
5578
+ return combineCodec36(
5362
5579
  getModifyTunaSpotPositionOrcaInstructionDataEncoder(),
5363
5580
  getModifyTunaSpotPositionOrcaInstructionDataDecoder()
5364
5581
  );
@@ -5508,45 +5725,45 @@ function parseModifyTunaSpotPositionOrcaInstruction(instruction) {
5508
5725
 
5509
5726
  // src/generated/instructions/openAndIncreaseTunaLpPositionFusion.ts
5510
5727
  import {
5511
- combineCodec as combineCodec36,
5512
- fixDecoderSize as fixDecoderSize30,
5513
- fixEncoderSize as fixEncoderSize31,
5514
- getBytesDecoder as getBytesDecoder30,
5515
- getBytesEncoder as getBytesEncoder31,
5728
+ combineCodec as combineCodec37,
5729
+ fixDecoderSize as fixDecoderSize31,
5730
+ fixEncoderSize as fixEncoderSize32,
5731
+ getBytesDecoder as getBytesDecoder31,
5732
+ getBytesEncoder as getBytesEncoder32,
5516
5733
  getI32Decoder as getI32Decoder2,
5517
5734
  getI32Encoder as getI32Encoder2,
5518
- getStructDecoder as getStructDecoder32,
5519
- getStructEncoder as getStructEncoder32,
5735
+ getStructDecoder as getStructDecoder33,
5736
+ getStructEncoder as getStructEncoder33,
5520
5737
  getU128Decoder as getU128Decoder3,
5521
5738
  getU128Encoder as getU128Encoder3,
5522
- getU32Decoder as getU32Decoder17,
5523
- getU32Encoder as getU32Encoder17,
5739
+ getU32Decoder as getU32Decoder18,
5740
+ getU32Encoder as getU32Encoder18,
5524
5741
  getU64Decoder as getU64Decoder16,
5525
5742
  getU64Encoder as getU64Encoder16,
5526
- transformEncoder as transformEncoder30
5743
+ transformEncoder as transformEncoder31
5527
5744
  } from "@solana/kit";
5528
5745
  var OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([123, 115, 192, 91, 113, 191, 73, 56]);
5529
5746
  function getOpenAndIncreaseTunaLpPositionFusionDiscriminatorBytes() {
5530
- return fixEncoderSize31(getBytesEncoder31(), 8).encode(
5747
+ return fixEncoderSize32(getBytesEncoder32(), 8).encode(
5531
5748
  OPEN_AND_INCREASE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR
5532
5749
  );
5533
5750
  }
5534
5751
  function getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder() {
5535
- return transformEncoder30(
5536
- getStructEncoder32([
5537
- ["discriminator", fixEncoderSize31(getBytesEncoder31(), 8)],
5752
+ return transformEncoder31(
5753
+ getStructEncoder33([
5754
+ ["discriminator", fixEncoderSize32(getBytesEncoder32(), 8)],
5538
5755
  ["tickLowerIndex", getI32Encoder2()],
5539
5756
  ["tickUpperIndex", getI32Encoder2()],
5540
5757
  ["lowerLimitOrderSqrtPrice", getU128Encoder3()],
5541
5758
  ["upperLimitOrderSqrtPrice", getU128Encoder3()],
5542
- ["flags", getU32Encoder17()],
5759
+ ["flags", getU32Encoder18()],
5543
5760
  ["collateralA", getU64Encoder16()],
5544
5761
  ["collateralB", getU64Encoder16()],
5545
5762
  ["borrowA", getU64Encoder16()],
5546
5763
  ["borrowB", getU64Encoder16()],
5547
5764
  ["minAddedAmountA", getU64Encoder16()],
5548
5765
  ["minAddedAmountB", getU64Encoder16()],
5549
- ["maxSwapSlippage", getU32Encoder17()],
5766
+ ["maxSwapSlippage", getU32Encoder18()],
5550
5767
  ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
5551
5768
  ]),
5552
5769
  (value) => ({
@@ -5556,25 +5773,25 @@ function getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder() {
5556
5773
  );
5557
5774
  }
5558
5775
  function getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder() {
5559
- return getStructDecoder32([
5560
- ["discriminator", fixDecoderSize30(getBytesDecoder30(), 8)],
5776
+ return getStructDecoder33([
5777
+ ["discriminator", fixDecoderSize31(getBytesDecoder31(), 8)],
5561
5778
  ["tickLowerIndex", getI32Decoder2()],
5562
5779
  ["tickUpperIndex", getI32Decoder2()],
5563
5780
  ["lowerLimitOrderSqrtPrice", getU128Decoder3()],
5564
5781
  ["upperLimitOrderSqrtPrice", getU128Decoder3()],
5565
- ["flags", getU32Decoder17()],
5782
+ ["flags", getU32Decoder18()],
5566
5783
  ["collateralA", getU64Decoder16()],
5567
5784
  ["collateralB", getU64Decoder16()],
5568
5785
  ["borrowA", getU64Decoder16()],
5569
5786
  ["borrowB", getU64Decoder16()],
5570
5787
  ["minAddedAmountA", getU64Decoder16()],
5571
5788
  ["minAddedAmountB", getU64Decoder16()],
5572
- ["maxSwapSlippage", getU32Decoder17()],
5789
+ ["maxSwapSlippage", getU32Decoder18()],
5573
5790
  ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
5574
5791
  ]);
5575
5792
  }
5576
5793
  function getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec() {
5577
- return combineCodec36(
5794
+ return combineCodec37(
5578
5795
  getOpenAndIncreaseTunaLpPositionFusionInstructionDataEncoder(),
5579
5796
  getOpenAndIncreaseTunaLpPositionFusionInstructionDataDecoder()
5580
5797
  );
@@ -5750,45 +5967,45 @@ function parseOpenAndIncreaseTunaLpPositionFusionInstruction(instruction) {
5750
5967
 
5751
5968
  // src/generated/instructions/openAndIncreaseTunaLpPositionOrca.ts
5752
5969
  import {
5753
- combineCodec as combineCodec37,
5754
- fixDecoderSize as fixDecoderSize31,
5755
- fixEncoderSize as fixEncoderSize32,
5756
- getBytesDecoder as getBytesDecoder31,
5757
- getBytesEncoder as getBytesEncoder32,
5970
+ combineCodec as combineCodec38,
5971
+ fixDecoderSize as fixDecoderSize32,
5972
+ fixEncoderSize as fixEncoderSize33,
5973
+ getBytesDecoder as getBytesDecoder32,
5974
+ getBytesEncoder as getBytesEncoder33,
5758
5975
  getI32Decoder as getI32Decoder3,
5759
5976
  getI32Encoder as getI32Encoder3,
5760
- getStructDecoder as getStructDecoder33,
5761
- getStructEncoder as getStructEncoder33,
5977
+ getStructDecoder as getStructDecoder34,
5978
+ getStructEncoder as getStructEncoder34,
5762
5979
  getU128Decoder as getU128Decoder4,
5763
5980
  getU128Encoder as getU128Encoder4,
5764
- getU32Decoder as getU32Decoder18,
5765
- getU32Encoder as getU32Encoder18,
5981
+ getU32Decoder as getU32Decoder19,
5982
+ getU32Encoder as getU32Encoder19,
5766
5983
  getU64Decoder as getU64Decoder17,
5767
5984
  getU64Encoder as getU64Encoder17,
5768
- transformEncoder as transformEncoder31
5985
+ transformEncoder as transformEncoder32
5769
5986
  } from "@solana/kit";
5770
5987
  var OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([163, 21, 84, 199, 172, 40, 87, 122]);
5771
5988
  function getOpenAndIncreaseTunaLpPositionOrcaDiscriminatorBytes() {
5772
- return fixEncoderSize32(getBytesEncoder32(), 8).encode(
5989
+ return fixEncoderSize33(getBytesEncoder33(), 8).encode(
5773
5990
  OPEN_AND_INCREASE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR
5774
5991
  );
5775
5992
  }
5776
5993
  function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder() {
5777
- return transformEncoder31(
5778
- getStructEncoder33([
5779
- ["discriminator", fixEncoderSize32(getBytesEncoder32(), 8)],
5994
+ return transformEncoder32(
5995
+ getStructEncoder34([
5996
+ ["discriminator", fixEncoderSize33(getBytesEncoder33(), 8)],
5780
5997
  ["tickLowerIndex", getI32Encoder3()],
5781
5998
  ["tickUpperIndex", getI32Encoder3()],
5782
5999
  ["lowerLimitOrderSqrtPrice", getU128Encoder4()],
5783
6000
  ["upperLimitOrderSqrtPrice", getU128Encoder4()],
5784
- ["flags", getU32Encoder18()],
6001
+ ["flags", getU32Encoder19()],
5785
6002
  ["collateralA", getU64Encoder17()],
5786
6003
  ["collateralB", getU64Encoder17()],
5787
6004
  ["borrowA", getU64Encoder17()],
5788
6005
  ["borrowB", getU64Encoder17()],
5789
6006
  ["minAddedAmountA", getU64Encoder17()],
5790
6007
  ["minAddedAmountB", getU64Encoder17()],
5791
- ["maxSwapSlippage", getU32Encoder18()],
6008
+ ["maxSwapSlippage", getU32Encoder19()],
5792
6009
  ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
5793
6010
  ]),
5794
6011
  (value) => ({
@@ -5798,25 +6015,25 @@ function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder() {
5798
6015
  );
5799
6016
  }
5800
6017
  function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder() {
5801
- return getStructDecoder33([
5802
- ["discriminator", fixDecoderSize31(getBytesDecoder31(), 8)],
6018
+ return getStructDecoder34([
6019
+ ["discriminator", fixDecoderSize32(getBytesDecoder32(), 8)],
5803
6020
  ["tickLowerIndex", getI32Decoder3()],
5804
6021
  ["tickUpperIndex", getI32Decoder3()],
5805
6022
  ["lowerLimitOrderSqrtPrice", getU128Decoder4()],
5806
6023
  ["upperLimitOrderSqrtPrice", getU128Decoder4()],
5807
- ["flags", getU32Decoder18()],
6024
+ ["flags", getU32Decoder19()],
5808
6025
  ["collateralA", getU64Decoder17()],
5809
6026
  ["collateralB", getU64Decoder17()],
5810
6027
  ["borrowA", getU64Decoder17()],
5811
6028
  ["borrowB", getU64Decoder17()],
5812
6029
  ["minAddedAmountA", getU64Decoder17()],
5813
6030
  ["minAddedAmountB", getU64Decoder17()],
5814
- ["maxSwapSlippage", getU32Decoder18()],
6031
+ ["maxSwapSlippage", getU32Decoder19()],
5815
6032
  ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
5816
6033
  ]);
5817
6034
  }
5818
6035
  function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec() {
5819
- return combineCodec37(
6036
+ return combineCodec38(
5820
6037
  getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder(),
5821
6038
  getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder()
5822
6039
  );
@@ -5992,14 +6209,14 @@ function parseOpenAndIncreaseTunaLpPositionOrcaInstruction(instruction) {
5992
6209
 
5993
6210
  // src/generated/instructions/openLendingPosition.ts
5994
6211
  import {
5995
- combineCodec as combineCodec38,
5996
- fixDecoderSize as fixDecoderSize32,
5997
- fixEncoderSize as fixEncoderSize33,
5998
- getBytesDecoder as getBytesDecoder32,
5999
- getBytesEncoder as getBytesEncoder33,
6000
- getStructDecoder as getStructDecoder34,
6001
- getStructEncoder as getStructEncoder34,
6002
- transformEncoder as transformEncoder32
6212
+ combineCodec as combineCodec39,
6213
+ fixDecoderSize as fixDecoderSize33,
6214
+ fixEncoderSize as fixEncoderSize34,
6215
+ getBytesDecoder as getBytesDecoder33,
6216
+ getBytesEncoder as getBytesEncoder34,
6217
+ getStructDecoder as getStructDecoder35,
6218
+ getStructEncoder as getStructEncoder35,
6219
+ transformEncoder as transformEncoder33
6003
6220
  } from "@solana/kit";
6004
6221
  var OPEN_LENDING_POSITION_DISCRIMINATOR = new Uint8Array([
6005
6222
  174,
@@ -6012,13 +6229,13 @@ var OPEN_LENDING_POSITION_DISCRIMINATOR = new Uint8Array([
6012
6229
  19
6013
6230
  ]);
6014
6231
  function getOpenLendingPositionDiscriminatorBytes() {
6015
- return fixEncoderSize33(getBytesEncoder33(), 8).encode(
6232
+ return fixEncoderSize34(getBytesEncoder34(), 8).encode(
6016
6233
  OPEN_LENDING_POSITION_DISCRIMINATOR
6017
6234
  );
6018
6235
  }
6019
6236
  function getOpenLendingPositionInstructionDataEncoder() {
6020
- return transformEncoder32(
6021
- getStructEncoder34([["discriminator", fixEncoderSize33(getBytesEncoder33(), 8)]]),
6237
+ return transformEncoder33(
6238
+ getStructEncoder35([["discriminator", fixEncoderSize34(getBytesEncoder34(), 8)]]),
6022
6239
  (value) => ({
6023
6240
  ...value,
6024
6241
  discriminator: OPEN_LENDING_POSITION_DISCRIMINATOR
@@ -6026,12 +6243,12 @@ function getOpenLendingPositionInstructionDataEncoder() {
6026
6243
  );
6027
6244
  }
6028
6245
  function getOpenLendingPositionInstructionDataDecoder() {
6029
- return getStructDecoder34([
6030
- ["discriminator", fixDecoderSize32(getBytesDecoder32(), 8)]
6246
+ return getStructDecoder35([
6247
+ ["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)]
6031
6248
  ]);
6032
6249
  }
6033
6250
  function getOpenLendingPositionInstructionDataCodec() {
6034
- return combineCodec38(
6251
+ return combineCodec39(
6035
6252
  getOpenLendingPositionInstructionDataEncoder(),
6036
6253
  getOpenLendingPositionInstructionDataDecoder()
6037
6254
  );
@@ -6092,21 +6309,21 @@ function parseOpenLendingPositionInstruction(instruction) {
6092
6309
  }
6093
6310
 
6094
6311
  // src/generated/instructions/openTunaLpPositionFusion.ts
6095
- import {
6096
- combineCodec as combineCodec39,
6097
- fixDecoderSize as fixDecoderSize33,
6098
- fixEncoderSize as fixEncoderSize34,
6099
- getBytesDecoder as getBytesDecoder33,
6100
- getBytesEncoder as getBytesEncoder34,
6312
+ import {
6313
+ combineCodec as combineCodec40,
6314
+ fixDecoderSize as fixDecoderSize34,
6315
+ fixEncoderSize as fixEncoderSize35,
6316
+ getBytesDecoder as getBytesDecoder34,
6317
+ getBytesEncoder as getBytesEncoder35,
6101
6318
  getI32Decoder as getI32Decoder4,
6102
6319
  getI32Encoder as getI32Encoder4,
6103
- getStructDecoder as getStructDecoder35,
6104
- getStructEncoder as getStructEncoder35,
6320
+ getStructDecoder as getStructDecoder36,
6321
+ getStructEncoder as getStructEncoder36,
6105
6322
  getU128Decoder as getU128Decoder5,
6106
6323
  getU128Encoder as getU128Encoder5,
6107
- getU32Decoder as getU32Decoder19,
6108
- getU32Encoder as getU32Encoder19,
6109
- transformEncoder as transformEncoder33
6324
+ getU32Decoder as getU32Decoder20,
6325
+ getU32Encoder as getU32Encoder20,
6326
+ transformEncoder as transformEncoder34
6110
6327
  } from "@solana/kit";
6111
6328
  var OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
6112
6329
  78,
@@ -6119,19 +6336,19 @@ var OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
6119
6336
  238
6120
6337
  ]);
6121
6338
  function getOpenTunaLpPositionFusionDiscriminatorBytes() {
6122
- return fixEncoderSize34(getBytesEncoder34(), 8).encode(
6339
+ return fixEncoderSize35(getBytesEncoder35(), 8).encode(
6123
6340
  OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR
6124
6341
  );
6125
6342
  }
6126
6343
  function getOpenTunaLpPositionFusionInstructionDataEncoder() {
6127
- return transformEncoder33(
6128
- getStructEncoder35([
6129
- ["discriminator", fixEncoderSize34(getBytesEncoder34(), 8)],
6344
+ return transformEncoder34(
6345
+ getStructEncoder36([
6346
+ ["discriminator", fixEncoderSize35(getBytesEncoder35(), 8)],
6130
6347
  ["tickLowerIndex", getI32Encoder4()],
6131
6348
  ["tickUpperIndex", getI32Encoder4()],
6132
6349
  ["lowerLimitOrderSqrtPrice", getU128Encoder5()],
6133
6350
  ["upperLimitOrderSqrtPrice", getU128Encoder5()],
6134
- ["flags", getU32Encoder19()]
6351
+ ["flags", getU32Encoder20()]
6135
6352
  ]),
6136
6353
  (value) => ({
6137
6354
  ...value,
@@ -6140,17 +6357,17 @@ function getOpenTunaLpPositionFusionInstructionDataEncoder() {
6140
6357
  );
6141
6358
  }
6142
6359
  function getOpenTunaLpPositionFusionInstructionDataDecoder() {
6143
- return getStructDecoder35([
6144
- ["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)],
6360
+ return getStructDecoder36([
6361
+ ["discriminator", fixDecoderSize34(getBytesDecoder34(), 8)],
6145
6362
  ["tickLowerIndex", getI32Decoder4()],
6146
6363
  ["tickUpperIndex", getI32Decoder4()],
6147
6364
  ["lowerLimitOrderSqrtPrice", getU128Decoder5()],
6148
6365
  ["upperLimitOrderSqrtPrice", getU128Decoder5()],
6149
- ["flags", getU32Decoder19()]
6366
+ ["flags", getU32Decoder20()]
6150
6367
  ]);
6151
6368
  }
6152
6369
  function getOpenTunaLpPositionFusionInstructionDataCodec() {
6153
- return combineCodec39(
6370
+ return combineCodec40(
6154
6371
  getOpenTunaLpPositionFusionInstructionDataEncoder(),
6155
6372
  getOpenTunaLpPositionFusionInstructionDataDecoder()
6156
6373
  );
@@ -6272,20 +6489,20 @@ function parseOpenTunaLpPositionFusionInstruction(instruction) {
6272
6489
 
6273
6490
  // src/generated/instructions/openTunaLpPositionOrca.ts
6274
6491
  import {
6275
- combineCodec as combineCodec40,
6276
- fixDecoderSize as fixDecoderSize34,
6277
- fixEncoderSize as fixEncoderSize35,
6278
- getBytesDecoder as getBytesDecoder34,
6279
- getBytesEncoder as getBytesEncoder35,
6492
+ combineCodec as combineCodec41,
6493
+ fixDecoderSize as fixDecoderSize35,
6494
+ fixEncoderSize as fixEncoderSize36,
6495
+ getBytesDecoder as getBytesDecoder35,
6496
+ getBytesEncoder as getBytesEncoder36,
6280
6497
  getI32Decoder as getI32Decoder5,
6281
6498
  getI32Encoder as getI32Encoder5,
6282
- getStructDecoder as getStructDecoder36,
6283
- getStructEncoder as getStructEncoder36,
6499
+ getStructDecoder as getStructDecoder37,
6500
+ getStructEncoder as getStructEncoder37,
6284
6501
  getU128Decoder as getU128Decoder6,
6285
6502
  getU128Encoder as getU128Encoder6,
6286
- getU32Decoder as getU32Decoder20,
6287
- getU32Encoder as getU32Encoder20,
6288
- transformEncoder as transformEncoder34
6503
+ getU32Decoder as getU32Decoder21,
6504
+ getU32Encoder as getU32Encoder21,
6505
+ transformEncoder as transformEncoder35
6289
6506
  } from "@solana/kit";
6290
6507
  var OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
6291
6508
  201,
@@ -6298,19 +6515,19 @@ var OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
6298
6515
  115
6299
6516
  ]);
6300
6517
  function getOpenTunaLpPositionOrcaDiscriminatorBytes() {
6301
- return fixEncoderSize35(getBytesEncoder35(), 8).encode(
6518
+ return fixEncoderSize36(getBytesEncoder36(), 8).encode(
6302
6519
  OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR
6303
6520
  );
6304
6521
  }
6305
6522
  function getOpenTunaLpPositionOrcaInstructionDataEncoder() {
6306
- return transformEncoder34(
6307
- getStructEncoder36([
6308
- ["discriminator", fixEncoderSize35(getBytesEncoder35(), 8)],
6523
+ return transformEncoder35(
6524
+ getStructEncoder37([
6525
+ ["discriminator", fixEncoderSize36(getBytesEncoder36(), 8)],
6309
6526
  ["tickLowerIndex", getI32Encoder5()],
6310
6527
  ["tickUpperIndex", getI32Encoder5()],
6311
6528
  ["lowerLimitOrderSqrtPrice", getU128Encoder6()],
6312
6529
  ["upperLimitOrderSqrtPrice", getU128Encoder6()],
6313
- ["flags", getU32Encoder20()]
6530
+ ["flags", getU32Encoder21()]
6314
6531
  ]),
6315
6532
  (value) => ({
6316
6533
  ...value,
@@ -6319,17 +6536,17 @@ function getOpenTunaLpPositionOrcaInstructionDataEncoder() {
6319
6536
  );
6320
6537
  }
6321
6538
  function getOpenTunaLpPositionOrcaInstructionDataDecoder() {
6322
- return getStructDecoder36([
6323
- ["discriminator", fixDecoderSize34(getBytesDecoder34(), 8)],
6539
+ return getStructDecoder37([
6540
+ ["discriminator", fixDecoderSize35(getBytesDecoder35(), 8)],
6324
6541
  ["tickLowerIndex", getI32Decoder5()],
6325
6542
  ["tickUpperIndex", getI32Decoder5()],
6326
6543
  ["lowerLimitOrderSqrtPrice", getU128Decoder6()],
6327
6544
  ["upperLimitOrderSqrtPrice", getU128Decoder6()],
6328
- ["flags", getU32Decoder20()]
6545
+ ["flags", getU32Decoder21()]
6329
6546
  ]);
6330
6547
  }
6331
6548
  function getOpenTunaLpPositionOrcaInstructionDataCodec() {
6332
- return combineCodec40(
6549
+ return combineCodec41(
6333
6550
  getOpenTunaLpPositionOrcaInstructionDataEncoder(),
6334
6551
  getOpenTunaLpPositionOrcaInstructionDataDecoder()
6335
6552
  );
@@ -6451,14 +6668,14 @@ function parseOpenTunaLpPositionOrcaInstruction(instruction) {
6451
6668
 
6452
6669
  // src/generated/instructions/openTunaSpotPosition.ts
6453
6670
  import {
6454
- combineCodec as combineCodec41,
6455
- fixDecoderSize as fixDecoderSize35,
6456
- fixEncoderSize as fixEncoderSize36,
6457
- getBytesDecoder as getBytesDecoder35,
6458
- getBytesEncoder as getBytesEncoder36,
6459
- getStructDecoder as getStructDecoder37,
6460
- getStructEncoder as getStructEncoder37,
6461
- transformEncoder as transformEncoder35
6671
+ combineCodec as combineCodec42,
6672
+ fixDecoderSize as fixDecoderSize36,
6673
+ fixEncoderSize as fixEncoderSize37,
6674
+ getBytesDecoder as getBytesDecoder36,
6675
+ getBytesEncoder as getBytesEncoder37,
6676
+ getStructDecoder as getStructDecoder38,
6677
+ getStructEncoder as getStructEncoder38,
6678
+ transformEncoder as transformEncoder36
6462
6679
  } from "@solana/kit";
6463
6680
  var OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR = new Uint8Array([
6464
6681
  87,
@@ -6471,14 +6688,14 @@ var OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR = new Uint8Array([
6471
6688
  220
6472
6689
  ]);
6473
6690
  function getOpenTunaSpotPositionDiscriminatorBytes() {
6474
- return fixEncoderSize36(getBytesEncoder36(), 8).encode(
6691
+ return fixEncoderSize37(getBytesEncoder37(), 8).encode(
6475
6692
  OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR
6476
6693
  );
6477
6694
  }
6478
6695
  function getOpenTunaSpotPositionInstructionDataEncoder() {
6479
- return transformEncoder35(
6480
- getStructEncoder37([
6481
- ["discriminator", fixEncoderSize36(getBytesEncoder36(), 8)],
6696
+ return transformEncoder36(
6697
+ getStructEncoder38([
6698
+ ["discriminator", fixEncoderSize37(getBytesEncoder37(), 8)],
6482
6699
  ["positionToken", getPoolTokenEncoder()],
6483
6700
  ["collateralToken", getPoolTokenEncoder()]
6484
6701
  ]),
@@ -6489,14 +6706,14 @@ function getOpenTunaSpotPositionInstructionDataEncoder() {
6489
6706
  );
6490
6707
  }
6491
6708
  function getOpenTunaSpotPositionInstructionDataDecoder() {
6492
- return getStructDecoder37([
6493
- ["discriminator", fixDecoderSize35(getBytesDecoder35(), 8)],
6709
+ return getStructDecoder38([
6710
+ ["discriminator", fixDecoderSize36(getBytesDecoder36(), 8)],
6494
6711
  ["positionToken", getPoolTokenDecoder()],
6495
6712
  ["collateralToken", getPoolTokenDecoder()]
6496
6713
  ]);
6497
6714
  }
6498
6715
  function getOpenTunaSpotPositionInstructionDataCodec() {
6499
- return combineCodec41(
6716
+ return combineCodec42(
6500
6717
  getOpenTunaSpotPositionInstructionDataEncoder(),
6501
6718
  getOpenTunaSpotPositionInstructionDataDecoder()
6502
6719
  );
@@ -6585,14 +6802,14 @@ function parseOpenTunaSpotPositionInstruction(instruction) {
6585
6802
 
6586
6803
  // src/generated/instructions/rebalanceTunaLpPositionFusion.ts
6587
6804
  import {
6588
- combineCodec as combineCodec42,
6589
- fixDecoderSize as fixDecoderSize36,
6590
- fixEncoderSize as fixEncoderSize37,
6591
- getBytesDecoder as getBytesDecoder36,
6592
- getBytesEncoder as getBytesEncoder37,
6593
- getStructDecoder as getStructDecoder38,
6594
- getStructEncoder as getStructEncoder38,
6595
- transformEncoder as transformEncoder36
6805
+ combineCodec as combineCodec43,
6806
+ fixDecoderSize as fixDecoderSize37,
6807
+ fixEncoderSize as fixEncoderSize38,
6808
+ getBytesDecoder as getBytesDecoder37,
6809
+ getBytesEncoder as getBytesEncoder38,
6810
+ getStructDecoder as getStructDecoder39,
6811
+ getStructEncoder as getStructEncoder39,
6812
+ transformEncoder as transformEncoder37
6596
6813
  } from "@solana/kit";
6597
6814
  var REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
6598
6815
  190,
@@ -6605,14 +6822,14 @@ var REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR = new Uint8Array([
6605
6822
  51
6606
6823
  ]);
6607
6824
  function getRebalanceTunaLpPositionFusionDiscriminatorBytes() {
6608
- return fixEncoderSize37(getBytesEncoder37(), 8).encode(
6825
+ return fixEncoderSize38(getBytesEncoder38(), 8).encode(
6609
6826
  REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR
6610
6827
  );
6611
6828
  }
6612
6829
  function getRebalanceTunaLpPositionFusionInstructionDataEncoder() {
6613
- return transformEncoder36(
6614
- getStructEncoder38([
6615
- ["discriminator", fixEncoderSize37(getBytesEncoder37(), 8)],
6830
+ return transformEncoder37(
6831
+ getStructEncoder39([
6832
+ ["discriminator", fixEncoderSize38(getBytesEncoder38(), 8)],
6616
6833
  ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
6617
6834
  ]),
6618
6835
  (value) => ({
@@ -6622,13 +6839,13 @@ function getRebalanceTunaLpPositionFusionInstructionDataEncoder() {
6622
6839
  );
6623
6840
  }
6624
6841
  function getRebalanceTunaLpPositionFusionInstructionDataDecoder() {
6625
- return getStructDecoder38([
6626
- ["discriminator", fixDecoderSize36(getBytesDecoder36(), 8)],
6842
+ return getStructDecoder39([
6843
+ ["discriminator", fixDecoderSize37(getBytesDecoder37(), 8)],
6627
6844
  ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
6628
6845
  ]);
6629
6846
  }
6630
6847
  function getRebalanceTunaLpPositionFusionInstructionDataCodec() {
6631
- return combineCodec42(
6848
+ return combineCodec43(
6632
6849
  getRebalanceTunaLpPositionFusionInstructionDataEncoder(),
6633
6850
  getRebalanceTunaLpPositionFusionInstructionDataDecoder()
6634
6851
  );
@@ -6756,14 +6973,14 @@ function parseRebalanceTunaLpPositionFusionInstruction(instruction) {
6756
6973
 
6757
6974
  // src/generated/instructions/rebalanceTunaLpPositionOrca.ts
6758
6975
  import {
6759
- combineCodec as combineCodec43,
6760
- fixDecoderSize as fixDecoderSize37,
6761
- fixEncoderSize as fixEncoderSize38,
6762
- getBytesDecoder as getBytesDecoder37,
6763
- getBytesEncoder as getBytesEncoder38,
6764
- getStructDecoder as getStructDecoder39,
6765
- getStructEncoder as getStructEncoder39,
6766
- transformEncoder as transformEncoder37
6976
+ combineCodec as combineCodec44,
6977
+ fixDecoderSize as fixDecoderSize38,
6978
+ fixEncoderSize as fixEncoderSize39,
6979
+ getBytesDecoder as getBytesDecoder38,
6980
+ getBytesEncoder as getBytesEncoder39,
6981
+ getStructDecoder as getStructDecoder40,
6982
+ getStructEncoder as getStructEncoder40,
6983
+ transformEncoder as transformEncoder38
6767
6984
  } from "@solana/kit";
6768
6985
  var REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
6769
6986
  124,
@@ -6776,14 +6993,14 @@ var REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
6776
6993
  231
6777
6994
  ]);
6778
6995
  function getRebalanceTunaLpPositionOrcaDiscriminatorBytes() {
6779
- return fixEncoderSize38(getBytesEncoder38(), 8).encode(
6996
+ return fixEncoderSize39(getBytesEncoder39(), 8).encode(
6780
6997
  REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR
6781
6998
  );
6782
6999
  }
6783
7000
  function getRebalanceTunaLpPositionOrcaInstructionDataEncoder() {
6784
- return transformEncoder37(
6785
- getStructEncoder39([
6786
- ["discriminator", fixEncoderSize38(getBytesEncoder38(), 8)],
7001
+ return transformEncoder38(
7002
+ getStructEncoder40([
7003
+ ["discriminator", fixEncoderSize39(getBytesEncoder39(), 8)],
6787
7004
  ["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
6788
7005
  ]),
6789
7006
  (value) => ({
@@ -6793,13 +7010,13 @@ function getRebalanceTunaLpPositionOrcaInstructionDataEncoder() {
6793
7010
  );
6794
7011
  }
6795
7012
  function getRebalanceTunaLpPositionOrcaInstructionDataDecoder() {
6796
- return getStructDecoder39([
6797
- ["discriminator", fixDecoderSize37(getBytesDecoder37(), 8)],
7013
+ return getStructDecoder40([
7014
+ ["discriminator", fixDecoderSize38(getBytesDecoder38(), 8)],
6798
7015
  ["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
6799
7016
  ]);
6800
7017
  }
6801
7018
  function getRebalanceTunaLpPositionOrcaInstructionDataCodec() {
6802
- return combineCodec43(
7019
+ return combineCodec44(
6803
7020
  getRebalanceTunaLpPositionOrcaInstructionDataEncoder(),
6804
7021
  getRebalanceTunaLpPositionOrcaInstructionDataDecoder()
6805
7022
  );
@@ -6933,16 +7150,16 @@ function parseRebalanceTunaLpPositionOrcaInstruction(instruction) {
6933
7150
 
6934
7151
  // src/generated/instructions/repayBadDebt.ts
6935
7152
  import {
6936
- combineCodec as combineCodec44,
6937
- fixDecoderSize as fixDecoderSize38,
6938
- fixEncoderSize as fixEncoderSize39,
6939
- getBytesDecoder as getBytesDecoder38,
6940
- getBytesEncoder as getBytesEncoder39,
6941
- getStructDecoder as getStructDecoder40,
6942
- getStructEncoder as getStructEncoder40,
7153
+ combineCodec as combineCodec45,
7154
+ fixDecoderSize as fixDecoderSize39,
7155
+ fixEncoderSize as fixEncoderSize40,
7156
+ getBytesDecoder as getBytesDecoder39,
7157
+ getBytesEncoder as getBytesEncoder40,
7158
+ getStructDecoder as getStructDecoder41,
7159
+ getStructEncoder as getStructEncoder41,
6943
7160
  getU64Decoder as getU64Decoder18,
6944
7161
  getU64Encoder as getU64Encoder18,
6945
- transformEncoder as transformEncoder38
7162
+ transformEncoder as transformEncoder39
6946
7163
  } from "@solana/kit";
6947
7164
  var REPAY_BAD_DEBT_DISCRIMINATOR = new Uint8Array([
6948
7165
  112,
@@ -6955,14 +7172,14 @@ var REPAY_BAD_DEBT_DISCRIMINATOR = new Uint8Array([
6955
7172
  34
6956
7173
  ]);
6957
7174
  function getRepayBadDebtDiscriminatorBytes() {
6958
- return fixEncoderSize39(getBytesEncoder39(), 8).encode(
7175
+ return fixEncoderSize40(getBytesEncoder40(), 8).encode(
6959
7176
  REPAY_BAD_DEBT_DISCRIMINATOR
6960
7177
  );
6961
7178
  }
6962
7179
  function getRepayBadDebtInstructionDataEncoder() {
6963
- return transformEncoder38(
6964
- getStructEncoder40([
6965
- ["discriminator", fixEncoderSize39(getBytesEncoder39(), 8)],
7180
+ return transformEncoder39(
7181
+ getStructEncoder41([
7182
+ ["discriminator", fixEncoderSize40(getBytesEncoder40(), 8)],
6966
7183
  ["funds", getU64Encoder18()],
6967
7184
  ["shares", getU64Encoder18()]
6968
7185
  ]),
@@ -6970,14 +7187,14 @@ function getRepayBadDebtInstructionDataEncoder() {
6970
7187
  );
6971
7188
  }
6972
7189
  function getRepayBadDebtInstructionDataDecoder() {
6973
- return getStructDecoder40([
6974
- ["discriminator", fixDecoderSize38(getBytesDecoder38(), 8)],
7190
+ return getStructDecoder41([
7191
+ ["discriminator", fixDecoderSize39(getBytesDecoder39(), 8)],
6975
7192
  ["funds", getU64Decoder18()],
6976
7193
  ["shares", getU64Decoder18()]
6977
7194
  ]);
6978
7195
  }
6979
7196
  function getRepayBadDebtInstructionDataCodec() {
6980
- return combineCodec44(
7197
+ return combineCodec45(
6981
7198
  getRepayBadDebtInstructionDataEncoder(),
6982
7199
  getRepayBadDebtInstructionDataDecoder()
6983
7200
  );
@@ -7046,16 +7263,16 @@ function parseRepayBadDebtInstruction(instruction) {
7046
7263
 
7047
7264
  // src/generated/instructions/repayTunaLpPositionDebt.ts
7048
7265
  import {
7049
- combineCodec as combineCodec45,
7050
- fixDecoderSize as fixDecoderSize39,
7051
- fixEncoderSize as fixEncoderSize40,
7052
- getBytesDecoder as getBytesDecoder39,
7053
- getBytesEncoder as getBytesEncoder40,
7054
- getStructDecoder as getStructDecoder41,
7055
- getStructEncoder as getStructEncoder41,
7266
+ combineCodec as combineCodec46,
7267
+ fixDecoderSize as fixDecoderSize40,
7268
+ fixEncoderSize as fixEncoderSize41,
7269
+ getBytesDecoder as getBytesDecoder40,
7270
+ getBytesEncoder as getBytesEncoder41,
7271
+ getStructDecoder as getStructDecoder42,
7272
+ getStructEncoder as getStructEncoder42,
7056
7273
  getU64Decoder as getU64Decoder19,
7057
7274
  getU64Encoder as getU64Encoder19,
7058
- transformEncoder as transformEncoder39
7275
+ transformEncoder as transformEncoder40
7059
7276
  } from "@solana/kit";
7060
7277
  var REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR = new Uint8Array([
7061
7278
  79,
@@ -7068,14 +7285,14 @@ var REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR = new Uint8Array([
7068
7285
  8
7069
7286
  ]);
7070
7287
  function getRepayTunaLpPositionDebtDiscriminatorBytes() {
7071
- return fixEncoderSize40(getBytesEncoder40(), 8).encode(
7288
+ return fixEncoderSize41(getBytesEncoder41(), 8).encode(
7072
7289
  REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR
7073
7290
  );
7074
7291
  }
7075
7292
  function getRepayTunaLpPositionDebtInstructionDataEncoder() {
7076
- return transformEncoder39(
7077
- getStructEncoder41([
7078
- ["discriminator", fixEncoderSize40(getBytesEncoder40(), 8)],
7293
+ return transformEncoder40(
7294
+ getStructEncoder42([
7295
+ ["discriminator", fixEncoderSize41(getBytesEncoder41(), 8)],
7079
7296
  ["collateralFundsA", getU64Encoder19()],
7080
7297
  ["collateralFundsB", getU64Encoder19()]
7081
7298
  ]),
@@ -7086,14 +7303,14 @@ function getRepayTunaLpPositionDebtInstructionDataEncoder() {
7086
7303
  );
7087
7304
  }
7088
7305
  function getRepayTunaLpPositionDebtInstructionDataDecoder() {
7089
- return getStructDecoder41([
7090
- ["discriminator", fixDecoderSize39(getBytesDecoder39(), 8)],
7306
+ return getStructDecoder42([
7307
+ ["discriminator", fixDecoderSize40(getBytesDecoder40(), 8)],
7091
7308
  ["collateralFundsA", getU64Decoder19()],
7092
7309
  ["collateralFundsB", getU64Decoder19()]
7093
7310
  ]);
7094
7311
  }
7095
7312
  function getRepayTunaLpPositionDebtInstructionDataCodec() {
7096
- return combineCodec45(
7313
+ return combineCodec46(
7097
7314
  getRepayTunaLpPositionDebtInstructionDataEncoder(),
7098
7315
  getRepayTunaLpPositionDebtInstructionDataDecoder()
7099
7316
  );
@@ -7197,14 +7414,14 @@ function parseRepayTunaLpPositionDebtInstruction(instruction) {
7197
7414
 
7198
7415
  // src/generated/instructions/resetTunaSpotPosition.ts
7199
7416
  import {
7200
- combineCodec as combineCodec46,
7201
- fixDecoderSize as fixDecoderSize40,
7202
- fixEncoderSize as fixEncoderSize41,
7203
- getBytesDecoder as getBytesDecoder40,
7204
- getBytesEncoder as getBytesEncoder41,
7205
- getStructDecoder as getStructDecoder42,
7206
- getStructEncoder as getStructEncoder42,
7207
- transformEncoder as transformEncoder40
7417
+ combineCodec as combineCodec47,
7418
+ fixDecoderSize as fixDecoderSize41,
7419
+ fixEncoderSize as fixEncoderSize42,
7420
+ getBytesDecoder as getBytesDecoder41,
7421
+ getBytesEncoder as getBytesEncoder42,
7422
+ getStructDecoder as getStructDecoder43,
7423
+ getStructEncoder as getStructEncoder43,
7424
+ transformEncoder as transformEncoder41
7208
7425
  } from "@solana/kit";
7209
7426
  var RESET_TUNA_SPOT_POSITION_DISCRIMINATOR = new Uint8Array([
7210
7427
  194,
@@ -7217,14 +7434,14 @@ var RESET_TUNA_SPOT_POSITION_DISCRIMINATOR = new Uint8Array([
7217
7434
  127
7218
7435
  ]);
7219
7436
  function getResetTunaSpotPositionDiscriminatorBytes() {
7220
- return fixEncoderSize41(getBytesEncoder41(), 8).encode(
7437
+ return fixEncoderSize42(getBytesEncoder42(), 8).encode(
7221
7438
  RESET_TUNA_SPOT_POSITION_DISCRIMINATOR
7222
7439
  );
7223
7440
  }
7224
7441
  function getResetTunaSpotPositionInstructionDataEncoder() {
7225
- return transformEncoder40(
7226
- getStructEncoder42([
7227
- ["discriminator", fixEncoderSize41(getBytesEncoder41(), 8)],
7442
+ return transformEncoder41(
7443
+ getStructEncoder43([
7444
+ ["discriminator", fixEncoderSize42(getBytesEncoder42(), 8)],
7228
7445
  ["positionToken", getPoolTokenEncoder()],
7229
7446
  ["collateralToken", getPoolTokenEncoder()]
7230
7447
  ]),
@@ -7235,14 +7452,14 @@ function getResetTunaSpotPositionInstructionDataEncoder() {
7235
7452
  );
7236
7453
  }
7237
7454
  function getResetTunaSpotPositionInstructionDataDecoder() {
7238
- return getStructDecoder42([
7239
- ["discriminator", fixDecoderSize40(getBytesDecoder40(), 8)],
7455
+ return getStructDecoder43([
7456
+ ["discriminator", fixDecoderSize41(getBytesDecoder41(), 8)],
7240
7457
  ["positionToken", getPoolTokenDecoder()],
7241
7458
  ["collateralToken", getPoolTokenDecoder()]
7242
7459
  ]);
7243
7460
  }
7244
7461
  function getResetTunaSpotPositionInstructionDataCodec() {
7245
- return combineCodec46(
7462
+ return combineCodec47(
7246
7463
  getResetTunaSpotPositionInstructionDataEncoder(),
7247
7464
  getResetTunaSpotPositionInstructionDataDecoder()
7248
7465
  );
@@ -7310,16 +7527,16 @@ function parseResetTunaSpotPositionInstruction(instruction) {
7310
7527
 
7311
7528
  // src/generated/instructions/setAdminAuthority.ts
7312
7529
  import {
7313
- combineCodec as combineCodec47,
7314
- fixDecoderSize as fixDecoderSize41,
7315
- fixEncoderSize as fixEncoderSize42,
7316
- getAddressDecoder as getAddressDecoder10,
7317
- getAddressEncoder as getAddressEncoder10,
7318
- getBytesDecoder as getBytesDecoder41,
7319
- getBytesEncoder as getBytesEncoder42,
7320
- getStructDecoder as getStructDecoder43,
7321
- getStructEncoder as getStructEncoder43,
7322
- transformEncoder as transformEncoder41
7530
+ combineCodec as combineCodec48,
7531
+ fixDecoderSize as fixDecoderSize42,
7532
+ fixEncoderSize as fixEncoderSize43,
7533
+ getAddressDecoder as getAddressDecoder10,
7534
+ getAddressEncoder as getAddressEncoder10,
7535
+ getBytesDecoder as getBytesDecoder42,
7536
+ getBytesEncoder as getBytesEncoder43,
7537
+ getStructDecoder as getStructDecoder44,
7538
+ getStructEncoder as getStructEncoder44,
7539
+ transformEncoder as transformEncoder42
7323
7540
  } from "@solana/kit";
7324
7541
  var SET_ADMIN_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7325
7542
  72,
@@ -7332,27 +7549,27 @@ var SET_ADMIN_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7332
7549
  174
7333
7550
  ]);
7334
7551
  function getSetAdminAuthorityDiscriminatorBytes() {
7335
- return fixEncoderSize42(getBytesEncoder42(), 8).encode(
7552
+ return fixEncoderSize43(getBytesEncoder43(), 8).encode(
7336
7553
  SET_ADMIN_AUTHORITY_DISCRIMINATOR
7337
7554
  );
7338
7555
  }
7339
7556
  function getSetAdminAuthorityInstructionDataEncoder() {
7340
- return transformEncoder41(
7341
- getStructEncoder43([
7342
- ["discriminator", fixEncoderSize42(getBytesEncoder42(), 8)],
7557
+ return transformEncoder42(
7558
+ getStructEncoder44([
7559
+ ["discriminator", fixEncoderSize43(getBytesEncoder43(), 8)],
7343
7560
  ["adminAuthority", getAddressEncoder10()]
7344
7561
  ]),
7345
7562
  (value) => ({ ...value, discriminator: SET_ADMIN_AUTHORITY_DISCRIMINATOR })
7346
7563
  );
7347
7564
  }
7348
7565
  function getSetAdminAuthorityInstructionDataDecoder() {
7349
- return getStructDecoder43([
7350
- ["discriminator", fixDecoderSize41(getBytesDecoder41(), 8)],
7566
+ return getStructDecoder44([
7567
+ ["discriminator", fixDecoderSize42(getBytesDecoder42(), 8)],
7351
7568
  ["adminAuthority", getAddressDecoder10()]
7352
7569
  ]);
7353
7570
  }
7354
7571
  function getSetAdminAuthorityInstructionDataCodec() {
7355
- return combineCodec47(
7572
+ return combineCodec48(
7356
7573
  getSetAdminAuthorityInstructionDataEncoder(),
7357
7574
  getSetAdminAuthorityInstructionDataDecoder()
7358
7575
  );
@@ -7400,28 +7617,28 @@ function parseSetAdminAuthorityInstruction(instruction) {
7400
7617
 
7401
7618
  // src/generated/instructions/setDefaultMaxPercentageOfLeftovers.ts
7402
7619
  import {
7403
- combineCodec as combineCodec48,
7404
- fixDecoderSize as fixDecoderSize42,
7405
- fixEncoderSize as fixEncoderSize43,
7406
- getBytesDecoder as getBytesDecoder42,
7407
- getBytesEncoder as getBytesEncoder43,
7408
- getStructDecoder as getStructDecoder44,
7409
- getStructEncoder as getStructEncoder44,
7410
- getU32Decoder as getU32Decoder21,
7411
- getU32Encoder as getU32Encoder21,
7412
- transformEncoder as transformEncoder42
7620
+ combineCodec as combineCodec49,
7621
+ fixDecoderSize as fixDecoderSize43,
7622
+ fixEncoderSize as fixEncoderSize44,
7623
+ getBytesDecoder as getBytesDecoder43,
7624
+ getBytesEncoder as getBytesEncoder44,
7625
+ getStructDecoder as getStructDecoder45,
7626
+ getStructEncoder as getStructEncoder45,
7627
+ getU32Decoder as getU32Decoder22,
7628
+ getU32Encoder as getU32Encoder22,
7629
+ transformEncoder as transformEncoder43
7413
7630
  } from "@solana/kit";
7414
7631
  var SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR = new Uint8Array([37, 179, 107, 65, 203, 141, 183, 27]);
7415
7632
  function getSetDefaultMaxPercentageOfLeftoversDiscriminatorBytes() {
7416
- return fixEncoderSize43(getBytesEncoder43(), 8).encode(
7633
+ return fixEncoderSize44(getBytesEncoder44(), 8).encode(
7417
7634
  SET_DEFAULT_MAX_PERCENTAGE_OF_LEFTOVERS_DISCRIMINATOR
7418
7635
  );
7419
7636
  }
7420
7637
  function getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder() {
7421
- return transformEncoder42(
7422
- getStructEncoder44([
7423
- ["discriminator", fixEncoderSize43(getBytesEncoder43(), 8)],
7424
- ["maxPercentageOfLeftovers", getU32Encoder21()]
7638
+ return transformEncoder43(
7639
+ getStructEncoder45([
7640
+ ["discriminator", fixEncoderSize44(getBytesEncoder44(), 8)],
7641
+ ["maxPercentageOfLeftovers", getU32Encoder22()]
7425
7642
  ]),
7426
7643
  (value) => ({
7427
7644
  ...value,
@@ -7430,13 +7647,13 @@ function getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder() {
7430
7647
  );
7431
7648
  }
7432
7649
  function getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder() {
7433
- return getStructDecoder44([
7434
- ["discriminator", fixDecoderSize42(getBytesDecoder42(), 8)],
7435
- ["maxPercentageOfLeftovers", getU32Decoder21()]
7650
+ return getStructDecoder45([
7651
+ ["discriminator", fixDecoderSize43(getBytesDecoder43(), 8)],
7652
+ ["maxPercentageOfLeftovers", getU32Decoder22()]
7436
7653
  ]);
7437
7654
  }
7438
7655
  function getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec() {
7439
- return combineCodec48(
7656
+ return combineCodec49(
7440
7657
  getSetDefaultMaxPercentageOfLeftoversInstructionDataEncoder(),
7441
7658
  getSetDefaultMaxPercentageOfLeftoversInstructionDataDecoder()
7442
7659
  );
@@ -7486,16 +7703,16 @@ function parseSetDefaultMaxPercentageOfLeftoversInstruction(instruction) {
7486
7703
 
7487
7704
  // src/generated/instructions/setDefaultMaxSwapSlippage.ts
7488
7705
  import {
7489
- combineCodec as combineCodec49,
7490
- fixDecoderSize as fixDecoderSize43,
7491
- fixEncoderSize as fixEncoderSize44,
7492
- getBytesDecoder as getBytesDecoder43,
7493
- getBytesEncoder as getBytesEncoder44,
7494
- getStructDecoder as getStructDecoder45,
7495
- getStructEncoder as getStructEncoder45,
7496
- getU32Decoder as getU32Decoder22,
7497
- getU32Encoder as getU32Encoder22,
7498
- transformEncoder as transformEncoder43
7706
+ combineCodec as combineCodec50,
7707
+ fixDecoderSize as fixDecoderSize44,
7708
+ fixEncoderSize as fixEncoderSize45,
7709
+ getBytesDecoder as getBytesDecoder44,
7710
+ getBytesEncoder as getBytesEncoder45,
7711
+ getStructDecoder as getStructDecoder46,
7712
+ getStructEncoder as getStructEncoder46,
7713
+ getU32Decoder as getU32Decoder23,
7714
+ getU32Encoder as getU32Encoder23,
7715
+ transformEncoder as transformEncoder44
7499
7716
  } from "@solana/kit";
7500
7717
  var SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR = new Uint8Array([
7501
7718
  122,
@@ -7508,15 +7725,15 @@ var SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR = new Uint8Array([
7508
7725
  181
7509
7726
  ]);
7510
7727
  function getSetDefaultMaxSwapSlippageDiscriminatorBytes() {
7511
- return fixEncoderSize44(getBytesEncoder44(), 8).encode(
7728
+ return fixEncoderSize45(getBytesEncoder45(), 8).encode(
7512
7729
  SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR
7513
7730
  );
7514
7731
  }
7515
7732
  function getSetDefaultMaxSwapSlippageInstructionDataEncoder() {
7516
- return transformEncoder43(
7517
- getStructEncoder45([
7518
- ["discriminator", fixEncoderSize44(getBytesEncoder44(), 8)],
7519
- ["maxSwapSlippage", getU32Encoder22()]
7733
+ return transformEncoder44(
7734
+ getStructEncoder46([
7735
+ ["discriminator", fixEncoderSize45(getBytesEncoder45(), 8)],
7736
+ ["maxSwapSlippage", getU32Encoder23()]
7520
7737
  ]),
7521
7738
  (value) => ({
7522
7739
  ...value,
@@ -7525,13 +7742,13 @@ function getSetDefaultMaxSwapSlippageInstructionDataEncoder() {
7525
7742
  );
7526
7743
  }
7527
7744
  function getSetDefaultMaxSwapSlippageInstructionDataDecoder() {
7528
- return getStructDecoder45([
7529
- ["discriminator", fixDecoderSize43(getBytesDecoder43(), 8)],
7530
- ["maxSwapSlippage", getU32Decoder22()]
7745
+ return getStructDecoder46([
7746
+ ["discriminator", fixDecoderSize44(getBytesDecoder44(), 8)],
7747
+ ["maxSwapSlippage", getU32Decoder23()]
7531
7748
  ]);
7532
7749
  }
7533
7750
  function getSetDefaultMaxSwapSlippageInstructionDataCodec() {
7534
- return combineCodec49(
7751
+ return combineCodec50(
7535
7752
  getSetDefaultMaxSwapSlippageInstructionDataEncoder(),
7536
7753
  getSetDefaultMaxSwapSlippageInstructionDataDecoder()
7537
7754
  );
@@ -7581,28 +7798,28 @@ function parseSetDefaultMaxSwapSlippageInstruction(instruction) {
7581
7798
 
7582
7799
  // src/generated/instructions/setDefaultOraclePriceDeviationThreshold.ts
7583
7800
  import {
7584
- combineCodec as combineCodec50,
7585
- fixDecoderSize as fixDecoderSize44,
7586
- fixEncoderSize as fixEncoderSize45,
7587
- getBytesDecoder as getBytesDecoder44,
7588
- getBytesEncoder as getBytesEncoder45,
7589
- getStructDecoder as getStructDecoder46,
7590
- getStructEncoder as getStructEncoder46,
7591
- getU32Decoder as getU32Decoder23,
7592
- getU32Encoder as getU32Encoder23,
7593
- transformEncoder as transformEncoder44
7801
+ combineCodec as combineCodec51,
7802
+ fixDecoderSize as fixDecoderSize45,
7803
+ fixEncoderSize as fixEncoderSize46,
7804
+ getBytesDecoder as getBytesDecoder45,
7805
+ getBytesEncoder as getBytesEncoder46,
7806
+ getStructDecoder as getStructDecoder47,
7807
+ getStructEncoder as getStructEncoder47,
7808
+ getU32Decoder as getU32Decoder24,
7809
+ getU32Encoder as getU32Encoder24,
7810
+ transformEncoder as transformEncoder45
7594
7811
  } from "@solana/kit";
7595
7812
  var SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR = new Uint8Array([142, 158, 143, 67, 206, 91, 139, 120]);
7596
7813
  function getSetDefaultOraclePriceDeviationThresholdDiscriminatorBytes() {
7597
- return fixEncoderSize45(getBytesEncoder45(), 8).encode(
7814
+ return fixEncoderSize46(getBytesEncoder46(), 8).encode(
7598
7815
  SET_DEFAULT_ORACLE_PRICE_DEVIATION_THRESHOLD_DISCRIMINATOR
7599
7816
  );
7600
7817
  }
7601
7818
  function getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder() {
7602
- return transformEncoder44(
7603
- getStructEncoder46([
7604
- ["discriminator", fixEncoderSize45(getBytesEncoder45(), 8)],
7605
- ["oraclePriceDeviationThreshold", getU32Encoder23()]
7819
+ return transformEncoder45(
7820
+ getStructEncoder47([
7821
+ ["discriminator", fixEncoderSize46(getBytesEncoder46(), 8)],
7822
+ ["oraclePriceDeviationThreshold", getU32Encoder24()]
7606
7823
  ]),
7607
7824
  (value) => ({
7608
7825
  ...value,
@@ -7611,13 +7828,13 @@ function getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder() {
7611
7828
  );
7612
7829
  }
7613
7830
  function getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder() {
7614
- return getStructDecoder46([
7615
- ["discriminator", fixDecoderSize44(getBytesDecoder44(), 8)],
7616
- ["oraclePriceDeviationThreshold", getU32Decoder23()]
7831
+ return getStructDecoder47([
7832
+ ["discriminator", fixDecoderSize45(getBytesDecoder45(), 8)],
7833
+ ["oraclePriceDeviationThreshold", getU32Decoder24()]
7617
7834
  ]);
7618
7835
  }
7619
7836
  function getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec() {
7620
- return combineCodec50(
7837
+ return combineCodec51(
7621
7838
  getSetDefaultOraclePriceDeviationThresholdInstructionDataEncoder(),
7622
7839
  getSetDefaultOraclePriceDeviationThresholdInstructionDataDecoder()
7623
7840
  );
@@ -7667,16 +7884,16 @@ function parseSetDefaultOraclePriceDeviationThresholdInstruction(instruction) {
7667
7884
 
7668
7885
  // src/generated/instructions/setFeeRecipient.ts
7669
7886
  import {
7670
- combineCodec as combineCodec51,
7671
- fixDecoderSize as fixDecoderSize45,
7672
- fixEncoderSize as fixEncoderSize46,
7887
+ combineCodec as combineCodec52,
7888
+ fixDecoderSize as fixDecoderSize46,
7889
+ fixEncoderSize as fixEncoderSize47,
7673
7890
  getAddressDecoder as getAddressDecoder11,
7674
7891
  getAddressEncoder as getAddressEncoder11,
7675
- getBytesDecoder as getBytesDecoder45,
7676
- getBytesEncoder as getBytesEncoder46,
7677
- getStructDecoder as getStructDecoder47,
7678
- getStructEncoder as getStructEncoder47,
7679
- transformEncoder as transformEncoder45
7892
+ getBytesDecoder as getBytesDecoder46,
7893
+ getBytesEncoder as getBytesEncoder47,
7894
+ getStructDecoder as getStructDecoder48,
7895
+ getStructEncoder as getStructEncoder48,
7896
+ transformEncoder as transformEncoder46
7680
7897
  } from "@solana/kit";
7681
7898
  var SET_FEE_RECIPIENT_DISCRIMINATOR = new Uint8Array([
7682
7899
  227,
@@ -7689,27 +7906,27 @@ var SET_FEE_RECIPIENT_DISCRIMINATOR = new Uint8Array([
7689
7906
  66
7690
7907
  ]);
7691
7908
  function getSetFeeRecipientDiscriminatorBytes() {
7692
- return fixEncoderSize46(getBytesEncoder46(), 8).encode(
7909
+ return fixEncoderSize47(getBytesEncoder47(), 8).encode(
7693
7910
  SET_FEE_RECIPIENT_DISCRIMINATOR
7694
7911
  );
7695
7912
  }
7696
7913
  function getSetFeeRecipientInstructionDataEncoder() {
7697
- return transformEncoder45(
7698
- getStructEncoder47([
7699
- ["discriminator", fixEncoderSize46(getBytesEncoder46(), 8)],
7914
+ return transformEncoder46(
7915
+ getStructEncoder48([
7916
+ ["discriminator", fixEncoderSize47(getBytesEncoder47(), 8)],
7700
7917
  ["feeRecipient", getAddressEncoder11()]
7701
7918
  ]),
7702
7919
  (value) => ({ ...value, discriminator: SET_FEE_RECIPIENT_DISCRIMINATOR })
7703
7920
  );
7704
7921
  }
7705
7922
  function getSetFeeRecipientInstructionDataDecoder() {
7706
- return getStructDecoder47([
7707
- ["discriminator", fixDecoderSize45(getBytesDecoder45(), 8)],
7923
+ return getStructDecoder48([
7924
+ ["discriminator", fixDecoderSize46(getBytesDecoder46(), 8)],
7708
7925
  ["feeRecipient", getAddressDecoder11()]
7709
7926
  ]);
7710
7927
  }
7711
7928
  function getSetFeeRecipientInstructionDataCodec() {
7712
- return combineCodec51(
7929
+ return combineCodec52(
7713
7930
  getSetFeeRecipientInstructionDataEncoder(),
7714
7931
  getSetFeeRecipientInstructionDataDecoder()
7715
7932
  );
@@ -7757,16 +7974,16 @@ function parseSetFeeRecipientInstruction(instruction) {
7757
7974
 
7758
7975
  // src/generated/instructions/setLiquidatorAuthority.ts
7759
7976
  import {
7760
- combineCodec as combineCodec52,
7761
- fixDecoderSize as fixDecoderSize46,
7762
- fixEncoderSize as fixEncoderSize47,
7977
+ combineCodec as combineCodec53,
7978
+ fixDecoderSize as fixDecoderSize47,
7979
+ fixEncoderSize as fixEncoderSize48,
7763
7980
  getAddressDecoder as getAddressDecoder12,
7764
7981
  getAddressEncoder as getAddressEncoder12,
7765
- getBytesDecoder as getBytesDecoder46,
7766
- getBytesEncoder as getBytesEncoder47,
7767
- getStructDecoder as getStructDecoder48,
7768
- getStructEncoder as getStructEncoder48,
7769
- transformEncoder as transformEncoder46
7982
+ getBytesDecoder as getBytesDecoder47,
7983
+ getBytesEncoder as getBytesEncoder48,
7984
+ getStructDecoder as getStructDecoder49,
7985
+ getStructEncoder as getStructEncoder49,
7986
+ transformEncoder as transformEncoder47
7770
7987
  } from "@solana/kit";
7771
7988
  var SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7772
7989
  246,
@@ -7779,14 +7996,14 @@ var SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7779
7996
  143
7780
7997
  ]);
7781
7998
  function getSetLiquidatorAuthorityDiscriminatorBytes() {
7782
- return fixEncoderSize47(getBytesEncoder47(), 8).encode(
7999
+ return fixEncoderSize48(getBytesEncoder48(), 8).encode(
7783
8000
  SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR
7784
8001
  );
7785
8002
  }
7786
8003
  function getSetLiquidatorAuthorityInstructionDataEncoder() {
7787
- return transformEncoder46(
7788
- getStructEncoder48([
7789
- ["discriminator", fixEncoderSize47(getBytesEncoder47(), 8)],
8004
+ return transformEncoder47(
8005
+ getStructEncoder49([
8006
+ ["discriminator", fixEncoderSize48(getBytesEncoder48(), 8)],
7790
8007
  ["liquidatorAuthority", getAddressEncoder12()]
7791
8008
  ]),
7792
8009
  (value) => ({
@@ -7796,13 +8013,13 @@ function getSetLiquidatorAuthorityInstructionDataEncoder() {
7796
8013
  );
7797
8014
  }
7798
8015
  function getSetLiquidatorAuthorityInstructionDataDecoder() {
7799
- return getStructDecoder48([
7800
- ["discriminator", fixDecoderSize46(getBytesDecoder46(), 8)],
8016
+ return getStructDecoder49([
8017
+ ["discriminator", fixDecoderSize47(getBytesDecoder47(), 8)],
7801
8018
  ["liquidatorAuthority", getAddressDecoder12()]
7802
8019
  ]);
7803
8020
  }
7804
8021
  function getSetLiquidatorAuthorityInstructionDataCodec() {
7805
- return combineCodec52(
8022
+ return combineCodec53(
7806
8023
  getSetLiquidatorAuthorityInstructionDataEncoder(),
7807
8024
  getSetLiquidatorAuthorityInstructionDataDecoder()
7808
8025
  );
@@ -7852,16 +8069,16 @@ function parseSetLiquidatorAuthorityInstruction(instruction) {
7852
8069
 
7853
8070
  // src/generated/instructions/setOwnerAuthority.ts
7854
8071
  import {
7855
- combineCodec as combineCodec53,
7856
- fixDecoderSize as fixDecoderSize47,
7857
- fixEncoderSize as fixEncoderSize48,
8072
+ combineCodec as combineCodec54,
8073
+ fixDecoderSize as fixDecoderSize48,
8074
+ fixEncoderSize as fixEncoderSize49,
7858
8075
  getAddressDecoder as getAddressDecoder13,
7859
8076
  getAddressEncoder as getAddressEncoder13,
7860
- getBytesDecoder as getBytesDecoder47,
7861
- getBytesEncoder as getBytesEncoder48,
7862
- getStructDecoder as getStructDecoder49,
7863
- getStructEncoder as getStructEncoder49,
7864
- transformEncoder as transformEncoder47
8077
+ getBytesDecoder as getBytesDecoder48,
8078
+ getBytesEncoder as getBytesEncoder49,
8079
+ getStructDecoder as getStructDecoder50,
8080
+ getStructEncoder as getStructEncoder50,
8081
+ transformEncoder as transformEncoder48
7865
8082
  } from "@solana/kit";
7866
8083
  var SET_OWNER_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7867
8084
  128,
@@ -7874,27 +8091,27 @@ var SET_OWNER_AUTHORITY_DISCRIMINATOR = new Uint8Array([
7874
8091
  117
7875
8092
  ]);
7876
8093
  function getSetOwnerAuthorityDiscriminatorBytes() {
7877
- return fixEncoderSize48(getBytesEncoder48(), 8).encode(
8094
+ return fixEncoderSize49(getBytesEncoder49(), 8).encode(
7878
8095
  SET_OWNER_AUTHORITY_DISCRIMINATOR
7879
8096
  );
7880
8097
  }
7881
8098
  function getSetOwnerAuthorityInstructionDataEncoder() {
7882
- return transformEncoder47(
7883
- getStructEncoder49([
7884
- ["discriminator", fixEncoderSize48(getBytesEncoder48(), 8)],
8099
+ return transformEncoder48(
8100
+ getStructEncoder50([
8101
+ ["discriminator", fixEncoderSize49(getBytesEncoder49(), 8)],
7885
8102
  ["ownerAuthority", getAddressEncoder13()]
7886
8103
  ]),
7887
8104
  (value) => ({ ...value, discriminator: SET_OWNER_AUTHORITY_DISCRIMINATOR })
7888
8105
  );
7889
8106
  }
7890
8107
  function getSetOwnerAuthorityInstructionDataDecoder() {
7891
- return getStructDecoder49([
7892
- ["discriminator", fixDecoderSize47(getBytesDecoder47(), 8)],
8108
+ return getStructDecoder50([
8109
+ ["discriminator", fixDecoderSize48(getBytesDecoder48(), 8)],
7893
8110
  ["ownerAuthority", getAddressDecoder13()]
7894
8111
  ]);
7895
8112
  }
7896
8113
  function getSetOwnerAuthorityInstructionDataCodec() {
7897
- return combineCodec53(
8114
+ return combineCodec54(
7898
8115
  getSetOwnerAuthorityInstructionDataEncoder(),
7899
8116
  getSetOwnerAuthorityInstructionDataDecoder()
7900
8117
  );
@@ -7942,16 +8159,16 @@ function parseSetOwnerAuthorityInstruction(instruction) {
7942
8159
 
7943
8160
  // src/generated/instructions/setSuspendedState.ts
7944
8161
  import {
7945
- combineCodec as combineCodec54,
7946
- fixDecoderSize as fixDecoderSize48,
7947
- fixEncoderSize as fixEncoderSize49,
8162
+ combineCodec as combineCodec55,
8163
+ fixDecoderSize as fixDecoderSize49,
8164
+ fixEncoderSize as fixEncoderSize50,
7948
8165
  getBooleanDecoder as getBooleanDecoder7,
7949
8166
  getBooleanEncoder as getBooleanEncoder7,
7950
- getBytesDecoder as getBytesDecoder48,
7951
- getBytesEncoder as getBytesEncoder49,
7952
- getStructDecoder as getStructDecoder50,
7953
- getStructEncoder as getStructEncoder50,
7954
- transformEncoder as transformEncoder48
8167
+ getBytesDecoder as getBytesDecoder49,
8168
+ getBytesEncoder as getBytesEncoder50,
8169
+ getStructDecoder as getStructDecoder51,
8170
+ getStructEncoder as getStructEncoder51,
8171
+ transformEncoder as transformEncoder49
7955
8172
  } from "@solana/kit";
7956
8173
  var SET_SUSPENDED_STATE_DISCRIMINATOR = new Uint8Array([
7957
8174
  145,
@@ -7964,14 +8181,14 @@ var SET_SUSPENDED_STATE_DISCRIMINATOR = new Uint8Array([
7964
8181
  32
7965
8182
  ]);
7966
8183
  function getSetSuspendedStateDiscriminatorBytes() {
7967
- return fixEncoderSize49(getBytesEncoder49(), 8).encode(
8184
+ return fixEncoderSize50(getBytesEncoder50(), 8).encode(
7968
8185
  SET_SUSPENDED_STATE_DISCRIMINATOR
7969
8186
  );
7970
8187
  }
7971
8188
  function getSetSuspendedStateInstructionDataEncoder() {
7972
- return transformEncoder48(
7973
- getStructEncoder50([
7974
- ["discriminator", fixEncoderSize49(getBytesEncoder49(), 8)],
8189
+ return transformEncoder49(
8190
+ getStructEncoder51([
8191
+ ["discriminator", fixEncoderSize50(getBytesEncoder50(), 8)],
7975
8192
  ["suspendLendingDeposits", getBooleanEncoder7()],
7976
8193
  ["suspendLendingWithdrawals", getBooleanEncoder7()],
7977
8194
  ["suspendAddLiquidity", getBooleanEncoder7()],
@@ -7981,8 +8198,8 @@ function getSetSuspendedStateInstructionDataEncoder() {
7981
8198
  );
7982
8199
  }
7983
8200
  function getSetSuspendedStateInstructionDataDecoder() {
7984
- return getStructDecoder50([
7985
- ["discriminator", fixDecoderSize48(getBytesDecoder48(), 8)],
8201
+ return getStructDecoder51([
8202
+ ["discriminator", fixDecoderSize49(getBytesDecoder49(), 8)],
7986
8203
  ["suspendLendingDeposits", getBooleanDecoder7()],
7987
8204
  ["suspendLendingWithdrawals", getBooleanDecoder7()],
7988
8205
  ["suspendAddLiquidity", getBooleanDecoder7()],
@@ -7990,7 +8207,7 @@ function getSetSuspendedStateInstructionDataDecoder() {
7990
8207
  ]);
7991
8208
  }
7992
8209
  function getSetSuspendedStateInstructionDataCodec() {
7993
- return combineCodec54(
8210
+ return combineCodec55(
7994
8211
  getSetSuspendedStateInstructionDataEncoder(),
7995
8212
  getSetSuspendedStateInstructionDataDecoder()
7996
8213
  );
@@ -8038,16 +8255,16 @@ function parseSetSuspendedStateInstruction(instruction) {
8038
8255
 
8039
8256
  // src/generated/instructions/setTunaLpPositionFlags.ts
8040
8257
  import {
8041
- combineCodec as combineCodec55,
8042
- fixDecoderSize as fixDecoderSize49,
8043
- fixEncoderSize as fixEncoderSize50,
8044
- getBytesDecoder as getBytesDecoder49,
8045
- getBytesEncoder as getBytesEncoder50,
8046
- getStructDecoder as getStructDecoder51,
8047
- getStructEncoder as getStructEncoder51,
8048
- getU32Decoder as getU32Decoder24,
8049
- getU32Encoder as getU32Encoder24,
8050
- transformEncoder as transformEncoder49
8258
+ combineCodec as combineCodec56,
8259
+ fixDecoderSize as fixDecoderSize50,
8260
+ fixEncoderSize as fixEncoderSize51,
8261
+ getBytesDecoder as getBytesDecoder50,
8262
+ getBytesEncoder as getBytesEncoder51,
8263
+ getStructDecoder as getStructDecoder52,
8264
+ getStructEncoder as getStructEncoder52,
8265
+ getU32Decoder as getU32Decoder25,
8266
+ getU32Encoder as getU32Encoder25,
8267
+ transformEncoder as transformEncoder50
8051
8268
  } from "@solana/kit";
8052
8269
  var SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR = new Uint8Array([
8053
8270
  110,
@@ -8060,15 +8277,15 @@ var SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR = new Uint8Array([
8060
8277
  57
8061
8278
  ]);
8062
8279
  function getSetTunaLpPositionFlagsDiscriminatorBytes() {
8063
- return fixEncoderSize50(getBytesEncoder50(), 8).encode(
8280
+ return fixEncoderSize51(getBytesEncoder51(), 8).encode(
8064
8281
  SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR
8065
8282
  );
8066
8283
  }
8067
8284
  function getSetTunaLpPositionFlagsInstructionDataEncoder() {
8068
- return transformEncoder49(
8069
- getStructEncoder51([
8070
- ["discriminator", fixEncoderSize50(getBytesEncoder50(), 8)],
8071
- ["flags", getU32Encoder24()]
8285
+ return transformEncoder50(
8286
+ getStructEncoder52([
8287
+ ["discriminator", fixEncoderSize51(getBytesEncoder51(), 8)],
8288
+ ["flags", getU32Encoder25()]
8072
8289
  ]),
8073
8290
  (value) => ({
8074
8291
  ...value,
@@ -8077,13 +8294,13 @@ function getSetTunaLpPositionFlagsInstructionDataEncoder() {
8077
8294
  );
8078
8295
  }
8079
8296
  function getSetTunaLpPositionFlagsInstructionDataDecoder() {
8080
- return getStructDecoder51([
8081
- ["discriminator", fixDecoderSize49(getBytesDecoder49(), 8)],
8082
- ["flags", getU32Decoder24()]
8297
+ return getStructDecoder52([
8298
+ ["discriminator", fixDecoderSize50(getBytesDecoder50(), 8)],
8299
+ ["flags", getU32Decoder25()]
8083
8300
  ]);
8084
8301
  }
8085
8302
  function getSetTunaLpPositionFlagsInstructionDataCodec() {
8086
- return combineCodec55(
8303
+ return combineCodec56(
8087
8304
  getSetTunaLpPositionFlagsInstructionDataEncoder(),
8088
8305
  getSetTunaLpPositionFlagsInstructionDataDecoder()
8089
8306
  );
@@ -8133,18 +8350,18 @@ function parseSetTunaLpPositionFlagsInstruction(instruction) {
8133
8350
 
8134
8351
  // src/generated/instructions/setTunaLpPositionLimitOrders.ts
8135
8352
  import {
8136
- combineCodec as combineCodec56,
8137
- fixDecoderSize as fixDecoderSize50,
8138
- fixEncoderSize as fixEncoderSize51,
8139
- getBytesDecoder as getBytesDecoder50,
8140
- getBytesEncoder as getBytesEncoder51,
8141
- getStructDecoder as getStructDecoder52,
8142
- getStructEncoder as getStructEncoder52,
8353
+ combineCodec as combineCodec57,
8354
+ fixDecoderSize as fixDecoderSize51,
8355
+ fixEncoderSize as fixEncoderSize52,
8356
+ getBytesDecoder as getBytesDecoder51,
8357
+ getBytesEncoder as getBytesEncoder52,
8358
+ getStructDecoder as getStructDecoder53,
8359
+ getStructEncoder as getStructEncoder53,
8143
8360
  getU128Decoder as getU128Decoder7,
8144
8361
  getU128Encoder as getU128Encoder7,
8145
8362
  getU8Decoder as getU8Decoder5,
8146
8363
  getU8Encoder as getU8Encoder5,
8147
- transformEncoder as transformEncoder50
8364
+ transformEncoder as transformEncoder51
8148
8365
  } from "@solana/kit";
8149
8366
  var SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR = new Uint8Array([
8150
8367
  65,
@@ -8157,14 +8374,14 @@ var SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR = new Uint8Array([
8157
8374
  255
8158
8375
  ]);
8159
8376
  function getSetTunaLpPositionLimitOrdersDiscriminatorBytes() {
8160
- return fixEncoderSize51(getBytesEncoder51(), 8).encode(
8377
+ return fixEncoderSize52(getBytesEncoder52(), 8).encode(
8161
8378
  SET_TUNA_LP_POSITION_LIMIT_ORDERS_DISCRIMINATOR
8162
8379
  );
8163
8380
  }
8164
8381
  function getSetTunaLpPositionLimitOrdersInstructionDataEncoder() {
8165
- return transformEncoder50(
8166
- getStructEncoder52([
8167
- ["discriminator", fixEncoderSize51(getBytesEncoder51(), 8)],
8382
+ return transformEncoder51(
8383
+ getStructEncoder53([
8384
+ ["discriminator", fixEncoderSize52(getBytesEncoder52(), 8)],
8168
8385
  ["lowerLimitOrderSqrtPrice", getU128Encoder7()],
8169
8386
  ["upperLimitOrderSqrtPrice", getU128Encoder7()],
8170
8387
  ["swapToTokenOnLimitOrder", getU8Encoder5()]
@@ -8176,15 +8393,15 @@ function getSetTunaLpPositionLimitOrdersInstructionDataEncoder() {
8176
8393
  );
8177
8394
  }
8178
8395
  function getSetTunaLpPositionLimitOrdersInstructionDataDecoder() {
8179
- return getStructDecoder52([
8180
- ["discriminator", fixDecoderSize50(getBytesDecoder50(), 8)],
8396
+ return getStructDecoder53([
8397
+ ["discriminator", fixDecoderSize51(getBytesDecoder51(), 8)],
8181
8398
  ["lowerLimitOrderSqrtPrice", getU128Decoder7()],
8182
8399
  ["upperLimitOrderSqrtPrice", getU128Decoder7()],
8183
8400
  ["swapToTokenOnLimitOrder", getU8Decoder5()]
8184
8401
  ]);
8185
8402
  }
8186
8403
  function getSetTunaLpPositionLimitOrdersInstructionDataCodec() {
8187
- return combineCodec56(
8404
+ return combineCodec57(
8188
8405
  getSetTunaLpPositionLimitOrdersInstructionDataEncoder(),
8189
8406
  getSetTunaLpPositionLimitOrdersInstructionDataDecoder()
8190
8407
  );
@@ -8234,28 +8451,28 @@ function parseSetTunaLpPositionLimitOrdersInstruction(instruction) {
8234
8451
 
8235
8452
  // src/generated/instructions/setTunaLpPositionRebalanceThreshold.ts
8236
8453
  import {
8237
- combineCodec as combineCodec57,
8238
- fixDecoderSize as fixDecoderSize51,
8239
- fixEncoderSize as fixEncoderSize52,
8240
- getBytesDecoder as getBytesDecoder51,
8241
- getBytesEncoder as getBytesEncoder52,
8242
- getStructDecoder as getStructDecoder53,
8243
- getStructEncoder as getStructEncoder53,
8244
- getU32Decoder as getU32Decoder25,
8245
- getU32Encoder as getU32Encoder25,
8246
- transformEncoder as transformEncoder51
8454
+ combineCodec as combineCodec58,
8455
+ fixDecoderSize as fixDecoderSize52,
8456
+ fixEncoderSize as fixEncoderSize53,
8457
+ getBytesDecoder as getBytesDecoder52,
8458
+ getBytesEncoder as getBytesEncoder53,
8459
+ getStructDecoder as getStructDecoder54,
8460
+ getStructEncoder as getStructEncoder54,
8461
+ getU32Decoder as getU32Decoder26,
8462
+ getU32Encoder as getU32Encoder26,
8463
+ transformEncoder as transformEncoder52
8247
8464
  } from "@solana/kit";
8248
8465
  var SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR = new Uint8Array([244, 174, 185, 58, 90, 150, 162, 51]);
8249
8466
  function getSetTunaLpPositionRebalanceThresholdDiscriminatorBytes() {
8250
- return fixEncoderSize52(getBytesEncoder52(), 8).encode(
8467
+ return fixEncoderSize53(getBytesEncoder53(), 8).encode(
8251
8468
  SET_TUNA_LP_POSITION_REBALANCE_THRESHOLD_DISCRIMINATOR
8252
8469
  );
8253
8470
  }
8254
8471
  function getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder() {
8255
- return transformEncoder51(
8256
- getStructEncoder53([
8257
- ["discriminator", fixEncoderSize52(getBytesEncoder52(), 8)],
8258
- ["rebalanceThresholdTicks", getU32Encoder25()]
8472
+ return transformEncoder52(
8473
+ getStructEncoder54([
8474
+ ["discriminator", fixEncoderSize53(getBytesEncoder53(), 8)],
8475
+ ["rebalanceThresholdTicks", getU32Encoder26()]
8259
8476
  ]),
8260
8477
  (value) => ({
8261
8478
  ...value,
@@ -8264,13 +8481,13 @@ function getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder() {
8264
8481
  );
8265
8482
  }
8266
8483
  function getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder() {
8267
- return getStructDecoder53([
8268
- ["discriminator", fixDecoderSize51(getBytesDecoder51(), 8)],
8269
- ["rebalanceThresholdTicks", getU32Decoder25()]
8484
+ return getStructDecoder54([
8485
+ ["discriminator", fixDecoderSize52(getBytesDecoder52(), 8)],
8486
+ ["rebalanceThresholdTicks", getU32Decoder26()]
8270
8487
  ]);
8271
8488
  }
8272
8489
  function getSetTunaLpPositionRebalanceThresholdInstructionDataCodec() {
8273
- return combineCodec57(
8490
+ return combineCodec58(
8274
8491
  getSetTunaLpPositionRebalanceThresholdInstructionDataEncoder(),
8275
8492
  getSetTunaLpPositionRebalanceThresholdInstructionDataDecoder()
8276
8493
  );
@@ -8320,29 +8537,29 @@ function parseSetTunaLpPositionRebalanceThresholdInstruction(instruction) {
8320
8537
 
8321
8538
  // src/generated/instructions/setTunaSpotPositionLimitOrders.ts
8322
8539
  import {
8323
- combineCodec as combineCodec58,
8324
- fixDecoderSize as fixDecoderSize52,
8325
- fixEncoderSize as fixEncoderSize53,
8326
- getBytesDecoder as getBytesDecoder52,
8327
- getBytesEncoder as getBytesEncoder53,
8328
- getStructDecoder as getStructDecoder54,
8329
- getStructEncoder as getStructEncoder54,
8540
+ combineCodec as combineCodec59,
8541
+ fixDecoderSize as fixDecoderSize53,
8542
+ fixEncoderSize as fixEncoderSize54,
8543
+ getBytesDecoder as getBytesDecoder53,
8544
+ getBytesEncoder as getBytesEncoder54,
8545
+ getStructDecoder as getStructDecoder55,
8546
+ getStructEncoder as getStructEncoder55,
8330
8547
  getU128Decoder as getU128Decoder8,
8331
8548
  getU128Encoder as getU128Encoder8,
8332
- transformEncoder as transformEncoder52
8549
+ transformEncoder as transformEncoder53
8333
8550
  } from "@solana/kit";
8334
8551
  var SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR = new Uint8Array(
8335
8552
  [10, 180, 19, 205, 169, 133, 52, 118]
8336
8553
  );
8337
8554
  function getSetTunaSpotPositionLimitOrdersDiscriminatorBytes() {
8338
- return fixEncoderSize53(getBytesEncoder53(), 8).encode(
8555
+ return fixEncoderSize54(getBytesEncoder54(), 8).encode(
8339
8556
  SET_TUNA_SPOT_POSITION_LIMIT_ORDERS_DISCRIMINATOR
8340
8557
  );
8341
8558
  }
8342
8559
  function getSetTunaSpotPositionLimitOrdersInstructionDataEncoder() {
8343
- return transformEncoder52(
8344
- getStructEncoder54([
8345
- ["discriminator", fixEncoderSize53(getBytesEncoder53(), 8)],
8560
+ return transformEncoder53(
8561
+ getStructEncoder55([
8562
+ ["discriminator", fixEncoderSize54(getBytesEncoder54(), 8)],
8346
8563
  ["lowerLimitOrderSqrtPrice", getU128Encoder8()],
8347
8564
  ["upperLimitOrderSqrtPrice", getU128Encoder8()]
8348
8565
  ]),
@@ -8353,14 +8570,14 @@ function getSetTunaSpotPositionLimitOrdersInstructionDataEncoder() {
8353
8570
  );
8354
8571
  }
8355
8572
  function getSetTunaSpotPositionLimitOrdersInstructionDataDecoder() {
8356
- return getStructDecoder54([
8357
- ["discriminator", fixDecoderSize52(getBytesDecoder52(), 8)],
8573
+ return getStructDecoder55([
8574
+ ["discriminator", fixDecoderSize53(getBytesDecoder53(), 8)],
8358
8575
  ["lowerLimitOrderSqrtPrice", getU128Decoder8()],
8359
8576
  ["upperLimitOrderSqrtPrice", getU128Decoder8()]
8360
8577
  ]);
8361
8578
  }
8362
8579
  function getSetTunaSpotPositionLimitOrdersInstructionDataCodec() {
8363
- return combineCodec58(
8580
+ return combineCodec59(
8364
8581
  getSetTunaSpotPositionLimitOrdersInstructionDataEncoder(),
8365
8582
  getSetTunaSpotPositionLimitOrdersInstructionDataDecoder()
8366
8583
  );
@@ -8410,24 +8627,24 @@ function parseSetTunaSpotPositionLimitOrdersInstruction(instruction) {
8410
8627
 
8411
8628
  // src/generated/instructions/updateMarket.ts
8412
8629
  import {
8413
- combineCodec as combineCodec59,
8414
- fixDecoderSize as fixDecoderSize53,
8415
- fixEncoderSize as fixEncoderSize54,
8630
+ combineCodec as combineCodec60,
8631
+ fixDecoderSize as fixDecoderSize54,
8632
+ fixEncoderSize as fixEncoderSize55,
8416
8633
  getAddressDecoder as getAddressDecoder14,
8417
8634
  getAddressEncoder as getAddressEncoder14,
8418
8635
  getBooleanDecoder as getBooleanDecoder8,
8419
8636
  getBooleanEncoder as getBooleanEncoder8,
8420
- getBytesDecoder as getBytesDecoder53,
8421
- getBytesEncoder as getBytesEncoder54,
8422
- getStructDecoder as getStructDecoder55,
8423
- getStructEncoder as getStructEncoder55,
8637
+ getBytesDecoder as getBytesDecoder54,
8638
+ getBytesEncoder as getBytesEncoder55,
8639
+ getStructDecoder as getStructDecoder56,
8640
+ getStructEncoder as getStructEncoder56,
8424
8641
  getU16Decoder as getU16Decoder8,
8425
8642
  getU16Encoder as getU16Encoder8,
8426
- getU32Decoder as getU32Decoder26,
8427
- getU32Encoder as getU32Encoder26,
8643
+ getU32Decoder as getU32Decoder27,
8644
+ getU32Encoder as getU32Encoder27,
8428
8645
  getU64Decoder as getU64Decoder20,
8429
8646
  getU64Encoder as getU64Encoder20,
8430
- transformEncoder as transformEncoder53
8647
+ transformEncoder as transformEncoder54
8431
8648
  } from "@solana/kit";
8432
8649
  var UPDATE_MARKET_DISCRIMINATOR = new Uint8Array([
8433
8650
  153,
@@ -8440,27 +8657,27 @@ var UPDATE_MARKET_DISCRIMINATOR = new Uint8Array([
8440
8657
  217
8441
8658
  ]);
8442
8659
  function getUpdateMarketDiscriminatorBytes() {
8443
- return fixEncoderSize54(getBytesEncoder54(), 8).encode(
8660
+ return fixEncoderSize55(getBytesEncoder55(), 8).encode(
8444
8661
  UPDATE_MARKET_DISCRIMINATOR
8445
8662
  );
8446
8663
  }
8447
8664
  function getUpdateMarketInstructionDataEncoder() {
8448
- return transformEncoder53(
8449
- getStructEncoder55([
8450
- ["discriminator", fixEncoderSize54(getBytesEncoder54(), 8)],
8665
+ return transformEncoder54(
8666
+ getStructEncoder56([
8667
+ ["discriminator", fixEncoderSize55(getBytesEncoder55(), 8)],
8451
8668
  ["addressLookupTable", getAddressEncoder14()],
8452
- ["maxLeverage", getU32Encoder26()],
8669
+ ["maxLeverage", getU32Encoder27()],
8453
8670
  ["protocolFee", getU16Encoder8()],
8454
8671
  ["protocolFeeOnCollateral", getU16Encoder8()],
8455
- ["liquidationFee", getU32Encoder26()],
8456
- ["liquidationThreshold", getU32Encoder26()],
8457
- ["limitOrderExecutionFee", getU32Encoder26()],
8458
- ["oraclePriceDeviationThreshold", getU32Encoder26()],
8672
+ ["liquidationFee", getU32Encoder27()],
8673
+ ["liquidationThreshold", getU32Encoder27()],
8674
+ ["limitOrderExecutionFee", getU32Encoder27()],
8675
+ ["oraclePriceDeviationThreshold", getU32Encoder27()],
8459
8676
  ["disabled", getBooleanEncoder8()],
8460
8677
  ["borrowLimitA", getU64Encoder20()],
8461
8678
  ["borrowLimitB", getU64Encoder20()],
8462
- ["maxSwapSlippage", getU32Encoder26()],
8463
- ["rebalanceProtocolFee", getU32Encoder26()],
8679
+ ["maxSwapSlippage", getU32Encoder27()],
8680
+ ["rebalanceProtocolFee", getU32Encoder27()],
8464
8681
  ["spotPositionSizeLimitA", getU64Encoder20()],
8465
8682
  ["spotPositionSizeLimitB", getU64Encoder20()]
8466
8683
  ]),
@@ -8468,27 +8685,27 @@ function getUpdateMarketInstructionDataEncoder() {
8468
8685
  );
8469
8686
  }
8470
8687
  function getUpdateMarketInstructionDataDecoder() {
8471
- return getStructDecoder55([
8472
- ["discriminator", fixDecoderSize53(getBytesDecoder53(), 8)],
8688
+ return getStructDecoder56([
8689
+ ["discriminator", fixDecoderSize54(getBytesDecoder54(), 8)],
8473
8690
  ["addressLookupTable", getAddressDecoder14()],
8474
- ["maxLeverage", getU32Decoder26()],
8691
+ ["maxLeverage", getU32Decoder27()],
8475
8692
  ["protocolFee", getU16Decoder8()],
8476
8693
  ["protocolFeeOnCollateral", getU16Decoder8()],
8477
- ["liquidationFee", getU32Decoder26()],
8478
- ["liquidationThreshold", getU32Decoder26()],
8479
- ["limitOrderExecutionFee", getU32Decoder26()],
8480
- ["oraclePriceDeviationThreshold", getU32Decoder26()],
8694
+ ["liquidationFee", getU32Decoder27()],
8695
+ ["liquidationThreshold", getU32Decoder27()],
8696
+ ["limitOrderExecutionFee", getU32Decoder27()],
8697
+ ["oraclePriceDeviationThreshold", getU32Decoder27()],
8481
8698
  ["disabled", getBooleanDecoder8()],
8482
8699
  ["borrowLimitA", getU64Decoder20()],
8483
8700
  ["borrowLimitB", getU64Decoder20()],
8484
- ["maxSwapSlippage", getU32Decoder26()],
8485
- ["rebalanceProtocolFee", getU32Decoder26()],
8701
+ ["maxSwapSlippage", getU32Decoder27()],
8702
+ ["rebalanceProtocolFee", getU32Decoder27()],
8486
8703
  ["spotPositionSizeLimitA", getU64Decoder20()],
8487
8704
  ["spotPositionSizeLimitB", getU64Decoder20()]
8488
8705
  ]);
8489
8706
  }
8490
8707
  function getUpdateMarketInstructionDataCodec() {
8491
- return combineCodec59(
8708
+ return combineCodec60(
8492
8709
  getUpdateMarketInstructionDataEncoder(),
8493
8710
  getUpdateMarketInstructionDataDecoder()
8494
8711
  );
@@ -8539,18 +8756,18 @@ function parseUpdateMarketInstruction(instruction) {
8539
8756
 
8540
8757
  // src/generated/instructions/updateVault.ts
8541
8758
  import {
8542
- combineCodec as combineCodec60,
8543
- fixDecoderSize as fixDecoderSize54,
8544
- fixEncoderSize as fixEncoderSize55,
8759
+ combineCodec as combineCodec61,
8760
+ fixDecoderSize as fixDecoderSize55,
8761
+ fixEncoderSize as fixEncoderSize56,
8545
8762
  getAddressDecoder as getAddressDecoder15,
8546
8763
  getAddressEncoder as getAddressEncoder15,
8547
- getBytesDecoder as getBytesDecoder54,
8548
- getBytesEncoder as getBytesEncoder55,
8549
- getStructDecoder as getStructDecoder56,
8550
- getStructEncoder as getStructEncoder56,
8764
+ getBytesDecoder as getBytesDecoder55,
8765
+ getBytesEncoder as getBytesEncoder56,
8766
+ getStructDecoder as getStructDecoder57,
8767
+ getStructEncoder as getStructEncoder57,
8551
8768
  getU64Decoder as getU64Decoder21,
8552
8769
  getU64Encoder as getU64Encoder21,
8553
- transformEncoder as transformEncoder54
8770
+ transformEncoder as transformEncoder55
8554
8771
  } from "@solana/kit";
8555
8772
  var UPDATE_VAULT_DISCRIMINATOR = new Uint8Array([
8556
8773
  67,
@@ -8563,14 +8780,14 @@ var UPDATE_VAULT_DISCRIMINATOR = new Uint8Array([
8563
8780
  60
8564
8781
  ]);
8565
8782
  function getUpdateVaultDiscriminatorBytes() {
8566
- return fixEncoderSize55(getBytesEncoder55(), 8).encode(
8783
+ return fixEncoderSize56(getBytesEncoder56(), 8).encode(
8567
8784
  UPDATE_VAULT_DISCRIMINATOR
8568
8785
  );
8569
8786
  }
8570
8787
  function getUpdateVaultInstructionDataEncoder() {
8571
- return transformEncoder54(
8572
- getStructEncoder56([
8573
- ["discriminator", fixEncoderSize55(getBytesEncoder55(), 8)],
8788
+ return transformEncoder55(
8789
+ getStructEncoder57([
8790
+ ["discriminator", fixEncoderSize56(getBytesEncoder56(), 8)],
8574
8791
  ["interestRate", getU64Encoder21()],
8575
8792
  ["supplyLimit", getU64Encoder21()],
8576
8793
  ["pythOraclePriceUpdate", getAddressEncoder15()],
@@ -8580,8 +8797,8 @@ function getUpdateVaultInstructionDataEncoder() {
8580
8797
  );
8581
8798
  }
8582
8799
  function getUpdateVaultInstructionDataDecoder() {
8583
- return getStructDecoder56([
8584
- ["discriminator", fixDecoderSize54(getBytesDecoder54(), 8)],
8800
+ return getStructDecoder57([
8801
+ ["discriminator", fixDecoderSize55(getBytesDecoder55(), 8)],
8585
8802
  ["interestRate", getU64Decoder21()],
8586
8803
  ["supplyLimit", getU64Decoder21()],
8587
8804
  ["pythOraclePriceUpdate", getAddressDecoder15()],
@@ -8589,7 +8806,7 @@ function getUpdateVaultInstructionDataDecoder() {
8589
8806
  ]);
8590
8807
  }
8591
8808
  function getUpdateVaultInstructionDataCodec() {
8592
- return combineCodec60(
8809
+ return combineCodec61(
8593
8810
  getUpdateVaultInstructionDataEncoder(),
8594
8811
  getUpdateVaultInstructionDataDecoder()
8595
8812
  );
@@ -8640,16 +8857,16 @@ function parseUpdateVaultInstruction(instruction) {
8640
8857
 
8641
8858
  // src/generated/instructions/withdraw.ts
8642
8859
  import {
8643
- combineCodec as combineCodec61,
8644
- fixDecoderSize as fixDecoderSize55,
8645
- fixEncoderSize as fixEncoderSize56,
8646
- getBytesDecoder as getBytesDecoder55,
8647
- getBytesEncoder as getBytesEncoder56,
8648
- getStructDecoder as getStructDecoder57,
8649
- getStructEncoder as getStructEncoder57,
8860
+ combineCodec as combineCodec62,
8861
+ fixDecoderSize as fixDecoderSize56,
8862
+ fixEncoderSize as fixEncoderSize57,
8863
+ getBytesDecoder as getBytesDecoder56,
8864
+ getBytesEncoder as getBytesEncoder57,
8865
+ getStructDecoder as getStructDecoder58,
8866
+ getStructEncoder as getStructEncoder58,
8650
8867
  getU64Decoder as getU64Decoder22,
8651
8868
  getU64Encoder as getU64Encoder22,
8652
- transformEncoder as transformEncoder55
8869
+ transformEncoder as transformEncoder56
8653
8870
  } from "@solana/kit";
8654
8871
  var WITHDRAW_DISCRIMINATOR = new Uint8Array([
8655
8872
  183,
@@ -8662,12 +8879,12 @@ var WITHDRAW_DISCRIMINATOR = new Uint8Array([
8662
8879
  34
8663
8880
  ]);
8664
8881
  function getWithdrawDiscriminatorBytes() {
8665
- return fixEncoderSize56(getBytesEncoder56(), 8).encode(WITHDRAW_DISCRIMINATOR);
8882
+ return fixEncoderSize57(getBytesEncoder57(), 8).encode(WITHDRAW_DISCRIMINATOR);
8666
8883
  }
8667
8884
  function getWithdrawInstructionDataEncoder() {
8668
- return transformEncoder55(
8669
- getStructEncoder57([
8670
- ["discriminator", fixEncoderSize56(getBytesEncoder56(), 8)],
8885
+ return transformEncoder56(
8886
+ getStructEncoder58([
8887
+ ["discriminator", fixEncoderSize57(getBytesEncoder57(), 8)],
8671
8888
  ["funds", getU64Encoder22()],
8672
8889
  ["shares", getU64Encoder22()]
8673
8890
  ]),
@@ -8675,14 +8892,14 @@ function getWithdrawInstructionDataEncoder() {
8675
8892
  );
8676
8893
  }
8677
8894
  function getWithdrawInstructionDataDecoder() {
8678
- return getStructDecoder57([
8679
- ["discriminator", fixDecoderSize55(getBytesDecoder55(), 8)],
8895
+ return getStructDecoder58([
8896
+ ["discriminator", fixDecoderSize56(getBytesDecoder56(), 8)],
8680
8897
  ["funds", getU64Decoder22()],
8681
8898
  ["shares", getU64Decoder22()]
8682
8899
  ]);
8683
8900
  }
8684
8901
  function getWithdrawInstructionDataCodec() {
8685
- return combineCodec61(
8902
+ return combineCodec62(
8686
8903
  getWithdrawInstructionDataEncoder(),
8687
8904
  getWithdrawInstructionDataDecoder()
8688
8905
  );
@@ -10850,9 +11067,23 @@ async function modifyTunaSpotPositionOrcaInstructions(rpc, authority, poolAddres
10850
11067
  hasDirectlyTransferredTokensA = tunaPositionAtaA.data.amount > (tunaPosition.data.positionToken == 0 /* A */ ? tunaPosition.data.amount : 0n);
10851
11068
  hasDirectlyTransferredTokensB = tunaPositionAtaB.data.amount > (tunaPosition.data.positionToken == 1 /* B */ ? tunaPosition.data.amount : 0n);
10852
11069
  }
10853
- const createUserAtaAInstructions = collateralToken == 0 /* A */ || hasDirectlyTransferredTokensA ? await getCreateAtaInstructions(rpc, authority, mintA.address, authority.address, mintA.programAddress) : void 0;
11070
+ const createUserAtaAInstructions = collateralToken == 0 /* A */ || hasDirectlyTransferredTokensA ? await getCreateAtaInstructions(
11071
+ rpc,
11072
+ authority,
11073
+ mintA.address,
11074
+ authority.address,
11075
+ mintA.programAddress,
11076
+ args.collateralAmount
11077
+ ) : void 0;
10854
11078
  if (createUserAtaAInstructions) createInstructions.push(...createUserAtaAInstructions.init);
10855
- const createUserAtaBInstructions = collateralToken == 1 /* B */ || hasDirectlyTransferredTokensB ? await getCreateAtaInstructions(rpc, authority, mintB.address, authority.address, mintB.programAddress) : void 0;
11079
+ const createUserAtaBInstructions = collateralToken == 1 /* B */ || hasDirectlyTransferredTokensB ? await getCreateAtaInstructions(
11080
+ rpc,
11081
+ authority,
11082
+ mintB.address,
11083
+ authority.address,
11084
+ mintB.programAddress,
11085
+ args.collateralAmount
11086
+ ) : void 0;
10856
11087
  if (createUserAtaBInstructions) createInstructions.push(...createUserAtaBInstructions.init);
10857
11088
  const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
10858
11089
  rpc,
@@ -11029,9 +11260,23 @@ async function modifyTunaSpotPositionFusionInstructions(rpc, authority, poolAddr
11029
11260
  hasDirectlyTransferredTokensA = tunaPositionAtaA.data.amount > (tunaPosition.data.positionToken == 0 /* A */ ? tunaPosition.data.amount : 0n);
11030
11261
  hasDirectlyTransferredTokensB = tunaPositionAtaB.data.amount > (tunaPosition.data.positionToken == 1 /* B */ ? tunaPosition.data.amount : 0n);
11031
11262
  }
11032
- const createUserAtaAInstructions = collateralToken == 0 /* A */ || hasDirectlyTransferredTokensA ? await getCreateAtaInstructions(rpc, authority, mintA.address, authority.address, mintA.programAddress) : void 0;
11263
+ const createUserAtaAInstructions = collateralToken == 0 /* A */ || hasDirectlyTransferredTokensA ? await getCreateAtaInstructions(
11264
+ rpc,
11265
+ authority,
11266
+ mintA.address,
11267
+ authority.address,
11268
+ mintA.programAddress,
11269
+ args.collateralAmount
11270
+ ) : void 0;
11033
11271
  if (createUserAtaAInstructions) createInstructions.push(...createUserAtaAInstructions.init);
11034
- const createUserAtaBInstructions = collateralToken == 1 /* B */ || hasDirectlyTransferredTokensB ? await getCreateAtaInstructions(rpc, authority, mintB.address, authority.address, mintB.programAddress) : void 0;
11272
+ const createUserAtaBInstructions = collateralToken == 1 /* B */ || hasDirectlyTransferredTokensB ? await getCreateAtaInstructions(
11273
+ rpc,
11274
+ authority,
11275
+ mintB.address,
11276
+ authority.address,
11277
+ mintB.programAddress,
11278
+ args.collateralAmount
11279
+ ) : void 0;
11035
11280
  if (createUserAtaBInstructions) createInstructions.push(...createUserAtaBInstructions.init);
11036
11281
  const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
11037
11282
  rpc,
@@ -11164,21 +11409,21 @@ import { fetchFusionPool as fetchFusionPool2 } from "@crypticdot/fusionamm-clien
11164
11409
  import {
11165
11410
  assertAccountExists as assertAccountExists7,
11166
11411
  assertAccountsExist as assertAccountsExist8,
11167
- combineCodec as combineCodec62,
11412
+ combineCodec as combineCodec63,
11168
11413
  decodeAccount as decodeAccount7,
11169
11414
  fetchEncodedAccount as fetchEncodedAccount7,
11170
11415
  fetchEncodedAccounts as fetchEncodedAccounts7,
11171
- fixDecoderSize as fixDecoderSize56,
11172
- fixEncoderSize as fixEncoderSize57,
11416
+ fixDecoderSize as fixDecoderSize57,
11417
+ fixEncoderSize as fixEncoderSize58,
11173
11418
  getAddressDecoder as getAddressDecoder16,
11174
11419
  getAddressEncoder as getAddressEncoder20,
11175
- getBytesDecoder as getBytesDecoder56,
11176
- getBytesEncoder as getBytesEncoder57,
11177
- getStructDecoder as getStructDecoder58,
11178
- getStructEncoder as getStructEncoder58,
11420
+ getBytesDecoder as getBytesDecoder57,
11421
+ getBytesEncoder as getBytesEncoder58,
11422
+ getStructDecoder as getStructDecoder59,
11423
+ getStructEncoder as getStructEncoder59,
11179
11424
  getU64Decoder as getU64Decoder23,
11180
11425
  getU64Encoder as getU64Encoder23,
11181
- transformEncoder as transformEncoder56
11426
+ transformEncoder as transformEncoder57
11182
11427
  } from "@solana/kit";
11183
11428
  import {
11184
11429
  isProgramError as isProgramError2
@@ -11223,11 +11468,11 @@ import {
11223
11468
  import {
11224
11469
  combineCodec as combineCodec410,
11225
11470
  fixDecoderSize as fixDecoderSize410,
11226
- fixEncoderSize as fixEncoderSize58,
11471
+ fixEncoderSize as fixEncoderSize59,
11227
11472
  getBooleanDecoder as getBooleanDecoder9,
11228
11473
  getBooleanEncoder as getBooleanEncoder9,
11229
11474
  getBytesDecoder as getBytesDecoder410,
11230
- getBytesEncoder as getBytesEncoder58,
11475
+ getBytesEncoder as getBytesEncoder59,
11231
11476
  getStructDecoder as getStructDecoder410,
11232
11477
  getStructEncoder as getStructEncoder410,
11233
11478
  getU8Decoder as getU8Decoder32,
@@ -11236,18 +11481,18 @@ import {
11236
11481
  } from "@solana/kit";
11237
11482
  import {
11238
11483
  combineCodec as combineCodec510,
11239
- fixDecoderSize as fixDecoderSize57,
11484
+ fixDecoderSize as fixDecoderSize58,
11240
11485
  fixEncoderSize as fixEncoderSize62,
11241
11486
  getAddressEncoder as getAddressEncoder32,
11242
- getBytesDecoder as getBytesDecoder57,
11487
+ getBytesDecoder as getBytesDecoder58,
11243
11488
  getBytesEncoder as getBytesEncoder62,
11244
11489
  getProgramDerivedAddress as getProgramDerivedAddress22,
11245
- getStructDecoder as getStructDecoder59,
11246
- getStructEncoder as getStructEncoder59,
11247
- transformEncoder as transformEncoder57
11490
+ getStructDecoder as getStructDecoder510,
11491
+ getStructEncoder as getStructEncoder510,
11492
+ transformEncoder as transformEncoder58
11248
11493
  } from "@solana/kit";
11249
11494
  import {
11250
- combineCodec as combineCodec63,
11495
+ combineCodec as combineCodec64,
11251
11496
  fixDecoderSize as fixDecoderSize62,
11252
11497
  fixEncoderSize as fixEncoderSize72,
11253
11498
  getAddressEncoder as getAddressEncoder42,
@@ -11378,8 +11623,8 @@ import {
11378
11623
  getOptionEncoder as getOptionEncoder3,
11379
11624
  getStructDecoder as getStructDecoder162,
11380
11625
  getStructEncoder as getStructEncoder162,
11381
- getU32Decoder as getU32Decoder27,
11382
- getU32Encoder as getU32Encoder27,
11626
+ getU32Decoder as getU32Decoder28,
11627
+ getU32Encoder as getU32Encoder28,
11383
11628
  getU64Decoder as getU64Decoder32,
11384
11629
  getU64Encoder as getU64Encoder32,
11385
11630
  getU8Decoder as getU8Decoder10,
@@ -12304,20 +12549,19 @@ import { FUSIONAMM_PROGRAM_ADDRESS as FUSIONAMM_PROGRAM_ADDRESS8 } from "@crypti
12304
12549
  import { AccountRole as AccountRole13 } from "@solana/kit";
12305
12550
  import { MEMO_PROGRAM_ADDRESS as MEMO_PROGRAM_ADDRESS13 } from "@solana-program/memo";
12306
12551
  import { findAssociatedTokenPda as findAssociatedTokenPda20 } from "@solana-program/token-2022";
12307
- async function liquidateTunaSpotPositionFusionInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, fusionPool, createTunaPositionOwnerAta, decreasePercent) {
12552
+ async function liquidateTunaSpotPositionFusionInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, fusionPool, decreasePercent) {
12308
12553
  const instructions = [];
12309
- if (createTunaPositionOwnerAta) {
12310
- const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
12311
- if (collateralTokenMint.address != NATIVE_MINT) {
12312
- const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
12313
- void 0,
12314
- authority,
12315
- collateralTokenMint.address,
12316
- tunaPosition.data.authority,
12317
- collateralTokenMint.programAddress
12318
- );
12319
- instructions.push(...createPositionOwnerAtaInstructions.init);
12320
- }
12554
+ const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
12555
+ const useNativeSol = collateralTokenMint.address == NATIVE_MINT && decreasePercent == HUNDRED_PERCENT;
12556
+ if (!useNativeSol) {
12557
+ const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
12558
+ void 0,
12559
+ authority,
12560
+ collateralTokenMint.address,
12561
+ tunaPosition.data.authority,
12562
+ collateralTokenMint.programAddress
12563
+ );
12564
+ instructions.push(...createPositionOwnerAtaInstructions.init);
12321
12565
  }
12322
12566
  const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
12323
12567
  void 0,
@@ -12445,20 +12689,19 @@ import { getOracleAddress as getOracleAddress5, WHIRLPOOL_PROGRAM_ADDRESS as WHI
12445
12689
  import { AccountRole as AccountRole14 } from "@solana/kit";
12446
12690
  import { MEMO_PROGRAM_ADDRESS as MEMO_PROGRAM_ADDRESS14 } from "@solana-program/memo";
12447
12691
  import { findAssociatedTokenPda as findAssociatedTokenPda21 } from "@solana-program/token-2022";
12448
- async function liquidateTunaSpotPositionOrcaInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, whirlpool, createTunaPositionOwnerAta, decreasePercent) {
12692
+ async function liquidateTunaSpotPositionOrcaInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, whirlpool, decreasePercent) {
12449
12693
  const instructions = [];
12450
- if (createTunaPositionOwnerAta) {
12451
- const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
12452
- if (collateralTokenMint.address != NATIVE_MINT) {
12453
- const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
12454
- void 0,
12455
- authority,
12456
- collateralTokenMint.address,
12457
- tunaPosition.data.authority,
12458
- collateralTokenMint.programAddress
12459
- );
12460
- instructions.push(...createPositionOwnerAtaInstructions.init);
12461
- }
12694
+ const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
12695
+ const useNativeSol = collateralTokenMint.address == NATIVE_MINT && decreasePercent == HUNDRED_PERCENT;
12696
+ if (!useNativeSol) {
12697
+ const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
12698
+ void 0,
12699
+ authority,
12700
+ collateralTokenMint.address,
12701
+ tunaPosition.data.authority,
12702
+ collateralTokenMint.programAddress
12703
+ );
12704
+ instructions.push(...createPositionOwnerAtaInstructions.init);
12462
12705
  }
12463
12706
  const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
12464
12707
  void 0,
@@ -14442,6 +14685,7 @@ export {
14442
14685
  LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR,
14443
14686
  LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR,
14444
14687
  LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR,
14688
+ LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR,
14445
14689
  LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR,
14446
14690
  MARKET_DISCRIMINATOR,
14447
14691
  MAX_LEVERAGE,
@@ -14740,6 +14984,11 @@ export {
14740
14984
  getLiquidateTunaSpotPositionFusionInstructionDataCodec,
14741
14985
  getLiquidateTunaSpotPositionFusionInstructionDataDecoder,
14742
14986
  getLiquidateTunaSpotPositionFusionInstructionDataEncoder,
14987
+ getLiquidateTunaSpotPositionJupiterDiscriminatorBytes,
14988
+ getLiquidateTunaSpotPositionJupiterInstruction,
14989
+ getLiquidateTunaSpotPositionJupiterInstructionDataCodec,
14990
+ getLiquidateTunaSpotPositionJupiterInstructionDataDecoder,
14991
+ getLiquidateTunaSpotPositionJupiterInstructionDataEncoder,
14743
14992
  getLiquidateTunaSpotPositionOrcaDiscriminatorBytes,
14744
14993
  getLiquidateTunaSpotPositionOrcaInstruction,
14745
14994
  getLiquidateTunaSpotPositionOrcaInstructionDataCodec,
@@ -14989,6 +15238,7 @@ export {
14989
15238
  parseLiquidateTunaLpPositionFusionInstruction,
14990
15239
  parseLiquidateTunaLpPositionOrcaInstruction,
14991
15240
  parseLiquidateTunaSpotPositionFusionInstruction,
15241
+ parseLiquidateTunaSpotPositionJupiterInstruction,
14992
15242
  parseLiquidateTunaSpotPositionOrcaInstruction,
14993
15243
  parseModifyTunaSpotPositionFusionInstruction,
14994
15244
  parseModifyTunaSpotPositionJupiterInstruction,