flash-sdk 2.10.3 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/PerpetualsClient.d.ts +129 -16
- package/dist/PerpetualsClient.js +496 -116
- package/dist/PoolAccount.d.ts +8 -3
- package/dist/PoolConfig.d.ts +3 -1
- package/dist/PoolConfig.js +4 -2
- package/dist/PoolConfig.json +20 -0
- package/dist/idl/fbnft_rewards.d.ts +5 -0
- package/dist/idl/fbnft_rewards.js +5 -0
- package/dist/idl/perpetuals.d.ts +707 -40
- package/dist/idl/perpetuals.js +707 -40
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -264,7 +264,7 @@ export declare class PerpetualsClient {
|
|
264
264
|
name: string;
|
265
265
|
flpMint: PublicKey;
|
266
266
|
oracleAuthority: PublicKey;
|
267
|
-
|
267
|
+
stakedFlpVault: PublicKey;
|
268
268
|
rewardCustody: PublicKey;
|
269
269
|
custodies: PublicKey[];
|
270
270
|
ratios: {
|
@@ -283,10 +283,21 @@ export declare class PerpetualsClient {
|
|
283
283
|
};
|
284
284
|
stakingFeeShareBps: BN;
|
285
285
|
flpMintBump: number;
|
286
|
-
|
286
|
+
stakedFlpVaultBump: number;
|
287
287
|
vpVolumeFactor: number;
|
288
288
|
padding: number[] | BN[] | BN[];
|
289
289
|
stakingFeeBoostBps: BN[];
|
290
|
+
sflpMint: PublicKey;
|
291
|
+
compoundingFlpVault: PublicKey;
|
292
|
+
compoundingStats: {
|
293
|
+
activeAmount: BN;
|
294
|
+
totalSupply: BN;
|
295
|
+
rewardSnapshot: BN;
|
296
|
+
feeShareBps: BN;
|
297
|
+
lastCompoundTime: BN;
|
298
|
+
};
|
299
|
+
sflpMintBump: number;
|
300
|
+
compoundingFlpVaultBump: number;
|
290
301
|
market: PublicKey;
|
291
302
|
delegate: PublicKey;
|
292
303
|
openTime: BN;
|
@@ -527,7 +538,7 @@ export declare class PerpetualsClient {
|
|
527
538
|
name: string;
|
528
539
|
flpMint: PublicKey;
|
529
540
|
oracleAuthority: PublicKey;
|
530
|
-
|
541
|
+
stakedFlpVault: PublicKey;
|
531
542
|
rewardCustody: PublicKey;
|
532
543
|
custodies: PublicKey[];
|
533
544
|
ratios: {
|
@@ -546,10 +557,21 @@ export declare class PerpetualsClient {
|
|
546
557
|
};
|
547
558
|
stakingFeeShareBps: BN;
|
548
559
|
flpMintBump: number;
|
549
|
-
|
560
|
+
stakedFlpVaultBump: number;
|
550
561
|
vpVolumeFactor: number;
|
551
562
|
padding: number[] | BN[] | BN[];
|
552
563
|
stakingFeeBoostBps: BN[];
|
564
|
+
sflpMint: PublicKey;
|
565
|
+
compoundingFlpVault: PublicKey;
|
566
|
+
compoundingStats: {
|
567
|
+
activeAmount: BN;
|
568
|
+
totalSupply: BN;
|
569
|
+
rewardSnapshot: BN;
|
570
|
+
feeShareBps: BN;
|
571
|
+
lastCompoundTime: BN;
|
572
|
+
};
|
573
|
+
sflpMintBump: number;
|
574
|
+
compoundingFlpVaultBump: number;
|
553
575
|
market: PublicKey;
|
554
576
|
delegate: PublicKey;
|
555
577
|
openTime: BN;
|
@@ -789,7 +811,7 @@ export declare class PerpetualsClient {
|
|
789
811
|
name: string;
|
790
812
|
flpMint: PublicKey;
|
791
813
|
oracleAuthority: PublicKey;
|
792
|
-
|
814
|
+
stakedFlpVault: PublicKey;
|
793
815
|
rewardCustody: PublicKey;
|
794
816
|
custodies: PublicKey[];
|
795
817
|
ratios: {
|
@@ -808,10 +830,21 @@ export declare class PerpetualsClient {
|
|
808
830
|
};
|
809
831
|
stakingFeeShareBps: BN;
|
810
832
|
flpMintBump: number;
|
811
|
-
|
833
|
+
stakedFlpVaultBump: number;
|
812
834
|
vpVolumeFactor: number;
|
813
835
|
padding: number[] | BN[] | BN[];
|
814
836
|
stakingFeeBoostBps: BN[];
|
837
|
+
sflpMint: PublicKey;
|
838
|
+
compoundingFlpVault: PublicKey;
|
839
|
+
compoundingStats: {
|
840
|
+
activeAmount: BN;
|
841
|
+
totalSupply: BN;
|
842
|
+
rewardSnapshot: BN;
|
843
|
+
feeShareBps: BN;
|
844
|
+
lastCompoundTime: BN;
|
845
|
+
};
|
846
|
+
sflpMintBump: number;
|
847
|
+
compoundingFlpVaultBump: number;
|
815
848
|
market: PublicKey;
|
816
849
|
delegate: PublicKey;
|
817
850
|
openTime: BN;
|
@@ -859,6 +892,7 @@ export declare class PerpetualsClient {
|
|
859
892
|
counter: BN;
|
860
893
|
}[]>;
|
861
894
|
getPoolLpTokenKey: (name: string) => PublicKey;
|
895
|
+
getPoolCompoundingTokenKey: (name: string) => PublicKey;
|
862
896
|
getCustodyKey: (poolName: string, tokenMint: PublicKey) => PublicKey;
|
863
897
|
getCustodyTokenAccountKey: (poolName: string, tokenMint: PublicKey) => PublicKey;
|
864
898
|
getTradingAccount: (tradingAccount: PublicKey) => Promise<{
|
@@ -1054,7 +1088,7 @@ export declare class PerpetualsClient {
|
|
1054
1088
|
name: string;
|
1055
1089
|
flpMint: PublicKey;
|
1056
1090
|
oracleAuthority: PublicKey;
|
1057
|
-
|
1091
|
+
stakedFlpVault: PublicKey;
|
1058
1092
|
rewardCustody: PublicKey;
|
1059
1093
|
custodies: PublicKey[];
|
1060
1094
|
ratios: {
|
@@ -1073,10 +1107,21 @@ export declare class PerpetualsClient {
|
|
1073
1107
|
};
|
1074
1108
|
stakingFeeShareBps: BN;
|
1075
1109
|
flpMintBump: number;
|
1076
|
-
|
1110
|
+
stakedFlpVaultBump: number;
|
1077
1111
|
vpVolumeFactor: number;
|
1078
1112
|
padding: number[] | BN[] | BN[];
|
1079
1113
|
stakingFeeBoostBps: BN[];
|
1114
|
+
sflpMint: PublicKey;
|
1115
|
+
compoundingFlpVault: PublicKey;
|
1116
|
+
compoundingStats: {
|
1117
|
+
activeAmount: BN;
|
1118
|
+
totalSupply: BN;
|
1119
|
+
rewardSnapshot: BN;
|
1120
|
+
feeShareBps: BN;
|
1121
|
+
lastCompoundTime: BN;
|
1122
|
+
};
|
1123
|
+
sflpMintBump: number;
|
1124
|
+
compoundingFlpVaultBump: number;
|
1080
1125
|
market: PublicKey;
|
1081
1126
|
delegate: PublicKey;
|
1082
1127
|
openTime: BN;
|
@@ -1318,7 +1363,7 @@ export declare class PerpetualsClient {
|
|
1318
1363
|
name: string;
|
1319
1364
|
flpMint: PublicKey;
|
1320
1365
|
oracleAuthority: PublicKey;
|
1321
|
-
|
1366
|
+
stakedFlpVault: PublicKey;
|
1322
1367
|
rewardCustody: PublicKey;
|
1323
1368
|
custodies: PublicKey[];
|
1324
1369
|
ratios: {
|
@@ -1337,10 +1382,21 @@ export declare class PerpetualsClient {
|
|
1337
1382
|
};
|
1338
1383
|
stakingFeeShareBps: BN;
|
1339
1384
|
flpMintBump: number;
|
1340
|
-
|
1385
|
+
stakedFlpVaultBump: number;
|
1341
1386
|
vpVolumeFactor: number;
|
1342
1387
|
padding: number[] | BN[] | BN[];
|
1343
1388
|
stakingFeeBoostBps: BN[];
|
1389
|
+
sflpMint: PublicKey;
|
1390
|
+
compoundingFlpVault: PublicKey;
|
1391
|
+
compoundingStats: {
|
1392
|
+
activeAmount: BN;
|
1393
|
+
totalSupply: BN;
|
1394
|
+
rewardSnapshot: BN;
|
1395
|
+
feeShareBps: BN;
|
1396
|
+
lastCompoundTime: BN;
|
1397
|
+
};
|
1398
|
+
sflpMintBump: number;
|
1399
|
+
compoundingFlpVaultBump: number;
|
1344
1400
|
market: PublicKey;
|
1345
1401
|
delegate: PublicKey;
|
1346
1402
|
openTime: BN;
|
@@ -1580,7 +1636,7 @@ export declare class PerpetualsClient {
|
|
1580
1636
|
name: string;
|
1581
1637
|
flpMint: PublicKey;
|
1582
1638
|
oracleAuthority: PublicKey;
|
1583
|
-
|
1639
|
+
stakedFlpVault: PublicKey;
|
1584
1640
|
rewardCustody: PublicKey;
|
1585
1641
|
custodies: PublicKey[];
|
1586
1642
|
ratios: {
|
@@ -1599,10 +1655,21 @@ export declare class PerpetualsClient {
|
|
1599
1655
|
};
|
1600
1656
|
stakingFeeShareBps: BN;
|
1601
1657
|
flpMintBump: number;
|
1602
|
-
|
1658
|
+
stakedFlpVaultBump: number;
|
1603
1659
|
vpVolumeFactor: number;
|
1604
1660
|
padding: number[] | BN[] | BN[];
|
1605
1661
|
stakingFeeBoostBps: BN[];
|
1662
|
+
sflpMint: PublicKey;
|
1663
|
+
compoundingFlpVault: PublicKey;
|
1664
|
+
compoundingStats: {
|
1665
|
+
activeAmount: BN;
|
1666
|
+
totalSupply: BN;
|
1667
|
+
rewardSnapshot: BN;
|
1668
|
+
feeShareBps: BN;
|
1669
|
+
lastCompoundTime: BN;
|
1670
|
+
};
|
1671
|
+
sflpMintBump: number;
|
1672
|
+
compoundingFlpVaultBump: number;
|
1606
1673
|
market: PublicKey;
|
1607
1674
|
delegate: PublicKey;
|
1608
1675
|
openTime: BN;
|
@@ -1875,7 +1942,7 @@ export declare class PerpetualsClient {
|
|
1875
1942
|
name: string;
|
1876
1943
|
flpMint: PublicKey;
|
1877
1944
|
oracleAuthority: PublicKey;
|
1878
|
-
|
1945
|
+
stakedFlpVault: PublicKey;
|
1879
1946
|
rewardCustody: PublicKey;
|
1880
1947
|
custodies: PublicKey[];
|
1881
1948
|
ratios: {
|
@@ -1894,10 +1961,21 @@ export declare class PerpetualsClient {
|
|
1894
1961
|
};
|
1895
1962
|
stakingFeeShareBps: BN;
|
1896
1963
|
flpMintBump: number;
|
1897
|
-
|
1964
|
+
stakedFlpVaultBump: number;
|
1898
1965
|
vpVolumeFactor: number;
|
1899
1966
|
padding: number[] | BN[] | BN[];
|
1900
1967
|
stakingFeeBoostBps: BN[];
|
1968
|
+
sflpMint: PublicKey;
|
1969
|
+
compoundingFlpVault: PublicKey;
|
1970
|
+
compoundingStats: {
|
1971
|
+
activeAmount: BN;
|
1972
|
+
totalSupply: BN;
|
1973
|
+
rewardSnapshot: BN;
|
1974
|
+
feeShareBps: BN;
|
1975
|
+
lastCompoundTime: BN;
|
1976
|
+
};
|
1977
|
+
sflpMintBump: number;
|
1978
|
+
compoundingFlpVaultBump: number;
|
1901
1979
|
market: PublicKey;
|
1902
1980
|
delegate: PublicKey;
|
1903
1981
|
openTime: BN;
|
@@ -2137,7 +2215,7 @@ export declare class PerpetualsClient {
|
|
2137
2215
|
name: string;
|
2138
2216
|
flpMint: PublicKey;
|
2139
2217
|
oracleAuthority: PublicKey;
|
2140
|
-
|
2218
|
+
stakedFlpVault: PublicKey;
|
2141
2219
|
rewardCustody: PublicKey;
|
2142
2220
|
custodies: PublicKey[];
|
2143
2221
|
ratios: {
|
@@ -2156,10 +2234,21 @@ export declare class PerpetualsClient {
|
|
2156
2234
|
};
|
2157
2235
|
stakingFeeShareBps: BN;
|
2158
2236
|
flpMintBump: number;
|
2159
|
-
|
2237
|
+
stakedFlpVaultBump: number;
|
2160
2238
|
vpVolumeFactor: number;
|
2161
2239
|
padding: number[] | BN[] | BN[];
|
2162
2240
|
stakingFeeBoostBps: BN[];
|
2241
|
+
sflpMint: PublicKey;
|
2242
|
+
compoundingFlpVault: PublicKey;
|
2243
|
+
compoundingStats: {
|
2244
|
+
activeAmount: BN;
|
2245
|
+
totalSupply: BN;
|
2246
|
+
rewardSnapshot: BN;
|
2247
|
+
feeShareBps: BN;
|
2248
|
+
lastCompoundTime: BN;
|
2249
|
+
};
|
2250
|
+
sflpMintBump: number;
|
2251
|
+
compoundingFlpVaultBump: number;
|
2163
2252
|
market: PublicKey;
|
2164
2253
|
delegate: PublicKey;
|
2165
2254
|
openTime: BN;
|
@@ -2299,6 +2388,10 @@ export declare class PerpetualsClient {
|
|
2299
2388
|
instructions: TransactionInstruction[];
|
2300
2389
|
additionalSigners: Signer[];
|
2301
2390
|
}>;
|
2391
|
+
swapFeeInternal: (rewardTokenSymbol: string, swapTokenSymbol: string, poolConfig: PoolConfig) => Promise<{
|
2392
|
+
instructions: TransactionInstruction[];
|
2393
|
+
additionalSigners: Signer[];
|
2394
|
+
}>;
|
2302
2395
|
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean) => Promise<{
|
2303
2396
|
instructions: TransactionInstruction[];
|
2304
2397
|
additionalSigners: Signer[];
|
@@ -2351,6 +2444,10 @@ export declare class PerpetualsClient {
|
|
2351
2444
|
instructions: TransactionInstruction[];
|
2352
2445
|
additionalSigners: Signer[];
|
2353
2446
|
}>;
|
2447
|
+
initCompounding: (feeShareBps: BN, metadataTitle: string, metadataSymbol: string, metadataUri: string, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
2448
|
+
instructions: TransactionInstruction[];
|
2449
|
+
additionalSigners: Signer[];
|
2450
|
+
}>;
|
2354
2451
|
depositStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
2355
2452
|
instructions: TransactionInstruction[];
|
2356
2453
|
additionalSigners: Signer[];
|
@@ -2415,6 +2512,22 @@ export declare class PerpetualsClient {
|
|
2415
2512
|
instructions: TransactionInstruction[];
|
2416
2513
|
additionalSigners: Signer[];
|
2417
2514
|
}>;
|
2515
|
+
addCompoundingLiquidity: (amountIn: BN, minSflpAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2516
|
+
instructions: TransactionInstruction[];
|
2517
|
+
additionalSigners: Signer[];
|
2518
|
+
}>;
|
2519
|
+
removeCompoundingLiquidity: (sflpAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2520
|
+
instructions: TransactionInstruction[];
|
2521
|
+
additionalSigners: Signer[];
|
2522
|
+
}>;
|
2523
|
+
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2524
|
+
instructions: TransactionInstruction[];
|
2525
|
+
additionalSigners: Signer[];
|
2526
|
+
}>;
|
2527
|
+
compoundingFee: (rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2528
|
+
instructions: TransactionInstruction[];
|
2529
|
+
additionalSigners: Signer[];
|
2530
|
+
}>;
|
2418
2531
|
initRewardDistribution: (rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
2419
2532
|
instructions: TransactionInstruction[];
|
2420
2533
|
additionalSigners: Signer[];
|