flash-sdk 2.23.1 → 2.24.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 +18 -2
- package/dist/PerpetualsClient.js +737 -186
- package/dist/idl/perpetuals.d.ts +1524 -218
- package/dist/idl/perpetuals.js +1524 -218
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
@@ -3979,6 +3979,14 @@ export declare class PerpetualsClient {
|
|
3979
3979
|
instructions: TransactionInstruction[];
|
3980
3980
|
additionalSigners: Signer[];
|
3981
3981
|
}>;
|
3982
|
+
swapAndOpen: (targetTokenSymbol: string, collateralTokenSymbol: string, userInputTokenSymbol: string, amountIn: BN, minCollateralAmountOut: BN, priceWithSlippage: ContractOraclePrice, sizeAmount: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, nftTradingAccount?: PublicKey, nftReferralAccount?: PublicKey, nftRebateTokenAccount?: PublicKey, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean) => Promise<{
|
3983
|
+
instructions: TransactionInstruction[];
|
3984
|
+
additionalSigners: Signer[];
|
3985
|
+
}>;
|
3986
|
+
closeAndSwap: (targetTokenSymbol: string, collateralTokenSymbol: string, userOutputTokenSymbol: string, minSwapAmountOut: BN, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, nftTradingAccount?: PublicKey, nftReferralAccount?: PublicKey, nftRebateTokenAccount?: PublicKey, createUserATA?: boolean, unWrapSol?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
3987
|
+
instructions: TransactionInstruction[];
|
3988
|
+
additionalSigners: Signer[];
|
3989
|
+
}>;
|
3982
3990
|
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
3983
3991
|
instructions: TransactionInstruction[];
|
3984
3992
|
additionalSigners: Signer[];
|
@@ -4098,7 +4106,7 @@ export declare class PerpetualsClient {
|
|
4098
4106
|
instructions: TransactionInstruction[];
|
4099
4107
|
additionalSigners: Signer[];
|
4100
4108
|
}>;
|
4101
|
-
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4109
|
+
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, receiveCustodyId: number, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4102
4110
|
instructions: TransactionInstruction[];
|
4103
4111
|
additionalSigners: Signer[];
|
4104
4112
|
}>;
|
@@ -4106,6 +4114,10 @@ export declare class PerpetualsClient {
|
|
4106
4114
|
instructions: TransactionInstruction[];
|
4107
4115
|
additionalSigners: Signer[];
|
4108
4116
|
}>;
|
4117
|
+
executeLimitWithSwap: (userPubkey: PublicKey, targetSymbol: string, collateralSymbol: string, reserveSymbol: string, side: Side, orderId: number, poolConfig: PoolConfig, privilege: Privilege, nftTradingAccount?: PublicKey, nftReferralAccount?: PublicKey, nftRebateTokenAccount?: PublicKey) => Promise<{
|
4118
|
+
instructions: TransactionInstruction[];
|
4119
|
+
additionalSigners: Signer[];
|
4120
|
+
}>;
|
4109
4121
|
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, receiveCustodyId: number, poolConfig: PoolConfig) => Promise<{
|
4110
4122
|
instructions: TransactionInstruction[];
|
4111
4123
|
additionalSigners: Signer[];
|
@@ -4118,11 +4130,15 @@ export declare class PerpetualsClient {
|
|
4118
4130
|
instructions: TransactionInstruction[];
|
4119
4131
|
additionalSigners: Signer[];
|
4120
4132
|
}>;
|
4133
|
+
executeTriggerWithSwap: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, receivingSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4134
|
+
instructions: TransactionInstruction[];
|
4135
|
+
additionalSigners: Signer[];
|
4136
|
+
}>;
|
4121
4137
|
executeTriggerOrder: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4122
4138
|
instructions: TransactionInstruction[];
|
4123
4139
|
additionalSigners: Signer[];
|
4124
4140
|
}>;
|
4125
|
-
migrateTriggerOrder: (owner: PublicKey,
|
4141
|
+
migrateTriggerOrder: (owner: PublicKey, marketAccount: PublicKey, poolConfig: PoolConfig) => Promise<{
|
4126
4142
|
instructions: TransactionInstruction[];
|
4127
4143
|
additionalSigners: Signer[];
|
4128
4144
|
}>;
|