flash-sdk 2.33.4 → 2.40.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/PerpetualsClient.d.ts +432 -28
- package/dist/PerpetualsClient.js +607 -103
- package/dist/PoolConfig.d.ts +4 -1
- package/dist/PoolConfig.js +5 -2
- package/dist/PoolConfig.json +45 -0
- package/dist/idl/perpetuals.d.ts +1242 -52
- package/dist/idl/perpetuals.js +1240 -50
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +10 -0
- package/package.json +1 -1
@@ -3,7 +3,7 @@ import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
|
3
3
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
4
4
|
import { PoolAccount } from "./PoolAccount";
|
5
5
|
import { PositionAccount } from "./PositionAccount";
|
6
|
-
import { AddLiquidityAmountAndFee, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, Trading, EntryPriceAndFeeV2, EntryPriceAndFee } from "./types";
|
6
|
+
import { AddLiquidityAmountAndFee, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, Trading, EntryPriceAndFeeV2, EntryPriceAndFee, TokenPermissions } from "./types";
|
7
7
|
import { OraclePrice } from "./OraclePrice";
|
8
8
|
import { CustodyAccount } from "./CustodyAccount";
|
9
9
|
import { Perpetuals } from "./idl/perpetuals";
|
@@ -198,7 +198,7 @@ export declare class PerpetualsClient {
|
|
198
198
|
reservedAmount: BN;
|
199
199
|
minReserveUsd: BN;
|
200
200
|
limitPriceBufferBps: BN;
|
201
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
201
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
202
202
|
owner: PublicKey;
|
203
203
|
stakeStats: {
|
204
204
|
pendingActivation: BN;
|
@@ -345,8 +345,36 @@ export declare class PerpetualsClient {
|
|
345
345
|
collateralDecimals: number;
|
346
346
|
refererTradingAccount: PublicKey;
|
347
347
|
refererBoosterAccount: PublicKey;
|
348
|
-
nftMint: PublicKey;
|
349
348
|
level: number;
|
349
|
+
withdrawStakeCount: number;
|
350
|
+
withdrawStake: unknown;
|
351
|
+
activeStakeAmount: BN;
|
352
|
+
updateTimestamp: BN;
|
353
|
+
tradeTimestamp: BN;
|
354
|
+
tradeCounter: BN;
|
355
|
+
rewardTokens: BN;
|
356
|
+
tokenMint: PublicKey;
|
357
|
+
tokenVaultTokenAccount: PublicKey;
|
358
|
+
tokenPermissions: {
|
359
|
+
allowDeposits: boolean;
|
360
|
+
allowWithdrawal: boolean;
|
361
|
+
allowRewardWithdrawal: boolean;
|
362
|
+
};
|
363
|
+
withdrawTimeLimit: BN;
|
364
|
+
withdrawInstantFee: BN;
|
365
|
+
withdrawInstantFeeEarned: BN;
|
366
|
+
stakeLevel: BN[];
|
367
|
+
tokensStaked: {
|
368
|
+
pendingActivation: BN;
|
369
|
+
activeAmount: BN;
|
370
|
+
pendingDeactivation: BN;
|
371
|
+
deactivatedAmount: BN;
|
372
|
+
};
|
373
|
+
rewardTokensToDistribute: BN;
|
374
|
+
rewardTokensDistributed: BN;
|
375
|
+
tokensToDistribute: BN;
|
376
|
+
tokensDistributed: BN;
|
377
|
+
nftMint: PublicKey;
|
350
378
|
voltagePoints: BN;
|
351
379
|
stats: {
|
352
380
|
volumeUsd: BN;
|
@@ -487,7 +515,7 @@ export declare class PerpetualsClient {
|
|
487
515
|
reservedAmount: BN;
|
488
516
|
minReserveUsd: BN;
|
489
517
|
limitPriceBufferBps: BN;
|
490
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
518
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
491
519
|
owner: PublicKey;
|
492
520
|
stakeStats: {
|
493
521
|
pendingActivation: BN;
|
@@ -634,8 +662,36 @@ export declare class PerpetualsClient {
|
|
634
662
|
collateralDecimals: number;
|
635
663
|
refererTradingAccount: PublicKey;
|
636
664
|
refererBoosterAccount: PublicKey;
|
637
|
-
nftMint: PublicKey;
|
638
665
|
level: number;
|
666
|
+
withdrawStakeCount: number;
|
667
|
+
withdrawStake: unknown;
|
668
|
+
activeStakeAmount: BN;
|
669
|
+
updateTimestamp: BN;
|
670
|
+
tradeTimestamp: BN;
|
671
|
+
tradeCounter: BN;
|
672
|
+
rewardTokens: BN;
|
673
|
+
tokenMint: PublicKey;
|
674
|
+
tokenVaultTokenAccount: PublicKey;
|
675
|
+
tokenPermissions: {
|
676
|
+
allowDeposits: boolean;
|
677
|
+
allowWithdrawal: boolean;
|
678
|
+
allowRewardWithdrawal: boolean;
|
679
|
+
};
|
680
|
+
withdrawTimeLimit: BN;
|
681
|
+
withdrawInstantFee: BN;
|
682
|
+
withdrawInstantFeeEarned: BN;
|
683
|
+
stakeLevel: BN[];
|
684
|
+
tokensStaked: {
|
685
|
+
pendingActivation: BN;
|
686
|
+
activeAmount: BN;
|
687
|
+
pendingDeactivation: BN;
|
688
|
+
deactivatedAmount: BN;
|
689
|
+
};
|
690
|
+
rewardTokensToDistribute: BN;
|
691
|
+
rewardTokensDistributed: BN;
|
692
|
+
tokensToDistribute: BN;
|
693
|
+
tokensDistributed: BN;
|
694
|
+
nftMint: PublicKey;
|
639
695
|
voltagePoints: BN;
|
640
696
|
stats: {
|
641
697
|
volumeUsd: BN;
|
@@ -775,7 +831,7 @@ export declare class PerpetualsClient {
|
|
775
831
|
reservedAmount: BN;
|
776
832
|
minReserveUsd: BN;
|
777
833
|
limitPriceBufferBps: BN;
|
778
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
834
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
779
835
|
owner: PublicKey;
|
780
836
|
stakeStats: {
|
781
837
|
pendingActivation: BN;
|
@@ -922,8 +978,36 @@ export declare class PerpetualsClient {
|
|
922
978
|
collateralDecimals: number;
|
923
979
|
refererTradingAccount: PublicKey;
|
924
980
|
refererBoosterAccount: PublicKey;
|
925
|
-
nftMint: PublicKey;
|
926
981
|
level: number;
|
982
|
+
withdrawStakeCount: number;
|
983
|
+
withdrawStake: unknown;
|
984
|
+
activeStakeAmount: BN;
|
985
|
+
updateTimestamp: BN;
|
986
|
+
tradeTimestamp: BN;
|
987
|
+
tradeCounter: BN;
|
988
|
+
rewardTokens: BN;
|
989
|
+
tokenMint: PublicKey;
|
990
|
+
tokenVaultTokenAccount: PublicKey;
|
991
|
+
tokenPermissions: {
|
992
|
+
allowDeposits: boolean;
|
993
|
+
allowWithdrawal: boolean;
|
994
|
+
allowRewardWithdrawal: boolean;
|
995
|
+
};
|
996
|
+
withdrawTimeLimit: BN;
|
997
|
+
withdrawInstantFee: BN;
|
998
|
+
withdrawInstantFeeEarned: BN;
|
999
|
+
stakeLevel: BN[];
|
1000
|
+
tokensStaked: {
|
1001
|
+
pendingActivation: BN;
|
1002
|
+
activeAmount: BN;
|
1003
|
+
pendingDeactivation: BN;
|
1004
|
+
deactivatedAmount: BN;
|
1005
|
+
};
|
1006
|
+
rewardTokensToDistribute: BN;
|
1007
|
+
rewardTokensDistributed: BN;
|
1008
|
+
tokensToDistribute: BN;
|
1009
|
+
tokensDistributed: BN;
|
1010
|
+
nftMint: PublicKey;
|
927
1011
|
voltagePoints: BN;
|
928
1012
|
stats: {
|
929
1013
|
volumeUsd: BN;
|
@@ -1067,7 +1151,7 @@ export declare class PerpetualsClient {
|
|
1067
1151
|
reservedAmount: BN;
|
1068
1152
|
minReserveUsd: BN;
|
1069
1153
|
limitPriceBufferBps: BN;
|
1070
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
1154
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
1071
1155
|
owner: PublicKey;
|
1072
1156
|
stakeStats: {
|
1073
1157
|
pendingActivation: BN;
|
@@ -1214,8 +1298,36 @@ export declare class PerpetualsClient {
|
|
1214
1298
|
collateralDecimals: number;
|
1215
1299
|
refererTradingAccount: PublicKey;
|
1216
1300
|
refererBoosterAccount: PublicKey;
|
1217
|
-
nftMint: PublicKey;
|
1218
1301
|
level: number;
|
1302
|
+
withdrawStakeCount: number;
|
1303
|
+
withdrawStake: unknown;
|
1304
|
+
activeStakeAmount: BN;
|
1305
|
+
updateTimestamp: BN;
|
1306
|
+
tradeTimestamp: BN;
|
1307
|
+
tradeCounter: BN;
|
1308
|
+
rewardTokens: BN;
|
1309
|
+
tokenMint: PublicKey;
|
1310
|
+
tokenVaultTokenAccount: PublicKey;
|
1311
|
+
tokenPermissions: {
|
1312
|
+
allowDeposits: boolean;
|
1313
|
+
allowWithdrawal: boolean;
|
1314
|
+
allowRewardWithdrawal: boolean;
|
1315
|
+
};
|
1316
|
+
withdrawTimeLimit: BN;
|
1317
|
+
withdrawInstantFee: BN;
|
1318
|
+
withdrawInstantFeeEarned: BN;
|
1319
|
+
stakeLevel: BN[];
|
1320
|
+
tokensStaked: {
|
1321
|
+
pendingActivation: BN;
|
1322
|
+
activeAmount: BN;
|
1323
|
+
pendingDeactivation: BN;
|
1324
|
+
deactivatedAmount: BN;
|
1325
|
+
};
|
1326
|
+
rewardTokensToDistribute: BN;
|
1327
|
+
rewardTokensDistributed: BN;
|
1328
|
+
tokensToDistribute: BN;
|
1329
|
+
tokensDistributed: BN;
|
1330
|
+
nftMint: PublicKey;
|
1219
1331
|
voltagePoints: BN;
|
1220
1332
|
stats: {
|
1221
1333
|
volumeUsd: BN;
|
@@ -1358,7 +1470,7 @@ export declare class PerpetualsClient {
|
|
1358
1470
|
reservedAmount: BN;
|
1359
1471
|
minReserveUsd: BN;
|
1360
1472
|
limitPriceBufferBps: BN;
|
1361
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
1473
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
1362
1474
|
owner: PublicKey;
|
1363
1475
|
stakeStats: {
|
1364
1476
|
pendingActivation: BN;
|
@@ -1505,8 +1617,36 @@ export declare class PerpetualsClient {
|
|
1505
1617
|
collateralDecimals: number;
|
1506
1618
|
refererTradingAccount: PublicKey;
|
1507
1619
|
refererBoosterAccount: PublicKey;
|
1508
|
-
nftMint: PublicKey;
|
1509
1620
|
level: number;
|
1621
|
+
withdrawStakeCount: number;
|
1622
|
+
withdrawStake: unknown;
|
1623
|
+
activeStakeAmount: BN;
|
1624
|
+
updateTimestamp: BN;
|
1625
|
+
tradeTimestamp: BN;
|
1626
|
+
tradeCounter: BN;
|
1627
|
+
rewardTokens: BN;
|
1628
|
+
tokenMint: PublicKey;
|
1629
|
+
tokenVaultTokenAccount: PublicKey;
|
1630
|
+
tokenPermissions: {
|
1631
|
+
allowDeposits: boolean;
|
1632
|
+
allowWithdrawal: boolean;
|
1633
|
+
allowRewardWithdrawal: boolean;
|
1634
|
+
};
|
1635
|
+
withdrawTimeLimit: BN;
|
1636
|
+
withdrawInstantFee: BN;
|
1637
|
+
withdrawInstantFeeEarned: BN;
|
1638
|
+
stakeLevel: BN[];
|
1639
|
+
tokensStaked: {
|
1640
|
+
pendingActivation: BN;
|
1641
|
+
activeAmount: BN;
|
1642
|
+
pendingDeactivation: BN;
|
1643
|
+
deactivatedAmount: BN;
|
1644
|
+
};
|
1645
|
+
rewardTokensToDistribute: BN;
|
1646
|
+
rewardTokensDistributed: BN;
|
1647
|
+
tokensToDistribute: BN;
|
1648
|
+
tokensDistributed: BN;
|
1649
|
+
nftMint: PublicKey;
|
1510
1650
|
voltagePoints: BN;
|
1511
1651
|
stats: {
|
1512
1652
|
volumeUsd: BN;
|
@@ -1646,7 +1786,7 @@ export declare class PerpetualsClient {
|
|
1646
1786
|
reservedAmount: BN;
|
1647
1787
|
minReserveUsd: BN;
|
1648
1788
|
limitPriceBufferBps: BN;
|
1649
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
1789
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
1650
1790
|
owner: PublicKey;
|
1651
1791
|
stakeStats: {
|
1652
1792
|
pendingActivation: BN;
|
@@ -1793,8 +1933,36 @@ export declare class PerpetualsClient {
|
|
1793
1933
|
collateralDecimals: number;
|
1794
1934
|
refererTradingAccount: PublicKey;
|
1795
1935
|
refererBoosterAccount: PublicKey;
|
1796
|
-
nftMint: PublicKey;
|
1797
1936
|
level: number;
|
1937
|
+
withdrawStakeCount: number;
|
1938
|
+
withdrawStake: unknown;
|
1939
|
+
activeStakeAmount: BN;
|
1940
|
+
updateTimestamp: BN;
|
1941
|
+
tradeTimestamp: BN;
|
1942
|
+
tradeCounter: BN;
|
1943
|
+
rewardTokens: BN;
|
1944
|
+
tokenMint: PublicKey;
|
1945
|
+
tokenVaultTokenAccount: PublicKey;
|
1946
|
+
tokenPermissions: {
|
1947
|
+
allowDeposits: boolean;
|
1948
|
+
allowWithdrawal: boolean;
|
1949
|
+
allowRewardWithdrawal: boolean;
|
1950
|
+
};
|
1951
|
+
withdrawTimeLimit: BN;
|
1952
|
+
withdrawInstantFee: BN;
|
1953
|
+
withdrawInstantFeeEarned: BN;
|
1954
|
+
stakeLevel: BN[];
|
1955
|
+
tokensStaked: {
|
1956
|
+
pendingActivation: BN;
|
1957
|
+
activeAmount: BN;
|
1958
|
+
pendingDeactivation: BN;
|
1959
|
+
deactivatedAmount: BN;
|
1960
|
+
};
|
1961
|
+
rewardTokensToDistribute: BN;
|
1962
|
+
rewardTokensDistributed: BN;
|
1963
|
+
tokensToDistribute: BN;
|
1964
|
+
tokensDistributed: BN;
|
1965
|
+
nftMint: PublicKey;
|
1798
1966
|
voltagePoints: BN;
|
1799
1967
|
stats: {
|
1800
1968
|
volumeUsd: BN;
|
@@ -1934,7 +2102,7 @@ export declare class PerpetualsClient {
|
|
1934
2102
|
reservedAmount: BN;
|
1935
2103
|
minReserveUsd: BN;
|
1936
2104
|
limitPriceBufferBps: BN;
|
1937
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
2105
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
1938
2106
|
owner: PublicKey;
|
1939
2107
|
stakeStats: {
|
1940
2108
|
pendingActivation: BN;
|
@@ -2081,8 +2249,36 @@ export declare class PerpetualsClient {
|
|
2081
2249
|
collateralDecimals: number;
|
2082
2250
|
refererTradingAccount: PublicKey;
|
2083
2251
|
refererBoosterAccount: PublicKey;
|
2084
|
-
nftMint: PublicKey;
|
2085
2252
|
level: number;
|
2253
|
+
withdrawStakeCount: number;
|
2254
|
+
withdrawStake: unknown;
|
2255
|
+
activeStakeAmount: BN;
|
2256
|
+
updateTimestamp: BN;
|
2257
|
+
tradeTimestamp: BN;
|
2258
|
+
tradeCounter: BN;
|
2259
|
+
rewardTokens: BN;
|
2260
|
+
tokenMint: PublicKey;
|
2261
|
+
tokenVaultTokenAccount: PublicKey;
|
2262
|
+
tokenPermissions: {
|
2263
|
+
allowDeposits: boolean;
|
2264
|
+
allowWithdrawal: boolean;
|
2265
|
+
allowRewardWithdrawal: boolean;
|
2266
|
+
};
|
2267
|
+
withdrawTimeLimit: BN;
|
2268
|
+
withdrawInstantFee: BN;
|
2269
|
+
withdrawInstantFeeEarned: BN;
|
2270
|
+
stakeLevel: BN[];
|
2271
|
+
tokensStaked: {
|
2272
|
+
pendingActivation: BN;
|
2273
|
+
activeAmount: BN;
|
2274
|
+
pendingDeactivation: BN;
|
2275
|
+
deactivatedAmount: BN;
|
2276
|
+
};
|
2277
|
+
rewardTokensToDistribute: BN;
|
2278
|
+
rewardTokensDistributed: BN;
|
2279
|
+
tokensToDistribute: BN;
|
2280
|
+
tokensDistributed: BN;
|
2281
|
+
nftMint: PublicKey;
|
2086
2282
|
voltagePoints: BN;
|
2087
2283
|
stats: {
|
2088
2284
|
volumeUsd: BN;
|
@@ -2222,7 +2418,7 @@ export declare class PerpetualsClient {
|
|
2222
2418
|
reservedAmount: BN;
|
2223
2419
|
minReserveUsd: BN;
|
2224
2420
|
limitPriceBufferBps: BN;
|
2225
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
2421
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
2226
2422
|
owner: PublicKey;
|
2227
2423
|
stakeStats: {
|
2228
2424
|
pendingActivation: BN;
|
@@ -2369,8 +2565,36 @@ export declare class PerpetualsClient {
|
|
2369
2565
|
collateralDecimals: number;
|
2370
2566
|
refererTradingAccount: PublicKey;
|
2371
2567
|
refererBoosterAccount: PublicKey;
|
2372
|
-
nftMint: PublicKey;
|
2373
2568
|
level: number;
|
2569
|
+
withdrawStakeCount: number;
|
2570
|
+
withdrawStake: unknown;
|
2571
|
+
activeStakeAmount: BN;
|
2572
|
+
updateTimestamp: BN;
|
2573
|
+
tradeTimestamp: BN;
|
2574
|
+
tradeCounter: BN;
|
2575
|
+
rewardTokens: BN;
|
2576
|
+
tokenMint: PublicKey;
|
2577
|
+
tokenVaultTokenAccount: PublicKey;
|
2578
|
+
tokenPermissions: {
|
2579
|
+
allowDeposits: boolean;
|
2580
|
+
allowWithdrawal: boolean;
|
2581
|
+
allowRewardWithdrawal: boolean;
|
2582
|
+
};
|
2583
|
+
withdrawTimeLimit: BN;
|
2584
|
+
withdrawInstantFee: BN;
|
2585
|
+
withdrawInstantFeeEarned: BN;
|
2586
|
+
stakeLevel: BN[];
|
2587
|
+
tokensStaked: {
|
2588
|
+
pendingActivation: BN;
|
2589
|
+
activeAmount: BN;
|
2590
|
+
pendingDeactivation: BN;
|
2591
|
+
deactivatedAmount: BN;
|
2592
|
+
};
|
2593
|
+
rewardTokensToDistribute: BN;
|
2594
|
+
rewardTokensDistributed: BN;
|
2595
|
+
tokensToDistribute: BN;
|
2596
|
+
tokensDistributed: BN;
|
2597
|
+
nftMint: PublicKey;
|
2374
2598
|
voltagePoints: BN;
|
2375
2599
|
stats: {
|
2376
2600
|
volumeUsd: BN;
|
@@ -2560,7 +2784,7 @@ export declare class PerpetualsClient {
|
|
2560
2784
|
reservedAmount: BN;
|
2561
2785
|
minReserveUsd: BN;
|
2562
2786
|
limitPriceBufferBps: BN;
|
2563
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
2787
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
2564
2788
|
owner: PublicKey;
|
2565
2789
|
stakeStats: {
|
2566
2790
|
pendingActivation: BN;
|
@@ -2707,8 +2931,36 @@ export declare class PerpetualsClient {
|
|
2707
2931
|
collateralDecimals: number;
|
2708
2932
|
refererTradingAccount: PublicKey;
|
2709
2933
|
refererBoosterAccount: PublicKey;
|
2710
|
-
nftMint: PublicKey;
|
2711
2934
|
level: number;
|
2935
|
+
withdrawStakeCount: number;
|
2936
|
+
withdrawStake: unknown;
|
2937
|
+
activeStakeAmount: BN;
|
2938
|
+
updateTimestamp: BN;
|
2939
|
+
tradeTimestamp: BN;
|
2940
|
+
tradeCounter: BN;
|
2941
|
+
rewardTokens: BN;
|
2942
|
+
tokenMint: PublicKey;
|
2943
|
+
tokenVaultTokenAccount: PublicKey;
|
2944
|
+
tokenPermissions: {
|
2945
|
+
allowDeposits: boolean;
|
2946
|
+
allowWithdrawal: boolean;
|
2947
|
+
allowRewardWithdrawal: boolean;
|
2948
|
+
};
|
2949
|
+
withdrawTimeLimit: BN;
|
2950
|
+
withdrawInstantFee: BN;
|
2951
|
+
withdrawInstantFeeEarned: BN;
|
2952
|
+
stakeLevel: BN[];
|
2953
|
+
tokensStaked: {
|
2954
|
+
pendingActivation: BN;
|
2955
|
+
activeAmount: BN;
|
2956
|
+
pendingDeactivation: BN;
|
2957
|
+
deactivatedAmount: BN;
|
2958
|
+
};
|
2959
|
+
rewardTokensToDistribute: BN;
|
2960
|
+
rewardTokensDistributed: BN;
|
2961
|
+
tokensToDistribute: BN;
|
2962
|
+
tokensDistributed: BN;
|
2963
|
+
nftMint: PublicKey;
|
2712
2964
|
voltagePoints: BN;
|
2713
2965
|
stats: {
|
2714
2966
|
volumeUsd: BN;
|
@@ -2848,7 +3100,7 @@ export declare class PerpetualsClient {
|
|
2848
3100
|
reservedAmount: BN;
|
2849
3101
|
minReserveUsd: BN;
|
2850
3102
|
limitPriceBufferBps: BN;
|
2851
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
3103
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
2852
3104
|
owner: PublicKey;
|
2853
3105
|
stakeStats: {
|
2854
3106
|
pendingActivation: BN;
|
@@ -2995,8 +3247,36 @@ export declare class PerpetualsClient {
|
|
2995
3247
|
collateralDecimals: number;
|
2996
3248
|
refererTradingAccount: PublicKey;
|
2997
3249
|
refererBoosterAccount: PublicKey;
|
2998
|
-
nftMint: PublicKey;
|
2999
3250
|
level: number;
|
3251
|
+
withdrawStakeCount: number;
|
3252
|
+
withdrawStake: unknown;
|
3253
|
+
activeStakeAmount: BN;
|
3254
|
+
updateTimestamp: BN;
|
3255
|
+
tradeTimestamp: BN;
|
3256
|
+
tradeCounter: BN;
|
3257
|
+
rewardTokens: BN;
|
3258
|
+
tokenMint: PublicKey;
|
3259
|
+
tokenVaultTokenAccount: PublicKey;
|
3260
|
+
tokenPermissions: {
|
3261
|
+
allowDeposits: boolean;
|
3262
|
+
allowWithdrawal: boolean;
|
3263
|
+
allowRewardWithdrawal: boolean;
|
3264
|
+
};
|
3265
|
+
withdrawTimeLimit: BN;
|
3266
|
+
withdrawInstantFee: BN;
|
3267
|
+
withdrawInstantFeeEarned: BN;
|
3268
|
+
stakeLevel: BN[];
|
3269
|
+
tokensStaked: {
|
3270
|
+
pendingActivation: BN;
|
3271
|
+
activeAmount: BN;
|
3272
|
+
pendingDeactivation: BN;
|
3273
|
+
deactivatedAmount: BN;
|
3274
|
+
};
|
3275
|
+
rewardTokensToDistribute: BN;
|
3276
|
+
rewardTokensDistributed: BN;
|
3277
|
+
tokensToDistribute: BN;
|
3278
|
+
tokensDistributed: BN;
|
3279
|
+
nftMint: PublicKey;
|
3000
3280
|
voltagePoints: BN;
|
3001
3281
|
stats: {
|
3002
3282
|
volumeUsd: BN;
|
@@ -3136,7 +3416,7 @@ export declare class PerpetualsClient {
|
|
3136
3416
|
reservedAmount: BN;
|
3137
3417
|
minReserveUsd: BN;
|
3138
3418
|
limitPriceBufferBps: BN;
|
3139
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
3419
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
3140
3420
|
owner: PublicKey;
|
3141
3421
|
stakeStats: {
|
3142
3422
|
pendingActivation: BN;
|
@@ -3283,8 +3563,36 @@ export declare class PerpetualsClient {
|
|
3283
3563
|
collateralDecimals: number;
|
3284
3564
|
refererTradingAccount: PublicKey;
|
3285
3565
|
refererBoosterAccount: PublicKey;
|
3286
|
-
nftMint: PublicKey;
|
3287
3566
|
level: number;
|
3567
|
+
withdrawStakeCount: number;
|
3568
|
+
withdrawStake: unknown;
|
3569
|
+
activeStakeAmount: BN;
|
3570
|
+
updateTimestamp: BN;
|
3571
|
+
tradeTimestamp: BN;
|
3572
|
+
tradeCounter: BN;
|
3573
|
+
rewardTokens: BN;
|
3574
|
+
tokenMint: PublicKey;
|
3575
|
+
tokenVaultTokenAccount: PublicKey;
|
3576
|
+
tokenPermissions: {
|
3577
|
+
allowDeposits: boolean;
|
3578
|
+
allowWithdrawal: boolean;
|
3579
|
+
allowRewardWithdrawal: boolean;
|
3580
|
+
};
|
3581
|
+
withdrawTimeLimit: BN;
|
3582
|
+
withdrawInstantFee: BN;
|
3583
|
+
withdrawInstantFeeEarned: BN;
|
3584
|
+
stakeLevel: BN[];
|
3585
|
+
tokensStaked: {
|
3586
|
+
pendingActivation: BN;
|
3587
|
+
activeAmount: BN;
|
3588
|
+
pendingDeactivation: BN;
|
3589
|
+
deactivatedAmount: BN;
|
3590
|
+
};
|
3591
|
+
rewardTokensToDistribute: BN;
|
3592
|
+
rewardTokensDistributed: BN;
|
3593
|
+
tokensToDistribute: BN;
|
3594
|
+
tokensDistributed: BN;
|
3595
|
+
nftMint: PublicKey;
|
3288
3596
|
voltagePoints: BN;
|
3289
3597
|
stats: {
|
3290
3598
|
volumeUsd: BN;
|
@@ -3424,7 +3732,7 @@ export declare class PerpetualsClient {
|
|
3424
3732
|
reservedAmount: BN;
|
3425
3733
|
minReserveUsd: BN;
|
3426
3734
|
limitPriceBufferBps: BN;
|
3427
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
3735
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
3428
3736
|
owner: PublicKey;
|
3429
3737
|
stakeStats: {
|
3430
3738
|
pendingActivation: BN;
|
@@ -3571,8 +3879,36 @@ export declare class PerpetualsClient {
|
|
3571
3879
|
collateralDecimals: number;
|
3572
3880
|
refererTradingAccount: PublicKey;
|
3573
3881
|
refererBoosterAccount: PublicKey;
|
3574
|
-
nftMint: PublicKey;
|
3575
3882
|
level: number;
|
3883
|
+
withdrawStakeCount: number;
|
3884
|
+
withdrawStake: unknown;
|
3885
|
+
activeStakeAmount: BN;
|
3886
|
+
updateTimestamp: BN;
|
3887
|
+
tradeTimestamp: BN;
|
3888
|
+
tradeCounter: BN;
|
3889
|
+
rewardTokens: BN;
|
3890
|
+
tokenMint: PublicKey;
|
3891
|
+
tokenVaultTokenAccount: PublicKey;
|
3892
|
+
tokenPermissions: {
|
3893
|
+
allowDeposits: boolean;
|
3894
|
+
allowWithdrawal: boolean;
|
3895
|
+
allowRewardWithdrawal: boolean;
|
3896
|
+
};
|
3897
|
+
withdrawTimeLimit: BN;
|
3898
|
+
withdrawInstantFee: BN;
|
3899
|
+
withdrawInstantFeeEarned: BN;
|
3900
|
+
stakeLevel: BN[];
|
3901
|
+
tokensStaked: {
|
3902
|
+
pendingActivation: BN;
|
3903
|
+
activeAmount: BN;
|
3904
|
+
pendingDeactivation: BN;
|
3905
|
+
deactivatedAmount: BN;
|
3906
|
+
};
|
3907
|
+
rewardTokensToDistribute: BN;
|
3908
|
+
rewardTokensDistributed: BN;
|
3909
|
+
tokensToDistribute: BN;
|
3910
|
+
tokensDistributed: BN;
|
3911
|
+
nftMint: PublicKey;
|
3576
3912
|
voltagePoints: BN;
|
3577
3913
|
stats: {
|
3578
3914
|
volumeUsd: BN;
|
@@ -3712,7 +4048,7 @@ export declare class PerpetualsClient {
|
|
3712
4048
|
reservedAmount: BN;
|
3713
4049
|
minReserveUsd: BN;
|
3714
4050
|
limitPriceBufferBps: BN;
|
3715
|
-
padding: number[] | BN[] | number[] | BN[] | BN[];
|
4051
|
+
padding: number[] | BN[] | number[] | BN[] | BN[] | BN[] | BN[];
|
3716
4052
|
owner: PublicKey;
|
3717
4053
|
stakeStats: {
|
3718
4054
|
pendingActivation: BN;
|
@@ -3859,8 +4195,36 @@ export declare class PerpetualsClient {
|
|
3859
4195
|
collateralDecimals: number;
|
3860
4196
|
refererTradingAccount: PublicKey;
|
3861
4197
|
refererBoosterAccount: PublicKey;
|
3862
|
-
nftMint: PublicKey;
|
3863
4198
|
level: number;
|
4199
|
+
withdrawStakeCount: number;
|
4200
|
+
withdrawStake: unknown;
|
4201
|
+
activeStakeAmount: BN;
|
4202
|
+
updateTimestamp: BN;
|
4203
|
+
tradeTimestamp: BN;
|
4204
|
+
tradeCounter: BN;
|
4205
|
+
rewardTokens: BN;
|
4206
|
+
tokenMint: PublicKey;
|
4207
|
+
tokenVaultTokenAccount: PublicKey;
|
4208
|
+
tokenPermissions: {
|
4209
|
+
allowDeposits: boolean;
|
4210
|
+
allowWithdrawal: boolean;
|
4211
|
+
allowRewardWithdrawal: boolean;
|
4212
|
+
};
|
4213
|
+
withdrawTimeLimit: BN;
|
4214
|
+
withdrawInstantFee: BN;
|
4215
|
+
withdrawInstantFeeEarned: BN;
|
4216
|
+
stakeLevel: BN[];
|
4217
|
+
tokensStaked: {
|
4218
|
+
pendingActivation: BN;
|
4219
|
+
activeAmount: BN;
|
4220
|
+
pendingDeactivation: BN;
|
4221
|
+
deactivatedAmount: BN;
|
4222
|
+
};
|
4223
|
+
rewardTokensToDistribute: BN;
|
4224
|
+
rewardTokensDistributed: BN;
|
4225
|
+
tokensToDistribute: BN;
|
4226
|
+
tokensDistributed: BN;
|
4227
|
+
nftMint: PublicKey;
|
3864
4228
|
voltagePoints: BN;
|
3865
4229
|
stats: {
|
3866
4230
|
volumeUsd: BN;
|
@@ -4038,7 +4402,7 @@ export declare class PerpetualsClient {
|
|
4038
4402
|
instructions: TransactionInstruction[];
|
4039
4403
|
additionalSigners: Signer[];
|
4040
4404
|
}>;
|
4041
|
-
addReferral: (
|
4405
|
+
addReferral: (tokenStakeAccount: PublicKey, nftReferralAccount: PublicKey) => Promise<{
|
4042
4406
|
instructions: TransactionInstruction[];
|
4043
4407
|
additionalSigners: Signer[];
|
4044
4408
|
}>;
|
@@ -4085,6 +4449,46 @@ export declare class PerpetualsClient {
|
|
4085
4449
|
instructions: TransactionInstruction[];
|
4086
4450
|
additionalSigners: Signer[];
|
4087
4451
|
}>;
|
4452
|
+
initTokenVault: (token_permissions: TokenPermissions, tokens_to_distribute: BN, withdrawTimeLimit: BN, withdrawInstantFee: BN, stakeLevel: BN[], poolConfig: PoolConfig) => Promise<{
|
4453
|
+
instructions: TransactionInstruction[];
|
4454
|
+
additionalSigners: Signer[];
|
4455
|
+
}>;
|
4456
|
+
setTokenVaultConfig: (token_permissions: TokenPermissions, withdrawTimeLimit: BN, withdrawInstantFee: BN, stakeLevel: BN[], poolConfig: PoolConfig) => Promise<{
|
4457
|
+
instructions: TransactionInstruction[];
|
4458
|
+
additionalSigners: Signer[];
|
4459
|
+
}>;
|
4460
|
+
withdrawInstantFee: (poolConfig: PoolConfig) => Promise<{
|
4461
|
+
instructions: TransactionInstruction[];
|
4462
|
+
additionalSigners: Signer[];
|
4463
|
+
}>;
|
4464
|
+
burnAndClaim: (owner: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4465
|
+
instructions: TransactionInstruction[];
|
4466
|
+
additionalSigners: Signer[];
|
4467
|
+
}>;
|
4468
|
+
burnAndStake: (owner: PublicKey, feePayer: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4469
|
+
instructions: TransactionInstruction[];
|
4470
|
+
additionalSigners: Signer[];
|
4471
|
+
}>;
|
4472
|
+
depositTokenStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4473
|
+
instructions: TransactionInstruction[];
|
4474
|
+
additionalSigners: Signer[];
|
4475
|
+
}>;
|
4476
|
+
unstakeTokenRequest: (owner: PublicKey, unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4477
|
+
instructions: TransactionInstruction[];
|
4478
|
+
additionalSigners: Signer[];
|
4479
|
+
}>;
|
4480
|
+
unstakeTokenInstant: (owner: PublicKey, unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4481
|
+
instructions: TransactionInstruction[];
|
4482
|
+
additionalSigners: Signer[];
|
4483
|
+
}>;
|
4484
|
+
withdrawToken: (owner: PublicKey, withdrawStakeId: number, poolConfig: PoolConfig) => Promise<{
|
4485
|
+
instructions: TransactionInstruction[];
|
4486
|
+
additionalSigners: Signer[];
|
4487
|
+
}>;
|
4488
|
+
cancelUnstakeRequest: (owner: PublicKey, withdrawStakeId: number, poolConfig: PoolConfig) => Promise<{
|
4489
|
+
instructions: TransactionInstruction[];
|
4490
|
+
additionalSigners: Signer[];
|
4491
|
+
}>;
|
4088
4492
|
initRewardVault: (nftCount: BN, rewardSymbol: string, collectionMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4089
4493
|
instructions: TransactionInstruction[];
|
4090
4494
|
additionalSigners: Signer[];
|