@crypticdot/defituna-client 3.3.2 → 3.3.3
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.d.mts +190 -33
- package/dist/index.d.ts +190 -33
- package/dist/index.js +958 -742
- package/dist/index.mjs +931 -709
- package/package.json +3 -3
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["
|
|
981
|
-
TunaInstruction2[TunaInstruction2["
|
|
982
|
-
TunaInstruction2[TunaInstruction2["
|
|
983
|
-
TunaInstruction2[TunaInstruction2["
|
|
984
|
-
TunaInstruction2[TunaInstruction2["
|
|
985
|
-
TunaInstruction2[TunaInstruction2["
|
|
986
|
-
TunaInstruction2[TunaInstruction2["
|
|
987
|
-
TunaInstruction2[TunaInstruction2["
|
|
988
|
-
TunaInstruction2[TunaInstruction2["
|
|
989
|
-
TunaInstruction2[TunaInstruction2["
|
|
990
|
-
TunaInstruction2[TunaInstruction2["
|
|
991
|
-
TunaInstruction2[TunaInstruction2["
|
|
992
|
-
TunaInstruction2[TunaInstruction2["
|
|
993
|
-
TunaInstruction2[TunaInstruction2["
|
|
994
|
-
TunaInstruction2[TunaInstruction2["
|
|
995
|
-
TunaInstruction2[TunaInstruction2["
|
|
996
|
-
TunaInstruction2[TunaInstruction2["
|
|
997
|
-
TunaInstruction2[TunaInstruction2["
|
|
998
|
-
TunaInstruction2[TunaInstruction2["
|
|
999
|
-
TunaInstruction2[TunaInstruction2["
|
|
1000
|
-
TunaInstruction2[TunaInstruction2["
|
|
1001
|
-
TunaInstruction2[TunaInstruction2["
|
|
1002
|
-
TunaInstruction2[TunaInstruction2["
|
|
1003
|
-
TunaInstruction2[TunaInstruction2["
|
|
1004
|
-
TunaInstruction2[TunaInstruction2["
|
|
1005
|
-
TunaInstruction2[TunaInstruction2["
|
|
1006
|
-
TunaInstruction2[TunaInstruction2["
|
|
1007
|
-
TunaInstruction2[TunaInstruction2["
|
|
1008
|
-
TunaInstruction2[TunaInstruction2["
|
|
1009
|
-
TunaInstruction2[TunaInstruction2["
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
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
|
|
4694
|
-
|
|
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
|
-
|
|
4708
|
+
LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
|
|
4706
4709
|
);
|
|
4707
4710
|
}
|
|
4708
|
-
function
|
|
4711
|
+
function getLiquidateTunaSpotPositionJupiterInstructionDataEncoder() {
|
|
4709
4712
|
return transformEncoder26(
|
|
4710
4713
|
getStructEncoder28([
|
|
4711
4714
|
["discriminator", fixEncoderSize27(getBytesEncoder27(), 8)],
|
|
4712
4715
|
["decreasePercent", getU32Encoder13()],
|
|
4713
|
-
["
|
|
4716
|
+
["routeData", addEncoderSizePrefix(getBytesEncoder27(), getU32Encoder13())]
|
|
4714
4717
|
]),
|
|
4715
4718
|
(value) => ({
|
|
4716
4719
|
...value,
|
|
4717
|
-
discriminator:
|
|
4720
|
+
discriminator: LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR
|
|
4718
4721
|
})
|
|
4719
4722
|
);
|
|
4720
4723
|
}
|
|
4721
|
-
function
|
|
4724
|
+
function getLiquidateTunaSpotPositionJupiterInstructionDataDecoder() {
|
|
4722
4725
|
return getStructDecoder28([
|
|
4723
4726
|
["discriminator", fixDecoderSize26(getBytesDecoder26(), 8)],
|
|
4724
4727
|
["decreasePercent", getU32Decoder13()],
|
|
4725
|
-
["
|
|
4728
|
+
["routeData", addDecoderSizePrefix(getBytesDecoder26(), getU32Decoder13())]
|
|
4726
4729
|
]);
|
|
4727
4730
|
}
|
|
4728
|
-
function
|
|
4731
|
+
function getLiquidateTunaSpotPositionJupiterInstructionDataCodec() {
|
|
4729
4732
|
return combineCodec32(
|
|
4730
|
-
|
|
4731
|
-
|
|
4733
|
+
getLiquidateTunaSpotPositionJupiterInstructionDataEncoder(),
|
|
4734
|
+
getLiquidateTunaSpotPositionJupiterInstructionDataDecoder()
|
|
4732
4735
|
);
|
|
4733
4736
|
}
|
|
4734
|
-
function
|
|
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
|
-
|
|
4786
|
-
|
|
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
|
-
|
|
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.
|
|
4823
|
-
getAccountMeta(accounts.
|
|
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:
|
|
4843
|
+
data: getLiquidateTunaSpotPositionJupiterInstructionDataEncoder().encode(
|
|
4829
4844
|
args
|
|
4830
4845
|
)
|
|
4831
4846
|
};
|
|
4832
4847
|
return instruction;
|
|
4833
4848
|
}
|
|
4834
|
-
function
|
|
4835
|
-
if (instruction.accounts.length <
|
|
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:
|
|
4869
|
-
tunaPositionOwnerAtaB:
|
|
4879
|
+
tunaPositionOwnerAtaA: getNextAccount(),
|
|
4880
|
+
tunaPositionOwnerAtaB: getNextAccount(),
|
|
4870
4881
|
pythOraclePriceFeedA: getNextAccount(),
|
|
4871
4882
|
pythOraclePriceFeedB: getNextAccount(),
|
|
4872
|
-
|
|
4873
|
-
|
|
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:
|
|
4891
|
+
data: getLiquidateTunaSpotPositionJupiterInstructionDataDecoder().decode(
|
|
4878
4892
|
instruction.data
|
|
4879
4893
|
)
|
|
4880
4894
|
};
|
|
4881
4895
|
}
|
|
4882
4896
|
|
|
4883
|
-
// src/generated/instructions/
|
|
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
|
|
4899
|
-
98,
|
|
4910
|
+
var LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR = new Uint8Array([
|
|
4900
4911
|
4,
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4912
|
+
211,
|
|
4913
|
+
103,
|
|
4914
|
+
145,
|
|
4915
|
+
6,
|
|
4916
|
+
1,
|
|
4917
|
+
243,
|
|
4918
|
+
162
|
|
4907
4919
|
]);
|
|
4908
|
-
function
|
|
4920
|
+
function getLiquidateTunaSpotPositionOrcaDiscriminatorBytes() {
|
|
4909
4921
|
return fixEncoderSize28(getBytesEncoder28(), 8).encode(
|
|
4910
|
-
|
|
4922
|
+
LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
|
|
4911
4923
|
);
|
|
4912
4924
|
}
|
|
4913
|
-
function
|
|
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:
|
|
4934
|
+
discriminator: LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
|
|
4926
4935
|
})
|
|
4927
4936
|
);
|
|
4928
4937
|
}
|
|
4929
|
-
function
|
|
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
|
|
4945
|
+
function getLiquidateTunaSpotPositionOrcaInstructionDataCodec() {
|
|
4940
4946
|
return combineCodec33(
|
|
4941
|
-
|
|
4942
|
-
|
|
4947
|
+
getLiquidateTunaSpotPositionOrcaInstructionDataEncoder(),
|
|
4948
|
+
getLiquidateTunaSpotPositionOrcaInstructionDataDecoder()
|
|
4943
4949
|
);
|
|
4944
4950
|
}
|
|
4945
|
-
function
|
|
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
|
-
|
|
4993
|
-
value: input.
|
|
5002
|
+
whirlpoolProgram: {
|
|
5003
|
+
value: input.whirlpoolProgram ?? null,
|
|
4994
5004
|
isWritable: false
|
|
4995
5005
|
},
|
|
4996
|
-
|
|
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.
|
|
5029
|
-
getAccountMeta(accounts.
|
|
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:
|
|
5045
|
+
data: getLiquidateTunaSpotPositionOrcaInstructionDataEncoder().encode(
|
|
5035
5046
|
args
|
|
5036
5047
|
)
|
|
5037
5048
|
};
|
|
5038
5049
|
return instruction;
|
|
5039
5050
|
}
|
|
5040
|
-
function
|
|
5041
|
-
if (instruction.accounts.length <
|
|
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
|
-
|
|
5078
|
-
|
|
5089
|
+
whirlpoolProgram: getNextAccount(),
|
|
5090
|
+
whirlpool: getNextAccount(),
|
|
5079
5091
|
memoProgram: getNextAccount(),
|
|
5080
5092
|
systemProgram: getNextAccount()
|
|
5081
5093
|
},
|
|
5082
|
-
data:
|
|
5094
|
+
data: getLiquidateTunaSpotPositionOrcaInstructionDataDecoder().decode(
|
|
5083
5095
|
instruction.data
|
|
5084
5096
|
)
|
|
5085
5097
|
};
|
|
5086
5098
|
}
|
|
5087
5099
|
|
|
5088
|
-
// src/generated/instructions/
|
|
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
|
|
5102
|
-
getU64Encoder as
|
|
5111
|
+
getU64Decoder as getU64Decoder13,
|
|
5112
|
+
getU64Encoder as getU64Encoder13,
|
|
5103
5113
|
transformEncoder as transformEncoder28
|
|
5104
5114
|
} from "@solana/kit";
|
|
5105
|
-
var
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
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
|
|
5125
|
+
function getModifyTunaSpotPositionFusionDiscriminatorBytes() {
|
|
5116
5126
|
return fixEncoderSize29(getBytesEncoder29(), 8).encode(
|
|
5117
|
-
|
|
5127
|
+
MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
|
|
5118
5128
|
);
|
|
5119
5129
|
}
|
|
5120
|
-
function
|
|
5130
|
+
function getModifyTunaSpotPositionFusionInstructionDataEncoder() {
|
|
5121
5131
|
return transformEncoder28(
|
|
5122
5132
|
getStructEncoder30([
|
|
5123
5133
|
["discriminator", fixEncoderSize29(getBytesEncoder29(), 8)],
|
|
5124
5134
|
["decreasePercent", getU32Encoder15()],
|
|
5125
|
-
["collateralAmount",
|
|
5126
|
-
["borrowAmount",
|
|
5127
|
-
["
|
|
5135
|
+
["collateralAmount", getU64Encoder13()],
|
|
5136
|
+
["borrowAmount", getU64Encoder13()],
|
|
5137
|
+
["requiredSwapAmount", getU64Encoder13()],
|
|
5138
|
+
["remainingAccountsInfo", getRemainingAccountsInfoEncoder()]
|
|
5128
5139
|
]),
|
|
5129
5140
|
(value) => ({
|
|
5130
5141
|
...value,
|
|
5131
|
-
discriminator:
|
|
5142
|
+
discriminator: MODIFY_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR
|
|
5132
5143
|
})
|
|
5133
5144
|
);
|
|
5134
5145
|
}
|
|
5135
|
-
function
|
|
5146
|
+
function getModifyTunaSpotPositionFusionInstructionDataDecoder() {
|
|
5136
5147
|
return getStructDecoder30([
|
|
5137
5148
|
["discriminator", fixDecoderSize28(getBytesDecoder28(), 8)],
|
|
5138
5149
|
["decreasePercent", getU32Decoder15()],
|
|
5139
|
-
["collateralAmount",
|
|
5140
|
-
["borrowAmount",
|
|
5141
|
-
["
|
|
5150
|
+
["collateralAmount", getU64Decoder13()],
|
|
5151
|
+
["borrowAmount", getU64Decoder13()],
|
|
5152
|
+
["requiredSwapAmount", getU64Decoder13()],
|
|
5153
|
+
["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
|
|
5142
5154
|
]);
|
|
5143
5155
|
}
|
|
5144
|
-
function
|
|
5156
|
+
function getModifyTunaSpotPositionFusionInstructionDataCodec() {
|
|
5145
5157
|
return combineCodec34(
|
|
5146
|
-
|
|
5147
|
-
|
|
5158
|
+
getModifyTunaSpotPositionFusionInstructionDataEncoder(),
|
|
5159
|
+
getModifyTunaSpotPositionFusionInstructionDataDecoder()
|
|
5148
5160
|
);
|
|
5149
5161
|
}
|
|
5150
|
-
function
|
|
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
|
-
|
|
5198
|
-
|
|
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
|
-
|
|
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.
|
|
5243
|
-
getAccountMeta(accounts.
|
|
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:
|
|
5251
|
+
data: getModifyTunaSpotPositionFusionInstructionDataEncoder().encode(
|
|
5252
5252
|
args
|
|
5253
5253
|
)
|
|
5254
5254
|
};
|
|
5255
5255
|
return instruction;
|
|
5256
5256
|
}
|
|
5257
|
-
function
|
|
5258
|
-
if (instruction.accounts.length <
|
|
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:
|
|
5285
|
-
tunaPositionOwnerAtaB:
|
|
5288
|
+
tunaPositionOwnerAtaA: getNextOptionalAccount(),
|
|
5289
|
+
tunaPositionOwnerAtaB: getNextOptionalAccount(),
|
|
5286
5290
|
feeRecipientAtaA: getNextAccount(),
|
|
5287
5291
|
feeRecipientAtaB: getNextAccount(),
|
|
5288
5292
|
pythOraclePriceFeedA: getNextAccount(),
|
|
5289
5293
|
pythOraclePriceFeedB: getNextAccount(),
|
|
5290
|
-
|
|
5291
|
-
|
|
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:
|
|
5299
|
+
data: getModifyTunaSpotPositionFusionInstructionDataDecoder().decode(
|
|
5299
5300
|
instruction.data
|
|
5300
5301
|
)
|
|
5301
5302
|
};
|
|
5302
5303
|
}
|
|
5303
5304
|
|
|
5304
|
-
// src/generated/instructions/
|
|
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
|
|
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
|
|
5547
|
+
return fixEncoderSize31(getBytesEncoder31(), 8).encode(
|
|
5331
5548
|
MODIFY_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR
|
|
5332
5549
|
);
|
|
5333
5550
|
}
|
|
5334
5551
|
function getModifyTunaSpotPositionOrcaInstructionDataEncoder() {
|
|
5335
|
-
return
|
|
5336
|
-
|
|
5337
|
-
["discriminator",
|
|
5338
|
-
["decreasePercent",
|
|
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
|
|
5352
|
-
["discriminator",
|
|
5353
|
-
["decreasePercent",
|
|
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
|
|
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
|
|
5512
|
-
fixDecoderSize as
|
|
5513
|
-
fixEncoderSize as
|
|
5514
|
-
getBytesDecoder as
|
|
5515
|
-
getBytesEncoder as
|
|
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
|
|
5519
|
-
getStructEncoder as
|
|
5735
|
+
getStructDecoder as getStructDecoder33,
|
|
5736
|
+
getStructEncoder as getStructEncoder33,
|
|
5520
5737
|
getU128Decoder as getU128Decoder3,
|
|
5521
5738
|
getU128Encoder as getU128Encoder3,
|
|
5522
|
-
getU32Decoder as
|
|
5523
|
-
getU32Encoder as
|
|
5739
|
+
getU32Decoder as getU32Decoder18,
|
|
5740
|
+
getU32Encoder as getU32Encoder18,
|
|
5524
5741
|
getU64Decoder as getU64Decoder16,
|
|
5525
5742
|
getU64Encoder as getU64Encoder16,
|
|
5526
|
-
transformEncoder as
|
|
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
|
|
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
|
|
5536
|
-
|
|
5537
|
-
["discriminator",
|
|
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",
|
|
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",
|
|
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
|
|
5560
|
-
["discriminator",
|
|
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",
|
|
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",
|
|
5789
|
+
["maxSwapSlippage", getU32Decoder18()],
|
|
5573
5790
|
["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
|
|
5574
5791
|
]);
|
|
5575
5792
|
}
|
|
5576
5793
|
function getOpenAndIncreaseTunaLpPositionFusionInstructionDataCodec() {
|
|
5577
|
-
return
|
|
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
|
|
5754
|
-
fixDecoderSize as
|
|
5755
|
-
fixEncoderSize as
|
|
5756
|
-
getBytesDecoder as
|
|
5757
|
-
getBytesEncoder as
|
|
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
|
|
5761
|
-
getStructEncoder as
|
|
5977
|
+
getStructDecoder as getStructDecoder34,
|
|
5978
|
+
getStructEncoder as getStructEncoder34,
|
|
5762
5979
|
getU128Decoder as getU128Decoder4,
|
|
5763
5980
|
getU128Encoder as getU128Encoder4,
|
|
5764
|
-
getU32Decoder as
|
|
5765
|
-
getU32Encoder as
|
|
5981
|
+
getU32Decoder as getU32Decoder19,
|
|
5982
|
+
getU32Encoder as getU32Encoder19,
|
|
5766
5983
|
getU64Decoder as getU64Decoder17,
|
|
5767
5984
|
getU64Encoder as getU64Encoder17,
|
|
5768
|
-
transformEncoder as
|
|
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
|
|
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
|
|
5778
|
-
|
|
5779
|
-
["discriminator",
|
|
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",
|
|
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",
|
|
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
|
|
5802
|
-
["discriminator",
|
|
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",
|
|
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",
|
|
6031
|
+
["maxSwapSlippage", getU32Decoder19()],
|
|
5815
6032
|
["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
|
|
5816
6033
|
]);
|
|
5817
6034
|
}
|
|
5818
6035
|
function getOpenAndIncreaseTunaLpPositionOrcaInstructionDataCodec() {
|
|
5819
|
-
return
|
|
6036
|
+
return combineCodec38(
|
|
5820
6037
|
getOpenAndIncreaseTunaLpPositionOrcaInstructionDataEncoder(),
|
|
5821
6038
|
getOpenAndIncreaseTunaLpPositionOrcaInstructionDataDecoder()
|
|
5822
6039
|
);
|
|
@@ -5988,18 +6205,18 @@ function parseOpenAndIncreaseTunaLpPositionOrcaInstruction(instruction) {
|
|
|
5988
6205
|
instruction.data
|
|
5989
6206
|
)
|
|
5990
6207
|
};
|
|
5991
|
-
}
|
|
5992
|
-
|
|
5993
|
-
// src/generated/instructions/openLendingPosition.ts
|
|
5994
|
-
import {
|
|
5995
|
-
combineCodec as
|
|
5996
|
-
fixDecoderSize as
|
|
5997
|
-
fixEncoderSize as
|
|
5998
|
-
getBytesDecoder as
|
|
5999
|
-
getBytesEncoder as
|
|
6000
|
-
getStructDecoder as
|
|
6001
|
-
getStructEncoder as
|
|
6002
|
-
transformEncoder as
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
// src/generated/instructions/openLendingPosition.ts
|
|
6211
|
+
import {
|
|
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
|
|
6232
|
+
return fixEncoderSize34(getBytesEncoder34(), 8).encode(
|
|
6016
6233
|
OPEN_LENDING_POSITION_DISCRIMINATOR
|
|
6017
6234
|
);
|
|
6018
6235
|
}
|
|
6019
6236
|
function getOpenLendingPositionInstructionDataEncoder() {
|
|
6020
|
-
return
|
|
6021
|
-
|
|
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
|
|
6030
|
-
["discriminator",
|
|
6246
|
+
return getStructDecoder35([
|
|
6247
|
+
["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)]
|
|
6031
6248
|
]);
|
|
6032
6249
|
}
|
|
6033
6250
|
function getOpenLendingPositionInstructionDataCodec() {
|
|
6034
|
-
return
|
|
6251
|
+
return combineCodec39(
|
|
6035
6252
|
getOpenLendingPositionInstructionDataEncoder(),
|
|
6036
6253
|
getOpenLendingPositionInstructionDataDecoder()
|
|
6037
6254
|
);
|
|
@@ -6093,20 +6310,20 @@ function parseOpenLendingPositionInstruction(instruction) {
|
|
|
6093
6310
|
|
|
6094
6311
|
// src/generated/instructions/openTunaLpPositionFusion.ts
|
|
6095
6312
|
import {
|
|
6096
|
-
combineCodec as
|
|
6097
|
-
fixDecoderSize as
|
|
6098
|
-
fixEncoderSize as
|
|
6099
|
-
getBytesDecoder as
|
|
6100
|
-
getBytesEncoder as
|
|
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
|
|
6104
|
-
getStructEncoder as
|
|
6320
|
+
getStructDecoder as getStructDecoder36,
|
|
6321
|
+
getStructEncoder as getStructEncoder36,
|
|
6105
6322
|
getU128Decoder as getU128Decoder5,
|
|
6106
6323
|
getU128Encoder as getU128Encoder5,
|
|
6107
|
-
getU32Decoder as
|
|
6108
|
-
getU32Encoder as
|
|
6109
|
-
transformEncoder as
|
|
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
|
|
6339
|
+
return fixEncoderSize35(getBytesEncoder35(), 8).encode(
|
|
6123
6340
|
OPEN_TUNA_LP_POSITION_FUSION_DISCRIMINATOR
|
|
6124
6341
|
);
|
|
6125
6342
|
}
|
|
6126
6343
|
function getOpenTunaLpPositionFusionInstructionDataEncoder() {
|
|
6127
|
-
return
|
|
6128
|
-
|
|
6129
|
-
["discriminator",
|
|
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",
|
|
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
|
|
6144
|
-
["discriminator",
|
|
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",
|
|
6366
|
+
["flags", getU32Decoder20()]
|
|
6150
6367
|
]);
|
|
6151
6368
|
}
|
|
6152
6369
|
function getOpenTunaLpPositionFusionInstructionDataCodec() {
|
|
6153
|
-
return
|
|
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
|
|
6276
|
-
fixDecoderSize as
|
|
6277
|
-
fixEncoderSize as
|
|
6278
|
-
getBytesDecoder as
|
|
6279
|
-
getBytesEncoder as
|
|
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
|
|
6283
|
-
getStructEncoder as
|
|
6499
|
+
getStructDecoder as getStructDecoder37,
|
|
6500
|
+
getStructEncoder as getStructEncoder37,
|
|
6284
6501
|
getU128Decoder as getU128Decoder6,
|
|
6285
6502
|
getU128Encoder as getU128Encoder6,
|
|
6286
|
-
getU32Decoder as
|
|
6287
|
-
getU32Encoder as
|
|
6288
|
-
transformEncoder as
|
|
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
|
|
6518
|
+
return fixEncoderSize36(getBytesEncoder36(), 8).encode(
|
|
6302
6519
|
OPEN_TUNA_LP_POSITION_ORCA_DISCRIMINATOR
|
|
6303
6520
|
);
|
|
6304
6521
|
}
|
|
6305
6522
|
function getOpenTunaLpPositionOrcaInstructionDataEncoder() {
|
|
6306
|
-
return
|
|
6307
|
-
|
|
6308
|
-
["discriminator",
|
|
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",
|
|
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
|
|
6323
|
-
["discriminator",
|
|
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",
|
|
6545
|
+
["flags", getU32Decoder21()]
|
|
6329
6546
|
]);
|
|
6330
6547
|
}
|
|
6331
6548
|
function getOpenTunaLpPositionOrcaInstructionDataCodec() {
|
|
6332
|
-
return
|
|
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
|
|
6455
|
-
fixDecoderSize as
|
|
6456
|
-
fixEncoderSize as
|
|
6457
|
-
getBytesDecoder as
|
|
6458
|
-
getBytesEncoder as
|
|
6459
|
-
getStructDecoder as
|
|
6460
|
-
getStructEncoder as
|
|
6461
|
-
transformEncoder as
|
|
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
|
|
6691
|
+
return fixEncoderSize37(getBytesEncoder37(), 8).encode(
|
|
6475
6692
|
OPEN_TUNA_SPOT_POSITION_DISCRIMINATOR
|
|
6476
6693
|
);
|
|
6477
6694
|
}
|
|
6478
6695
|
function getOpenTunaSpotPositionInstructionDataEncoder() {
|
|
6479
|
-
return
|
|
6480
|
-
|
|
6481
|
-
["discriminator",
|
|
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
|
|
6493
|
-
["discriminator",
|
|
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
|
|
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
|
|
6589
|
-
fixDecoderSize as
|
|
6590
|
-
fixEncoderSize as
|
|
6591
|
-
getBytesDecoder as
|
|
6592
|
-
getBytesEncoder as
|
|
6593
|
-
getStructDecoder as
|
|
6594
|
-
getStructEncoder as
|
|
6595
|
-
transformEncoder as
|
|
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
|
|
6825
|
+
return fixEncoderSize38(getBytesEncoder38(), 8).encode(
|
|
6609
6826
|
REBALANCE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR
|
|
6610
6827
|
);
|
|
6611
6828
|
}
|
|
6612
6829
|
function getRebalanceTunaLpPositionFusionInstructionDataEncoder() {
|
|
6613
|
-
return
|
|
6614
|
-
|
|
6615
|
-
["discriminator",
|
|
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
|
|
6626
|
-
["discriminator",
|
|
6842
|
+
return getStructDecoder39([
|
|
6843
|
+
["discriminator", fixDecoderSize37(getBytesDecoder37(), 8)],
|
|
6627
6844
|
["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
|
|
6628
6845
|
]);
|
|
6629
6846
|
}
|
|
6630
6847
|
function getRebalanceTunaLpPositionFusionInstructionDataCodec() {
|
|
6631
|
-
return
|
|
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
|
|
6760
|
-
fixDecoderSize as
|
|
6761
|
-
fixEncoderSize as
|
|
6762
|
-
getBytesDecoder as
|
|
6763
|
-
getBytesEncoder as
|
|
6764
|
-
getStructDecoder as
|
|
6765
|
-
getStructEncoder as
|
|
6766
|
-
transformEncoder as
|
|
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
|
|
6996
|
+
return fixEncoderSize39(getBytesEncoder39(), 8).encode(
|
|
6780
6997
|
REBALANCE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR
|
|
6781
6998
|
);
|
|
6782
6999
|
}
|
|
6783
7000
|
function getRebalanceTunaLpPositionOrcaInstructionDataEncoder() {
|
|
6784
|
-
return
|
|
6785
|
-
|
|
6786
|
-
["discriminator",
|
|
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
|
|
6797
|
-
["discriminator",
|
|
7013
|
+
return getStructDecoder40([
|
|
7014
|
+
["discriminator", fixDecoderSize38(getBytesDecoder38(), 8)],
|
|
6798
7015
|
["remainingAccountsInfo", getRemainingAccountsInfoDecoder()]
|
|
6799
7016
|
]);
|
|
6800
7017
|
}
|
|
6801
7018
|
function getRebalanceTunaLpPositionOrcaInstructionDataCodec() {
|
|
6802
|
-
return
|
|
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
|
|
6937
|
-
fixDecoderSize as
|
|
6938
|
-
fixEncoderSize as
|
|
6939
|
-
getBytesDecoder as
|
|
6940
|
-
getBytesEncoder as
|
|
6941
|
-
getStructDecoder as
|
|
6942
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
7175
|
+
return fixEncoderSize40(getBytesEncoder40(), 8).encode(
|
|
6959
7176
|
REPAY_BAD_DEBT_DISCRIMINATOR
|
|
6960
7177
|
);
|
|
6961
7178
|
}
|
|
6962
7179
|
function getRepayBadDebtInstructionDataEncoder() {
|
|
6963
|
-
return
|
|
6964
|
-
|
|
6965
|
-
["discriminator",
|
|
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
|
|
6974
|
-
["discriminator",
|
|
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
|
|
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
|
|
7050
|
-
fixDecoderSize as
|
|
7051
|
-
fixEncoderSize as
|
|
7052
|
-
getBytesDecoder as
|
|
7053
|
-
getBytesEncoder as
|
|
7054
|
-
getStructDecoder as
|
|
7055
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
7288
|
+
return fixEncoderSize41(getBytesEncoder41(), 8).encode(
|
|
7072
7289
|
REPAY_TUNA_LP_POSITION_DEBT_DISCRIMINATOR
|
|
7073
7290
|
);
|
|
7074
7291
|
}
|
|
7075
7292
|
function getRepayTunaLpPositionDebtInstructionDataEncoder() {
|
|
7076
|
-
return
|
|
7077
|
-
|
|
7078
|
-
["discriminator",
|
|
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
|
|
7090
|
-
["discriminator",
|
|
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
|
|
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
|
|
7201
|
-
fixDecoderSize as
|
|
7202
|
-
fixEncoderSize as
|
|
7203
|
-
getBytesDecoder as
|
|
7204
|
-
getBytesEncoder as
|
|
7205
|
-
getStructDecoder as
|
|
7206
|
-
getStructEncoder as
|
|
7207
|
-
transformEncoder as
|
|
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
|
|
7437
|
+
return fixEncoderSize42(getBytesEncoder42(), 8).encode(
|
|
7221
7438
|
RESET_TUNA_SPOT_POSITION_DISCRIMINATOR
|
|
7222
7439
|
);
|
|
7223
7440
|
}
|
|
7224
7441
|
function getResetTunaSpotPositionInstructionDataEncoder() {
|
|
7225
|
-
return
|
|
7226
|
-
|
|
7227
|
-
["discriminator",
|
|
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
|
|
7239
|
-
["discriminator",
|
|
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
|
|
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
|
|
7314
|
-
fixDecoderSize as
|
|
7315
|
-
fixEncoderSize as
|
|
7530
|
+
combineCodec as combineCodec48,
|
|
7531
|
+
fixDecoderSize as fixDecoderSize42,
|
|
7532
|
+
fixEncoderSize as fixEncoderSize43,
|
|
7316
7533
|
getAddressDecoder as getAddressDecoder10,
|
|
7317
7534
|
getAddressEncoder as getAddressEncoder10,
|
|
7318
|
-
getBytesDecoder as
|
|
7319
|
-
getBytesEncoder as
|
|
7320
|
-
getStructDecoder as
|
|
7321
|
-
getStructEncoder as
|
|
7322
|
-
transformEncoder as
|
|
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
|
|
7552
|
+
return fixEncoderSize43(getBytesEncoder43(), 8).encode(
|
|
7336
7553
|
SET_ADMIN_AUTHORITY_DISCRIMINATOR
|
|
7337
7554
|
);
|
|
7338
7555
|
}
|
|
7339
7556
|
function getSetAdminAuthorityInstructionDataEncoder() {
|
|
7340
|
-
return
|
|
7341
|
-
|
|
7342
|
-
["discriminator",
|
|
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
|
|
7350
|
-
["discriminator",
|
|
7566
|
+
return getStructDecoder44([
|
|
7567
|
+
["discriminator", fixDecoderSize42(getBytesDecoder42(), 8)],
|
|
7351
7568
|
["adminAuthority", getAddressDecoder10()]
|
|
7352
7569
|
]);
|
|
7353
7570
|
}
|
|
7354
7571
|
function getSetAdminAuthorityInstructionDataCodec() {
|
|
7355
|
-
return
|
|
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
|
|
7404
|
-
fixDecoderSize as
|
|
7405
|
-
fixEncoderSize as
|
|
7406
|
-
getBytesDecoder as
|
|
7407
|
-
getBytesEncoder as
|
|
7408
|
-
getStructDecoder as
|
|
7409
|
-
getStructEncoder as
|
|
7410
|
-
getU32Decoder as
|
|
7411
|
-
getU32Encoder as
|
|
7412
|
-
transformEncoder as
|
|
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
|
|
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
|
|
7422
|
-
|
|
7423
|
-
["discriminator",
|
|
7424
|
-
["maxPercentageOfLeftovers",
|
|
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
|
|
7434
|
-
["discriminator",
|
|
7435
|
-
["maxPercentageOfLeftovers",
|
|
7650
|
+
return getStructDecoder45([
|
|
7651
|
+
["discriminator", fixDecoderSize43(getBytesDecoder43(), 8)],
|
|
7652
|
+
["maxPercentageOfLeftovers", getU32Decoder22()]
|
|
7436
7653
|
]);
|
|
7437
7654
|
}
|
|
7438
7655
|
function getSetDefaultMaxPercentageOfLeftoversInstructionDataCodec() {
|
|
7439
|
-
return
|
|
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
|
|
7490
|
-
fixDecoderSize as
|
|
7491
|
-
fixEncoderSize as
|
|
7492
|
-
getBytesDecoder as
|
|
7493
|
-
getBytesEncoder as
|
|
7494
|
-
getStructDecoder as
|
|
7495
|
-
getStructEncoder as
|
|
7496
|
-
getU32Decoder as
|
|
7497
|
-
getU32Encoder as
|
|
7498
|
-
transformEncoder as
|
|
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
|
|
7728
|
+
return fixEncoderSize45(getBytesEncoder45(), 8).encode(
|
|
7512
7729
|
SET_DEFAULT_MAX_SWAP_SLIPPAGE_DISCRIMINATOR
|
|
7513
7730
|
);
|
|
7514
7731
|
}
|
|
7515
7732
|
function getSetDefaultMaxSwapSlippageInstructionDataEncoder() {
|
|
7516
|
-
return
|
|
7517
|
-
|
|
7518
|
-
["discriminator",
|
|
7519
|
-
["maxSwapSlippage",
|
|
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
|
|
7529
|
-
["discriminator",
|
|
7530
|
-
["maxSwapSlippage",
|
|
7745
|
+
return getStructDecoder46([
|
|
7746
|
+
["discriminator", fixDecoderSize44(getBytesDecoder44(), 8)],
|
|
7747
|
+
["maxSwapSlippage", getU32Decoder23()]
|
|
7531
7748
|
]);
|
|
7532
7749
|
}
|
|
7533
7750
|
function getSetDefaultMaxSwapSlippageInstructionDataCodec() {
|
|
7534
|
-
return
|
|
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
|
|
7585
|
-
fixDecoderSize as
|
|
7586
|
-
fixEncoderSize as
|
|
7587
|
-
getBytesDecoder as
|
|
7588
|
-
getBytesEncoder as
|
|
7589
|
-
getStructDecoder as
|
|
7590
|
-
getStructEncoder as
|
|
7591
|
-
getU32Decoder as
|
|
7592
|
-
getU32Encoder as
|
|
7593
|
-
transformEncoder as
|
|
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
|
|
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
|
|
7603
|
-
|
|
7604
|
-
["discriminator",
|
|
7605
|
-
["oraclePriceDeviationThreshold",
|
|
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
|
|
7615
|
-
["discriminator",
|
|
7616
|
-
["oraclePriceDeviationThreshold",
|
|
7831
|
+
return getStructDecoder47([
|
|
7832
|
+
["discriminator", fixDecoderSize45(getBytesDecoder45(), 8)],
|
|
7833
|
+
["oraclePriceDeviationThreshold", getU32Decoder24()]
|
|
7617
7834
|
]);
|
|
7618
7835
|
}
|
|
7619
7836
|
function getSetDefaultOraclePriceDeviationThresholdInstructionDataCodec() {
|
|
7620
|
-
return
|
|
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
|
|
7671
|
-
fixDecoderSize as
|
|
7672
|
-
fixEncoderSize as
|
|
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
|
|
7676
|
-
getBytesEncoder as
|
|
7677
|
-
getStructDecoder as
|
|
7678
|
-
getStructEncoder as
|
|
7679
|
-
transformEncoder as
|
|
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
|
|
7909
|
+
return fixEncoderSize47(getBytesEncoder47(), 8).encode(
|
|
7693
7910
|
SET_FEE_RECIPIENT_DISCRIMINATOR
|
|
7694
7911
|
);
|
|
7695
7912
|
}
|
|
7696
7913
|
function getSetFeeRecipientInstructionDataEncoder() {
|
|
7697
|
-
return
|
|
7698
|
-
|
|
7699
|
-
["discriminator",
|
|
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
|
|
7707
|
-
["discriminator",
|
|
7923
|
+
return getStructDecoder48([
|
|
7924
|
+
["discriminator", fixDecoderSize46(getBytesDecoder46(), 8)],
|
|
7708
7925
|
["feeRecipient", getAddressDecoder11()]
|
|
7709
7926
|
]);
|
|
7710
7927
|
}
|
|
7711
7928
|
function getSetFeeRecipientInstructionDataCodec() {
|
|
7712
|
-
return
|
|
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
|
|
7761
|
-
fixDecoderSize as
|
|
7762
|
-
fixEncoderSize as
|
|
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
|
|
7766
|
-
getBytesEncoder as
|
|
7767
|
-
getStructDecoder as
|
|
7768
|
-
getStructEncoder as
|
|
7769
|
-
transformEncoder as
|
|
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
|
|
7999
|
+
return fixEncoderSize48(getBytesEncoder48(), 8).encode(
|
|
7783
8000
|
SET_LIQUIDATOR_AUTHORITY_DISCRIMINATOR
|
|
7784
8001
|
);
|
|
7785
8002
|
}
|
|
7786
8003
|
function getSetLiquidatorAuthorityInstructionDataEncoder() {
|
|
7787
|
-
return
|
|
7788
|
-
|
|
7789
|
-
["discriminator",
|
|
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
|
|
7800
|
-
["discriminator",
|
|
8016
|
+
return getStructDecoder49([
|
|
8017
|
+
["discriminator", fixDecoderSize47(getBytesDecoder47(), 8)],
|
|
7801
8018
|
["liquidatorAuthority", getAddressDecoder12()]
|
|
7802
8019
|
]);
|
|
7803
8020
|
}
|
|
7804
8021
|
function getSetLiquidatorAuthorityInstructionDataCodec() {
|
|
7805
|
-
return
|
|
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
|
|
7856
|
-
fixDecoderSize as
|
|
7857
|
-
fixEncoderSize as
|
|
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
|
|
7861
|
-
getBytesEncoder as
|
|
7862
|
-
getStructDecoder as
|
|
7863
|
-
getStructEncoder as
|
|
7864
|
-
transformEncoder as
|
|
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
|
|
8094
|
+
return fixEncoderSize49(getBytesEncoder49(), 8).encode(
|
|
7878
8095
|
SET_OWNER_AUTHORITY_DISCRIMINATOR
|
|
7879
8096
|
);
|
|
7880
8097
|
}
|
|
7881
8098
|
function getSetOwnerAuthorityInstructionDataEncoder() {
|
|
7882
|
-
return
|
|
7883
|
-
|
|
7884
|
-
["discriminator",
|
|
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
|
|
7892
|
-
["discriminator",
|
|
8108
|
+
return getStructDecoder50([
|
|
8109
|
+
["discriminator", fixDecoderSize48(getBytesDecoder48(), 8)],
|
|
7893
8110
|
["ownerAuthority", getAddressDecoder13()]
|
|
7894
8111
|
]);
|
|
7895
8112
|
}
|
|
7896
8113
|
function getSetOwnerAuthorityInstructionDataCodec() {
|
|
7897
|
-
return
|
|
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
|
|
7946
|
-
fixDecoderSize as
|
|
7947
|
-
fixEncoderSize as
|
|
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
|
|
7951
|
-
getBytesEncoder as
|
|
7952
|
-
getStructDecoder as
|
|
7953
|
-
getStructEncoder as
|
|
7954
|
-
transformEncoder as
|
|
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
|
|
8184
|
+
return fixEncoderSize50(getBytesEncoder50(), 8).encode(
|
|
7968
8185
|
SET_SUSPENDED_STATE_DISCRIMINATOR
|
|
7969
8186
|
);
|
|
7970
8187
|
}
|
|
7971
8188
|
function getSetSuspendedStateInstructionDataEncoder() {
|
|
7972
|
-
return
|
|
7973
|
-
|
|
7974
|
-
["discriminator",
|
|
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
|
|
7985
|
-
["discriminator",
|
|
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
|
|
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
|
|
8042
|
-
fixDecoderSize as
|
|
8043
|
-
fixEncoderSize as
|
|
8044
|
-
getBytesDecoder as
|
|
8045
|
-
getBytesEncoder as
|
|
8046
|
-
getStructDecoder as
|
|
8047
|
-
getStructEncoder as
|
|
8048
|
-
getU32Decoder as
|
|
8049
|
-
getU32Encoder as
|
|
8050
|
-
transformEncoder as
|
|
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
|
|
8280
|
+
return fixEncoderSize51(getBytesEncoder51(), 8).encode(
|
|
8064
8281
|
SET_TUNA_LP_POSITION_FLAGS_DISCRIMINATOR
|
|
8065
8282
|
);
|
|
8066
8283
|
}
|
|
8067
8284
|
function getSetTunaLpPositionFlagsInstructionDataEncoder() {
|
|
8068
|
-
return
|
|
8069
|
-
|
|
8070
|
-
["discriminator",
|
|
8071
|
-
["flags",
|
|
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
|
|
8081
|
-
["discriminator",
|
|
8082
|
-
["flags",
|
|
8297
|
+
return getStructDecoder52([
|
|
8298
|
+
["discriminator", fixDecoderSize50(getBytesDecoder50(), 8)],
|
|
8299
|
+
["flags", getU32Decoder25()]
|
|
8083
8300
|
]);
|
|
8084
8301
|
}
|
|
8085
8302
|
function getSetTunaLpPositionFlagsInstructionDataCodec() {
|
|
8086
|
-
return
|
|
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
|
|
8137
|
-
fixDecoderSize as
|
|
8138
|
-
fixEncoderSize as
|
|
8139
|
-
getBytesDecoder as
|
|
8140
|
-
getBytesEncoder as
|
|
8141
|
-
getStructDecoder as
|
|
8142
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
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
|
|
8166
|
-
|
|
8167
|
-
["discriminator",
|
|
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
|
|
8180
|
-
["discriminator",
|
|
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
|
|
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
|
|
8238
|
-
fixDecoderSize as
|
|
8239
|
-
fixEncoderSize as
|
|
8240
|
-
getBytesDecoder as
|
|
8241
|
-
getBytesEncoder as
|
|
8242
|
-
getStructDecoder as
|
|
8243
|
-
getStructEncoder as
|
|
8244
|
-
getU32Decoder as
|
|
8245
|
-
getU32Encoder as
|
|
8246
|
-
transformEncoder as
|
|
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
|
|
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
|
|
8256
|
-
|
|
8257
|
-
["discriminator",
|
|
8258
|
-
["rebalanceThresholdTicks",
|
|
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
|
|
8268
|
-
["discriminator",
|
|
8269
|
-
["rebalanceThresholdTicks",
|
|
8484
|
+
return getStructDecoder54([
|
|
8485
|
+
["discriminator", fixDecoderSize52(getBytesDecoder52(), 8)],
|
|
8486
|
+
["rebalanceThresholdTicks", getU32Decoder26()]
|
|
8270
8487
|
]);
|
|
8271
8488
|
}
|
|
8272
8489
|
function getSetTunaLpPositionRebalanceThresholdInstructionDataCodec() {
|
|
8273
|
-
return
|
|
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
|
|
8324
|
-
fixDecoderSize as
|
|
8325
|
-
fixEncoderSize as
|
|
8326
|
-
getBytesDecoder as
|
|
8327
|
-
getBytesEncoder as
|
|
8328
|
-
getStructDecoder as
|
|
8329
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
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
|
|
8344
|
-
|
|
8345
|
-
["discriminator",
|
|
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
|
|
8357
|
-
["discriminator",
|
|
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
|
|
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
|
|
8414
|
-
fixDecoderSize as
|
|
8415
|
-
fixEncoderSize as
|
|
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
|
|
8421
|
-
getBytesEncoder as
|
|
8422
|
-
getStructDecoder as
|
|
8423
|
-
getStructEncoder as
|
|
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
|
|
8427
|
-
getU32Encoder as
|
|
8643
|
+
getU32Decoder as getU32Decoder27,
|
|
8644
|
+
getU32Encoder as getU32Encoder27,
|
|
8428
8645
|
getU64Decoder as getU64Decoder20,
|
|
8429
8646
|
getU64Encoder as getU64Encoder20,
|
|
8430
|
-
transformEncoder as
|
|
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
|
|
8660
|
+
return fixEncoderSize55(getBytesEncoder55(), 8).encode(
|
|
8444
8661
|
UPDATE_MARKET_DISCRIMINATOR
|
|
8445
8662
|
);
|
|
8446
8663
|
}
|
|
8447
8664
|
function getUpdateMarketInstructionDataEncoder() {
|
|
8448
|
-
return
|
|
8449
|
-
|
|
8450
|
-
["discriminator",
|
|
8665
|
+
return transformEncoder54(
|
|
8666
|
+
getStructEncoder56([
|
|
8667
|
+
["discriminator", fixEncoderSize55(getBytesEncoder55(), 8)],
|
|
8451
8668
|
["addressLookupTable", getAddressEncoder14()],
|
|
8452
|
-
["maxLeverage",
|
|
8669
|
+
["maxLeverage", getU32Encoder27()],
|
|
8453
8670
|
["protocolFee", getU16Encoder8()],
|
|
8454
8671
|
["protocolFeeOnCollateral", getU16Encoder8()],
|
|
8455
|
-
["liquidationFee",
|
|
8456
|
-
["liquidationThreshold",
|
|
8457
|
-
["limitOrderExecutionFee",
|
|
8458
|
-
["oraclePriceDeviationThreshold",
|
|
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",
|
|
8463
|
-
["rebalanceProtocolFee",
|
|
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
|
|
8472
|
-
["discriminator",
|
|
8688
|
+
return getStructDecoder56([
|
|
8689
|
+
["discriminator", fixDecoderSize54(getBytesDecoder54(), 8)],
|
|
8473
8690
|
["addressLookupTable", getAddressDecoder14()],
|
|
8474
|
-
["maxLeverage",
|
|
8691
|
+
["maxLeverage", getU32Decoder27()],
|
|
8475
8692
|
["protocolFee", getU16Decoder8()],
|
|
8476
8693
|
["protocolFeeOnCollateral", getU16Decoder8()],
|
|
8477
|
-
["liquidationFee",
|
|
8478
|
-
["liquidationThreshold",
|
|
8479
|
-
["limitOrderExecutionFee",
|
|
8480
|
-
["oraclePriceDeviationThreshold",
|
|
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",
|
|
8485
|
-
["rebalanceProtocolFee",
|
|
8701
|
+
["maxSwapSlippage", getU32Decoder27()],
|
|
8702
|
+
["rebalanceProtocolFee", getU32Decoder27()],
|
|
8486
8703
|
["spotPositionSizeLimitA", getU64Decoder20()],
|
|
8487
8704
|
["spotPositionSizeLimitB", getU64Decoder20()]
|
|
8488
8705
|
]);
|
|
8489
8706
|
}
|
|
8490
8707
|
function getUpdateMarketInstructionDataCodec() {
|
|
8491
|
-
return
|
|
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
|
|
8543
|
-
fixDecoderSize as
|
|
8544
|
-
fixEncoderSize as
|
|
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
|
|
8548
|
-
getBytesEncoder as
|
|
8549
|
-
getStructDecoder as
|
|
8550
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
8783
|
+
return fixEncoderSize56(getBytesEncoder56(), 8).encode(
|
|
8567
8784
|
UPDATE_VAULT_DISCRIMINATOR
|
|
8568
8785
|
);
|
|
8569
8786
|
}
|
|
8570
8787
|
function getUpdateVaultInstructionDataEncoder() {
|
|
8571
|
-
return
|
|
8572
|
-
|
|
8573
|
-
["discriminator",
|
|
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
|
|
8584
|
-
["discriminator",
|
|
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
|
|
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
|
|
8644
|
-
fixDecoderSize as
|
|
8645
|
-
fixEncoderSize as
|
|
8646
|
-
getBytesDecoder as
|
|
8647
|
-
getBytesEncoder as
|
|
8648
|
-
getStructDecoder as
|
|
8649
|
-
getStructEncoder as
|
|
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
|
|
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
|
|
8882
|
+
return fixEncoderSize57(getBytesEncoder57(), 8).encode(WITHDRAW_DISCRIMINATOR);
|
|
8666
8883
|
}
|
|
8667
8884
|
function getWithdrawInstructionDataEncoder() {
|
|
8668
|
-
return
|
|
8669
|
-
|
|
8670
|
-
["discriminator",
|
|
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
|
|
8679
|
-
["discriminator",
|
|
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
|
|
8902
|
+
return combineCodec62(
|
|
8686
8903
|
getWithdrawInstructionDataEncoder(),
|
|
8687
8904
|
getWithdrawInstructionDataDecoder()
|
|
8688
8905
|
);
|
|
@@ -11164,21 +11381,21 @@ import { fetchFusionPool as fetchFusionPool2 } from "@crypticdot/fusionamm-clien
|
|
|
11164
11381
|
import {
|
|
11165
11382
|
assertAccountExists as assertAccountExists7,
|
|
11166
11383
|
assertAccountsExist as assertAccountsExist8,
|
|
11167
|
-
combineCodec as
|
|
11384
|
+
combineCodec as combineCodec63,
|
|
11168
11385
|
decodeAccount as decodeAccount7,
|
|
11169
11386
|
fetchEncodedAccount as fetchEncodedAccount7,
|
|
11170
11387
|
fetchEncodedAccounts as fetchEncodedAccounts7,
|
|
11171
|
-
fixDecoderSize as
|
|
11172
|
-
fixEncoderSize as
|
|
11388
|
+
fixDecoderSize as fixDecoderSize57,
|
|
11389
|
+
fixEncoderSize as fixEncoderSize58,
|
|
11173
11390
|
getAddressDecoder as getAddressDecoder16,
|
|
11174
11391
|
getAddressEncoder as getAddressEncoder20,
|
|
11175
|
-
getBytesDecoder as
|
|
11176
|
-
getBytesEncoder as
|
|
11177
|
-
getStructDecoder as
|
|
11178
|
-
getStructEncoder as
|
|
11392
|
+
getBytesDecoder as getBytesDecoder57,
|
|
11393
|
+
getBytesEncoder as getBytesEncoder58,
|
|
11394
|
+
getStructDecoder as getStructDecoder59,
|
|
11395
|
+
getStructEncoder as getStructEncoder59,
|
|
11179
11396
|
getU64Decoder as getU64Decoder23,
|
|
11180
11397
|
getU64Encoder as getU64Encoder23,
|
|
11181
|
-
transformEncoder as
|
|
11398
|
+
transformEncoder as transformEncoder57
|
|
11182
11399
|
} from "@solana/kit";
|
|
11183
11400
|
import {
|
|
11184
11401
|
isProgramError as isProgramError2
|
|
@@ -11223,11 +11440,11 @@ import {
|
|
|
11223
11440
|
import {
|
|
11224
11441
|
combineCodec as combineCodec410,
|
|
11225
11442
|
fixDecoderSize as fixDecoderSize410,
|
|
11226
|
-
fixEncoderSize as
|
|
11443
|
+
fixEncoderSize as fixEncoderSize59,
|
|
11227
11444
|
getBooleanDecoder as getBooleanDecoder9,
|
|
11228
11445
|
getBooleanEncoder as getBooleanEncoder9,
|
|
11229
11446
|
getBytesDecoder as getBytesDecoder410,
|
|
11230
|
-
getBytesEncoder as
|
|
11447
|
+
getBytesEncoder as getBytesEncoder59,
|
|
11231
11448
|
getStructDecoder as getStructDecoder410,
|
|
11232
11449
|
getStructEncoder as getStructEncoder410,
|
|
11233
11450
|
getU8Decoder as getU8Decoder32,
|
|
@@ -11236,18 +11453,18 @@ import {
|
|
|
11236
11453
|
} from "@solana/kit";
|
|
11237
11454
|
import {
|
|
11238
11455
|
combineCodec as combineCodec510,
|
|
11239
|
-
fixDecoderSize as
|
|
11456
|
+
fixDecoderSize as fixDecoderSize58,
|
|
11240
11457
|
fixEncoderSize as fixEncoderSize62,
|
|
11241
11458
|
getAddressEncoder as getAddressEncoder32,
|
|
11242
|
-
getBytesDecoder as
|
|
11459
|
+
getBytesDecoder as getBytesDecoder58,
|
|
11243
11460
|
getBytesEncoder as getBytesEncoder62,
|
|
11244
11461
|
getProgramDerivedAddress as getProgramDerivedAddress22,
|
|
11245
|
-
getStructDecoder as
|
|
11246
|
-
getStructEncoder as
|
|
11247
|
-
transformEncoder as
|
|
11462
|
+
getStructDecoder as getStructDecoder510,
|
|
11463
|
+
getStructEncoder as getStructEncoder510,
|
|
11464
|
+
transformEncoder as transformEncoder58
|
|
11248
11465
|
} from "@solana/kit";
|
|
11249
11466
|
import {
|
|
11250
|
-
combineCodec as
|
|
11467
|
+
combineCodec as combineCodec64,
|
|
11251
11468
|
fixDecoderSize as fixDecoderSize62,
|
|
11252
11469
|
fixEncoderSize as fixEncoderSize72,
|
|
11253
11470
|
getAddressEncoder as getAddressEncoder42,
|
|
@@ -11378,8 +11595,8 @@ import {
|
|
|
11378
11595
|
getOptionEncoder as getOptionEncoder3,
|
|
11379
11596
|
getStructDecoder as getStructDecoder162,
|
|
11380
11597
|
getStructEncoder as getStructEncoder162,
|
|
11381
|
-
getU32Decoder as
|
|
11382
|
-
getU32Encoder as
|
|
11598
|
+
getU32Decoder as getU32Decoder28,
|
|
11599
|
+
getU32Encoder as getU32Encoder28,
|
|
11383
11600
|
getU64Decoder as getU64Decoder32,
|
|
11384
11601
|
getU64Encoder as getU64Encoder32,
|
|
11385
11602
|
getU8Decoder as getU8Decoder10,
|
|
@@ -12304,20 +12521,19 @@ import { FUSIONAMM_PROGRAM_ADDRESS as FUSIONAMM_PROGRAM_ADDRESS8 } from "@crypti
|
|
|
12304
12521
|
import { AccountRole as AccountRole13 } from "@solana/kit";
|
|
12305
12522
|
import { MEMO_PROGRAM_ADDRESS as MEMO_PROGRAM_ADDRESS13 } from "@solana-program/memo";
|
|
12306
12523
|
import { findAssociatedTokenPda as findAssociatedTokenPda20 } from "@solana-program/token-2022";
|
|
12307
|
-
async function liquidateTunaSpotPositionFusionInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, fusionPool,
|
|
12524
|
+
async function liquidateTunaSpotPositionFusionInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, fusionPool, decreasePercent) {
|
|
12308
12525
|
const instructions = [];
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
}
|
|
12526
|
+
const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
|
|
12527
|
+
const useNativeSol = collateralTokenMint.address == NATIVE_MINT && decreasePercent == HUNDRED_PERCENT;
|
|
12528
|
+
if (!useNativeSol) {
|
|
12529
|
+
const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
|
|
12530
|
+
void 0,
|
|
12531
|
+
authority,
|
|
12532
|
+
collateralTokenMint.address,
|
|
12533
|
+
tunaPosition.data.authority,
|
|
12534
|
+
collateralTokenMint.programAddress
|
|
12535
|
+
);
|
|
12536
|
+
instructions.push(...createPositionOwnerAtaInstructions.init);
|
|
12321
12537
|
}
|
|
12322
12538
|
const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
|
|
12323
12539
|
void 0,
|
|
@@ -12445,20 +12661,19 @@ import { getOracleAddress as getOracleAddress5, WHIRLPOOL_PROGRAM_ADDRESS as WHI
|
|
|
12445
12661
|
import { AccountRole as AccountRole14 } from "@solana/kit";
|
|
12446
12662
|
import { MEMO_PROGRAM_ADDRESS as MEMO_PROGRAM_ADDRESS14 } from "@solana-program/memo";
|
|
12447
12663
|
import { findAssociatedTokenPda as findAssociatedTokenPda21 } from "@solana-program/token-2022";
|
|
12448
|
-
async function liquidateTunaSpotPositionOrcaInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, whirlpool,
|
|
12664
|
+
async function liquidateTunaSpotPositionOrcaInstructions(authority, tunaPosition, tunaConfig, mintA, mintB, vaultA, vaultB, whirlpool, decreasePercent) {
|
|
12449
12665
|
const instructions = [];
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
}
|
|
12666
|
+
const collateralTokenMint = tunaPosition.data.collateralToken == 0 /* A */ ? mintA : mintB;
|
|
12667
|
+
const useNativeSol = collateralTokenMint.address == NATIVE_MINT && decreasePercent == HUNDRED_PERCENT;
|
|
12668
|
+
if (!useNativeSol) {
|
|
12669
|
+
const createPositionOwnerAtaInstructions = await getCreateAtaInstructions(
|
|
12670
|
+
void 0,
|
|
12671
|
+
authority,
|
|
12672
|
+
collateralTokenMint.address,
|
|
12673
|
+
tunaPosition.data.authority,
|
|
12674
|
+
collateralTokenMint.programAddress
|
|
12675
|
+
);
|
|
12676
|
+
instructions.push(...createPositionOwnerAtaInstructions.init);
|
|
12462
12677
|
}
|
|
12463
12678
|
const createFeeRecipientAtaAInstructions = await getCreateAtaInstructions(
|
|
12464
12679
|
void 0,
|
|
@@ -14442,6 +14657,7 @@ export {
|
|
|
14442
14657
|
LIQUIDATE_TUNA_LP_POSITION_FUSION_DISCRIMINATOR,
|
|
14443
14658
|
LIQUIDATE_TUNA_LP_POSITION_ORCA_DISCRIMINATOR,
|
|
14444
14659
|
LIQUIDATE_TUNA_SPOT_POSITION_FUSION_DISCRIMINATOR,
|
|
14660
|
+
LIQUIDATE_TUNA_SPOT_POSITION_JUPITER_DISCRIMINATOR,
|
|
14445
14661
|
LIQUIDATE_TUNA_SPOT_POSITION_ORCA_DISCRIMINATOR,
|
|
14446
14662
|
MARKET_DISCRIMINATOR,
|
|
14447
14663
|
MAX_LEVERAGE,
|
|
@@ -14740,6 +14956,11 @@ export {
|
|
|
14740
14956
|
getLiquidateTunaSpotPositionFusionInstructionDataCodec,
|
|
14741
14957
|
getLiquidateTunaSpotPositionFusionInstructionDataDecoder,
|
|
14742
14958
|
getLiquidateTunaSpotPositionFusionInstructionDataEncoder,
|
|
14959
|
+
getLiquidateTunaSpotPositionJupiterDiscriminatorBytes,
|
|
14960
|
+
getLiquidateTunaSpotPositionJupiterInstruction,
|
|
14961
|
+
getLiquidateTunaSpotPositionJupiterInstructionDataCodec,
|
|
14962
|
+
getLiquidateTunaSpotPositionJupiterInstructionDataDecoder,
|
|
14963
|
+
getLiquidateTunaSpotPositionJupiterInstructionDataEncoder,
|
|
14743
14964
|
getLiquidateTunaSpotPositionOrcaDiscriminatorBytes,
|
|
14744
14965
|
getLiquidateTunaSpotPositionOrcaInstruction,
|
|
14745
14966
|
getLiquidateTunaSpotPositionOrcaInstructionDataCodec,
|
|
@@ -14989,6 +15210,7 @@ export {
|
|
|
14989
15210
|
parseLiquidateTunaLpPositionFusionInstruction,
|
|
14990
15211
|
parseLiquidateTunaLpPositionOrcaInstruction,
|
|
14991
15212
|
parseLiquidateTunaSpotPositionFusionInstruction,
|
|
15213
|
+
parseLiquidateTunaSpotPositionJupiterInstruction,
|
|
14992
15214
|
parseLiquidateTunaSpotPositionOrcaInstruction,
|
|
14993
15215
|
parseModifyTunaSpotPositionFusionInstruction,
|
|
14994
15216
|
parseModifyTunaSpotPositionJupiterInstruction,
|