flash-sdk 2.51.2 → 2.51.3

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.
@@ -1,10 +1,9 @@
1
- /// <reference types="bn.js" />
2
1
  /// <reference types="node" />
3
2
  import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
4
3
  import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
5
4
  import { PoolAccount } from "./PoolAccount";
6
5
  import { PositionAccount } from "./PositionAccount";
7
- import { AddLiquidityAmountAndFee, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, Trading, EntryPriceAndFeeV2, EntryPriceAndFee, TokenPermissions, TokenStake } from "./types";
6
+ import { AddLiquidityAmountAndFee, InternalPrice, BorrowRateParams, ExitPriceAndFee, Fees, OracleParams, Permissions, PricingParams, RemoveCollateralData, RemoveLiquidityAmountAndFee, Side, TokenRatios, MinAndMaxPrice, FeesAction, ContractOraclePrice, Privilege, PerpetualsAccount, Trading, EntryPriceAndFeeV2, EntryPriceAndFee, TokenPermissions, TokenStake, InternalEmaPrice } from "./types";
8
7
  import { OraclePrice } from "./OraclePrice";
9
8
  import { CustodyAccount } from "./CustodyAccount";
10
9
  import { Perpetuals } from "./idl/perpetuals";
@@ -13,6 +12,7 @@ import { FbnftRewards } from "./idl/fbnft_rewards";
13
12
  import { RewardDistribution } from "./idl/reward_distribution";
14
13
  import { SendTransactionOpts } from "./utils/rpc";
15
14
  import { MarketConfig, PoolConfig, Token } from "./PoolConfig";
15
+ import { max } from "bn.js";
16
16
  import { MarketAccount } from "./MarketAccount";
17
17
  export type PerpClientOptions = {
18
18
  postSendTxCallback?: ({ txid }: {
@@ -4803,6 +4803,14 @@ export declare class PerpetualsClient {
4803
4803
  instructions: TransactionInstruction[];
4804
4804
  additionalSigners: Signer[];
4805
4805
  }>;
4806
+ setInternalOraclePriceBatch: (tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
4807
+ instructions: TransactionInstruction[];
4808
+ additionalSigners: Signer[];
4809
+ }>;
4810
+ setInternalOracleEmaPriceBatch: (tokenMintList: PublicKey[], tokenInternalEmaPrices: InternalEmaPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
4811
+ instructions: TransactionInstruction[];
4812
+ additionalSigners: Signer[];
4813
+ }>;
4806
4814
  addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
4807
4815
  instructions: TransactionInstruction[];
4808
4816
  additionalSigners: Signer[];