flash-sdk 2.21.0 → 2.22.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 +10 -2
 - package/dist/PerpetualsClient.js +271 -83
 - package/dist/PoolConfig.json +0 -53
 - package/dist/idl/perpetuals.d.ts +631 -7
 - package/dist/idl/perpetuals.js +631 -7
 - package/dist/tsconfig.tsbuildinfo +1 -1
 - package/dist/types/index.d.ts +2 -0
 - 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, 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,  
     | 
| 
      
 4133 
     | 
    
         
            +
                migrateTriggerOrder: (owner: PublicKey, marketAccount: PublicKey, poolConfig: PoolConfig) => Promise<{
         
     | 
| 
       4126 
4134 
     | 
    
         
             
                    instructions: TransactionInstruction[];
         
     | 
| 
       4127 
4135 
     | 
    
         
             
                    additionalSigners: Signer[];
         
     | 
| 
       4128 
4136 
     | 
    
         
             
                }>;
         
     |