@panoptic-eng/sdk 1.0.23 → 1.0.25

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.
@@ -6,7 +6,7 @@ import { AccountLiquidatedEvent, BaseEvent, DepositEvent, DispatchCall, EventSub
6
6
  import { CheckCowApprovalParams, QuoteCowSwapParams } from "../../types-Bzw_7NJv.js";
7
7
  import { Abi, Address as Address$1, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, WalletClient } from "viem";
8
8
  import { ReactNode } from "react";
9
- import * as react_jsx_runtime17 from "react/jsx-runtime";
9
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/panoptic/v2/types/account.d.ts
12
12
  /**
@@ -2559,6 +2559,12 @@ interface GetMaxPositionSizeParams {
2559
2559
  precisionPct?: number;
2560
2560
  /** Whether to swap tokens at mint (affects collateral requirements, default: false) */
2561
2561
  swapAtMint?: boolean;
2562
+ /**
2563
+ * Whether the solvency simulation may count accrued premia as collateral. MUST match the
2564
+ * mint (which uses `false`) — passing `true` credits premia the mint won't, so the search
2565
+ * returns a size larger than the account can actually mint. Defaults to `false`.
2566
+ */
2567
+ usePremiaAsCollateral?: boolean;
2562
2568
  /** Optional block number for historical queries */
2563
2569
  blockNumber?: bigint;
2564
2570
  /** Optional pre-fetched block metadata (skips getBlockMeta RPC call) */
@@ -2590,6 +2596,16 @@ interface GetRequiredCreditForITMParams {
2590
2596
  positionSize: bigint;
2591
2597
  /** Existing position IDs held by the account (defaults to empty) */
2592
2598
  existingPositionIds?: bigint[];
2599
+ /**
2600
+ * Whether the position will be minted with a token swap (Zap). Controls the
2601
+ * dispatch tickLimit direction and therefore what the measured flow looks like:
2602
+ * - `true` (default): descending tickLimits → SFPM swap → flow consolidated to
2603
+ * the single token the mint would swap into.
2604
+ * - `false`: ascending tickLimits → no swap → the true two-sided flow (both
2605
+ * tokens), matching a cover-at-mint open.
2606
+ * Must match the swapAtMint used at mint for the measurement to be meaningful.
2607
+ */
2608
+ swapAtMint?: boolean;
2593
2609
  /** Optional block number for simulation */
2594
2610
  blockNumber?: bigint;
2595
2611
  /** Optional pre-fetched block metadata (skips getBlockMeta RPC call) */
@@ -2643,79 +2659,176 @@ interface RequiredCreditForITM {
2643
2659
  * ```
2644
2660
  */
2645
2661
  declare function getRequiredCreditForITM(params: GetRequiredCreditForITMParams): Promise<RequiredCreditForITM>;
2662
+ /**
2663
+ * Parameters for getItmAmounts.
2664
+ */
2665
+ interface GetItmAmountsParams {
2666
+ /** viem PublicClient */
2667
+ client: PublicClient;
2668
+ /** PanopticQuery address (holds the getItmAmounts view) */
2669
+ queryAddress: Address$1;
2670
+ /** PanopticPool address the position would be minted on */
2671
+ poolAddress: Address$1;
2672
+ /** The option position (may already include width=0 neutralizing legs) */
2673
+ tokenId: bigint;
2674
+ /** Position size (number of contracts) */
2675
+ positionSize: bigint;
2676
+ /** Optional block number */
2677
+ blockNumber?: bigint;
2678
+ /** Optional pre-fetched block metadata */
2679
+ _meta?: BlockMeta;
2680
+ }
2681
+ /**
2682
+ * Result of getItmAmounts: the net in-the-money amounts a mint of `tokenId` would
2683
+ * accumulate in the SFPM before the mint-time netting swap.
2684
+ */
2685
+ interface ItmAmounts {
2686
+ /** Net ITM amount of token0 (SFPM sign convention). */
2687
+ itm0: bigint;
2688
+ /** Net ITM amount of token1. */
2689
+ itm1: bigint;
2690
+ /** Block metadata */
2691
+ _meta: BlockMeta;
2692
+ }
2693
+ /**
2694
+ * Read the net `itmAmounts` a mint of `tokenId` would produce, via
2695
+ * `PanopticQuery.getItmAmounts`. This is the swap-independent, per-leg-linear
2696
+ * projection that drives the SFPM's mint-time netting swap: the swap only fires
2697
+ * when `itmAmounts != 0`. Sizing width=0 legs so the combined tokenId returns
2698
+ * (~0, ~0) here makes the mint swap dust — regardless of Zap vs cover.
2699
+ *
2700
+ * @param params - The parameters
2701
+ * @returns The net itm0/itm1 with block metadata
2702
+ */
2703
+ declare function getItmAmounts(params: GetItmAmountsParams): Promise<ItmAmounts>;
2646
2704
  /**
2647
2705
  * Parameters for createFlowNeutralTokenId.
2648
2706
  */
2649
2707
  interface CreateFlowNeutralTokenIdParams {
2650
2708
  /** viem PublicClient */
2651
2709
  client: PublicClient;
2652
- /** PanopticPool address */
2710
+ /** PanopticPool address the position would be minted on */
2653
2711
  poolAddress: Address$1;
2654
- /** Account address */
2712
+ /** Account address (whose collateral flow the neutralization targets) */
2655
2713
  account: Address$1;
2656
- /** The base tokenId (without neutralizing leg) */
2714
+ /** The base tokenId (without neutralizing legs) */
2657
2715
  tokenId: bigint;
2658
2716
  /** Position size (number of contracts) — unchanged by this function */
2659
2717
  positionSize: bigint;
2718
+ /**
2719
+ * PanopticQuery address. When provided, the position's true intrinsic (`getItmAmounts`)
2720
+ * gates neutralization: an OTM position (no ITM) gets NO leg, even though its realized
2721
+ * flow is non-zero from the open commission. Without it, OTM detection falls back to the
2722
+ * commission-inclusive realized flow, which spuriously neutralizes the fee.
2723
+ */
2724
+ queryAddress?: Address$1;
2660
2725
  /** Existing position IDs held by the account (defaults to empty) */
2661
2726
  existingPositionIds?: bigint[];
2662
- /** Optional block number for simulation */
2727
+ /**
2728
+ * Whether the position will be minted with a token swap (Zap). Must match the
2729
+ * mint: the neutralization targets the NET token flow under this swap mode, so a
2730
+ * mismatch would neutralize the wrong quantity. Defaults to `true`.
2731
+ */
2732
+ swapAtMint?: boolean;
2733
+ /**
2734
+ * Size at which to MEASURE the base flow that sizes the neutralizing leg(s). The leg
2735
+ * strikes are position-size-independent (the flow is linear in size), so measuring at a
2736
+ * small affordable reference and reusing the result for `positionSize` yields the same
2737
+ * legs. Set this below `positionSize` to avoid the un-neutralized base dispatch reverting
2738
+ * with NotEnoughTokens at large sizes under Cover (the gross ITM would exceed the
2739
+ * account's balance even though the neutralized mint nets ~0). Defaults to `positionSize`;
2740
+ * clamped to `positionSize` if larger.
2741
+ */
2742
+ referenceSize?: bigint;
2743
+ /** Optional block number (pins base + verify measurements to one block) */
2663
2744
  blockNumber?: bigint;
2664
2745
  /** Optional pre-fetched block metadata */
2665
2746
  _meta?: BlockMeta;
2666
2747
  }
2748
+ /**
2749
+ * A single width=0 neutralizing leg emitted by {@link createFlowNeutralTokenId}.
2750
+ */
2751
+ interface NeutralLeg {
2752
+ /** The encoded strike of the leg (sign follows the `asset === 0 ? +t : -t` convention). */
2753
+ strike: bigint;
2754
+ /** Asset (0n or 1n) of the leg. Always `1n - tokenType` (asset ≠ tokenType, so it is strike-tunable). */
2755
+ asset: bigint;
2756
+ /** Token type (0n or 1n) — the token this leg neutralizes (its itm slot). */
2757
+ tokenType: bigint;
2758
+ /** true = credit leg (isLong, offsets negative itm), false = loan leg (short, offsets positive itm). */
2759
+ isCredit: boolean;
2760
+ }
2667
2761
  /**
2668
2762
  * Result of createFlowNeutralTokenId.
2669
2763
  */
2670
2764
  interface FlowNeutralTokenId {
2671
2765
  /**
2672
- * New tokenId with a single width=0 neutralizing leg prepended at index 0
2673
- * (existing legs shifted to 1..n). Equals the original tokenId if OTM.
2766
+ * New tokenId with the neutralizing legs appended after the base legs (base legs keep
2767
+ * their original indices, so the option leg stays at index 0). Equals the original
2768
+ * tokenId when OTM (`neutralLegs` empty).
2674
2769
  */
2675
2770
  tokenId: bigint;
2676
2771
  /**
2677
2772
  * Position size to use when opening this tokenId. Always equal to the input
2678
- * `positionSize` — the neutralizing leg is sized via its strike, not by
2773
+ * `positionSize` — neutralizing legs are sized via their strike, not by
2679
2774
  * rescaling the position.
2680
2775
  */
2681
2776
  positionSize: bigint;
2682
- /** The computed strike of the neutralizing leg (0n if OTM). */
2683
- neutralStrike: bigint;
2684
- /** Asset (0n or 1n) of the neutralizing leg (0n if OTM). */
2685
- neutralAsset: bigint;
2686
- /** Token type (0n or 1n) of the neutralizing leg (0n if OTM). */
2687
- neutralTokenType: bigint;
2688
- /** true = credit leg (isLong), false = loan leg; only meaningful when a leg was added. */
2689
- neutralIsCredit: boolean;
2690
- /** The raw ITM measurement that drove the leg sizing. */
2777
+ /**
2778
+ * The neutralizing legs added, appended after the base legs. 0 entries = OTM/no leg;
2779
+ * 1 = the single dominant-token neutralizing leg (single-leg neutralization).
2780
+ */
2781
+ neutralLegs: NeutralLeg[];
2782
+ /** The BASE position's net-flow measurement (what the legs offset). */
2691
2783
  originalCredit: RequiredCreditForITM;
2692
2784
  /**
2693
- * Tick-spacing rounding residual (solved tick − rounded tick) for diagnostics.
2694
- * The achieved notional differs from the exact ITM amount by at most ~half a
2695
- * tick-spacing in basis points (each tick ≈ 1bp) — an intended approximation.
2785
+ * The COMBINED (neutralized) position's actual token flow under the mint's swap,
2786
+ * from a verify re-measurement. Use this for the Account-Balances display and to
2787
+ * gate the mint — its `delta0/delta1` are the residual net transfer (≈ dust).
2696
2788
  */
2697
- strikeResidualTick: bigint;
2789
+ neutralizedTokenFlow: TokenFlow$1;
2698
2790
  /** Block metadata */
2699
2791
  _meta: BlockMeta;
2700
2792
  }
2701
2793
  /**
2702
- * Create a flow-neutral tokenId by prepending a width=0 credit/loan leg that
2703
- * offsets the net ITM token flow.
2704
- *
2705
- * When a position is ITM, opening it produces an imbalanced single-sided token
2706
- * flow. This function measures that net flow via {@link getRequiredCreditForITM}
2707
- * and prepends a single width=0 leg (at index 0, with `asset !== tokenType` so
2708
- * its notional scales continuously by strike) sized so its token flow is equal
2709
- * and opposite. The result has net flow ~zero at mint.
2710
- *
2711
- * The leg occupies index 0; existing legs are shifted to indices 1..n with their
2712
- * `riskPartner` references remapped (self-partners stay self, cross-partners +1).
2713
- * The input `positionSize` is never modified — the leg is sized via its strike.
2794
+ * Create a flow-neutral tokenId by adding width=0 credit/loan leg(s) that zero the
2795
+ * position's NET token transfer at mint — the amount the user would otherwise send/receive
2796
+ * (and be surprised by at burn).
2797
+ *
2798
+ * Each leg is sized against the **realized net flow**, measured by
2799
+ * {@link getRequiredCreditForITM} under the mint's own `swapAtMint`. Verified on-chain: a
2800
+ * width=0 leg's marginal effect on its token's flow is LINEAR and 1:1 with its notional
2801
+ * (`positionSize · 1.0001^strike`, matching the contract's `getAmountsMoved`). So sizing the
2802
+ * notional to `|net flow|` and solving the strike directly drives the residual to ~dust in
2803
+ * ONE shot — no fixed-point loop. (Example: flow 122.08 USDC → strike −228275 → residual
2804
+ * −0.032 USDC.)
2805
+ *
2806
+ * How many legs, keyed on swap mode:
2807
+ * - **Zap** (`swapAtMint=true`): the mint swap consolidates the flow into ONE token and a
2808
+ * width=0 leg can only move the asset axis afterwards, so we add a single leg on the
2809
+ * dominant token; the smaller side is a swap artifact left as dust.
2810
+ * - **Cover** (`swapAtMint=false`): no swap, so the flow is genuinely two-sided and each
2811
+ * token's flow is independent — we add one leg PER token above dust (up to 2), each
2812
+ * sized 1:1 to its own side. This neutralizes both sides of e.g. a two-leg straddle.
2813
+ * Each width=0 leg has `asset ≠ tokenType` (strike-tunable):
2814
+ * - token0 flow ← width=0 call leg (tokenType0, asset1)
2815
+ * - token1 flow ← width=0 put leg (tokenType1, asset0)
2816
+ * `creditAmount = −delta`: a positive amount (user would deposit) → a short LOAN leg;
2817
+ * negative (user would receive) → a long CREDIT leg. `neutralizedTokenFlow` is a single
2818
+ * verify measurement of the combined position under the ACTUAL mint swap mode.
2819
+ *
2820
+ * Neutral legs (self-partnered, width=0) are placed so index 0 carries the correct swap
2821
+ * frame: for a single-leg CALL (option `tokenType === asset`) they are PREPENDED so the
2822
+ * credit leg leads and the mint swap is asset-token friendly; for a PUT (and any multi-leg
2823
+ * base) they are APPENDED so the option leg stays at index 0. `positionSize` is never
2824
+ * modified.
2714
2825
  *
2715
2826
  * @param params - The parameters
2716
- * @returns The flow-neutral tokenId with metadata
2717
- * @throws PanopticError if the tokenId already has 4 legs, positionSize <= 0, or
2718
- * the required neutralizing strike falls outside the valid tick range.
2827
+ * @returns The flow-neutral tokenId, the neutralizing legs, the base net-flow
2828
+ * measurement, and the combined position's residual flow. `neutralLegs` is empty
2829
+ * when the position is OTM (input tokenId returned unchanged).
2830
+ * @throws PanopticError if positionSize <= 0, base legs + 1 > 4, the current tick
2831
+ * is unavailable, or a neutralizing strike falls outside the valid tick range.
2719
2832
  */
2720
2833
  declare function createFlowNeutralTokenId(params: CreateFlowNeutralTokenIdParams): Promise<FlowNeutralTokenId>;
2721
2834
  /**
@@ -3264,6 +3377,15 @@ declare function getLegValue(leg: TokenIdLeg, currentTick: bigint, mintTick: big
3264
3377
  * @returns Leg delta in asset token smallest units
3265
3378
  */
3266
3379
  declare function getLegDelta(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, assetIndex?: bigint): bigint;
3380
+ /** Convert a delta between token frames at the current pool tick. */
3381
+ declare function toVaultFrameAtTick(delta: bigint, fromAsset: bigint, vaultAssetIndex: 0n | 1n, currentTick: bigint, flipSignOnAssetInversion?: boolean): bigint;
3382
+ /**
3383
+ * Calculate one leg's wallet-aware delta in the vault asset frame.
3384
+ *
3385
+ * Width-zero loans and credits must be evaluated directly in the vault frame.
3386
+ * Option legs remain in their natural leg frame until converted at the mark tick.
3387
+ */
3388
+ declare function getLegDeltaInVaultFrame(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, vaultAssetIndex: 0n | 1n): bigint;
3267
3389
  /**
3268
3390
  * Calculate the gamma (dollar gamma) of a single leg.
3269
3391
  *
@@ -4816,11 +4938,17 @@ declare function useEstimateCollateralRequired(poolAddress: Address$1, tokenId:
4816
4938
  declare function useFlowNeutralTokenId(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, account?: Address$1, options?: QueryOptions & {
4817
4939
  existingPositionIds?: bigint[];
4818
4940
  neutralizeITM?: boolean;
4941
+ swapAtMint?: boolean;
4942
+ /** Size to measure the base flow at (defaults to positionSize). See SDK param. */
4943
+ referenceSize?: bigint;
4944
+ /** PanopticQuery address — gates OTM on true intrinsic. See SDK param. */
4945
+ queryAddress?: Address$1;
4819
4946
  }): QueryObserverResult<TData, TError>;
4820
4947
  declare function useMaxPositionSize(poolAddress: Address$1, tokenId: bigint, queryAddress: Address$1, account?: Address$1, options?: QueryOptions & {
4821
4948
  existingPositionIds?: bigint[];
4822
4949
  swapAtMint?: boolean;
4823
4950
  precisionPct?: number;
4951
+ usePremiaAsCollateral?: boolean;
4824
4952
  }): QueryObserverResult<TData, TError>;
4825
4953
  declare function useOptimizeRiskPartners(poolAddress: Address$1, tokenId: bigint, queryAddress: Address$1, atTick?: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
4826
4954
  declare function useMaxWithdrawable(collateralTrackerAddress: Address$1, positionIdList: bigint[], totalAssets: bigint, account?: Address$1, options?: QueryOptions & {
@@ -5905,7 +6033,7 @@ interface PanopticProviderProps extends PanopticContextValue {
5905
6033
  declare function PanopticProvider({
5906
6034
  children,
5907
6035
  ...value
5908
- }: PanopticProviderProps): react_jsx_runtime17.JSX.Element;
6036
+ }: PanopticProviderProps): react_jsx_runtime21.JSX.Element;
5909
6037
  /**
5910
6038
  * Access the Panoptic SDK context.
5911
6039
  *
@@ -6104,9 +6232,10 @@ declare const queryKeys: {
6104
6232
  */
6105
6233
  readonly requiredCreditForITM: (chainId: bigint, poolAddress: Address, account: Address, tokenId: bigint) => readonly ["panoptic-v2", "requiredCreditForITM", string, Address, Address, string];
6106
6234
  /**
6107
- * Key for flow-neutral tokenId (ITM-neutralizing leg).
6235
+ * Key for flow-neutral tokenId (ITM-neutralizing legs). Account-independent —
6236
+ * itmAmounts is a pure projection of the tokenId + size.
6108
6237
  */
6109
- readonly flowNeutralTokenId: (chainId: bigint, poolAddress: Address, account: Address, tokenId: bigint) => readonly ["panoptic-v2", "flowNeutralTokenId", string, Address, Address, string];
6238
+ readonly flowNeutralTokenId: (chainId: bigint, poolAddress: Address, tokenId: bigint) => readonly ["panoptic-v2", "flowNeutralTokenId", string, Address, string];
6110
6239
  /**
6111
6240
  * Key for interest state (per-user borrows).
6112
6241
  */
@@ -10047,5 +10176,5 @@ declare function isNonceError(error: unknown): boolean;
10047
10176
  declare function isGasError(error: unknown): boolean;
10048
10177
 
10049
10178
  //#endregion
10050
- export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getLegDelta, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
10179
+ export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
10051
10180
  //# sourceMappingURL=index.d.ts.map