flash-sdk 2.49.1 → 2.50.1
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 +2 -10
- package/dist/PerpetualsClient.js +541 -516
- package/dist/PoolConfig.json +110 -0
- package/dist/ViewHelper.js +3 -3
- package/dist/backupOracle.js +3 -3
- package/dist/idl/perpetuals.d.ts +1 -112
- package/dist/idl/perpetuals.js +1 -112
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/utils/alt.d.ts +0 -1
- package/dist/utils/rpc.js +50 -50
- package/package.json +1 -1
@@ -1,9 +1,10 @@
|
|
1
|
+
/// <reference types="bn.js" />
|
1
2
|
/// <reference types="node" />
|
2
3
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
3
4
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
4
5
|
import { PoolAccount } from "./PoolAccount";
|
5
6
|
import { PositionAccount } from "./PositionAccount";
|
6
|
-
import { AddLiquidityAmountAndFee,
|
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";
|
7
8
|
import { OraclePrice } from "./OraclePrice";
|
8
9
|
import { CustodyAccount } from "./CustodyAccount";
|
9
10
|
import { Perpetuals } from "./idl/perpetuals";
|
@@ -12,7 +13,6 @@ import { FbnftRewards } from "./idl/fbnft_rewards";
|
|
12
13
|
import { RewardDistribution } from "./idl/reward_distribution";
|
13
14
|
import { SendTransactionOpts } from "./utils/rpc";
|
14
15
|
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 }: {
|
@@ -4802,14 +4802,6 @@ export declare class PerpetualsClient {
|
|
4802
4802
|
instructions: TransactionInstruction[];
|
4803
4803
|
additionalSigners: Signer[];
|
4804
4804
|
}>;
|
4805
|
-
setInternalOraclePriceBatch: (tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
4806
|
-
instructions: TransactionInstruction[];
|
4807
|
-
additionalSigners: Signer[];
|
4808
|
-
}>;
|
4809
|
-
setInternalOracleEmaPriceBatch: (tokenMintList: PublicKey[], tokenInternalEmaPrices: InternalEmaPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
4810
|
-
instructions: TransactionInstruction[];
|
4811
|
-
additionalSigners: Signer[];
|
4812
|
-
}>;
|
4813
4805
|
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined) => Promise<{
|
4814
4806
|
instructions: TransactionInstruction[];
|
4815
4807
|
additionalSigners: Signer[];
|