flash-sdk 1.0.127 → 1.0.129

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,6 +25,7 @@ export declare class PerpetualsClient {
25
25
  admin: PublicKey;
26
26
  programId: PublicKey;
27
27
  composabilityProgramId: PublicKey;
28
+ poolConfig: PoolConfig;
28
29
  multisig: {
29
30
  publicKey: PublicKey;
30
31
  bump: number;
@@ -45,7 +46,7 @@ export declare class PerpetualsClient {
45
46
  private postSendTxCallback?;
46
47
  private prioritizationFee;
47
48
  private txConfirmationCommitment;
48
- constructor(provider: AnchorProvider, programId: PublicKey, composabilityProgramId: PublicKey, opts: PerpClientOptions);
49
+ constructor(provider: AnchorProvider, poolConfig: PoolConfig, composabilityProgramId: PublicKey, opts: PerpClientOptions);
49
50
  setPrioritizationFee: (fee: number) => void;
50
51
  loadAddressLookupTable: (poolConfig: PoolConfig) => Promise<void>;
51
52
  findProgramAddress: (label: string, extraSeeds?: any) => {
@@ -2177,6 +2178,7 @@ export declare class PerpetualsClient {
2177
2178
  addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2178
2179
  editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2179
2180
  removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[]) => Promise<void>;
2181
+ getPythnetOraclePrices: (poolConfig: PoolConfig, backupOracleSecretKey: string) => Promise<TransactionInstruction>;
2180
2182
  getLiquidationState: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, side: PositionSide) => Promise<any>;
2181
2183
  validateCollectivePnl: (marketSymbol: string, collateralSymbol: string, poolConfig: PoolConfig, poolName: string, side: Side) => Promise<void>;
2182
2184
  liquidate: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, side: PositionSide, receivingAccount: PublicKey, rewardsReceivingAccount: PublicKey) => Promise<string>;
@@ -2269,6 +2271,10 @@ export declare class PerpetualsClient {
2269
2271
  instructions: TransactionInstruction[];
2270
2272
  additionalSigners: Signer[];
2271
2273
  }>;
2274
+ RemoveCollateralWithSwap: (marketSymbol: string, collateralSymbol: string, outputSymbol: string, minAmountOut: BN, collateralDelta: BN, side: Side, poolConfig: PoolConfig) => Promise<{
2275
+ instructions: TransactionInstruction[];
2276
+ additionalSigners: Signer[];
2277
+ }>;
2272
2278
  increaseSize: (marketSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, poolConfig: PoolConfig, price: BN, sizeDelta: BN) => Promise<{
2273
2279
  instructions: TransactionInstruction[];
2274
2280
  additionalSigners: Signer[];