flash-sdk 2.46.4 → 2.46.5-alpha.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/OraclePrice.d.ts +0 -1
- package/dist/OrderAccount.d.ts +0 -1
- package/dist/PerpetualsClient.d.ts +2 -3
- package/dist/PerpetualsClient.js +646 -471
- package/dist/PoolAccount.d.ts +0 -1
- package/dist/PoolDataClient.d.ts +0 -1
- package/dist/PositionAccount.d.ts +0 -1
- package/dist/TokenVaultAccount.d.ts +0 -1
- package/dist/TradingAccount.d.ts +0 -1
- package/dist/ViewHelper.js +2 -2
- package/dist/backupOracle.js +7 -7
- package/dist/constants/index.d.ts +0 -1
- package/dist/idl/perpetuals.d.ts +374 -0
- package/dist/idl/perpetuals.js +374 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +3 -3
- package/dist/utils/IdlCoder.js +17 -7
- package/dist/utils/alt.js +5 -6
- package/dist/utils/anchorCpiEvents.d.ts +0 -1
- package/dist/utils/anchorCpiEvents.js +4 -4
- package/dist/utils/index.js +6 -6
- package/dist/utils/rpc.js +59 -59
- package/package.json +8 -5
package/dist/OraclePrice.d.ts
CHANGED
package/dist/OrderAccount.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
3
2
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
4
3
|
import { PoolAccount } from "./PoolAccount";
|
@@ -12,7 +11,6 @@ import { FbnftRewards } from "./idl/fbnft_rewards";
|
|
12
11
|
import { RewardDistribution } from "./idl/reward_distribution";
|
13
12
|
import { SendTransactionOpts } from "./utils/rpc";
|
14
13
|
import { MarketConfig, PoolConfig, Token } from "./PoolConfig";
|
15
|
-
import { max } from "bn.js";
|
16
14
|
import { MarketAccount } from "./MarketAccount";
|
17
15
|
export type PerpClientOptions = {
|
18
16
|
postSendTxCallback?: ({ txid }: {
|
@@ -4317,7 +4315,7 @@ export declare class PerpetualsClient {
|
|
4317
4315
|
tokenStakeAccount: PublicKey;
|
4318
4316
|
burnt: boolean;
|
4319
4317
|
}>[]>;
|
4320
|
-
getAccountDiscriminator: (name: string) => Buffer
|
4318
|
+
getAccountDiscriminator: (name: string) => Buffer<ArrayBuffer>;
|
4321
4319
|
log: (...message: string[]) => void;
|
4322
4320
|
prettyPrint: (object: object) => void;
|
4323
4321
|
init: (admins: PublicKey[], config: any) => Promise<void>;
|
@@ -4512,6 +4510,7 @@ export declare class PerpetualsClient {
|
|
4512
4510
|
instructions: TransactionInstruction[];
|
4513
4511
|
additionalSigners: Signer[];
|
4514
4512
|
}>;
|
4513
|
+
refreshStakeWithAllFlpStakeAccounts: (rewardSymbol: string, poolConfig: PoolConfig, flpStakeAccountPks: PublicKey[]) => Promise<TransactionInstruction>;
|
4515
4514
|
refreshStakeWithTokenStake: (rewardSymbol: string, poolConfig: PoolConfig, flpStakeAccountPk: PublicKey) => Promise<TransactionInstruction>;
|
4516
4515
|
unstakeInstant: (rewardSymbol: string, unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4517
4516
|
instructions: TransactionInstruction[];
|