flash-sdk 2.21.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4098,7 +4098,7 @@ export declare class PerpetualsClient {
4098
4098
  instructions: TransactionInstruction[];
4099
4099
  additionalSigners: Signer[];
4100
4100
  }>;
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<{
4101
+ 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
4102
  instructions: TransactionInstruction[];
4103
4103
  additionalSigners: Signer[];
4104
4104
  }>;
@@ -4106,6 +4106,10 @@ export declare class PerpetualsClient {
4106
4106
  instructions: TransactionInstruction[];
4107
4107
  additionalSigners: Signer[];
4108
4108
  }>;
4109
+ executeLimitWithSwap: (userPubkey: PublicKey, targetSymbol: string, collateralSymbol: string, reserveSymbol: string, side: Side, orderId: number, poolConfig: PoolConfig, privilege: Privilege, nftTradingAccount?: PublicKey, nftReferralAccount?: PublicKey, nftRebateTokenAccount?: PublicKey) => Promise<{
4110
+ instructions: TransactionInstruction[];
4111
+ additionalSigners: Signer[];
4112
+ }>;
4109
4113
  placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, receiveCustodyId: number, poolConfig: PoolConfig) => Promise<{
4110
4114
  instructions: TransactionInstruction[];
4111
4115
  additionalSigners: Signer[];
@@ -4118,11 +4122,15 @@ export declare class PerpetualsClient {
4118
4122
  instructions: TransactionInstruction[];
4119
4123
  additionalSigners: Signer[];
4120
4124
  }>;
4125
+ executeTriggerWithSwap: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, receivingSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
4126
+ instructions: TransactionInstruction[];
4127
+ additionalSigners: Signer[];
4128
+ }>;
4121
4129
  executeTriggerOrder: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
4122
4130
  instructions: TransactionInstruction[];
4123
4131
  additionalSigners: Signer[];
4124
4132
  }>;
4125
- migrateTriggerOrder: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig) => Promise<{
4133
+ migrateTriggerOrder: (owner: PublicKey, marketAccount: PublicKey, poolConfig: PoolConfig) => Promise<{
4126
4134
  instructions: TransactionInstruction[];
4127
4135
  additionalSigners: Signer[];
4128
4136
  }>;