flash-sdk 2.11.12 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,7 +114,7 @@ export declare class PerpetualsClient {
114
114
  allowCollateralWithdrawal: boolean;
115
115
  allowSizeChange: boolean;
116
116
  allowLiquidation: boolean;
117
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
265
+ lpMint: PublicKey;
266
266
  oracleAuthority: PublicKey;
267
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
286
- stakedFlpVaultBump: number;
285
+ lpMintBump: number;
286
+ stakedLpVaultBump: number;
287
287
  vpVolumeFactor: number;
288
288
  padding: number[] | BN[] | BN[];
289
289
  stakingFeeBoostBps: BN[];
290
- sflpMint: PublicKey;
291
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
300
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
539
+ lpMint: PublicKey;
540
540
  oracleAuthority: PublicKey;
541
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
560
- stakedFlpVaultBump: number;
559
+ lpMintBump: number;
560
+ stakedLpVaultBump: number;
561
561
  vpVolumeFactor: number;
562
562
  padding: number[] | BN[] | BN[];
563
563
  stakingFeeBoostBps: BN[];
564
- sflpMint: PublicKey;
565
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
574
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
812
+ lpMint: PublicKey;
813
813
  oracleAuthority: PublicKey;
814
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
833
- stakedFlpVaultBump: number;
832
+ lpMintBump: number;
833
+ stakedLpVaultBump: number;
834
834
  vpVolumeFactor: number;
835
835
  padding: number[] | BN[] | BN[];
836
836
  stakingFeeBoostBps: BN[];
837
- sflpMint: PublicKey;
838
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
847
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
1089
+ lpMint: PublicKey;
1090
1090
  oracleAuthority: PublicKey;
1091
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
1110
- stakedFlpVaultBump: number;
1109
+ lpMintBump: number;
1110
+ stakedLpVaultBump: number;
1111
1111
  vpVolumeFactor: number;
1112
1112
  padding: number[] | BN[] | BN[];
1113
1113
  stakingFeeBoostBps: BN[];
1114
- sflpMint: PublicKey;
1115
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
1124
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
1364
+ lpMint: PublicKey;
1365
1365
  oracleAuthority: PublicKey;
1366
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
1385
- stakedFlpVaultBump: number;
1384
+ lpMintBump: number;
1385
+ stakedLpVaultBump: number;
1386
1386
  vpVolumeFactor: number;
1387
1387
  padding: number[] | BN[] | BN[];
1388
1388
  stakingFeeBoostBps: BN[];
1389
- sflpMint: PublicKey;
1390
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
1399
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
1637
+ lpMint: PublicKey;
1638
1638
  oracleAuthority: PublicKey;
1639
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
1658
- stakedFlpVaultBump: number;
1657
+ lpMintBump: number;
1658
+ stakedLpVaultBump: number;
1659
1659
  vpVolumeFactor: number;
1660
1660
  padding: number[] | BN[] | BN[];
1661
1661
  stakingFeeBoostBps: BN[];
1662
- sflpMint: PublicKey;
1663
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
1672
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
1943
+ lpMint: PublicKey;
1944
1944
  oracleAuthority: PublicKey;
1945
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
1964
- stakedFlpVaultBump: number;
1963
+ lpMintBump: number;
1964
+ stakedLpVaultBump: number;
1965
1965
  vpVolumeFactor: number;
1966
1966
  padding: number[] | BN[] | BN[];
1967
1967
  stakingFeeBoostBps: BN[];
1968
- sflpMint: PublicKey;
1969
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
1978
- compoundingFlpVaultBump: number;
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
- allowFlpStaking: boolean;
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
- flpMint: PublicKey;
2216
+ lpMint: PublicKey;
2217
2217
  oracleAuthority: PublicKey;
2218
- stakedFlpVault: PublicKey;
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
- flpMintBump: number;
2237
- stakedFlpVaultBump: number;
2236
+ lpMintBump: number;
2237
+ stakedLpVaultBump: number;
2238
2238
  vpVolumeFactor: number;
2239
2239
  padding: number[] | BN[] | BN[];
2240
2240
  stakingFeeBoostBps: BN[];
2241
- sflpMint: PublicKey;
2242
- compoundingFlpVault: PublicKey;
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
- sflpMintBump: number;
2251
- compoundingFlpVaultBump: number;
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, minSflpAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
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: (sflpAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
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: (rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
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
- updateCounter: () => Promise<{
2546
+ updateCounterReward: () => Promise<{
2547
2547
  instructions: TransactionInstruction[];
2548
2548
  additionalSigners: Signer[];
2549
2549
  }>;