flash-sdk 2.22.1 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/PerpetualsClient.d.ts +2 -10
- package/dist/PerpetualsClient.js +83 -271
- package/dist/PoolConfig.json +53 -0
- package/dist/idl/perpetuals.d.ts +7 -631
- package/dist/idl/perpetuals.js +7 -631
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +0 -2
- package/package.json +1 -1
@@ -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,
|
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<{
|
4102
4102
|
instructions: TransactionInstruction[];
|
4103
4103
|
additionalSigners: Signer[];
|
4104
4104
|
}>;
|
@@ -4106,10 +4106,6 @@ 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
|
-
}>;
|
4113
4109
|
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, receiveCustodyId: number, poolConfig: PoolConfig) => Promise<{
|
4114
4110
|
instructions: TransactionInstruction[];
|
4115
4111
|
additionalSigners: Signer[];
|
@@ -4122,15 +4118,11 @@ export declare class PerpetualsClient {
|
|
4122
4118
|
instructions: TransactionInstruction[];
|
4123
4119
|
additionalSigners: Signer[];
|
4124
4120
|
}>;
|
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
|
-
}>;
|
4129
4121
|
executeTriggerOrder: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
4130
4122
|
instructions: TransactionInstruction[];
|
4131
4123
|
additionalSigners: Signer[];
|
4132
4124
|
}>;
|
4133
|
-
migrateTriggerOrder: (owner: PublicKey,
|
4125
|
+
migrateTriggerOrder: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig) => Promise<{
|
4134
4126
|
instructions: TransactionInstruction[];
|
4135
4127
|
additionalSigners: Signer[];
|
4136
4128
|
}>;
|