flash-sdk 2.50.1 → 2.50.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.
- package/dist/PerpetualsClient.d.ts +2 -1
- package/dist/PerpetualsClient.js +663 -769
- package/dist/ViewHelper.js +3 -3
- package/dist/backupOracle.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/alt.d.ts +1 -0
- package/dist/utils/rpc.js +50 -50
- package/package.json +1 -1
@@ -1,4 +1,3 @@
|
|
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";
|
@@ -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 }: {
|
@@ -4538,6 +4538,7 @@ export declare class PerpetualsClient {
|
|
4538
4538
|
amount: BN;
|
4539
4539
|
fee: BN;
|
4540
4540
|
}>;
|
4541
|
+
getLiquidationPriceView: (positionAccountKey: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
4541
4542
|
getLiquidationStateView: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
4542
4543
|
getCompoundingTokenDataView: (poolConfig: PoolConfig) => Promise<any>;
|
4543
4544
|
getLpTokenPriceView: (poolConfig: PoolConfig) => Promise<any>;
|