flash-sdk 11.11.2 → 11.11.4-alpha.0
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 +36 -36
- package/dist/PerpetualsClient.js +490 -684
- package/dist/PositionAccount.d.ts +1 -1
- package/dist/idl/perpetuals.d.ts +1 -1
- package/dist/idl/perpetuals.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +4 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -369,7 +369,7 @@ export declare class PerpetualsClient {
|
|
|
369
369
|
price: BN;
|
|
370
370
|
exponent: number;
|
|
371
371
|
};
|
|
372
|
-
priceImpactSet:
|
|
372
|
+
priceImpactSet: number;
|
|
373
373
|
sizeDecimals: number;
|
|
374
374
|
lockedDecimals: number;
|
|
375
375
|
collateralDecimals: number;
|
|
@@ -726,7 +726,7 @@ export declare class PerpetualsClient {
|
|
|
726
726
|
price: BN;
|
|
727
727
|
exponent: number;
|
|
728
728
|
};
|
|
729
|
-
priceImpactSet:
|
|
729
|
+
priceImpactSet: number;
|
|
730
730
|
sizeDecimals: number;
|
|
731
731
|
lockedDecimals: number;
|
|
732
732
|
collateralDecimals: number;
|
|
@@ -1082,7 +1082,7 @@ export declare class PerpetualsClient {
|
|
|
1082
1082
|
price: BN;
|
|
1083
1083
|
exponent: number;
|
|
1084
1084
|
};
|
|
1085
|
-
priceImpactSet:
|
|
1085
|
+
priceImpactSet: number;
|
|
1086
1086
|
sizeDecimals: number;
|
|
1087
1087
|
lockedDecimals: number;
|
|
1088
1088
|
collateralDecimals: number;
|
|
@@ -1442,7 +1442,7 @@ export declare class PerpetualsClient {
|
|
|
1442
1442
|
price: BN;
|
|
1443
1443
|
exponent: number;
|
|
1444
1444
|
};
|
|
1445
|
-
priceImpactSet:
|
|
1445
|
+
priceImpactSet: number;
|
|
1446
1446
|
sizeDecimals: number;
|
|
1447
1447
|
lockedDecimals: number;
|
|
1448
1448
|
collateralDecimals: number;
|
|
@@ -1801,7 +1801,7 @@ export declare class PerpetualsClient {
|
|
|
1801
1801
|
price: BN;
|
|
1802
1802
|
exponent: number;
|
|
1803
1803
|
};
|
|
1804
|
-
priceImpactSet:
|
|
1804
|
+
priceImpactSet: number;
|
|
1805
1805
|
sizeDecimals: number;
|
|
1806
1806
|
lockedDecimals: number;
|
|
1807
1807
|
collateralDecimals: number;
|
|
@@ -2158,7 +2158,7 @@ export declare class PerpetualsClient {
|
|
|
2158
2158
|
price: BN;
|
|
2159
2159
|
exponent: number;
|
|
2160
2160
|
};
|
|
2161
|
-
priceImpactSet:
|
|
2161
|
+
priceImpactSet: number;
|
|
2162
2162
|
sizeDecimals: number;
|
|
2163
2163
|
lockedDecimals: number;
|
|
2164
2164
|
collateralDecimals: number;
|
|
@@ -2514,7 +2514,7 @@ export declare class PerpetualsClient {
|
|
|
2514
2514
|
price: BN;
|
|
2515
2515
|
exponent: number;
|
|
2516
2516
|
};
|
|
2517
|
-
priceImpactSet:
|
|
2517
|
+
priceImpactSet: number;
|
|
2518
2518
|
sizeDecimals: number;
|
|
2519
2519
|
lockedDecimals: number;
|
|
2520
2520
|
collateralDecimals: number;
|
|
@@ -2870,7 +2870,7 @@ export declare class PerpetualsClient {
|
|
|
2870
2870
|
price: BN;
|
|
2871
2871
|
exponent: number;
|
|
2872
2872
|
};
|
|
2873
|
-
priceImpactSet:
|
|
2873
|
+
priceImpactSet: number;
|
|
2874
2874
|
sizeDecimals: number;
|
|
2875
2875
|
lockedDecimals: number;
|
|
2876
2876
|
collateralDecimals: number;
|
|
@@ -2965,7 +2965,7 @@ export declare class PerpetualsClient {
|
|
|
2965
2965
|
exponent: number;
|
|
2966
2966
|
};
|
|
2967
2967
|
buffer: number[];
|
|
2968
|
-
priceImpactSet:
|
|
2968
|
+
priceImpactSet: number;
|
|
2969
2969
|
sizeDecimals: number;
|
|
2970
2970
|
lockedDecimals: number;
|
|
2971
2971
|
collateralDecimals: number;
|
|
@@ -3278,7 +3278,7 @@ export declare class PerpetualsClient {
|
|
|
3278
3278
|
price: BN;
|
|
3279
3279
|
exponent: number;
|
|
3280
3280
|
};
|
|
3281
|
-
priceImpactSet:
|
|
3281
|
+
priceImpactSet: number;
|
|
3282
3282
|
sizeDecimals: number;
|
|
3283
3283
|
lockedDecimals: number;
|
|
3284
3284
|
collateralDecimals: number;
|
|
@@ -3634,7 +3634,7 @@ export declare class PerpetualsClient {
|
|
|
3634
3634
|
price: BN;
|
|
3635
3635
|
exponent: number;
|
|
3636
3636
|
};
|
|
3637
|
-
priceImpactSet:
|
|
3637
|
+
priceImpactSet: number;
|
|
3638
3638
|
sizeDecimals: number;
|
|
3639
3639
|
lockedDecimals: number;
|
|
3640
3640
|
collateralDecimals: number;
|
|
@@ -3990,7 +3990,7 @@ export declare class PerpetualsClient {
|
|
|
3990
3990
|
price: BN;
|
|
3991
3991
|
exponent: number;
|
|
3992
3992
|
};
|
|
3993
|
-
priceImpactSet:
|
|
3993
|
+
priceImpactSet: number;
|
|
3994
3994
|
sizeDecimals: number;
|
|
3995
3995
|
lockedDecimals: number;
|
|
3996
3996
|
collateralDecimals: number;
|
|
@@ -4346,7 +4346,7 @@ export declare class PerpetualsClient {
|
|
|
4346
4346
|
price: BN;
|
|
4347
4347
|
exponent: number;
|
|
4348
4348
|
};
|
|
4349
|
-
priceImpactSet:
|
|
4349
|
+
priceImpactSet: number;
|
|
4350
4350
|
sizeDecimals: number;
|
|
4351
4351
|
lockedDecimals: number;
|
|
4352
4352
|
collateralDecimals: number;
|
|
@@ -4702,7 +4702,7 @@ export declare class PerpetualsClient {
|
|
|
4702
4702
|
price: BN;
|
|
4703
4703
|
exponent: number;
|
|
4704
4704
|
};
|
|
4705
|
-
priceImpactSet:
|
|
4705
|
+
priceImpactSet: number;
|
|
4706
4706
|
sizeDecimals: number;
|
|
4707
4707
|
lockedDecimals: number;
|
|
4708
4708
|
collateralDecimals: number;
|
|
@@ -4908,47 +4908,47 @@ export declare class PerpetualsClient {
|
|
|
4908
4908
|
getLiquidationStateView: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
|
4909
4909
|
getCompoundingTokenDataView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4910
4910
|
getLpTokenPriceView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4911
|
-
openPosition: (targetSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, collateralWithfee: BN, size: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4911
|
+
openPosition: (targetSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, collateralWithfee: BN, size: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4912
4912
|
instructions: TransactionInstruction[];
|
|
4913
4913
|
additionalSigners: Signer[];
|
|
4914
4914
|
}>;
|
|
4915
|
-
closePosition: (marketSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?:
|
|
4915
|
+
closePosition: (marketSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4916
4916
|
instructions: TransactionInstruction[];
|
|
4917
4917
|
additionalSigners: Signer[];
|
|
4918
4918
|
}>;
|
|
4919
|
-
swapAndOpen: (targetTokenSymbol: string, collateralTokenSymbol: string, userInputTokenSymbol: string, amountIn: BN, priceWithSlippage: ContractOraclePrice, sizeAmount: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4919
|
+
swapAndOpen: (targetTokenSymbol: string, collateralTokenSymbol: string, userInputTokenSymbol: string, amountIn: BN, priceWithSlippage: ContractOraclePrice, sizeAmount: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4920
4920
|
instructions: TransactionInstruction[];
|
|
4921
4921
|
additionalSigners: Signer[];
|
|
4922
4922
|
}>;
|
|
4923
|
-
closeAndSwap: (targetTokenSymbol: string, userOutputTokenSymbol: string, collateralTokenSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, ephemeralSignerPubkey?:
|
|
4923
|
+
closeAndSwap: (targetTokenSymbol: string, userOutputTokenSymbol: string, collateralTokenSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4924
4924
|
instructions: TransactionInstruction[];
|
|
4925
4925
|
additionalSigners: Signer[];
|
|
4926
4926
|
}>;
|
|
4927
|
-
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4927
|
+
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4928
4928
|
instructions: TransactionInstruction[];
|
|
4929
4929
|
additionalSigners: Signer[];
|
|
4930
4930
|
}>;
|
|
4931
|
-
swapAndAddCollateral: (targetSymbol: string, inputSymbol: string, collateralSymbol: string, amountIn: BN, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4931
|
+
swapAndAddCollateral: (targetSymbol: string, inputSymbol: string, collateralSymbol: string, amountIn: BN, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4932
4932
|
instructions: TransactionInstruction[];
|
|
4933
4933
|
additionalSigners: Signer[];
|
|
4934
4934
|
}>;
|
|
4935
|
-
removeCollateral: (collateralDeltaUsd: BN, marketSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?:
|
|
4935
|
+
removeCollateral: (collateralDeltaUsd: BN, marketSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4936
4936
|
instructions: TransactionInstruction[];
|
|
4937
4937
|
additionalSigners: Signer[];
|
|
4938
4938
|
}>;
|
|
4939
|
-
removeCollateralAndSwap: (targetSymbol: string, collateralSymbol: string, outputSymbol: string, collateralDeltaUsd: BN, side: Side, poolConfig: PoolConfig, ephemeralSignerPubkey?:
|
|
4939
|
+
removeCollateralAndSwap: (targetSymbol: string, collateralSymbol: string, outputSymbol: string, collateralDeltaUsd: BN, side: Side, poolConfig: PoolConfig, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
4940
4940
|
instructions: TransactionInstruction[];
|
|
4941
4941
|
additionalSigners: Signer[];
|
|
4942
4942
|
}>;
|
|
4943
|
-
increaseSize: (targetSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, side: Side, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey) => Promise<{
|
|
4943
|
+
increaseSize: (targetSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, side: Side, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, userPublicKey?: PublicKey) => Promise<{
|
|
4944
4944
|
instructions: TransactionInstruction[];
|
|
4945
4945
|
additionalSigners: Signer[];
|
|
4946
4946
|
}>;
|
|
4947
|
-
decreaseSize: (targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey) => Promise<{
|
|
4947
|
+
decreaseSize: (targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, userPublicKey?: PublicKey) => Promise<{
|
|
4948
4948
|
instructions: TransactionInstruction[];
|
|
4949
4949
|
additionalSigners: Signer[];
|
|
4950
4950
|
}>;
|
|
4951
|
-
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4951
|
+
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, isWhitelistedUser?: boolean, userPublicKey?: PublicKey) => Promise<{
|
|
4952
4952
|
instructions: TransactionInstruction[];
|
|
4953
4953
|
additionalSigners: Signer[];
|
|
4954
4954
|
}>;
|
|
@@ -4975,7 +4975,7 @@ export declare class PerpetualsClient {
|
|
|
4975
4975
|
additionalSigners: Signer[];
|
|
4976
4976
|
}>;
|
|
4977
4977
|
setFeeShareBps: (poolConfig: PoolConfig, flpStakeAccountPks: PublicKey[]) => Promise<TransactionInstruction>;
|
|
4978
|
-
unstakeRequest: (unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4978
|
+
unstakeRequest: (unstakeAmount: BN, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
4979
4979
|
instructions: TransactionInstruction[];
|
|
4980
4980
|
additionalSigners: Signer[];
|
|
4981
4981
|
}>;
|
|
@@ -4995,11 +4995,11 @@ export declare class PerpetualsClient {
|
|
|
4995
4995
|
instructions: TransactionInstruction[];
|
|
4996
4996
|
additionalSigners: Signer[];
|
|
4997
4997
|
}>;
|
|
4998
|
-
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
|
4998
|
+
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, userPublicKey?: PublicKey) => Promise<{
|
|
4999
4999
|
instructions: TransactionInstruction[];
|
|
5000
5000
|
additionalSigners: Signer[];
|
|
5001
5001
|
}>;
|
|
5002
|
-
migrateFlp: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
|
5002
|
+
migrateFlp: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
5003
5003
|
instructions: TransactionInstruction[];
|
|
5004
5004
|
additionalSigners: Signer[];
|
|
5005
5005
|
}>;
|
|
@@ -5027,7 +5027,7 @@ export declare class PerpetualsClient {
|
|
|
5027
5027
|
instructions: TransactionInstruction[];
|
|
5028
5028
|
additionalSigners: Signer[];
|
|
5029
5029
|
}>;
|
|
5030
|
-
collectTokenReward: (owner: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
|
5030
|
+
collectTokenReward: (owner: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, userPublicKey?: PublicKey) => Promise<{
|
|
5031
5031
|
instructions: TransactionInstruction[];
|
|
5032
5032
|
additionalSigners: Signer[];
|
|
5033
5033
|
}>;
|
|
@@ -5043,11 +5043,11 @@ export declare class PerpetualsClient {
|
|
|
5043
5043
|
instructions: TransactionInstruction[];
|
|
5044
5044
|
additionalSigners: Signer[];
|
|
5045
5045
|
}>;
|
|
5046
|
-
placeLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, limitPrice: ContractOraclePrice, reserveAmount: BN, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
5046
|
+
placeLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, limitPrice: ContractOraclePrice, reserveAmount: BN, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
5047
5047
|
instructions: TransactionInstruction[];
|
|
5048
5048
|
additionalSigners: Signer[];
|
|
5049
5049
|
}>;
|
|
5050
|
-
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?:
|
|
5050
|
+
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, userPublicKey?: PublicKey) => Promise<{
|
|
5051
5051
|
instructions: TransactionInstruction[];
|
|
5052
5052
|
additionalSigners: Signer[];
|
|
5053
5053
|
}>;
|
|
@@ -5059,19 +5059,19 @@ export declare class PerpetualsClient {
|
|
|
5059
5059
|
instructions: TransactionInstruction[];
|
|
5060
5060
|
additionalSigners: Signer[];
|
|
5061
5061
|
}>;
|
|
5062
|
-
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5062
|
+
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
5063
5063
|
instructions: TransactionInstruction[];
|
|
5064
5064
|
additionalSigners: Signer[];
|
|
5065
5065
|
}>;
|
|
5066
|
-
editTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, orderId: number, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5066
|
+
editTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, orderId: number, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
5067
5067
|
instructions: TransactionInstruction[];
|
|
5068
5068
|
additionalSigners: Signer[];
|
|
5069
5069
|
}>;
|
|
5070
|
-
cancelTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5070
|
+
cancelTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
5071
5071
|
instructions: TransactionInstruction[];
|
|
5072
5072
|
additionalSigners: Signer[];
|
|
5073
5073
|
}>;
|
|
5074
|
-
cancelAllTriggerOrders: (targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig) => Promise<{
|
|
5074
|
+
cancelAllTriggerOrders: (targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig, userPublicKey?: PublicKey) => Promise<{
|
|
5075
5075
|
instructions: TransactionInstruction[];
|
|
5076
5076
|
additionalSigners: Signer[];
|
|
5077
5077
|
}>;
|
|
@@ -5088,7 +5088,7 @@ export declare class PerpetualsClient {
|
|
|
5088
5088
|
signature: string;
|
|
5089
5089
|
versionedTransaction: VersionedTransaction;
|
|
5090
5090
|
}>;
|
|
5091
|
-
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
5091
|
+
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: PublicKey | undefined, isWhitelistedUser?: boolean, userPublicKey?: PublicKey) => Promise<{
|
|
5092
5092
|
instructions: TransactionInstruction[];
|
|
5093
5093
|
additionalSigners: Signer[];
|
|
5094
5094
|
}>;
|