flash-sdk 11.1.1 → 11.1.2
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/OraclePrice.d.ts +0 -1
- package/dist/OrderAccount.d.ts +0 -1
- package/dist/PerpetualsClient.d.ts +72 -27
- package/dist/PerpetualsClient.js +254 -95
- package/dist/PoolAccount.d.ts +0 -1
- package/dist/PoolDataClient.d.ts +0 -1
- package/dist/PositionAccount.d.ts +0 -1
- package/dist/TokenStakeAccount.d.ts +0 -1
- package/dist/TokenVaultAccount.d.ts +0 -1
- package/dist/ViewHelper.js +2 -2
- package/dist/backupOracle.js +4 -4
- package/dist/constants/index.d.ts +0 -1
- package/dist/idl/perpetuals.d.ts +177 -4
- package/dist/idl/perpetuals.js +177 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +3 -3
- package/dist/utils/IdlCoder.js +17 -7
- package/dist/utils/alt.js +5 -6
- package/dist/utils/anchorCpiEvents.d.ts +0 -1
- package/dist/utils/anchorCpiEvents.js +4 -4
- package/dist/utils/index.js +6 -6
- package/dist/utils/rpc.js +9 -9
- package/package.json +1 -1
package/dist/OraclePrice.d.ts
CHANGED
package/dist/OrderAccount.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/// <reference types="bn.js" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
|
4
2
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
|
5
3
|
import { PoolAccount } from "./PoolAccount";
|
|
6
4
|
import { PositionAccount } from "./PositionAccount";
|
|
7
|
-
import { AddLiquidityAmountAndFee, InternalPrice, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, EntryPriceAndFeeV2, TokenPermissions, TokenStake, InternalEmaPrice } from "./types";
|
|
5
|
+
import { AddLiquidityAmountAndFee, InternalPrice, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, EntryPriceAndFeeV2, TokenPermissions, TokenStake, InternalEmaPrice, Whitelist } from "./types";
|
|
8
6
|
import { OraclePrice } from "./OraclePrice";
|
|
9
7
|
import { CustodyAccount } from "./CustodyAccount";
|
|
10
8
|
import { Perpetuals } from "./idl/perpetuals";
|
|
@@ -310,7 +308,7 @@ export declare class PerpetualsClient {
|
|
|
310
308
|
}[];
|
|
311
309
|
markets: PublicKey[];
|
|
312
310
|
maxAumUsd: BN;
|
|
313
|
-
buffer: number | BN;
|
|
311
|
+
buffer: number | BN | number[];
|
|
314
312
|
rawAumUsd: BN;
|
|
315
313
|
equityUsd: BN;
|
|
316
314
|
totalStaked: {
|
|
@@ -430,6 +428,9 @@ export declare class PerpetualsClient {
|
|
|
430
428
|
counter: BN;
|
|
431
429
|
tokenStakeAccount: PublicKey;
|
|
432
430
|
burnt: boolean;
|
|
431
|
+
isSwapFeeExempt: boolean;
|
|
432
|
+
isDepositFeeExempt: boolean;
|
|
433
|
+
isWithdrawalFeeExempt: boolean;
|
|
433
434
|
}>;
|
|
434
435
|
getPoolKey: (name: string) => PublicKey;
|
|
435
436
|
getPool: (name: string) => Promise<{
|
|
@@ -663,7 +664,7 @@ export declare class PerpetualsClient {
|
|
|
663
664
|
}[];
|
|
664
665
|
markets: PublicKey[];
|
|
665
666
|
maxAumUsd: BN;
|
|
666
|
-
buffer: number | BN;
|
|
667
|
+
buffer: number | BN | number[];
|
|
667
668
|
rawAumUsd: BN;
|
|
668
669
|
equityUsd: BN;
|
|
669
670
|
totalStaked: {
|
|
@@ -783,6 +784,9 @@ export declare class PerpetualsClient {
|
|
|
783
784
|
counter: BN;
|
|
784
785
|
tokenStakeAccount: PublicKey;
|
|
785
786
|
burnt: boolean;
|
|
787
|
+
isSwapFeeExempt: boolean;
|
|
788
|
+
isDepositFeeExempt: boolean;
|
|
789
|
+
isWithdrawalFeeExempt: boolean;
|
|
786
790
|
}>;
|
|
787
791
|
getPools: () => Promise<{
|
|
788
792
|
pool: PublicKey;
|
|
@@ -1015,7 +1019,7 @@ export declare class PerpetualsClient {
|
|
|
1015
1019
|
}[];
|
|
1016
1020
|
markets: PublicKey[];
|
|
1017
1021
|
maxAumUsd: BN;
|
|
1018
|
-
buffer: number | BN;
|
|
1022
|
+
buffer: number | BN | number[];
|
|
1019
1023
|
rawAumUsd: BN;
|
|
1020
1024
|
equityUsd: BN;
|
|
1021
1025
|
totalStaked: {
|
|
@@ -1135,6 +1139,9 @@ export declare class PerpetualsClient {
|
|
|
1135
1139
|
counter: BN;
|
|
1136
1140
|
tokenStakeAccount: PublicKey;
|
|
1137
1141
|
burnt: boolean;
|
|
1142
|
+
isSwapFeeExempt: boolean;
|
|
1143
|
+
isDepositFeeExempt: boolean;
|
|
1144
|
+
isWithdrawalFeeExempt: boolean;
|
|
1138
1145
|
}[]>;
|
|
1139
1146
|
getPoolLpTokenKey: (name: string) => PublicKey;
|
|
1140
1147
|
getPoolCompoundingTokenKey: (name: string) => PublicKey;
|
|
@@ -1371,7 +1378,7 @@ export declare class PerpetualsClient {
|
|
|
1371
1378
|
}[];
|
|
1372
1379
|
markets: PublicKey[];
|
|
1373
1380
|
maxAumUsd: BN;
|
|
1374
|
-
buffer: number | BN;
|
|
1381
|
+
buffer: number | BN | number[];
|
|
1375
1382
|
rawAumUsd: BN;
|
|
1376
1383
|
equityUsd: BN;
|
|
1377
1384
|
totalStaked: {
|
|
@@ -1491,6 +1498,9 @@ export declare class PerpetualsClient {
|
|
|
1491
1498
|
counter: BN;
|
|
1492
1499
|
tokenStakeAccount: PublicKey;
|
|
1493
1500
|
burnt: boolean;
|
|
1501
|
+
isSwapFeeExempt: boolean;
|
|
1502
|
+
isDepositFeeExempt: boolean;
|
|
1503
|
+
isWithdrawalFeeExempt: boolean;
|
|
1494
1504
|
}>;
|
|
1495
1505
|
getMarketPk(targetCustody: PublicKey, collateralCustody: PublicKey, side: Side): PublicKey;
|
|
1496
1506
|
getPositionKey(owner: PublicKey, targetCustody: PublicKey, collateralCustody: PublicKey, side: Side): PublicKey;
|
|
@@ -1726,7 +1736,7 @@ export declare class PerpetualsClient {
|
|
|
1726
1736
|
}[];
|
|
1727
1737
|
markets: PublicKey[];
|
|
1728
1738
|
maxAumUsd: BN;
|
|
1729
|
-
buffer: number | BN;
|
|
1739
|
+
buffer: number | BN | number[];
|
|
1730
1740
|
rawAumUsd: BN;
|
|
1731
1741
|
equityUsd: BN;
|
|
1732
1742
|
totalStaked: {
|
|
@@ -1846,6 +1856,9 @@ export declare class PerpetualsClient {
|
|
|
1846
1856
|
counter: BN;
|
|
1847
1857
|
tokenStakeAccount: PublicKey;
|
|
1848
1858
|
burnt: boolean;
|
|
1859
|
+
isSwapFeeExempt: boolean;
|
|
1860
|
+
isDepositFeeExempt: boolean;
|
|
1861
|
+
isWithdrawalFeeExempt: boolean;
|
|
1849
1862
|
}>;
|
|
1850
1863
|
getPositionData: (position: PositionAccount, poolConfig: PoolConfig) => Promise<any>;
|
|
1851
1864
|
getOrderAccount: (orderAccountKey: PublicKey) => Promise<{
|
|
@@ -2079,7 +2092,7 @@ export declare class PerpetualsClient {
|
|
|
2079
2092
|
}[];
|
|
2080
2093
|
markets: PublicKey[];
|
|
2081
2094
|
maxAumUsd: BN;
|
|
2082
|
-
buffer: number | BN;
|
|
2095
|
+
buffer: number | BN | number[];
|
|
2083
2096
|
rawAumUsd: BN;
|
|
2084
2097
|
equityUsd: BN;
|
|
2085
2098
|
totalStaked: {
|
|
@@ -2199,6 +2212,9 @@ export declare class PerpetualsClient {
|
|
|
2199
2212
|
counter: BN;
|
|
2200
2213
|
tokenStakeAccount: PublicKey;
|
|
2201
2214
|
burnt: boolean;
|
|
2215
|
+
isSwapFeeExempt: boolean;
|
|
2216
|
+
isDepositFeeExempt: boolean;
|
|
2217
|
+
isWithdrawalFeeExempt: boolean;
|
|
2202
2218
|
}>;
|
|
2203
2219
|
getUserPosition: (owner: PublicKey, targetCustody: PublicKey, collateralCustody: PublicKey, side: Side) => Promise<{
|
|
2204
2220
|
pool: PublicKey;
|
|
@@ -2431,7 +2447,7 @@ export declare class PerpetualsClient {
|
|
|
2431
2447
|
}[];
|
|
2432
2448
|
markets: PublicKey[];
|
|
2433
2449
|
maxAumUsd: BN;
|
|
2434
|
-
buffer: number | BN;
|
|
2450
|
+
buffer: number | BN | number[];
|
|
2435
2451
|
rawAumUsd: BN;
|
|
2436
2452
|
equityUsd: BN;
|
|
2437
2453
|
totalStaked: {
|
|
@@ -2551,6 +2567,9 @@ export declare class PerpetualsClient {
|
|
|
2551
2567
|
counter: BN;
|
|
2552
2568
|
tokenStakeAccount: PublicKey;
|
|
2553
2569
|
burnt: boolean;
|
|
2570
|
+
isSwapFeeExempt: boolean;
|
|
2571
|
+
isDepositFeeExempt: boolean;
|
|
2572
|
+
isWithdrawalFeeExempt: boolean;
|
|
2554
2573
|
}>;
|
|
2555
2574
|
getUserOrderAccount: (owner: PublicKey, targetCustody: PublicKey, collateralCustody: PublicKey, side: Side) => Promise<{
|
|
2556
2575
|
pool: PublicKey;
|
|
@@ -2783,7 +2802,7 @@ export declare class PerpetualsClient {
|
|
|
2783
2802
|
}[];
|
|
2784
2803
|
markets: PublicKey[];
|
|
2785
2804
|
maxAumUsd: BN;
|
|
2786
|
-
buffer: number | BN;
|
|
2805
|
+
buffer: number | BN | number[];
|
|
2787
2806
|
rawAumUsd: BN;
|
|
2788
2807
|
equityUsd: BN;
|
|
2789
2808
|
totalStaked: {
|
|
@@ -2903,6 +2922,9 @@ export declare class PerpetualsClient {
|
|
|
2903
2922
|
counter: BN;
|
|
2904
2923
|
tokenStakeAccount: PublicKey;
|
|
2905
2924
|
burnt: boolean;
|
|
2925
|
+
isSwapFeeExempt: boolean;
|
|
2926
|
+
isDepositFeeExempt: boolean;
|
|
2927
|
+
isWithdrawalFeeExempt: boolean;
|
|
2906
2928
|
}>;
|
|
2907
2929
|
getUserPositions: (wallet: PublicKey, poolConfig: PoolConfig) => Promise<{
|
|
2908
2930
|
owner: PublicKey;
|
|
@@ -3186,7 +3208,7 @@ export declare class PerpetualsClient {
|
|
|
3186
3208
|
}[];
|
|
3187
3209
|
markets: PublicKey[];
|
|
3188
3210
|
maxAumUsd: BN;
|
|
3189
|
-
buffer: number | BN;
|
|
3211
|
+
buffer: number | BN | number[];
|
|
3190
3212
|
rawAumUsd: BN;
|
|
3191
3213
|
equityUsd: BN;
|
|
3192
3214
|
totalStaked: {
|
|
@@ -3306,6 +3328,9 @@ export declare class PerpetualsClient {
|
|
|
3306
3328
|
counter: BN;
|
|
3307
3329
|
tokenStakeAccount: PublicKey;
|
|
3308
3330
|
burnt: boolean;
|
|
3331
|
+
isSwapFeeExempt: boolean;
|
|
3332
|
+
isDepositFeeExempt: boolean;
|
|
3333
|
+
isWithdrawalFeeExempt: boolean;
|
|
3309
3334
|
}>[]>;
|
|
3310
3335
|
getAllActivePositions: () => Promise<import("@coral-xyz/anchor").ProgramAccount<{
|
|
3311
3336
|
pool: PublicKey;
|
|
@@ -3538,7 +3563,7 @@ export declare class PerpetualsClient {
|
|
|
3538
3563
|
}[];
|
|
3539
3564
|
markets: PublicKey[];
|
|
3540
3565
|
maxAumUsd: BN;
|
|
3541
|
-
buffer: number | BN;
|
|
3566
|
+
buffer: number | BN | number[];
|
|
3542
3567
|
rawAumUsd: BN;
|
|
3543
3568
|
equityUsd: BN;
|
|
3544
3569
|
totalStaked: {
|
|
@@ -3658,6 +3683,9 @@ export declare class PerpetualsClient {
|
|
|
3658
3683
|
counter: BN;
|
|
3659
3684
|
tokenStakeAccount: PublicKey;
|
|
3660
3685
|
burnt: boolean;
|
|
3686
|
+
isSwapFeeExempt: boolean;
|
|
3687
|
+
isDepositFeeExempt: boolean;
|
|
3688
|
+
isWithdrawalFeeExempt: boolean;
|
|
3661
3689
|
}>[]>;
|
|
3662
3690
|
getAllPositionsByMarket: (marketKey: PublicKey) => Promise<import("@coral-xyz/anchor").ProgramAccount<{
|
|
3663
3691
|
pool: PublicKey;
|
|
@@ -3890,7 +3918,7 @@ export declare class PerpetualsClient {
|
|
|
3890
3918
|
}[];
|
|
3891
3919
|
markets: PublicKey[];
|
|
3892
3920
|
maxAumUsd: BN;
|
|
3893
|
-
buffer: number | BN;
|
|
3921
|
+
buffer: number | BN | number[];
|
|
3894
3922
|
rawAumUsd: BN;
|
|
3895
3923
|
equityUsd: BN;
|
|
3896
3924
|
totalStaked: {
|
|
@@ -4010,6 +4038,9 @@ export declare class PerpetualsClient {
|
|
|
4010
4038
|
counter: BN;
|
|
4011
4039
|
tokenStakeAccount: PublicKey;
|
|
4012
4040
|
burnt: boolean;
|
|
4041
|
+
isSwapFeeExempt: boolean;
|
|
4042
|
+
isDepositFeeExempt: boolean;
|
|
4043
|
+
isWithdrawalFeeExempt: boolean;
|
|
4013
4044
|
}>[]>;
|
|
4014
4045
|
getAllActivePositionsByMarket: (marketKey: PublicKey) => Promise<import("@coral-xyz/anchor").ProgramAccount<{
|
|
4015
4046
|
pool: PublicKey;
|
|
@@ -4242,7 +4273,7 @@ export declare class PerpetualsClient {
|
|
|
4242
4273
|
}[];
|
|
4243
4274
|
markets: PublicKey[];
|
|
4244
4275
|
maxAumUsd: BN;
|
|
4245
|
-
buffer: number | BN;
|
|
4276
|
+
buffer: number | BN | number[];
|
|
4246
4277
|
rawAumUsd: BN;
|
|
4247
4278
|
equityUsd: BN;
|
|
4248
4279
|
totalStaked: {
|
|
@@ -4362,6 +4393,9 @@ export declare class PerpetualsClient {
|
|
|
4362
4393
|
counter: BN;
|
|
4363
4394
|
tokenStakeAccount: PublicKey;
|
|
4364
4395
|
burnt: boolean;
|
|
4396
|
+
isSwapFeeExempt: boolean;
|
|
4397
|
+
isDepositFeeExempt: boolean;
|
|
4398
|
+
isWithdrawalFeeExempt: boolean;
|
|
4365
4399
|
}>[]>;
|
|
4366
4400
|
getAllOrderAccounts: () => Promise<import("@coral-xyz/anchor").ProgramAccount<{
|
|
4367
4401
|
pool: PublicKey;
|
|
@@ -4594,7 +4628,7 @@ export declare class PerpetualsClient {
|
|
|
4594
4628
|
}[];
|
|
4595
4629
|
markets: PublicKey[];
|
|
4596
4630
|
maxAumUsd: BN;
|
|
4597
|
-
buffer: number | BN;
|
|
4631
|
+
buffer: number | BN | number[];
|
|
4598
4632
|
rawAumUsd: BN;
|
|
4599
4633
|
equityUsd: BN;
|
|
4600
4634
|
totalStaked: {
|
|
@@ -4714,6 +4748,9 @@ export declare class PerpetualsClient {
|
|
|
4714
4748
|
counter: BN;
|
|
4715
4749
|
tokenStakeAccount: PublicKey;
|
|
4716
4750
|
burnt: boolean;
|
|
4751
|
+
isSwapFeeExempt: boolean;
|
|
4752
|
+
isDepositFeeExempt: boolean;
|
|
4753
|
+
isWithdrawalFeeExempt: boolean;
|
|
4717
4754
|
}>[]>;
|
|
4718
4755
|
getAccountDiscriminator: (name: string) => Buffer;
|
|
4719
4756
|
log: (...message: string[]) => void;
|
|
@@ -4791,7 +4828,7 @@ export declare class PerpetualsClient {
|
|
|
4791
4828
|
profitUsd: BN;
|
|
4792
4829
|
lossUsd: BN;
|
|
4793
4830
|
};
|
|
4794
|
-
getSwapAmountAndFeesSync: (amountIn: BN, amountOut: BN, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, outputTokenPrice: OraclePrice, outputTokenEmaPrice: OraclePrice, outputTokenCustodyAccount: CustodyAccount, poolAumUsdMax: BN, poolConfig: PoolConfig) => {
|
|
4831
|
+
getSwapAmountAndFeesSync: (amountIn: BN, amountOut: BN, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, outputTokenPrice: OraclePrice, outputTokenEmaPrice: OraclePrice, outputTokenCustodyAccount: CustodyAccount, poolAumUsdMax: BN, poolConfig: PoolConfig, whitelistedUserAccount?: Whitelist | null) => {
|
|
4795
4832
|
minAmountOut: BN;
|
|
4796
4833
|
minAmountIn: BN;
|
|
4797
4834
|
feeIn: BN;
|
|
@@ -4812,22 +4849,22 @@ export declare class PerpetualsClient {
|
|
|
4812
4849
|
getUserClaimableRevenueAmount: (POOL_CONFIG: PoolConfig, userPublicKey: PublicKey, enableDebuglogs?: boolean) => Promise<BN>;
|
|
4813
4850
|
getStakedLpTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
|
4814
4851
|
getAssetsUnderManagement: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
|
4815
|
-
getAddLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean) => Promise<{
|
|
4852
|
+
getAddLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey | undefined) => Promise<{
|
|
4816
4853
|
amount: BN | undefined;
|
|
4817
4854
|
fee: BN | undefined;
|
|
4818
4855
|
error?: string;
|
|
4819
4856
|
}>;
|
|
4820
|
-
getRemoveLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, removeTokenCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean) => Promise<{
|
|
4857
|
+
getRemoveLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, removeTokenCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey) => Promise<{
|
|
4821
4858
|
amount: BN;
|
|
4822
4859
|
fee: BN;
|
|
4823
4860
|
error?: string;
|
|
4824
4861
|
}>;
|
|
4825
4862
|
getCompoundingLPTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
|
4826
|
-
getAddCompoundingLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean) => Promise<{
|
|
4863
|
+
getAddCompoundingLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey) => Promise<{
|
|
4827
4864
|
amount: BN;
|
|
4828
4865
|
fee: BN;
|
|
4829
4866
|
}>;
|
|
4830
|
-
getRemoveCompoundingLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, removeTokenCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean) => Promise<{
|
|
4867
|
+
getRemoveCompoundingLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, removeTokenCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey) => Promise<{
|
|
4831
4868
|
amount: BN;
|
|
4832
4869
|
fee: BN;
|
|
4833
4870
|
}>;
|
|
@@ -4875,15 +4912,15 @@ export declare class PerpetualsClient {
|
|
|
4875
4912
|
instructions: TransactionInstruction[];
|
|
4876
4913
|
additionalSigners: Signer[];
|
|
4877
4914
|
}>;
|
|
4878
|
-
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4915
|
+
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean) => Promise<{
|
|
4879
4916
|
instructions: TransactionInstruction[];
|
|
4880
4917
|
additionalSigners: Signer[];
|
|
4881
4918
|
}>;
|
|
4882
|
-
addLiquidityAndStake: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
|
|
4919
|
+
addLiquidityAndStake: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean) => Promise<{
|
|
4883
4920
|
instructions: TransactionInstruction[];
|
|
4884
4921
|
additionalSigners: Signer[];
|
|
4885
4922
|
}>;
|
|
4886
|
-
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
|
|
4923
|
+
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean) => Promise<{
|
|
4887
4924
|
instructions: TransactionInstruction[];
|
|
4888
4925
|
additionalSigners: Signer[];
|
|
4889
4926
|
}>;
|
|
@@ -4914,11 +4951,11 @@ export declare class PerpetualsClient {
|
|
|
4914
4951
|
instructions: TransactionInstruction[];
|
|
4915
4952
|
additionalSigners: Signer[];
|
|
4916
4953
|
}>;
|
|
4917
|
-
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean,
|
|
4954
|
+
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean) => Promise<{
|
|
4918
4955
|
instructions: TransactionInstruction[];
|
|
4919
4956
|
additionalSigners: Signer[];
|
|
4920
4957
|
}>;
|
|
4921
|
-
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean,
|
|
4958
|
+
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean) => Promise<{
|
|
4922
4959
|
instructions: TransactionInstruction[];
|
|
4923
4960
|
additionalSigners: Signer[];
|
|
4924
4961
|
}>;
|
|
@@ -5015,7 +5052,7 @@ export declare class PerpetualsClient {
|
|
|
5015
5052
|
signature: string;
|
|
5016
5053
|
versionedTransaction: VersionedTransaction;
|
|
5017
5054
|
}>;
|
|
5018
|
-
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
5055
|
+
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean) => Promise<{
|
|
5019
5056
|
instructions: TransactionInstruction[];
|
|
5020
5057
|
additionalSigners: Signer[];
|
|
5021
5058
|
}>;
|
|
@@ -5115,4 +5152,12 @@ export declare class PerpetualsClient {
|
|
|
5115
5152
|
instructions: TransactionInstruction[];
|
|
5116
5153
|
additionalSigners: Signer[];
|
|
5117
5154
|
}>;
|
|
5155
|
+
createWhitelist: (isSwapFeeExempt: boolean, isDepositFeeExempt: boolean, isWithdrawalFeeExempt: boolean, poolAddress: PublicKey, owner: PublicKey) => Promise<{
|
|
5156
|
+
instructions: TransactionInstruction[];
|
|
5157
|
+
additionalSigners: Signer[];
|
|
5158
|
+
}>;
|
|
5159
|
+
setWhitelistConfig: (isSwapFeeExempt: boolean, isDepositFeeExempt: boolean, isWithdrawalFeeExempt: boolean, poolAddress: PublicKey, owner: PublicKey) => Promise<{
|
|
5160
|
+
instructions: TransactionInstruction[];
|
|
5161
|
+
additionalSigners: Signer[];
|
|
5162
|
+
}>;
|
|
5118
5163
|
}
|