flash-sdk 2.11.1 → 2.11.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/PerpetualsClient.d.ts +6 -2
- package/dist/PerpetualsClient.js +447 -132
- package/dist/PoolConfig.json +5 -5
- package/dist/idl/perp_composability.d.ts +119 -0
- package/dist/idl/perp_composability.js +119 -0
- package/dist/idl/perpetuals.d.ts +212 -0
- package/dist/idl/perpetuals.js +212 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2420,6 +2420,10 @@ export declare class PerpetualsClient {
|
|
2420
2420
|
instructions: TransactionInstruction[];
|
2421
2421
|
additionalSigners: Signer[];
|
2422
2422
|
}>;
|
2423
|
+
addLiquidityAndStake: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean) => Promise<{
|
2424
|
+
instructions: TransactionInstruction[];
|
2425
|
+
additionalSigners: Signer[];
|
2426
|
+
}>;
|
2423
2427
|
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean) => Promise<{
|
2424
2428
|
instructions: TransactionInstruction[];
|
2425
2429
|
additionalSigners: Signer[];
|
@@ -2516,11 +2520,11 @@ export declare class PerpetualsClient {
|
|
2516
2520
|
instructions: TransactionInstruction[];
|
2517
2521
|
additionalSigners: Signer[];
|
2518
2522
|
}>;
|
2519
|
-
removeCompoundingLiquidity: (sflpAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2523
|
+
removeCompoundingLiquidity: (sflpAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
2520
2524
|
instructions: TransactionInstruction[];
|
2521
2525
|
additionalSigners: Signer[];
|
2522
2526
|
}>;
|
2523
|
-
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
2527
|
+
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
2524
2528
|
instructions: TransactionInstruction[];
|
2525
2529
|
additionalSigners: Signer[];
|
2526
2530
|
}>;
|