flash-sdk 2.11.12 → 2.12.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 +76 -76
- package/dist/PerpetualsClient.js +153 -152
- package/dist/PoolAccount.d.ts +8 -8
- package/dist/PoolConfig.d.ts +5 -5
- package/dist/PoolConfig.js +6 -6
- package/dist/PoolConfig.json +40 -40
- package/dist/idl/perp_composability.d.ts +1 -1
- package/dist/idl/perp_composability.js +1 -1
- package/dist/idl/perpetuals.d.ts +48 -62
- package/dist/idl/perpetuals.js +48 -62
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -114,7 +114,7 @@ export declare class PerpetualsClient {
|
|
114
114
|
allowCollateralWithdrawal: boolean;
|
115
115
|
allowSizeChange: boolean;
|
116
116
|
allowLiquidation: boolean;
|
117
|
-
|
117
|
+
allowLpStaking: boolean;
|
118
118
|
allowFeeDistribution: boolean;
|
119
119
|
allowUngatedTrading: boolean;
|
120
120
|
allowFeeDiscounts: boolean;
|
@@ -262,9 +262,9 @@ export declare class PerpetualsClient {
|
|
262
262
|
tradeLimit: number;
|
263
263
|
rebateLimitUsd: number;
|
264
264
|
name: string;
|
265
|
-
|
265
|
+
lpMint: PublicKey;
|
266
266
|
oracleAuthority: PublicKey;
|
267
|
-
|
267
|
+
stakedLpVault: PublicKey;
|
268
268
|
rewardCustody: PublicKey;
|
269
269
|
custodies: PublicKey[];
|
270
270
|
ratios: {
|
@@ -282,13 +282,13 @@ export declare class PerpetualsClient {
|
|
282
282
|
deactivatedAmount: BN;
|
283
283
|
};
|
284
284
|
stakingFeeShareBps: BN;
|
285
|
-
|
286
|
-
|
285
|
+
lpMintBump: number;
|
286
|
+
stakedLpVaultBump: number;
|
287
287
|
vpVolumeFactor: number;
|
288
288
|
padding: number[] | BN[] | BN[];
|
289
289
|
stakingFeeBoostBps: BN[];
|
290
|
-
|
291
|
-
|
290
|
+
compoundingMint: PublicKey;
|
291
|
+
compoundingLpVault: PublicKey;
|
292
292
|
compoundingStats: {
|
293
293
|
activeAmount: BN;
|
294
294
|
totalSupply: BN;
|
@@ -296,8 +296,8 @@ export declare class PerpetualsClient {
|
|
296
296
|
feeShareBps: BN;
|
297
297
|
lastCompoundTime: BN;
|
298
298
|
};
|
299
|
-
|
300
|
-
|
299
|
+
compoundingMintBump: number;
|
300
|
+
compoundingLpVaultBump: number;
|
301
301
|
market: PublicKey;
|
302
302
|
delegate: PublicKey;
|
303
303
|
openTime: BN;
|
@@ -388,7 +388,7 @@ export declare class PerpetualsClient {
|
|
388
388
|
allowCollateralWithdrawal: boolean;
|
389
389
|
allowSizeChange: boolean;
|
390
390
|
allowLiquidation: boolean;
|
391
|
-
|
391
|
+
allowLpStaking: boolean;
|
392
392
|
allowFeeDistribution: boolean;
|
393
393
|
allowUngatedTrading: boolean;
|
394
394
|
allowFeeDiscounts: boolean;
|
@@ -536,9 +536,9 @@ export declare class PerpetualsClient {
|
|
536
536
|
tradeLimit: number;
|
537
537
|
rebateLimitUsd: number;
|
538
538
|
name: string;
|
539
|
-
|
539
|
+
lpMint: PublicKey;
|
540
540
|
oracleAuthority: PublicKey;
|
541
|
-
|
541
|
+
stakedLpVault: PublicKey;
|
542
542
|
rewardCustody: PublicKey;
|
543
543
|
custodies: PublicKey[];
|
544
544
|
ratios: {
|
@@ -556,13 +556,13 @@ export declare class PerpetualsClient {
|
|
556
556
|
deactivatedAmount: BN;
|
557
557
|
};
|
558
558
|
stakingFeeShareBps: BN;
|
559
|
-
|
560
|
-
|
559
|
+
lpMintBump: number;
|
560
|
+
stakedLpVaultBump: number;
|
561
561
|
vpVolumeFactor: number;
|
562
562
|
padding: number[] | BN[] | BN[];
|
563
563
|
stakingFeeBoostBps: BN[];
|
564
|
-
|
565
|
-
|
564
|
+
compoundingMint: PublicKey;
|
565
|
+
compoundingLpVault: PublicKey;
|
566
566
|
compoundingStats: {
|
567
567
|
activeAmount: BN;
|
568
568
|
totalSupply: BN;
|
@@ -570,8 +570,8 @@ export declare class PerpetualsClient {
|
|
570
570
|
feeShareBps: BN;
|
571
571
|
lastCompoundTime: BN;
|
572
572
|
};
|
573
|
-
|
574
|
-
|
573
|
+
compoundingMintBump: number;
|
574
|
+
compoundingLpVaultBump: number;
|
575
575
|
market: PublicKey;
|
576
576
|
delegate: PublicKey;
|
577
577
|
openTime: BN;
|
@@ -661,7 +661,7 @@ export declare class PerpetualsClient {
|
|
661
661
|
allowCollateralWithdrawal: boolean;
|
662
662
|
allowSizeChange: boolean;
|
663
663
|
allowLiquidation: boolean;
|
664
|
-
|
664
|
+
allowLpStaking: boolean;
|
665
665
|
allowFeeDistribution: boolean;
|
666
666
|
allowUngatedTrading: boolean;
|
667
667
|
allowFeeDiscounts: boolean;
|
@@ -809,9 +809,9 @@ export declare class PerpetualsClient {
|
|
809
809
|
tradeLimit: number;
|
810
810
|
rebateLimitUsd: number;
|
811
811
|
name: string;
|
812
|
-
|
812
|
+
lpMint: PublicKey;
|
813
813
|
oracleAuthority: PublicKey;
|
814
|
-
|
814
|
+
stakedLpVault: PublicKey;
|
815
815
|
rewardCustody: PublicKey;
|
816
816
|
custodies: PublicKey[];
|
817
817
|
ratios: {
|
@@ -829,13 +829,13 @@ export declare class PerpetualsClient {
|
|
829
829
|
deactivatedAmount: BN;
|
830
830
|
};
|
831
831
|
stakingFeeShareBps: BN;
|
832
|
-
|
833
|
-
|
832
|
+
lpMintBump: number;
|
833
|
+
stakedLpVaultBump: number;
|
834
834
|
vpVolumeFactor: number;
|
835
835
|
padding: number[] | BN[] | BN[];
|
836
836
|
stakingFeeBoostBps: BN[];
|
837
|
-
|
838
|
-
|
837
|
+
compoundingMint: PublicKey;
|
838
|
+
compoundingLpVault: PublicKey;
|
839
839
|
compoundingStats: {
|
840
840
|
activeAmount: BN;
|
841
841
|
totalSupply: BN;
|
@@ -843,8 +843,8 @@ export declare class PerpetualsClient {
|
|
843
843
|
feeShareBps: BN;
|
844
844
|
lastCompoundTime: BN;
|
845
845
|
};
|
846
|
-
|
847
|
-
|
846
|
+
compoundingMintBump: number;
|
847
|
+
compoundingLpVaultBump: number;
|
848
848
|
market: PublicKey;
|
849
849
|
delegate: PublicKey;
|
850
850
|
openTime: BN;
|
@@ -938,7 +938,7 @@ export declare class PerpetualsClient {
|
|
938
938
|
allowCollateralWithdrawal: boolean;
|
939
939
|
allowSizeChange: boolean;
|
940
940
|
allowLiquidation: boolean;
|
941
|
-
|
941
|
+
allowLpStaking: boolean;
|
942
942
|
allowFeeDistribution: boolean;
|
943
943
|
allowUngatedTrading: boolean;
|
944
944
|
allowFeeDiscounts: boolean;
|
@@ -1086,9 +1086,9 @@ export declare class PerpetualsClient {
|
|
1086
1086
|
tradeLimit: number;
|
1087
1087
|
rebateLimitUsd: number;
|
1088
1088
|
name: string;
|
1089
|
-
|
1089
|
+
lpMint: PublicKey;
|
1090
1090
|
oracleAuthority: PublicKey;
|
1091
|
-
|
1091
|
+
stakedLpVault: PublicKey;
|
1092
1092
|
rewardCustody: PublicKey;
|
1093
1093
|
custodies: PublicKey[];
|
1094
1094
|
ratios: {
|
@@ -1106,13 +1106,13 @@ export declare class PerpetualsClient {
|
|
1106
1106
|
deactivatedAmount: BN;
|
1107
1107
|
};
|
1108
1108
|
stakingFeeShareBps: BN;
|
1109
|
-
|
1110
|
-
|
1109
|
+
lpMintBump: number;
|
1110
|
+
stakedLpVaultBump: number;
|
1111
1111
|
vpVolumeFactor: number;
|
1112
1112
|
padding: number[] | BN[] | BN[];
|
1113
1113
|
stakingFeeBoostBps: BN[];
|
1114
|
-
|
1115
|
-
|
1114
|
+
compoundingMint: PublicKey;
|
1115
|
+
compoundingLpVault: PublicKey;
|
1116
1116
|
compoundingStats: {
|
1117
1117
|
activeAmount: BN;
|
1118
1118
|
totalSupply: BN;
|
@@ -1120,8 +1120,8 @@ export declare class PerpetualsClient {
|
|
1120
1120
|
feeShareBps: BN;
|
1121
1121
|
lastCompoundTime: BN;
|
1122
1122
|
};
|
1123
|
-
|
1124
|
-
|
1123
|
+
compoundingMintBump: number;
|
1124
|
+
compoundingLpVaultBump: number;
|
1125
1125
|
market: PublicKey;
|
1126
1126
|
delegate: PublicKey;
|
1127
1127
|
openTime: BN;
|
@@ -1213,7 +1213,7 @@ export declare class PerpetualsClient {
|
|
1213
1213
|
allowCollateralWithdrawal: boolean;
|
1214
1214
|
allowSizeChange: boolean;
|
1215
1215
|
allowLiquidation: boolean;
|
1216
|
-
|
1216
|
+
allowLpStaking: boolean;
|
1217
1217
|
allowFeeDistribution: boolean;
|
1218
1218
|
allowUngatedTrading: boolean;
|
1219
1219
|
allowFeeDiscounts: boolean;
|
@@ -1361,9 +1361,9 @@ export declare class PerpetualsClient {
|
|
1361
1361
|
tradeLimit: number;
|
1362
1362
|
rebateLimitUsd: number;
|
1363
1363
|
name: string;
|
1364
|
-
|
1364
|
+
lpMint: PublicKey;
|
1365
1365
|
oracleAuthority: PublicKey;
|
1366
|
-
|
1366
|
+
stakedLpVault: PublicKey;
|
1367
1367
|
rewardCustody: PublicKey;
|
1368
1368
|
custodies: PublicKey[];
|
1369
1369
|
ratios: {
|
@@ -1381,13 +1381,13 @@ export declare class PerpetualsClient {
|
|
1381
1381
|
deactivatedAmount: BN;
|
1382
1382
|
};
|
1383
1383
|
stakingFeeShareBps: BN;
|
1384
|
-
|
1385
|
-
|
1384
|
+
lpMintBump: number;
|
1385
|
+
stakedLpVaultBump: number;
|
1386
1386
|
vpVolumeFactor: number;
|
1387
1387
|
padding: number[] | BN[] | BN[];
|
1388
1388
|
stakingFeeBoostBps: BN[];
|
1389
|
-
|
1390
|
-
|
1389
|
+
compoundingMint: PublicKey;
|
1390
|
+
compoundingLpVault: PublicKey;
|
1391
1391
|
compoundingStats: {
|
1392
1392
|
activeAmount: BN;
|
1393
1393
|
totalSupply: BN;
|
@@ -1395,8 +1395,8 @@ export declare class PerpetualsClient {
|
|
1395
1395
|
feeShareBps: BN;
|
1396
1396
|
lastCompoundTime: BN;
|
1397
1397
|
};
|
1398
|
-
|
1399
|
-
|
1398
|
+
compoundingMintBump: number;
|
1399
|
+
compoundingLpVaultBump: number;
|
1400
1400
|
market: PublicKey;
|
1401
1401
|
delegate: PublicKey;
|
1402
1402
|
openTime: BN;
|
@@ -1486,7 +1486,7 @@ export declare class PerpetualsClient {
|
|
1486
1486
|
allowCollateralWithdrawal: boolean;
|
1487
1487
|
allowSizeChange: boolean;
|
1488
1488
|
allowLiquidation: boolean;
|
1489
|
-
|
1489
|
+
allowLpStaking: boolean;
|
1490
1490
|
allowFeeDistribution: boolean;
|
1491
1491
|
allowUngatedTrading: boolean;
|
1492
1492
|
allowFeeDiscounts: boolean;
|
@@ -1634,9 +1634,9 @@ export declare class PerpetualsClient {
|
|
1634
1634
|
tradeLimit: number;
|
1635
1635
|
rebateLimitUsd: number;
|
1636
1636
|
name: string;
|
1637
|
-
|
1637
|
+
lpMint: PublicKey;
|
1638
1638
|
oracleAuthority: PublicKey;
|
1639
|
-
|
1639
|
+
stakedLpVault: PublicKey;
|
1640
1640
|
rewardCustody: PublicKey;
|
1641
1641
|
custodies: PublicKey[];
|
1642
1642
|
ratios: {
|
@@ -1654,13 +1654,13 @@ export declare class PerpetualsClient {
|
|
1654
1654
|
deactivatedAmount: BN;
|
1655
1655
|
};
|
1656
1656
|
stakingFeeShareBps: BN;
|
1657
|
-
|
1658
|
-
|
1657
|
+
lpMintBump: number;
|
1658
|
+
stakedLpVaultBump: number;
|
1659
1659
|
vpVolumeFactor: number;
|
1660
1660
|
padding: number[] | BN[] | BN[];
|
1661
1661
|
stakingFeeBoostBps: BN[];
|
1662
|
-
|
1663
|
-
|
1662
|
+
compoundingMint: PublicKey;
|
1663
|
+
compoundingLpVault: PublicKey;
|
1664
1664
|
compoundingStats: {
|
1665
1665
|
activeAmount: BN;
|
1666
1666
|
totalSupply: BN;
|
@@ -1668,8 +1668,8 @@ export declare class PerpetualsClient {
|
|
1668
1668
|
feeShareBps: BN;
|
1669
1669
|
lastCompoundTime: BN;
|
1670
1670
|
};
|
1671
|
-
|
1672
|
-
|
1671
|
+
compoundingMintBump: number;
|
1672
|
+
compoundingLpVaultBump: number;
|
1673
1673
|
market: PublicKey;
|
1674
1674
|
delegate: PublicKey;
|
1675
1675
|
openTime: BN;
|
@@ -1792,7 +1792,7 @@ export declare class PerpetualsClient {
|
|
1792
1792
|
allowCollateralWithdrawal: boolean;
|
1793
1793
|
allowSizeChange: boolean;
|
1794
1794
|
allowLiquidation: boolean;
|
1795
|
-
|
1795
|
+
allowLpStaking: boolean;
|
1796
1796
|
allowFeeDistribution: boolean;
|
1797
1797
|
allowUngatedTrading: boolean;
|
1798
1798
|
allowFeeDiscounts: boolean;
|
@@ -1940,9 +1940,9 @@ export declare class PerpetualsClient {
|
|
1940
1940
|
tradeLimit: number;
|
1941
1941
|
rebateLimitUsd: number;
|
1942
1942
|
name: string;
|
1943
|
-
|
1943
|
+
lpMint: PublicKey;
|
1944
1944
|
oracleAuthority: PublicKey;
|
1945
|
-
|
1945
|
+
stakedLpVault: PublicKey;
|
1946
1946
|
rewardCustody: PublicKey;
|
1947
1947
|
custodies: PublicKey[];
|
1948
1948
|
ratios: {
|
@@ -1960,13 +1960,13 @@ export declare class PerpetualsClient {
|
|
1960
1960
|
deactivatedAmount: BN;
|
1961
1961
|
};
|
1962
1962
|
stakingFeeShareBps: BN;
|
1963
|
-
|
1964
|
-
|
1963
|
+
lpMintBump: number;
|
1964
|
+
stakedLpVaultBump: number;
|
1965
1965
|
vpVolumeFactor: number;
|
1966
1966
|
padding: number[] | BN[] | BN[];
|
1967
1967
|
stakingFeeBoostBps: BN[];
|
1968
|
-
|
1969
|
-
|
1968
|
+
compoundingMint: PublicKey;
|
1969
|
+
compoundingLpVault: PublicKey;
|
1970
1970
|
compoundingStats: {
|
1971
1971
|
activeAmount: BN;
|
1972
1972
|
totalSupply: BN;
|
@@ -1974,8 +1974,8 @@ export declare class PerpetualsClient {
|
|
1974
1974
|
feeShareBps: BN;
|
1975
1975
|
lastCompoundTime: BN;
|
1976
1976
|
};
|
1977
|
-
|
1978
|
-
|
1977
|
+
compoundingMintBump: number;
|
1978
|
+
compoundingLpVaultBump: number;
|
1979
1979
|
market: PublicKey;
|
1980
1980
|
delegate: PublicKey;
|
1981
1981
|
openTime: BN;
|
@@ -2065,7 +2065,7 @@ export declare class PerpetualsClient {
|
|
2065
2065
|
allowCollateralWithdrawal: boolean;
|
2066
2066
|
allowSizeChange: boolean;
|
2067
2067
|
allowLiquidation: boolean;
|
2068
|
-
|
2068
|
+
allowLpStaking: boolean;
|
2069
2069
|
allowFeeDistribution: boolean;
|
2070
2070
|
allowUngatedTrading: boolean;
|
2071
2071
|
allowFeeDiscounts: boolean;
|
@@ -2213,9 +2213,9 @@ export declare class PerpetualsClient {
|
|
2213
2213
|
tradeLimit: number;
|
2214
2214
|
rebateLimitUsd: number;
|
2215
2215
|
name: string;
|
2216
|
-
|
2216
|
+
lpMint: PublicKey;
|
2217
2217
|
oracleAuthority: PublicKey;
|
2218
|
-
|
2218
|
+
stakedLpVault: PublicKey;
|
2219
2219
|
rewardCustody: PublicKey;
|
2220
2220
|
custodies: PublicKey[];
|
2221
2221
|
ratios: {
|
@@ -2233,13 +2233,13 @@ export declare class PerpetualsClient {
|
|
2233
2233
|
deactivatedAmount: BN;
|
2234
2234
|
};
|
2235
2235
|
stakingFeeShareBps: BN;
|
2236
|
-
|
2237
|
-
|
2236
|
+
lpMintBump: number;
|
2237
|
+
stakedLpVaultBump: number;
|
2238
2238
|
vpVolumeFactor: number;
|
2239
2239
|
padding: number[] | BN[] | BN[];
|
2240
2240
|
stakingFeeBoostBps: BN[];
|
2241
|
-
|
2242
|
-
|
2241
|
+
compoundingMint: PublicKey;
|
2242
|
+
compoundingLpVault: PublicKey;
|
2243
2243
|
compoundingStats: {
|
2244
2244
|
activeAmount: BN;
|
2245
2245
|
totalSupply: BN;
|
@@ -2247,8 +2247,8 @@ export declare class PerpetualsClient {
|
|
2247
2247
|
feeShareBps: BN;
|
2248
2248
|
lastCompoundTime: BN;
|
2249
2249
|
};
|
2250
|
-
|
2251
|
-
|
2250
|
+
compoundingMintBump: number;
|
2251
|
+
compoundingLpVaultBump: number;
|
2252
2252
|
market: PublicKey;
|
2253
2253
|
delegate: PublicKey;
|
2254
2254
|
openTime: BN;
|
@@ -2523,11 +2523,11 @@ export declare class PerpetualsClient {
|
|
2523
2523
|
instructions: TransactionInstruction[];
|
2524
2524
|
additionalSigners: Signer[];
|
2525
2525
|
}>;
|
2526
|
-
addCompoundingLiquidity: (amountIn: BN,
|
2526
|
+
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2527
2527
|
instructions: TransactionInstruction[];
|
2528
2528
|
additionalSigners: Signer[];
|
2529
2529
|
}>;
|
2530
|
-
removeCompoundingLiquidity: (
|
2530
|
+
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
2531
2531
|
instructions: TransactionInstruction[];
|
2532
2532
|
additionalSigners: Signer[];
|
2533
2533
|
}>;
|
@@ -2535,7 +2535,7 @@ export declare class PerpetualsClient {
|
|
2535
2535
|
instructions: TransactionInstruction[];
|
2536
2536
|
additionalSigners: Signer[];
|
2537
2537
|
}>;
|
2538
|
-
compoundingFee: (
|
2538
|
+
compoundingFee: (poolConfig: PoolConfig, rewardTokenSymbol?: string) => Promise<{
|
2539
2539
|
instructions: TransactionInstruction[];
|
2540
2540
|
additionalSigners: Signer[];
|
2541
2541
|
}>;
|
@@ -2543,7 +2543,7 @@ export declare class PerpetualsClient {
|
|
2543
2543
|
instructions: TransactionInstruction[];
|
2544
2544
|
additionalSigners: Signer[];
|
2545
2545
|
}>;
|
2546
|
-
|
2546
|
+
updateCounterReward: () => Promise<{
|
2547
2547
|
instructions: TransactionInstruction[];
|
2548
2548
|
additionalSigners: Signer[];
|
2549
2549
|
}>;
|