flash-sdk 2.53.0 → 2.54.1
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/CustodyAccount.d.ts +1 -1
- package/dist/MarketAccount.d.ts +1 -1
- package/dist/PerpetualsClient.d.ts +318 -264
- package/dist/PerpetualsClient.js +3094 -2906
- package/dist/PoolAccount.d.ts +3 -0
- package/dist/PoolConfig.d.ts +1 -0
- package/dist/PoolConfig.json +120 -66
- package/dist/PositionAccount.d.ts +2 -3
- package/dist/PositionAccount.js +0 -4
- package/dist/TokenStakeAccount.d.ts +40 -0
- package/dist/TokenStakeAccount.js +47 -0
- package/dist/idl/perpetuals.d.ts +880 -105
- package/dist/idl/perpetuals.js +880 -105
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +2 -2
- package/package.json +1 -1
@@ -99,18 +99,12 @@ export declare class PerpetualsClient {
|
|
99
99
|
tradeSpreadMin: BN;
|
100
100
|
tradeSpreadMax: BN;
|
101
101
|
swapSpread: BN;
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
maxLeverage: number;
|
107
|
-
maxDegenLeverage: number;
|
108
|
-
minCollateralUsd: number;
|
109
|
-
minDegenCollateralUsd: number;
|
102
|
+
minInitialLeverage: BN;
|
103
|
+
maxInitialLeverage: BN;
|
104
|
+
maxLeverage: BN;
|
105
|
+
minCollateralUsd: BN;
|
110
106
|
delaySeconds: BN;
|
111
|
-
maxUtilization:
|
112
|
-
degenPositionFactor: number;
|
113
|
-
degenExposureFactor: number;
|
107
|
+
maxUtilization: BN;
|
114
108
|
maxPositionLockedUsd: BN;
|
115
109
|
maxExposureUsd: BN;
|
116
110
|
};
|
@@ -199,12 +193,12 @@ export declare class PerpetualsClient {
|
|
199
193
|
};
|
200
194
|
bump: number;
|
201
195
|
tokenAccountBump: number;
|
202
|
-
|
196
|
+
token22: boolean;
|
203
197
|
uid: number;
|
204
198
|
reservedAmount: BN;
|
205
199
|
minReserveUsd: BN;
|
206
200
|
limitPriceBufferBps: BN;
|
207
|
-
padding: number[] | number[] | BN[] | number[] |
|
201
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
208
202
|
owner: PublicKey;
|
209
203
|
stakeStats: {
|
210
204
|
pendingActivation: BN;
|
@@ -225,7 +219,7 @@ export declare class PerpetualsClient {
|
|
225
219
|
};
|
226
220
|
correlation: boolean;
|
227
221
|
maxPayoffBps: BN;
|
228
|
-
|
222
|
+
openInterest: BN;
|
229
223
|
collectivePosition: {
|
230
224
|
openPositions: BN;
|
231
225
|
updateTime: BN;
|
@@ -326,6 +320,9 @@ export declare class PerpetualsClient {
|
|
326
320
|
compoundingLpVaultBump: number;
|
327
321
|
minLpPriceUsd: BN;
|
328
322
|
maxLpPriceUsd: BN;
|
323
|
+
lpPrice: BN;
|
324
|
+
compoundingLpPrice: BN;
|
325
|
+
lastUpdatedTimestamp: BN;
|
329
326
|
delegate: PublicKey;
|
330
327
|
openTime: BN;
|
331
328
|
updateTime: BN;
|
@@ -342,8 +339,14 @@ export declare class PerpetualsClient {
|
|
342
339
|
unsettledAmount: BN;
|
343
340
|
unsettledFeesUsd: BN;
|
344
341
|
cumulativeLockFeeSnapshot: BN;
|
345
|
-
|
346
|
-
|
342
|
+
takeProfitPrice: {
|
343
|
+
price: BN;
|
344
|
+
exponent: number;
|
345
|
+
};
|
346
|
+
stopLossPrice: {
|
347
|
+
price: BN;
|
348
|
+
exponent: number;
|
349
|
+
};
|
347
350
|
sizeDecimals: number;
|
348
351
|
lockedDecimals: number;
|
349
352
|
collateralDecimals: number;
|
@@ -433,18 +436,12 @@ export declare class PerpetualsClient {
|
|
433
436
|
tradeSpreadMin: BN;
|
434
437
|
tradeSpreadMax: BN;
|
435
438
|
swapSpread: BN;
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
maxLeverage: number;
|
441
|
-
maxDegenLeverage: number;
|
442
|
-
minCollateralUsd: number;
|
443
|
-
minDegenCollateralUsd: number;
|
439
|
+
minInitialLeverage: BN;
|
440
|
+
maxInitialLeverage: BN;
|
441
|
+
maxLeverage: BN;
|
442
|
+
minCollateralUsd: BN;
|
444
443
|
delaySeconds: BN;
|
445
|
-
maxUtilization:
|
446
|
-
degenPositionFactor: number;
|
447
|
-
degenExposureFactor: number;
|
444
|
+
maxUtilization: BN;
|
448
445
|
maxPositionLockedUsd: BN;
|
449
446
|
maxExposureUsd: BN;
|
450
447
|
};
|
@@ -533,12 +530,12 @@ export declare class PerpetualsClient {
|
|
533
530
|
};
|
534
531
|
bump: number;
|
535
532
|
tokenAccountBump: number;
|
536
|
-
|
533
|
+
token22: boolean;
|
537
534
|
uid: number;
|
538
535
|
reservedAmount: BN;
|
539
536
|
minReserveUsd: BN;
|
540
537
|
limitPriceBufferBps: BN;
|
541
|
-
padding: number[] | number[] | BN[] | number[] |
|
538
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
542
539
|
owner: PublicKey;
|
543
540
|
stakeStats: {
|
544
541
|
pendingActivation: BN;
|
@@ -559,7 +556,7 @@ export declare class PerpetualsClient {
|
|
559
556
|
};
|
560
557
|
correlation: boolean;
|
561
558
|
maxPayoffBps: BN;
|
562
|
-
|
559
|
+
openInterest: BN;
|
563
560
|
collectivePosition: {
|
564
561
|
openPositions: BN;
|
565
562
|
updateTime: BN;
|
@@ -660,6 +657,9 @@ export declare class PerpetualsClient {
|
|
660
657
|
compoundingLpVaultBump: number;
|
661
658
|
minLpPriceUsd: BN;
|
662
659
|
maxLpPriceUsd: BN;
|
660
|
+
lpPrice: BN;
|
661
|
+
compoundingLpPrice: BN;
|
662
|
+
lastUpdatedTimestamp: BN;
|
663
663
|
delegate: PublicKey;
|
664
664
|
openTime: BN;
|
665
665
|
updateTime: BN;
|
@@ -676,8 +676,14 @@ export declare class PerpetualsClient {
|
|
676
676
|
unsettledAmount: BN;
|
677
677
|
unsettledFeesUsd: BN;
|
678
678
|
cumulativeLockFeeSnapshot: BN;
|
679
|
-
|
680
|
-
|
679
|
+
takeProfitPrice: {
|
680
|
+
price: BN;
|
681
|
+
exponent: number;
|
682
|
+
};
|
683
|
+
stopLossPrice: {
|
684
|
+
price: BN;
|
685
|
+
exponent: number;
|
686
|
+
};
|
681
687
|
sizeDecimals: number;
|
682
688
|
lockedDecimals: number;
|
683
689
|
collateralDecimals: number;
|
@@ -766,18 +772,12 @@ export declare class PerpetualsClient {
|
|
766
772
|
tradeSpreadMin: BN;
|
767
773
|
tradeSpreadMax: BN;
|
768
774
|
swapSpread: BN;
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
maxLeverage: number;
|
774
|
-
maxDegenLeverage: number;
|
775
|
-
minCollateralUsd: number;
|
776
|
-
minDegenCollateralUsd: number;
|
775
|
+
minInitialLeverage: BN;
|
776
|
+
maxInitialLeverage: BN;
|
777
|
+
maxLeverage: BN;
|
778
|
+
minCollateralUsd: BN;
|
777
779
|
delaySeconds: BN;
|
778
|
-
maxUtilization:
|
779
|
-
degenPositionFactor: number;
|
780
|
-
degenExposureFactor: number;
|
780
|
+
maxUtilization: BN;
|
781
781
|
maxPositionLockedUsd: BN;
|
782
782
|
maxExposureUsd: BN;
|
783
783
|
};
|
@@ -866,12 +866,12 @@ export declare class PerpetualsClient {
|
|
866
866
|
};
|
867
867
|
bump: number;
|
868
868
|
tokenAccountBump: number;
|
869
|
-
|
869
|
+
token22: boolean;
|
870
870
|
uid: number;
|
871
871
|
reservedAmount: BN;
|
872
872
|
minReserveUsd: BN;
|
873
873
|
limitPriceBufferBps: BN;
|
874
|
-
padding: number[] | number[] | BN[] | number[] |
|
874
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
875
875
|
owner: PublicKey;
|
876
876
|
stakeStats: {
|
877
877
|
pendingActivation: BN;
|
@@ -892,7 +892,7 @@ export declare class PerpetualsClient {
|
|
892
892
|
};
|
893
893
|
correlation: boolean;
|
894
894
|
maxPayoffBps: BN;
|
895
|
-
|
895
|
+
openInterest: BN;
|
896
896
|
collectivePosition: {
|
897
897
|
openPositions: BN;
|
898
898
|
updateTime: BN;
|
@@ -993,6 +993,9 @@ export declare class PerpetualsClient {
|
|
993
993
|
compoundingLpVaultBump: number;
|
994
994
|
minLpPriceUsd: BN;
|
995
995
|
maxLpPriceUsd: BN;
|
996
|
+
lpPrice: BN;
|
997
|
+
compoundingLpPrice: BN;
|
998
|
+
lastUpdatedTimestamp: BN;
|
996
999
|
delegate: PublicKey;
|
997
1000
|
openTime: BN;
|
998
1001
|
updateTime: BN;
|
@@ -1009,8 +1012,14 @@ export declare class PerpetualsClient {
|
|
1009
1012
|
unsettledAmount: BN;
|
1010
1013
|
unsettledFeesUsd: BN;
|
1011
1014
|
cumulativeLockFeeSnapshot: BN;
|
1012
|
-
|
1013
|
-
|
1015
|
+
takeProfitPrice: {
|
1016
|
+
price: BN;
|
1017
|
+
exponent: number;
|
1018
|
+
};
|
1019
|
+
stopLossPrice: {
|
1020
|
+
price: BN;
|
1021
|
+
exponent: number;
|
1022
|
+
};
|
1014
1023
|
sizeDecimals: number;
|
1015
1024
|
lockedDecimals: number;
|
1016
1025
|
collateralDecimals: number;
|
@@ -1103,18 +1112,12 @@ export declare class PerpetualsClient {
|
|
1103
1112
|
tradeSpreadMin: BN;
|
1104
1113
|
tradeSpreadMax: BN;
|
1105
1114
|
swapSpread: BN;
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
maxLeverage: number;
|
1111
|
-
maxDegenLeverage: number;
|
1112
|
-
minCollateralUsd: number;
|
1113
|
-
minDegenCollateralUsd: number;
|
1115
|
+
minInitialLeverage: BN;
|
1116
|
+
maxInitialLeverage: BN;
|
1117
|
+
maxLeverage: BN;
|
1118
|
+
minCollateralUsd: BN;
|
1114
1119
|
delaySeconds: BN;
|
1115
|
-
maxUtilization:
|
1116
|
-
degenPositionFactor: number;
|
1117
|
-
degenExposureFactor: number;
|
1120
|
+
maxUtilization: BN;
|
1118
1121
|
maxPositionLockedUsd: BN;
|
1119
1122
|
maxExposureUsd: BN;
|
1120
1123
|
};
|
@@ -1203,12 +1206,12 @@ export declare class PerpetualsClient {
|
|
1203
1206
|
};
|
1204
1207
|
bump: number;
|
1205
1208
|
tokenAccountBump: number;
|
1206
|
-
|
1209
|
+
token22: boolean;
|
1207
1210
|
uid: number;
|
1208
1211
|
reservedAmount: BN;
|
1209
1212
|
minReserveUsd: BN;
|
1210
1213
|
limitPriceBufferBps: BN;
|
1211
|
-
padding: number[] | number[] | BN[] | number[] |
|
1214
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
1212
1215
|
owner: PublicKey;
|
1213
1216
|
stakeStats: {
|
1214
1217
|
pendingActivation: BN;
|
@@ -1229,7 +1232,7 @@ export declare class PerpetualsClient {
|
|
1229
1232
|
};
|
1230
1233
|
correlation: boolean;
|
1231
1234
|
maxPayoffBps: BN;
|
1232
|
-
|
1235
|
+
openInterest: BN;
|
1233
1236
|
collectivePosition: {
|
1234
1237
|
openPositions: BN;
|
1235
1238
|
updateTime: BN;
|
@@ -1330,6 +1333,9 @@ export declare class PerpetualsClient {
|
|
1330
1333
|
compoundingLpVaultBump: number;
|
1331
1334
|
minLpPriceUsd: BN;
|
1332
1335
|
maxLpPriceUsd: BN;
|
1336
|
+
lpPrice: BN;
|
1337
|
+
compoundingLpPrice: BN;
|
1338
|
+
lastUpdatedTimestamp: BN;
|
1333
1339
|
delegate: PublicKey;
|
1334
1340
|
openTime: BN;
|
1335
1341
|
updateTime: BN;
|
@@ -1346,8 +1352,14 @@ export declare class PerpetualsClient {
|
|
1346
1352
|
unsettledAmount: BN;
|
1347
1353
|
unsettledFeesUsd: BN;
|
1348
1354
|
cumulativeLockFeeSnapshot: BN;
|
1349
|
-
|
1350
|
-
|
1355
|
+
takeProfitPrice: {
|
1356
|
+
price: BN;
|
1357
|
+
exponent: number;
|
1358
|
+
};
|
1359
|
+
stopLossPrice: {
|
1360
|
+
price: BN;
|
1361
|
+
exponent: number;
|
1362
|
+
};
|
1351
1363
|
sizeDecimals: number;
|
1352
1364
|
lockedDecimals: number;
|
1353
1365
|
collateralDecimals: number;
|
@@ -1439,18 +1451,12 @@ export declare class PerpetualsClient {
|
|
1439
1451
|
tradeSpreadMin: BN;
|
1440
1452
|
tradeSpreadMax: BN;
|
1441
1453
|
swapSpread: BN;
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
maxLeverage: number;
|
1447
|
-
maxDegenLeverage: number;
|
1448
|
-
minCollateralUsd: number;
|
1449
|
-
minDegenCollateralUsd: number;
|
1454
|
+
minInitialLeverage: BN;
|
1455
|
+
maxInitialLeverage: BN;
|
1456
|
+
maxLeverage: BN;
|
1457
|
+
minCollateralUsd: BN;
|
1450
1458
|
delaySeconds: BN;
|
1451
|
-
maxUtilization:
|
1452
|
-
degenPositionFactor: number;
|
1453
|
-
degenExposureFactor: number;
|
1459
|
+
maxUtilization: BN;
|
1454
1460
|
maxPositionLockedUsd: BN;
|
1455
1461
|
maxExposureUsd: BN;
|
1456
1462
|
};
|
@@ -1539,12 +1545,12 @@ export declare class PerpetualsClient {
|
|
1539
1545
|
};
|
1540
1546
|
bump: number;
|
1541
1547
|
tokenAccountBump: number;
|
1542
|
-
|
1548
|
+
token22: boolean;
|
1543
1549
|
uid: number;
|
1544
1550
|
reservedAmount: BN;
|
1545
1551
|
minReserveUsd: BN;
|
1546
1552
|
limitPriceBufferBps: BN;
|
1547
|
-
padding: number[] | number[] | BN[] | number[] |
|
1553
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
1548
1554
|
owner: PublicKey;
|
1549
1555
|
stakeStats: {
|
1550
1556
|
pendingActivation: BN;
|
@@ -1565,7 +1571,7 @@ export declare class PerpetualsClient {
|
|
1565
1571
|
};
|
1566
1572
|
correlation: boolean;
|
1567
1573
|
maxPayoffBps: BN;
|
1568
|
-
|
1574
|
+
openInterest: BN;
|
1569
1575
|
collectivePosition: {
|
1570
1576
|
openPositions: BN;
|
1571
1577
|
updateTime: BN;
|
@@ -1666,6 +1672,9 @@ export declare class PerpetualsClient {
|
|
1666
1672
|
compoundingLpVaultBump: number;
|
1667
1673
|
minLpPriceUsd: BN;
|
1668
1674
|
maxLpPriceUsd: BN;
|
1675
|
+
lpPrice: BN;
|
1676
|
+
compoundingLpPrice: BN;
|
1677
|
+
lastUpdatedTimestamp: BN;
|
1669
1678
|
delegate: PublicKey;
|
1670
1679
|
openTime: BN;
|
1671
1680
|
updateTime: BN;
|
@@ -1682,8 +1691,14 @@ export declare class PerpetualsClient {
|
|
1682
1691
|
unsettledAmount: BN;
|
1683
1692
|
unsettledFeesUsd: BN;
|
1684
1693
|
cumulativeLockFeeSnapshot: BN;
|
1685
|
-
|
1686
|
-
|
1694
|
+
takeProfitPrice: {
|
1695
|
+
price: BN;
|
1696
|
+
exponent: number;
|
1697
|
+
};
|
1698
|
+
stopLossPrice: {
|
1699
|
+
price: BN;
|
1700
|
+
exponent: number;
|
1701
|
+
};
|
1687
1702
|
sizeDecimals: number;
|
1688
1703
|
lockedDecimals: number;
|
1689
1704
|
collateralDecimals: number;
|
@@ -1746,6 +1761,7 @@ export declare class PerpetualsClient {
|
|
1746
1761
|
tokenStakeAccount: PublicKey;
|
1747
1762
|
burnt: boolean;
|
1748
1763
|
}>;
|
1764
|
+
getPositionData: (position: PositionAccount, poolConfig: PoolConfig) => Promise<any>;
|
1749
1765
|
getOrderAccount: (orderAccountKey: PublicKey) => Promise<{
|
1750
1766
|
pool: PublicKey;
|
1751
1767
|
mint: PublicKey;
|
@@ -1772,18 +1788,12 @@ export declare class PerpetualsClient {
|
|
1772
1788
|
tradeSpreadMin: BN;
|
1773
1789
|
tradeSpreadMax: BN;
|
1774
1790
|
swapSpread: BN;
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
maxLeverage: number;
|
1780
|
-
maxDegenLeverage: number;
|
1781
|
-
minCollateralUsd: number;
|
1782
|
-
minDegenCollateralUsd: number;
|
1791
|
+
minInitialLeverage: BN;
|
1792
|
+
maxInitialLeverage: BN;
|
1793
|
+
maxLeverage: BN;
|
1794
|
+
minCollateralUsd: BN;
|
1783
1795
|
delaySeconds: BN;
|
1784
|
-
maxUtilization:
|
1785
|
-
degenPositionFactor: number;
|
1786
|
-
degenExposureFactor: number;
|
1796
|
+
maxUtilization: BN;
|
1787
1797
|
maxPositionLockedUsd: BN;
|
1788
1798
|
maxExposureUsd: BN;
|
1789
1799
|
};
|
@@ -1872,12 +1882,12 @@ export declare class PerpetualsClient {
|
|
1872
1882
|
};
|
1873
1883
|
bump: number;
|
1874
1884
|
tokenAccountBump: number;
|
1875
|
-
|
1885
|
+
token22: boolean;
|
1876
1886
|
uid: number;
|
1877
1887
|
reservedAmount: BN;
|
1878
1888
|
minReserveUsd: BN;
|
1879
1889
|
limitPriceBufferBps: BN;
|
1880
|
-
padding: number[] | number[] | BN[] | number[] |
|
1890
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
1881
1891
|
owner: PublicKey;
|
1882
1892
|
stakeStats: {
|
1883
1893
|
pendingActivation: BN;
|
@@ -1898,7 +1908,7 @@ export declare class PerpetualsClient {
|
|
1898
1908
|
};
|
1899
1909
|
correlation: boolean;
|
1900
1910
|
maxPayoffBps: BN;
|
1901
|
-
|
1911
|
+
openInterest: BN;
|
1902
1912
|
collectivePosition: {
|
1903
1913
|
openPositions: BN;
|
1904
1914
|
updateTime: BN;
|
@@ -1999,6 +2009,9 @@ export declare class PerpetualsClient {
|
|
1999
2009
|
compoundingLpVaultBump: number;
|
2000
2010
|
minLpPriceUsd: BN;
|
2001
2011
|
maxLpPriceUsd: BN;
|
2012
|
+
lpPrice: BN;
|
2013
|
+
compoundingLpPrice: BN;
|
2014
|
+
lastUpdatedTimestamp: BN;
|
2002
2015
|
delegate: PublicKey;
|
2003
2016
|
openTime: BN;
|
2004
2017
|
updateTime: BN;
|
@@ -2015,8 +2028,14 @@ export declare class PerpetualsClient {
|
|
2015
2028
|
unsettledAmount: BN;
|
2016
2029
|
unsettledFeesUsd: BN;
|
2017
2030
|
cumulativeLockFeeSnapshot: BN;
|
2018
|
-
|
2019
|
-
|
2031
|
+
takeProfitPrice: {
|
2032
|
+
price: BN;
|
2033
|
+
exponent: number;
|
2034
|
+
};
|
2035
|
+
stopLossPrice: {
|
2036
|
+
price: BN;
|
2037
|
+
exponent: number;
|
2038
|
+
};
|
2020
2039
|
sizeDecimals: number;
|
2021
2040
|
lockedDecimals: number;
|
2022
2041
|
collateralDecimals: number;
|
@@ -2105,18 +2124,12 @@ export declare class PerpetualsClient {
|
|
2105
2124
|
tradeSpreadMin: BN;
|
2106
2125
|
tradeSpreadMax: BN;
|
2107
2126
|
swapSpread: BN;
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
maxLeverage: number;
|
2113
|
-
maxDegenLeverage: number;
|
2114
|
-
minCollateralUsd: number;
|
2115
|
-
minDegenCollateralUsd: number;
|
2127
|
+
minInitialLeverage: BN;
|
2128
|
+
maxInitialLeverage: BN;
|
2129
|
+
maxLeverage: BN;
|
2130
|
+
minCollateralUsd: BN;
|
2116
2131
|
delaySeconds: BN;
|
2117
|
-
maxUtilization:
|
2118
|
-
degenPositionFactor: number;
|
2119
|
-
degenExposureFactor: number;
|
2132
|
+
maxUtilization: BN;
|
2120
2133
|
maxPositionLockedUsd: BN;
|
2121
2134
|
maxExposureUsd: BN;
|
2122
2135
|
};
|
@@ -2205,12 +2218,12 @@ export declare class PerpetualsClient {
|
|
2205
2218
|
};
|
2206
2219
|
bump: number;
|
2207
2220
|
tokenAccountBump: number;
|
2208
|
-
|
2221
|
+
token22: boolean;
|
2209
2222
|
uid: number;
|
2210
2223
|
reservedAmount: BN;
|
2211
2224
|
minReserveUsd: BN;
|
2212
2225
|
limitPriceBufferBps: BN;
|
2213
|
-
padding: number[] | number[] | BN[] | number[] |
|
2226
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
2214
2227
|
owner: PublicKey;
|
2215
2228
|
stakeStats: {
|
2216
2229
|
pendingActivation: BN;
|
@@ -2231,7 +2244,7 @@ export declare class PerpetualsClient {
|
|
2231
2244
|
};
|
2232
2245
|
correlation: boolean;
|
2233
2246
|
maxPayoffBps: BN;
|
2234
|
-
|
2247
|
+
openInterest: BN;
|
2235
2248
|
collectivePosition: {
|
2236
2249
|
openPositions: BN;
|
2237
2250
|
updateTime: BN;
|
@@ -2332,6 +2345,9 @@ export declare class PerpetualsClient {
|
|
2332
2345
|
compoundingLpVaultBump: number;
|
2333
2346
|
minLpPriceUsd: BN;
|
2334
2347
|
maxLpPriceUsd: BN;
|
2348
|
+
lpPrice: BN;
|
2349
|
+
compoundingLpPrice: BN;
|
2350
|
+
lastUpdatedTimestamp: BN;
|
2335
2351
|
delegate: PublicKey;
|
2336
2352
|
openTime: BN;
|
2337
2353
|
updateTime: BN;
|
@@ -2348,8 +2364,14 @@ export declare class PerpetualsClient {
|
|
2348
2364
|
unsettledAmount: BN;
|
2349
2365
|
unsettledFeesUsd: BN;
|
2350
2366
|
cumulativeLockFeeSnapshot: BN;
|
2351
|
-
|
2352
|
-
|
2367
|
+
takeProfitPrice: {
|
2368
|
+
price: BN;
|
2369
|
+
exponent: number;
|
2370
|
+
};
|
2371
|
+
stopLossPrice: {
|
2372
|
+
price: BN;
|
2373
|
+
exponent: number;
|
2374
|
+
};
|
2353
2375
|
sizeDecimals: number;
|
2354
2376
|
lockedDecimals: number;
|
2355
2377
|
collateralDecimals: number;
|
@@ -2438,18 +2460,12 @@ export declare class PerpetualsClient {
|
|
2438
2460
|
tradeSpreadMin: BN;
|
2439
2461
|
tradeSpreadMax: BN;
|
2440
2462
|
swapSpread: BN;
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
maxLeverage: number;
|
2446
|
-
maxDegenLeverage: number;
|
2447
|
-
minCollateralUsd: number;
|
2448
|
-
minDegenCollateralUsd: number;
|
2463
|
+
minInitialLeverage: BN;
|
2464
|
+
maxInitialLeverage: BN;
|
2465
|
+
maxLeverage: BN;
|
2466
|
+
minCollateralUsd: BN;
|
2449
2467
|
delaySeconds: BN;
|
2450
|
-
maxUtilization:
|
2451
|
-
degenPositionFactor: number;
|
2452
|
-
degenExposureFactor: number;
|
2468
|
+
maxUtilization: BN;
|
2453
2469
|
maxPositionLockedUsd: BN;
|
2454
2470
|
maxExposureUsd: BN;
|
2455
2471
|
};
|
@@ -2538,12 +2554,12 @@ export declare class PerpetualsClient {
|
|
2538
2554
|
};
|
2539
2555
|
bump: number;
|
2540
2556
|
tokenAccountBump: number;
|
2541
|
-
|
2557
|
+
token22: boolean;
|
2542
2558
|
uid: number;
|
2543
2559
|
reservedAmount: BN;
|
2544
2560
|
minReserveUsd: BN;
|
2545
2561
|
limitPriceBufferBps: BN;
|
2546
|
-
padding: number[] | number[] | BN[] | number[] |
|
2562
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
2547
2563
|
owner: PublicKey;
|
2548
2564
|
stakeStats: {
|
2549
2565
|
pendingActivation: BN;
|
@@ -2564,7 +2580,7 @@ export declare class PerpetualsClient {
|
|
2564
2580
|
};
|
2565
2581
|
correlation: boolean;
|
2566
2582
|
maxPayoffBps: BN;
|
2567
|
-
|
2583
|
+
openInterest: BN;
|
2568
2584
|
collectivePosition: {
|
2569
2585
|
openPositions: BN;
|
2570
2586
|
updateTime: BN;
|
@@ -2665,6 +2681,9 @@ export declare class PerpetualsClient {
|
|
2665
2681
|
compoundingLpVaultBump: number;
|
2666
2682
|
minLpPriceUsd: BN;
|
2667
2683
|
maxLpPriceUsd: BN;
|
2684
|
+
lpPrice: BN;
|
2685
|
+
compoundingLpPrice: BN;
|
2686
|
+
lastUpdatedTimestamp: BN;
|
2668
2687
|
delegate: PublicKey;
|
2669
2688
|
openTime: BN;
|
2670
2689
|
updateTime: BN;
|
@@ -2681,8 +2700,14 @@ export declare class PerpetualsClient {
|
|
2681
2700
|
unsettledAmount: BN;
|
2682
2701
|
unsettledFeesUsd: BN;
|
2683
2702
|
cumulativeLockFeeSnapshot: BN;
|
2684
|
-
|
2685
|
-
|
2703
|
+
takeProfitPrice: {
|
2704
|
+
price: BN;
|
2705
|
+
exponent: number;
|
2706
|
+
};
|
2707
|
+
stopLossPrice: {
|
2708
|
+
price: BN;
|
2709
|
+
exponent: number;
|
2710
|
+
};
|
2686
2711
|
sizeDecimals: number;
|
2687
2712
|
lockedDecimals: number;
|
2688
2713
|
collateralDecimals: number;
|
@@ -2764,8 +2789,14 @@ export declare class PerpetualsClient {
|
|
2764
2789
|
unsettledAmount: BN;
|
2765
2790
|
unsettledFeesUsd: BN;
|
2766
2791
|
cumulativeLockFeeSnapshot: BN;
|
2767
|
-
|
2768
|
-
|
2792
|
+
takeProfitPrice: {
|
2793
|
+
price: BN;
|
2794
|
+
exponent: number;
|
2795
|
+
};
|
2796
|
+
stopLossPrice: {
|
2797
|
+
price: BN;
|
2798
|
+
exponent: number;
|
2799
|
+
};
|
2769
2800
|
sizeDecimals: number;
|
2770
2801
|
lockedDecimals: number;
|
2771
2802
|
collateralDecimals: number;
|
@@ -2815,18 +2846,12 @@ export declare class PerpetualsClient {
|
|
2815
2846
|
tradeSpreadMin: BN;
|
2816
2847
|
tradeSpreadMax: BN;
|
2817
2848
|
swapSpread: BN;
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2822
|
-
maxLeverage: number;
|
2823
|
-
maxDegenLeverage: number;
|
2824
|
-
minCollateralUsd: number;
|
2825
|
-
minDegenCollateralUsd: number;
|
2849
|
+
minInitialLeverage: BN;
|
2850
|
+
maxInitialLeverage: BN;
|
2851
|
+
maxLeverage: BN;
|
2852
|
+
minCollateralUsd: BN;
|
2826
2853
|
delaySeconds: BN;
|
2827
|
-
maxUtilization:
|
2828
|
-
degenPositionFactor: number;
|
2829
|
-
degenExposureFactor: number;
|
2854
|
+
maxUtilization: BN;
|
2830
2855
|
maxPositionLockedUsd: BN;
|
2831
2856
|
maxExposureUsd: BN;
|
2832
2857
|
};
|
@@ -2915,12 +2940,12 @@ export declare class PerpetualsClient {
|
|
2915
2940
|
};
|
2916
2941
|
bump: number;
|
2917
2942
|
tokenAccountBump: number;
|
2918
|
-
|
2943
|
+
token22: boolean;
|
2919
2944
|
uid: number;
|
2920
2945
|
reservedAmount: BN;
|
2921
2946
|
minReserveUsd: BN;
|
2922
2947
|
limitPriceBufferBps: BN;
|
2923
|
-
padding: number[] | number[] | BN[] | number[] |
|
2948
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
2924
2949
|
owner: PublicKey;
|
2925
2950
|
stakeStats: {
|
2926
2951
|
pendingActivation: BN;
|
@@ -2941,7 +2966,7 @@ export declare class PerpetualsClient {
|
|
2941
2966
|
};
|
2942
2967
|
correlation: boolean;
|
2943
2968
|
maxPayoffBps: BN;
|
2944
|
-
|
2969
|
+
openInterest: BN;
|
2945
2970
|
collectivePosition: {
|
2946
2971
|
openPositions: BN;
|
2947
2972
|
updateTime: BN;
|
@@ -3042,6 +3067,9 @@ export declare class PerpetualsClient {
|
|
3042
3067
|
compoundingLpVaultBump: number;
|
3043
3068
|
minLpPriceUsd: BN;
|
3044
3069
|
maxLpPriceUsd: BN;
|
3070
|
+
lpPrice: BN;
|
3071
|
+
compoundingLpPrice: BN;
|
3072
|
+
lastUpdatedTimestamp: BN;
|
3045
3073
|
delegate: PublicKey;
|
3046
3074
|
openTime: BN;
|
3047
3075
|
updateTime: BN;
|
@@ -3058,8 +3086,14 @@ export declare class PerpetualsClient {
|
|
3058
3086
|
unsettledAmount: BN;
|
3059
3087
|
unsettledFeesUsd: BN;
|
3060
3088
|
cumulativeLockFeeSnapshot: BN;
|
3061
|
-
|
3062
|
-
|
3089
|
+
takeProfitPrice: {
|
3090
|
+
price: BN;
|
3091
|
+
exponent: number;
|
3092
|
+
};
|
3093
|
+
stopLossPrice: {
|
3094
|
+
price: BN;
|
3095
|
+
exponent: number;
|
3096
|
+
};
|
3063
3097
|
sizeDecimals: number;
|
3064
3098
|
lockedDecimals: number;
|
3065
3099
|
collateralDecimals: number;
|
@@ -3148,18 +3182,12 @@ export declare class PerpetualsClient {
|
|
3148
3182
|
tradeSpreadMin: BN;
|
3149
3183
|
tradeSpreadMax: BN;
|
3150
3184
|
swapSpread: BN;
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
maxLeverage: number;
|
3156
|
-
maxDegenLeverage: number;
|
3157
|
-
minCollateralUsd: number;
|
3158
|
-
minDegenCollateralUsd: number;
|
3185
|
+
minInitialLeverage: BN;
|
3186
|
+
maxInitialLeverage: BN;
|
3187
|
+
maxLeverage: BN;
|
3188
|
+
minCollateralUsd: BN;
|
3159
3189
|
delaySeconds: BN;
|
3160
|
-
maxUtilization:
|
3161
|
-
degenPositionFactor: number;
|
3162
|
-
degenExposureFactor: number;
|
3190
|
+
maxUtilization: BN;
|
3163
3191
|
maxPositionLockedUsd: BN;
|
3164
3192
|
maxExposureUsd: BN;
|
3165
3193
|
};
|
@@ -3248,12 +3276,12 @@ export declare class PerpetualsClient {
|
|
3248
3276
|
};
|
3249
3277
|
bump: number;
|
3250
3278
|
tokenAccountBump: number;
|
3251
|
-
|
3279
|
+
token22: boolean;
|
3252
3280
|
uid: number;
|
3253
3281
|
reservedAmount: BN;
|
3254
3282
|
minReserveUsd: BN;
|
3255
3283
|
limitPriceBufferBps: BN;
|
3256
|
-
padding: number[] | number[] | BN[] | number[] |
|
3284
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
3257
3285
|
owner: PublicKey;
|
3258
3286
|
stakeStats: {
|
3259
3287
|
pendingActivation: BN;
|
@@ -3274,7 +3302,7 @@ export declare class PerpetualsClient {
|
|
3274
3302
|
};
|
3275
3303
|
correlation: boolean;
|
3276
3304
|
maxPayoffBps: BN;
|
3277
|
-
|
3305
|
+
openInterest: BN;
|
3278
3306
|
collectivePosition: {
|
3279
3307
|
openPositions: BN;
|
3280
3308
|
updateTime: BN;
|
@@ -3375,6 +3403,9 @@ export declare class PerpetualsClient {
|
|
3375
3403
|
compoundingLpVaultBump: number;
|
3376
3404
|
minLpPriceUsd: BN;
|
3377
3405
|
maxLpPriceUsd: BN;
|
3406
|
+
lpPrice: BN;
|
3407
|
+
compoundingLpPrice: BN;
|
3408
|
+
lastUpdatedTimestamp: BN;
|
3378
3409
|
delegate: PublicKey;
|
3379
3410
|
openTime: BN;
|
3380
3411
|
updateTime: BN;
|
@@ -3391,8 +3422,14 @@ export declare class PerpetualsClient {
|
|
3391
3422
|
unsettledAmount: BN;
|
3392
3423
|
unsettledFeesUsd: BN;
|
3393
3424
|
cumulativeLockFeeSnapshot: BN;
|
3394
|
-
|
3395
|
-
|
3425
|
+
takeProfitPrice: {
|
3426
|
+
price: BN;
|
3427
|
+
exponent: number;
|
3428
|
+
};
|
3429
|
+
stopLossPrice: {
|
3430
|
+
price: BN;
|
3431
|
+
exponent: number;
|
3432
|
+
};
|
3396
3433
|
sizeDecimals: number;
|
3397
3434
|
lockedDecimals: number;
|
3398
3435
|
collateralDecimals: number;
|
@@ -3481,18 +3518,12 @@ export declare class PerpetualsClient {
|
|
3481
3518
|
tradeSpreadMin: BN;
|
3482
3519
|
tradeSpreadMax: BN;
|
3483
3520
|
swapSpread: BN;
|
3484
|
-
|
3485
|
-
|
3486
|
-
|
3487
|
-
|
3488
|
-
maxLeverage: number;
|
3489
|
-
maxDegenLeverage: number;
|
3490
|
-
minCollateralUsd: number;
|
3491
|
-
minDegenCollateralUsd: number;
|
3521
|
+
minInitialLeverage: BN;
|
3522
|
+
maxInitialLeverage: BN;
|
3523
|
+
maxLeverage: BN;
|
3524
|
+
minCollateralUsd: BN;
|
3492
3525
|
delaySeconds: BN;
|
3493
|
-
maxUtilization:
|
3494
|
-
degenPositionFactor: number;
|
3495
|
-
degenExposureFactor: number;
|
3526
|
+
maxUtilization: BN;
|
3496
3527
|
maxPositionLockedUsd: BN;
|
3497
3528
|
maxExposureUsd: BN;
|
3498
3529
|
};
|
@@ -3581,12 +3612,12 @@ export declare class PerpetualsClient {
|
|
3581
3612
|
};
|
3582
3613
|
bump: number;
|
3583
3614
|
tokenAccountBump: number;
|
3584
|
-
|
3615
|
+
token22: boolean;
|
3585
3616
|
uid: number;
|
3586
3617
|
reservedAmount: BN;
|
3587
3618
|
minReserveUsd: BN;
|
3588
3619
|
limitPriceBufferBps: BN;
|
3589
|
-
padding: number[] | number[] | BN[] | number[] |
|
3620
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
3590
3621
|
owner: PublicKey;
|
3591
3622
|
stakeStats: {
|
3592
3623
|
pendingActivation: BN;
|
@@ -3607,7 +3638,7 @@ export declare class PerpetualsClient {
|
|
3607
3638
|
};
|
3608
3639
|
correlation: boolean;
|
3609
3640
|
maxPayoffBps: BN;
|
3610
|
-
|
3641
|
+
openInterest: BN;
|
3611
3642
|
collectivePosition: {
|
3612
3643
|
openPositions: BN;
|
3613
3644
|
updateTime: BN;
|
@@ -3708,6 +3739,9 @@ export declare class PerpetualsClient {
|
|
3708
3739
|
compoundingLpVaultBump: number;
|
3709
3740
|
minLpPriceUsd: BN;
|
3710
3741
|
maxLpPriceUsd: BN;
|
3742
|
+
lpPrice: BN;
|
3743
|
+
compoundingLpPrice: BN;
|
3744
|
+
lastUpdatedTimestamp: BN;
|
3711
3745
|
delegate: PublicKey;
|
3712
3746
|
openTime: BN;
|
3713
3747
|
updateTime: BN;
|
@@ -3724,8 +3758,14 @@ export declare class PerpetualsClient {
|
|
3724
3758
|
unsettledAmount: BN;
|
3725
3759
|
unsettledFeesUsd: BN;
|
3726
3760
|
cumulativeLockFeeSnapshot: BN;
|
3727
|
-
|
3728
|
-
|
3761
|
+
takeProfitPrice: {
|
3762
|
+
price: BN;
|
3763
|
+
exponent: number;
|
3764
|
+
};
|
3765
|
+
stopLossPrice: {
|
3766
|
+
price: BN;
|
3767
|
+
exponent: number;
|
3768
|
+
};
|
3729
3769
|
sizeDecimals: number;
|
3730
3770
|
lockedDecimals: number;
|
3731
3771
|
collateralDecimals: number;
|
@@ -3814,18 +3854,12 @@ export declare class PerpetualsClient {
|
|
3814
3854
|
tradeSpreadMin: BN;
|
3815
3855
|
tradeSpreadMax: BN;
|
3816
3856
|
swapSpread: BN;
|
3817
|
-
|
3818
|
-
|
3819
|
-
|
3820
|
-
|
3821
|
-
maxLeverage: number;
|
3822
|
-
maxDegenLeverage: number;
|
3823
|
-
minCollateralUsd: number;
|
3824
|
-
minDegenCollateralUsd: number;
|
3857
|
+
minInitialLeverage: BN;
|
3858
|
+
maxInitialLeverage: BN;
|
3859
|
+
maxLeverage: BN;
|
3860
|
+
minCollateralUsd: BN;
|
3825
3861
|
delaySeconds: BN;
|
3826
|
-
maxUtilization:
|
3827
|
-
degenPositionFactor: number;
|
3828
|
-
degenExposureFactor: number;
|
3862
|
+
maxUtilization: BN;
|
3829
3863
|
maxPositionLockedUsd: BN;
|
3830
3864
|
maxExposureUsd: BN;
|
3831
3865
|
};
|
@@ -3914,12 +3948,12 @@ export declare class PerpetualsClient {
|
|
3914
3948
|
};
|
3915
3949
|
bump: number;
|
3916
3950
|
tokenAccountBump: number;
|
3917
|
-
|
3951
|
+
token22: boolean;
|
3918
3952
|
uid: number;
|
3919
3953
|
reservedAmount: BN;
|
3920
3954
|
minReserveUsd: BN;
|
3921
3955
|
limitPriceBufferBps: BN;
|
3922
|
-
padding: number[] | number[] | BN[] | number[] |
|
3956
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
3923
3957
|
owner: PublicKey;
|
3924
3958
|
stakeStats: {
|
3925
3959
|
pendingActivation: BN;
|
@@ -3940,7 +3974,7 @@ export declare class PerpetualsClient {
|
|
3940
3974
|
};
|
3941
3975
|
correlation: boolean;
|
3942
3976
|
maxPayoffBps: BN;
|
3943
|
-
|
3977
|
+
openInterest: BN;
|
3944
3978
|
collectivePosition: {
|
3945
3979
|
openPositions: BN;
|
3946
3980
|
updateTime: BN;
|
@@ -4041,6 +4075,9 @@ export declare class PerpetualsClient {
|
|
4041
4075
|
compoundingLpVaultBump: number;
|
4042
4076
|
minLpPriceUsd: BN;
|
4043
4077
|
maxLpPriceUsd: BN;
|
4078
|
+
lpPrice: BN;
|
4079
|
+
compoundingLpPrice: BN;
|
4080
|
+
lastUpdatedTimestamp: BN;
|
4044
4081
|
delegate: PublicKey;
|
4045
4082
|
openTime: BN;
|
4046
4083
|
updateTime: BN;
|
@@ -4057,8 +4094,14 @@ export declare class PerpetualsClient {
|
|
4057
4094
|
unsettledAmount: BN;
|
4058
4095
|
unsettledFeesUsd: BN;
|
4059
4096
|
cumulativeLockFeeSnapshot: BN;
|
4060
|
-
|
4061
|
-
|
4097
|
+
takeProfitPrice: {
|
4098
|
+
price: BN;
|
4099
|
+
exponent: number;
|
4100
|
+
};
|
4101
|
+
stopLossPrice: {
|
4102
|
+
price: BN;
|
4103
|
+
exponent: number;
|
4104
|
+
};
|
4062
4105
|
sizeDecimals: number;
|
4063
4106
|
lockedDecimals: number;
|
4064
4107
|
collateralDecimals: number;
|
@@ -4147,18 +4190,12 @@ export declare class PerpetualsClient {
|
|
4147
4190
|
tradeSpreadMin: BN;
|
4148
4191
|
tradeSpreadMax: BN;
|
4149
4192
|
swapSpread: BN;
|
4150
|
-
|
4151
|
-
|
4152
|
-
|
4153
|
-
|
4154
|
-
maxLeverage: number;
|
4155
|
-
maxDegenLeverage: number;
|
4156
|
-
minCollateralUsd: number;
|
4157
|
-
minDegenCollateralUsd: number;
|
4193
|
+
minInitialLeverage: BN;
|
4194
|
+
maxInitialLeverage: BN;
|
4195
|
+
maxLeverage: BN;
|
4196
|
+
minCollateralUsd: BN;
|
4158
4197
|
delaySeconds: BN;
|
4159
|
-
maxUtilization:
|
4160
|
-
degenPositionFactor: number;
|
4161
|
-
degenExposureFactor: number;
|
4198
|
+
maxUtilization: BN;
|
4162
4199
|
maxPositionLockedUsd: BN;
|
4163
4200
|
maxExposureUsd: BN;
|
4164
4201
|
};
|
@@ -4247,12 +4284,12 @@ export declare class PerpetualsClient {
|
|
4247
4284
|
};
|
4248
4285
|
bump: number;
|
4249
4286
|
tokenAccountBump: number;
|
4250
|
-
|
4287
|
+
token22: boolean;
|
4251
4288
|
uid: number;
|
4252
4289
|
reservedAmount: BN;
|
4253
4290
|
minReserveUsd: BN;
|
4254
4291
|
limitPriceBufferBps: BN;
|
4255
|
-
padding: number[] | number[] | BN[] | number[] |
|
4292
|
+
padding: number[] | number[] | BN[] | number[] | BN[] | number[] | number[] | BN[] | BN[];
|
4256
4293
|
owner: PublicKey;
|
4257
4294
|
stakeStats: {
|
4258
4295
|
pendingActivation: BN;
|
@@ -4273,7 +4310,7 @@ export declare class PerpetualsClient {
|
|
4273
4310
|
};
|
4274
4311
|
correlation: boolean;
|
4275
4312
|
maxPayoffBps: BN;
|
4276
|
-
|
4313
|
+
openInterest: BN;
|
4277
4314
|
collectivePosition: {
|
4278
4315
|
openPositions: BN;
|
4279
4316
|
updateTime: BN;
|
@@ -4374,6 +4411,9 @@ export declare class PerpetualsClient {
|
|
4374
4411
|
compoundingLpVaultBump: number;
|
4375
4412
|
minLpPriceUsd: BN;
|
4376
4413
|
maxLpPriceUsd: BN;
|
4414
|
+
lpPrice: BN;
|
4415
|
+
compoundingLpPrice: BN;
|
4416
|
+
lastUpdatedTimestamp: BN;
|
4377
4417
|
delegate: PublicKey;
|
4378
4418
|
openTime: BN;
|
4379
4419
|
updateTime: BN;
|
@@ -4390,8 +4430,14 @@ export declare class PerpetualsClient {
|
|
4390
4430
|
unsettledAmount: BN;
|
4391
4431
|
unsettledFeesUsd: BN;
|
4392
4432
|
cumulativeLockFeeSnapshot: BN;
|
4393
|
-
|
4394
|
-
|
4433
|
+
takeProfitPrice: {
|
4434
|
+
price: BN;
|
4435
|
+
exponent: number;
|
4436
|
+
};
|
4437
|
+
stopLossPrice: {
|
4438
|
+
price: BN;
|
4439
|
+
exponent: number;
|
4440
|
+
};
|
4395
4441
|
sizeDecimals: number;
|
4396
4442
|
lockedDecimals: number;
|
4397
4443
|
collateralDecimals: number;
|
@@ -4457,13 +4503,6 @@ export declare class PerpetualsClient {
|
|
4457
4503
|
getAccountDiscriminator: (name: string) => Buffer;
|
4458
4504
|
log: (...message: string[]) => void;
|
4459
4505
|
prettyPrint: (object: object) => void;
|
4460
|
-
init: (admins: PublicKey[], config: any) => Promise<void>;
|
4461
|
-
setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
|
4462
|
-
addPool: (name: string, maxAumUsd: BN, permissions: Permissions, metadataSymbol: string, metadataTitle: string, metadataUri: string, stakingFeeShareBps: BN, vpVolumeFactor: number) => Promise<void>;
|
4463
|
-
removePool: (name: string) => Promise<void>;
|
4464
|
-
addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean) => Promise<void>;
|
4465
|
-
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
|
4466
|
-
removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[], poolConfig: PoolConfig) => Promise<void>;
|
4467
4506
|
liquidate: (positionAccount: PublicKey, poolConfig: PoolConfig, tokenMint: PublicKey, collateralMint: PublicKey, marketPk: PublicKey) => Promise<TransactionInstruction>;
|
4468
4507
|
getApyPercentageUi: (rewardCustodyAccount: CustodyAccount, previousSnapShotRewardPerLpStaked: BN, lpTokenUsdPrice: BN) => string;
|
4469
4508
|
getAddLiquidityAmountAndFeeSync: (amountIn: BN, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, lpTokenSupplyAmount: BN, poolAumUsdMax: BN, poolConfig: PoolConfig) => AddLiquidityAmountAndFee;
|
@@ -4539,6 +4578,7 @@ export declare class PerpetualsClient {
|
|
4539
4578
|
discountBn: BN;
|
4540
4579
|
};
|
4541
4580
|
getIndexPriceAtParticularTime: (poolConfig: PoolConfig, targetPricesAtT1Ui: Number[], targetPricesAtT2Ui: Number[], tokenRatiosAtT2BN: BN[]) => string;
|
4581
|
+
getUserClaimableRevenueAmount: (POOL_CONFIG: PoolConfig, userPublicKey: PublicKey, enableDebuglogs?: boolean) => Promise<BN>;
|
4542
4582
|
getStakedLpTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
4543
4583
|
getAssetsUnderManagement: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
4544
4584
|
getAddLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined) => Promise<{
|
@@ -4578,14 +4618,6 @@ export declare class PerpetualsClient {
|
|
4578
4618
|
instructions: TransactionInstruction[];
|
4579
4619
|
additionalSigners: Signer[];
|
4580
4620
|
}>;
|
4581
|
-
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4582
|
-
instructions: TransactionInstruction[];
|
4583
|
-
additionalSigners: Signer[];
|
4584
|
-
}>;
|
4585
|
-
swapFeeInternal: (rewardTokenSymbol: string, swapTokenSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4586
|
-
instructions: TransactionInstruction[];
|
4587
|
-
additionalSigners: Signer[];
|
4588
|
-
}>;
|
4589
4621
|
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4590
4622
|
instructions: TransactionInstruction[];
|
4591
4623
|
additionalSigners: Signer[];
|
@@ -4626,10 +4658,6 @@ export declare class PerpetualsClient {
|
|
4626
4658
|
instructions: TransactionInstruction[];
|
4627
4659
|
additionalSigners: Signer[];
|
4628
4660
|
}>;
|
4629
|
-
createNftTradingAccount: (nftMint: PublicKey, owner: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4630
|
-
instructions: TransactionInstruction[];
|
4631
|
-
additionalSigners: Signer[];
|
4632
|
-
}>;
|
4633
4661
|
updateNftAccount: (nftMint: PublicKey, updateReferer: boolean, updateBooster: boolean, flpStakeAccounts: PublicKey[]) => Promise<{
|
4634
4662
|
instructions: TransactionInstruction[];
|
4635
4663
|
additionalSigners: Signer[];
|
@@ -4638,14 +4666,6 @@ export declare class PerpetualsClient {
|
|
4638
4666
|
instructions: TransactionInstruction[];
|
4639
4667
|
additionalSigners: Signer[];
|
4640
4668
|
}>;
|
4641
|
-
initStake: (stakingFeeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4642
|
-
instructions: TransactionInstruction[];
|
4643
|
-
additionalSigners: Signer[];
|
4644
|
-
}>;
|
4645
|
-
initCompounding: (feeShareBps: BN, metadataTitle: string, metadataSymbol: string, metadataUri: string, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4646
|
-
instructions: TransactionInstruction[];
|
4647
|
-
additionalSigners: Signer[];
|
4648
|
-
}>;
|
4649
4669
|
depositStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4650
4670
|
instructions: TransactionInstruction[];
|
4651
4671
|
additionalSigners: Signer[];
|
@@ -4669,19 +4689,23 @@ export declare class PerpetualsClient {
|
|
4669
4689
|
instructions: TransactionInstruction[];
|
4670
4690
|
additionalSigners: Signer[];
|
4671
4691
|
}>;
|
4672
|
-
|
4692
|
+
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
|
4673
4693
|
instructions: TransactionInstruction[];
|
4674
4694
|
additionalSigners: Signer[];
|
4675
4695
|
}>;
|
4676
|
-
|
4696
|
+
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
|
4677
4697
|
instructions: TransactionInstruction[];
|
4678
4698
|
additionalSigners: Signer[];
|
4679
4699
|
}>;
|
4680
|
-
|
4700
|
+
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
4681
4701
|
instructions: TransactionInstruction[];
|
4682
4702
|
additionalSigners: Signer[];
|
4683
4703
|
}>;
|
4684
|
-
|
4704
|
+
migrateFlp: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4705
|
+
instructions: TransactionInstruction[];
|
4706
|
+
additionalSigners: Signer[];
|
4707
|
+
}>;
|
4708
|
+
compoundingFee: (poolConfig: PoolConfig, rewardTokenSymbol?: string) => Promise<{
|
4685
4709
|
instructions: TransactionInstruction[];
|
4686
4710
|
additionalSigners: Signer[];
|
4687
4711
|
}>;
|
@@ -4713,14 +4737,6 @@ export declare class PerpetualsClient {
|
|
4713
4737
|
instructions: TransactionInstruction[];
|
4714
4738
|
additionalSigners: Signer[];
|
4715
4739
|
}>;
|
4716
|
-
distributeTokenReward: (amount: BN, epochCount: number, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4717
|
-
instructions: TransactionInstruction[];
|
4718
|
-
additionalSigners: Signer[];
|
4719
|
-
}>;
|
4720
|
-
setTokenReward: (owner: PublicKey, amount: BN, epochCount: number, poolConfig: PoolConfig) => Promise<{
|
4721
|
-
instructions: TransactionInstruction[];
|
4722
|
-
additionalSigners: Signer[];
|
4723
|
-
}>;
|
4724
4740
|
collectTokenReward: (owner: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
4725
4741
|
instructions: TransactionInstruction[];
|
4726
4742
|
additionalSigners: Signer[];
|
@@ -4729,10 +4745,6 @@ export declare class PerpetualsClient {
|
|
4729
4745
|
instructions: TransactionInstruction[];
|
4730
4746
|
additionalSigners: Signer[];
|
4731
4747
|
}>;
|
4732
|
-
setTokenStakeLevel: (owner: PublicKey, stakeLevel: number) => Promise<{
|
4733
|
-
instructions: TransactionInstruction[];
|
4734
|
-
additionalSigners: Signer[];
|
4735
|
-
}>;
|
4736
4748
|
initRewardVault: (nftCount: BN, rewardSymbol: string, collectionMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4737
4749
|
instructions: TransactionInstruction[];
|
4738
4750
|
additionalSigners: Signer[];
|
@@ -4749,6 +4761,14 @@ export declare class PerpetualsClient {
|
|
4749
4761
|
instructions: TransactionInstruction[];
|
4750
4762
|
additionalSigners: Signer[];
|
4751
4763
|
}>;
|
4764
|
+
setTriggerPrice: (targetSymbol: string, collateralSymbol: string, side: Side, triggerPrice: ContractOraclePrice, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
4765
|
+
instructions: TransactionInstruction[];
|
4766
|
+
additionalSigners: Signer[];
|
4767
|
+
}>;
|
4768
|
+
forceClosePosition: (positionAccount: PositionAccount, targetSymbol: string, collateralSymbol: string, side: Side, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4769
|
+
instructions: TransactionInstruction[];
|
4770
|
+
additionalSigners: Signer[];
|
4771
|
+
}>;
|
4752
4772
|
placeLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, limitPrice: ContractOraclePrice, reserveAmount: BN, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4753
4773
|
instructions: TransactionInstruction[];
|
4754
4774
|
additionalSigners: Signer[];
|
@@ -4789,7 +4809,30 @@ export declare class PerpetualsClient {
|
|
4789
4809
|
instructions: TransactionInstruction[];
|
4790
4810
|
additionalSigners: Signer[];
|
4791
4811
|
}>;
|
4792
|
-
|
4812
|
+
migrateTriggerOrder: (owner: PublicKey, marketAccount: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4813
|
+
instructions: TransactionInstruction[];
|
4814
|
+
additionalSigners: Signer[];
|
4815
|
+
}>;
|
4816
|
+
sendTransaction(ixs: TransactionInstruction[], opts?: SendTransactionOpts): Promise<string>;
|
4817
|
+
sendTransactionV3(ixs: TransactionInstruction[], opts?: SendTransactionOpts): Promise<{
|
4818
|
+
signature: string;
|
4819
|
+
versionedTransaction: VersionedTransaction;
|
4820
|
+
}>;
|
4821
|
+
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4822
|
+
instructions: TransactionInstruction[];
|
4823
|
+
additionalSigners: Signer[];
|
4824
|
+
}>;
|
4825
|
+
swapFeeInternal: (rewardTokenSymbol: string, swapTokenSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4826
|
+
instructions: TransactionInstruction[];
|
4827
|
+
additionalSigners: Signer[];
|
4828
|
+
}>;
|
4829
|
+
init: (admins: PublicKey[], config: any) => Promise<void>;
|
4830
|
+
setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
|
4831
|
+
addPool: (name: string, maxAumUsd: BN, permissions: Permissions, metadataSymbol: string, metadataTitle: string, metadataUri: string, stakingFeeShareBps: BN, vpVolumeFactor: number) => Promise<void>;
|
4832
|
+
removePool: (name: string) => Promise<void>;
|
4833
|
+
addCustody: (poolName: string, tokenMint: PublicKey, isToken222: boolean, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean) => Promise<void>;
|
4834
|
+
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
|
4835
|
+
removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[], poolConfig: PoolConfig) => Promise<void>;
|
4793
4836
|
protocolWithdrawFees: (rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4794
4837
|
instructions: TransactionInstruction[];
|
4795
4838
|
additionalSigners: Signer[];
|
@@ -4819,33 +4862,44 @@ export declare class PerpetualsClient {
|
|
4819
4862
|
instructions: TransactionInstruction[];
|
4820
4863
|
additionalSigners: Signer[];
|
4821
4864
|
}>;
|
4822
|
-
|
4865
|
+
renameFlp: (flag: BN, lpTokenName: string, lpTokenSymbol: string, lpTokenUri: string, poolConfig: PoolConfig) => Promise<{
|
4823
4866
|
instructions: TransactionInstruction[];
|
4824
4867
|
additionalSigners: Signer[];
|
4825
4868
|
}>;
|
4826
|
-
|
4869
|
+
initStake: (stakingFeeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4827
4870
|
instructions: TransactionInstruction[];
|
4828
4871
|
additionalSigners: Signer[];
|
4829
4872
|
}>;
|
4830
|
-
|
4873
|
+
initCompounding: (feeShareBps: BN, metadataTitle: string, metadataSymbol: string, metadataUri: string, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4831
4874
|
instructions: TransactionInstruction[];
|
4832
4875
|
additionalSigners: Signer[];
|
4833
4876
|
}>;
|
4834
|
-
|
4877
|
+
initTokenVault: (token_permissions: TokenPermissions, tokens_to_distribute: BN, withdrawTimeLimit: BN, withdrawInstantFee: BN, stakeLevel: BN[], poolConfig: PoolConfig) => Promise<{
|
4835
4878
|
instructions: TransactionInstruction[];
|
4836
4879
|
additionalSigners: Signer[];
|
4837
4880
|
}>;
|
4838
|
-
|
4881
|
+
setTokenVaultConfig: (token_permissions: TokenPermissions, withdrawTimeLimit: BN, withdrawInstantFee: BN, stakeLevel: BN[], poolConfig: PoolConfig) => Promise<{
|
4839
4882
|
instructions: TransactionInstruction[];
|
4840
4883
|
additionalSigners: Signer[];
|
4841
4884
|
}>;
|
4842
|
-
|
4885
|
+
withdrawInstantFee: (poolConfig: PoolConfig) => Promise<{
|
4843
4886
|
instructions: TransactionInstruction[];
|
4844
4887
|
additionalSigners: Signer[];
|
4845
4888
|
}>;
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4889
|
+
initRevenueTokenAccount: (feeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4890
|
+
instructions: TransactionInstruction[];
|
4891
|
+
additionalSigners: Signer[];
|
4892
|
+
}>;
|
4893
|
+
distributeTokenReward: (amount: BN, epochCount: number, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
4894
|
+
instructions: TransactionInstruction[];
|
4895
|
+
additionalSigners: Signer[];
|
4896
|
+
}>;
|
4897
|
+
setTokenStakeLevel: (owner: PublicKey, stakeLevel: number) => Promise<{
|
4898
|
+
instructions: TransactionInstruction[];
|
4899
|
+
additionalSigners: Signer[];
|
4900
|
+
}>;
|
4901
|
+
setTokenReward: (owner: PublicKey, amount: BN, epochCount: number, poolConfig: PoolConfig) => Promise<{
|
4902
|
+
instructions: TransactionInstruction[];
|
4903
|
+
additionalSigners: Signer[];
|
4850
4904
|
}>;
|
4851
4905
|
}
|