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.
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { ContractOraclePrice } from "./types";
4
3
  export declare class OraclePrice {
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { PublicKey } from "@solana/web3.js";
4
3
  import { LimitOrder, Order, TriggerOrder } from "./types";
@@ -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[];