@panoptic-eng/sdk 1.0.30 → 1.0.32

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.
Files changed (33) hide show
  1. package/dist/cow/index.js +3 -3
  2. package/dist/{cow-CSt61vNU.js → cow-CLFJQ-OP.js} +2 -2
  3. package/dist/{cow-CSt61vNU.js.map → cow-CLFJQ-OP.js.map} +1 -1
  4. package/dist/{index-B3JZRUNo.d.ts → index-DToj2-Vc.d.ts} +235 -13
  5. package/dist/index-DToj2-Vc.d.ts.map +1 -0
  6. package/dist/index.js +2 -2
  7. package/dist/{irm-IcePQm1r.js → irm-iAI9hTYQ.js} +3 -3
  8. package/dist/{irm-IcePQm1r.js.map → irm-iAI9hTYQ.js.map} +1 -1
  9. package/dist/{oracle-BnpPVG8V.d.ts → oracle-DaNTHk7B.d.ts} +14 -1
  10. package/dist/{oracle-BnpPVG8V.d.ts.map → oracle-DaNTHk7B.d.ts.map} +1 -1
  11. package/dist/panoptic/v2/index.d.ts +3 -3
  12. package/dist/panoptic/v2/index.js +5 -5
  13. package/dist/panoptic/v2/react-public.d.ts +18 -4
  14. package/dist/panoptic/v2/react-public.d.ts.map +1 -1
  15. package/dist/panoptic/v2/react-public.js +41 -7
  16. package/dist/panoptic/v2/react-public.js.map +1 -1
  17. package/dist/{position-UL1gOvqZ.js → position-ClU7GrTa.js} +44 -12
  18. package/dist/position-ClU7GrTa.js.map +1 -0
  19. package/dist/{router-Del9H6e0.js → router-DKFR_vnu.js} +2 -2
  20. package/dist/{router-Del9H6e0.js.map → router-DKFR_vnu.js.map} +1 -1
  21. package/dist/{types-VeWdNN0j.d.ts → types-Cy6v8iPf.d.ts} +2 -2
  22. package/dist/{types-VeWdNN0j.d.ts.map → types-Cy6v8iPf.d.ts.map} +1 -1
  23. package/dist/uniswap/index.d.ts +2 -2
  24. package/dist/uniswap/index.js +3 -3
  25. package/dist/{v2-BSV35bpu.js → v2-DHJxPCAp.js} +465 -167
  26. package/dist/v2-DHJxPCAp.js.map +1 -0
  27. package/dist/{writes-RyS0kHpB.js → writes-DQLGdkJ5.js} +50 -26
  28. package/dist/writes-DQLGdkJ5.js.map +1 -0
  29. package/package.json +1 -1
  30. package/dist/index-B3JZRUNo.d.ts.map +0 -1
  31. package/dist/position-UL1gOvqZ.js.map +0 -1
  32. package/dist/v2-BSV35bpu.js.map +0 -1
  33. package/dist/writes-RyS0kHpB.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { BlockMeta, ClosedPosition, Position, PositionGreeks, RealizedPnL, StoredPositionData, TokenIdLeg } from "./position-Bmd_3nzI.js";
2
- import { CollateralTracker, CurrentRates, Pool, PoolHealthStatus, PoolKey, PoolMetadata, SafeMode, SafeModeState } from "./oracle-BnpPVG8V.js";
2
+ import { CollateralTracker, CurrentRates, Pool, PoolHealthStatus, PoolKey, PoolMetadata, SafeMode, SafeModeState } from "./oracle-DaNTHk7B.js";
3
3
  import { EventSubscription, NonceManager, PanopticEvent, PanopticEventType, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult } from "./tx-BXXqhBHn.js";
4
4
  import { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation } from "./simulation-CUqERC5Y.js";
5
5
  import { PositionGreeksResult } from "./index-CDCAju5o.js";
@@ -1640,7 +1640,7 @@ declare function validateBatch(params: ValidateBatchParams): BatchDiagnostic[];
1640
1640
  */
1641
1641
  interface GetBlockMetaParams {
1642
1642
  /** viem PublicClient */
1643
- client: PublicClient;
1643
+ client: Pick<PublicClient, 'getBlock'>;
1644
1644
  /** Optional block number (defaults to latest) */
1645
1645
  blockNumber?: bigint;
1646
1646
  }
@@ -3500,6 +3500,34 @@ declare function getMaxWithdrawable(params: GetMaxWithdrawableParams): Promise<{
3500
3500
  maxWithdrawable: bigint;
3501
3501
  _meta: BlockMeta;
3502
3502
  }>;
3503
+ /**
3504
+ * Parameters for getMaxRedeem.
3505
+ */
3506
+ interface GetMaxRedeemParams {
3507
+ /** viem PublicClient */
3508
+ client: PublicClient;
3509
+ /** CollateralTracker address */
3510
+ collateralTrackerAddress: Address;
3511
+ /** Account address */
3512
+ account: Address;
3513
+ /** Optional block number for historical queries */
3514
+ blockNumber?: bigint;
3515
+ }
3516
+ /**
3517
+ * Read the maximum number of shares an account can redeem from a CollateralTracker.
3518
+ *
3519
+ * This is the ERC4626 `maxRedeem(owner)`, i.e. `min(availableShares, balanceOf(owner))`,
3520
+ * and returns 0 when the account has open positions (legs). Redeeming exactly this many
3521
+ * shares burns the account's full (available) share balance, so a MAX withdraw leaves no
3522
+ * rounding dust — unlike an assets-based `withdraw`, which round-trips shares↔assets.
3523
+ *
3524
+ * @param params - The parameters
3525
+ * @returns Maximum redeemable shares with block metadata
3526
+ */
3527
+ declare function getMaxRedeem(params: GetMaxRedeemParams): Promise<{
3528
+ maxRedeem: bigint;
3529
+ _meta: BlockMeta;
3530
+ }>;
3503
3531
 
3504
3532
  //#endregion
3505
3533
  //#region src/panoptic/v2/reads/checks.d.ts
@@ -4181,6 +4209,43 @@ interface MarginBuffer {
4181
4209
  lowerLiquidationTick: bigint | null;
4182
4210
  /** Upper liquidation tick (null if safe at MAX_TICK) */
4183
4211
  upperLiquidationTick: bigint | null;
4212
+ /**
4213
+ * Collateral usage against the constraint that actually liquidates, in bps
4214
+ * (10000 = at the liquidation threshold). Null when the account holds no
4215
+ * positions.
4216
+ *
4217
+ * NOT `requiredMargin / currentMargin`. That ratio pools both collateral
4218
+ * tokens into one number, which silently assumes cross-collateral is credited
4219
+ * at 100%. It is only credited at `RiskEngine.crossBufferRatio(utilization,
4220
+ * CROSS_BUFFER_n)`, which decays linearly from the configured buffer to ZERO
4221
+ * between 90% and 95% pool utilization. Measured on mainnet with
4222
+ * CROSS_BUFFER = 100% and the token0 tracker at 91.98% utilization, only
4223
+ * 60.4% of the token0 surplus counted toward the token1 requirement — the
4224
+ * pooled ratio read 40% while this one read ~90% and liquidation was 8.7%
4225
+ * away.
4226
+ *
4227
+ * Sourced from `PanopticQuery.checkCollateral` at the current tick, which
4228
+ * applies the live cross-buffer, and reported for whichever token side is
4229
+ * tighter. Solvency requires both to hold.
4230
+ */
4231
+ crossMarginUsageBps: bigint | null;
4232
+ /** Usage of the token0 side alone, in bps. Null when no positions. */
4233
+ usageBps0: bigint | null;
4234
+ /** Usage of the token1 side alone, in bps. Null when no positions. */
4235
+ usageBps1: bigint | null;
4236
+ /**
4237
+ * Collateral still deployable before the mint solvency check would fail,
4238
+ * in `denominatedInToken` units. Null when the account holds no positions.
4239
+ *
4240
+ * The tighter of `balance - required * BP_DECREASE_BUFFER` across the two
4241
+ * token sides, from `checkCollateral` at the current tick. NOT
4242
+ * `currentMargin - requiredMargin * buffer`, which pools both collateral
4243
+ * tokens and so credits cross-collateral at 100% regardless of the live
4244
+ * `crossBufferRatio`. On a mainnet account that pooled figure read ~24,000
4245
+ * USDC of headroom while the binding side had ~890 — and a mint requiring
4246
+ * ~2,700 USDC duly reverted with AccountInsolvent.
4247
+ */
4248
+ mintableMarginBinding: bigint | null;
4184
4249
  /** Current tick */
4185
4250
  currentTick: bigint;
4186
4251
  /** Block metadata */
@@ -4472,8 +4537,21 @@ interface OpenPositionPreview {
4472
4537
  currentBuyingPower: AccountBuyingPower;
4473
4538
  /** Simulation result (from dry-run dispatch) */
4474
4539
  simulation: SimulationResult<OpenPositionSimulation>;
4475
- /** Whether the simulated mint succeeded (position is solvent post-mint) */
4540
+ /**
4541
+ * Whether the account has enough *buying power* for the position.
4542
+ *
4543
+ * False only for a genuine `AccountInsolvent` revert. A token shortfall is
4544
+ * reported separately via {@link OpenPositionPreview.tokenShortfall} — the two
4545
+ * have different remedies (lower the size vs. source the missing token), so
4546
+ * do not collapse them back into one flag.
4547
+ */
4476
4548
  isSolvent: boolean;
4549
+ /**
4550
+ * Set when the mint reverted because one collateral tracker lacked tokens,
4551
+ * not because the account is short on margin. The account may hold plenty of
4552
+ * value in the *other* token, in which case a collateral swap resolves it.
4553
+ */
4554
+ tokenShortfall: NotEnoughTokensError | null;
4477
4555
  /** Token 0 amount required (negative delta = deposit). Null if simulation failed. */
4478
4556
  amount0Required: bigint | null;
4479
4557
  /** Token 1 amount required. Null if simulation failed. */
@@ -4947,13 +5025,15 @@ interface UniswapV4PoolBasicState {
4947
5025
  poolId: Hex;
4948
5026
  sqrtPriceX96: bigint;
4949
5027
  currentTick: number;
5028
+ /** Packed directional protocol fee: `oneForZero << 12 | zeroForOne`, in pips. */
5029
+ protocolFee: bigint;
4950
5030
  /** Dynamic LP fee from slot0 (NOT necessarily the static PoolKey.fee). */
4951
5031
  lpFee: number;
4952
5032
  liquidity: bigint;
4953
5033
  _meta: BlockMeta;
4954
5034
  }
4955
5035
  interface GetUniswapV4PoolBasicStateParams {
4956
- client: PublicClient;
5036
+ client: Pick<PublicClient, 'getBlock' | 'multicall'>;
4957
5037
  stateViewAddress: Address;
4958
5038
  poolId: Hex;
4959
5039
  }
@@ -4968,11 +5048,13 @@ interface UniswapV4PoolInfo {
4968
5048
  hooks: Address;
4969
5049
  currentTick: number;
4970
5050
  sqrtPriceX96: bigint;
5051
+ /** Packed directional protocol fee: `oneForZero << 12 | zeroForOne`, in pips. */
5052
+ protocolFee: bigint;
4971
5053
  liquidity: bigint;
4972
5054
  _meta: BlockMeta;
4973
5055
  }
4974
5056
  interface GetUniswapV4PoolInfoParams {
4975
- client: PublicClient;
5057
+ client: Pick<PublicClient, 'getBlock' | 'multicall'>;
4976
5058
  stateViewAddress: Address;
4977
5059
  poolKey: UniswapV4PoolKey;
4978
5060
  }
@@ -6997,8 +7079,9 @@ interface SwapExactInParams {
6997
7079
  /**
6998
7080
  * Swap tokens using Panoptic's exact-output mechanism.
6999
7081
  *
7000
- * Opens a loan with `swapAtMint=true` and immediately burns it with `swapAtMint=false`.
7001
- * The user receives exactly `amountOut` of `tokenOut`.
7082
+ * Opens a credit in `tokenOut` with `swapAtMint=true` (paying a swapped amount of
7083
+ * the other token), then burns it with `swapAtMint=false` to receive exactly
7084
+ * `amountOut` of `tokenOut`.
7002
7085
  *
7003
7086
  * @param params - Swap parameters
7004
7087
  * @returns TxResult
@@ -7023,9 +7106,9 @@ declare function swapExactOutAndWait(params: SwapExactOutParams): Promise<TxRece
7023
7106
  /**
7024
7107
  * Swap tokens using Panoptic's exact-input mechanism.
7025
7108
  *
7026
- * Opens a loan with `swapAtMint=false` (borrows tokenIn to wallet),
7027
- * then burns with `swapAtMint=true` (swaps tokenIn back to repay).
7028
- * The user spends exactly `amountIn` of `tokenIn`.
7109
+ * Opens a credit in `tokenIn` with `swapAtMint=false` (paying exactly `amountIn`),
7110
+ * then burns it with `swapAtMint=true` to receive the swapped amount of the other
7111
+ * token. The user spends exactly `amountIn` of `tokenIn`.
7029
7112
  *
7030
7113
  * @param params - Swap parameters
7031
7114
  * @returns TxResult
@@ -7289,15 +7372,47 @@ declare function resolveTokenIndex(tokenAddress: Address, token0: Address, token
7289
7372
  */
7290
7373
  declare function isInputListFailError(error: unknown): boolean;
7291
7374
  /**
7292
- * Build a unique loan tokenId that doesn't collide with existing positions.
7375
+ * Which kind of width=0 leg to build.
7376
+ *
7377
+ * Loans and credits are the same primitive with the `isLong` bit flipped:
7378
+ * a loan borrows from the pool (`isLong=0`), a credit pays into it
7379
+ * (`isLong=1`). See `createTokenIdBuilder`'s `addLoan` / `addCredit`.
7380
+ */
7381
+ type WidthZeroLegKind = 'loan' | 'credit';
7382
+ /**
7383
+ * Build a unique width=0 tokenId that doesn't collide with existing positions.
7293
7384
  * Bumps optionRatio (1-127) and returns adjusted size to maintain equivalent exposure.
7294
7385
  *
7386
+ * @param kind - Whether to build a loan (borrow) or a credit (pay-in) leg.
7387
+ * @param asset - Which token denominates the positionSize (0 or 1).
7388
+ */
7389
+ declare function buildUniqueWidthZeroLeg(kind: WidthZeroLegKind, poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7390
+ tokenId: bigint;
7391
+ adjustedSize: bigint;
7392
+ };
7393
+ /**
7394
+ * Build a unique loan (borrow) tokenId that doesn't collide with existing positions.
7395
+ *
7295
7396
  * @param asset - Which token denominates the positionSize (0 or 1).
7296
7397
  */
7297
7398
  declare function buildUniqueLoan(poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7298
7399
  tokenId: bigint;
7299
7400
  adjustedSize: bigint;
7300
7401
  };
7402
+ /**
7403
+ * Build a unique credit (pay-in) tokenId that doesn't collide with existing positions.
7404
+ *
7405
+ * Unlike a loan, a credit never borrows from the pool: it requires **zero** buying
7406
+ * power, leaves `s_assetsInAMM` (and therefore utilization and the borrow rate)
7407
+ * untouched, and accrues no interest. This is what lets a credit-based swap run
7408
+ * against a fully-utilized collateral tracker.
7409
+ *
7410
+ * @param asset - Which token denominates the positionSize (0 or 1).
7411
+ */
7412
+ declare function buildUniqueCredit(poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7413
+ tokenId: bigint;
7414
+ adjustedSize: bigint;
7415
+ };
7301
7416
 
7302
7417
  //#endregion
7303
7418
  //#region src/panoptic/v2/writes/lending.d.ts
@@ -8056,6 +8171,8 @@ interface SimulateSwapExactOutParams {
8056
8171
  slippageBps: bigint;
8057
8172
  /** Existing position IDs */
8058
8173
  existingPositionIds: bigint[];
8174
+ /** Builder code for referral fee attribution. Defaults to `0n`. */
8175
+ builderCode?: bigint;
8059
8176
  /** Optional block number */
8060
8177
  blockNumber?: bigint;
8061
8178
  }
@@ -8079,6 +8196,8 @@ interface SimulateSwapExactInParams {
8079
8196
  slippageBps: bigint;
8080
8197
  /** Existing position IDs */
8081
8198
  existingPositionIds: bigint[];
8199
+ /** Builder code for referral fee attribution. Defaults to `0n`. */
8200
+ builderCode?: bigint;
8082
8201
  /** Optional block number */
8083
8202
  blockNumber?: bigint;
8084
8203
  }
@@ -8097,6 +8216,109 @@ declare function simulateSwapExactOut(params: SimulateSwapExactOutParams): Promi
8097
8216
  */
8098
8217
  declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise<SimulationResult<SwapSimulation>>;
8099
8218
 
8219
+ //#endregion
8220
+ //#region src/panoptic/v2/simulations/tokenShortfallRecovery.d.ts
8221
+ /**
8222
+ * Pre-encoded `dispatch()` arguments the recovery wraps.
8223
+ *
8224
+ * Alias of {@link BatchDispatchArgs} — the two are the same concept.
8225
+ */
8226
+ type DispatchIntent = BatchDispatchArgs;
8227
+ interface TokenShortfallRecoveryQuoteParams {
8228
+ client: PublicClient;
8229
+ poolAddress: Address;
8230
+ account: Address;
8231
+ chainId: bigint;
8232
+ existingPositionIds: bigint[];
8233
+ dispatch: DispatchIntent;
8234
+ error: unknown;
8235
+ /**
8236
+ * Slippage tolerance for the recovery swap, in **basis points** (1% = 100).
8237
+ * Applied to `estimatedAmountIn` to produce `maximumAmountIn`.
8238
+ * Values above `10_000` (100%) are rejected as `invalid-slippage`.
8239
+ */
8240
+ slippageBps: bigint;
8241
+ /**
8242
+ * Price bound for the temporary credit legs. Defaults to the full tick range —
8243
+ * the recovery swap is protected economically by `maximumAmountIn`, not by a
8244
+ * price band, and the user's own operations keep their own limits.
8245
+ */
8246
+ tickLimitLow?: bigint;
8247
+ /** See {@link TokenShortfallRecoveryQuoteParams.tickLimitLow}. */
8248
+ tickLimitHigh?: bigint;
8249
+ blockNumber?: bigint;
8250
+ }
8251
+ interface TokenShortfallRecoveryQuote {
8252
+ tokenIn: Address;
8253
+ tokenOut: Address;
8254
+ /**
8255
+ * Exact amount of `tokenOut` the temporary credit sources. Covers the whole
8256
+ * dispatch, not just the first charge that reverted — a batch charges
8257
+ * commission/premia per operation, so the total needed is usually larger
8258
+ * than the `assetsRequested - assetBalance` of the first failure.
8259
+ */
8260
+ amountOut: bigint;
8261
+ estimatedAmountIn: bigint;
8262
+ maximumAmountIn: bigint;
8263
+ slippageBps: bigint;
8264
+ /**
8265
+ * Signed net change of `tokenIn` across the ENTIRE wrapped transaction —
8266
+ * the user's own operations plus the recovery swap. This is what a wallet
8267
+ * simulation shows, and it is not the same as `-estimatedAmountIn`, which
8268
+ * prices the swap leg alone.
8269
+ */
8270
+ netTokenInChange: bigint;
8271
+ /** Signed net change of `tokenOut` across the entire wrapped transaction. */
8272
+ netTokenOutChange: bigint;
8273
+ /** The temporary width=0 credit leg used to source the shortfall. */
8274
+ creditTokenId: bigint;
8275
+ dispatch: DispatchIntent;
8276
+ simulation: SimulationResult<DispatchSimulation> & {
8277
+ success: true;
8278
+ };
8279
+ tokenFlow: TokenFlow;
8280
+ _meta: BlockMeta;
8281
+ }
8282
+ type TokenShortfallRecoveryUnavailableReason = 'not-token-shortfall' | 'invalid-shortfall' | 'invalid-slippage' | 'unsupported-token' | 'invalid-tick-limits' | 'swap-unavailable' | 'recovery-unavailable';
8283
+ type TokenShortfallRecoveryResult = {
8284
+ available: true;
8285
+ quote: TokenShortfallRecoveryQuote;
8286
+ } | {
8287
+ available: false;
8288
+ reason: TokenShortfallRecoveryUnavailableReason;
8289
+ /** Human-readable description of the sub-step that failed, for diagnostics. */
8290
+ detail?: string;
8291
+ error?: PanopticError;
8292
+ };
8293
+ interface BuildTokenShortfallRecoveryDispatchParams {
8294
+ dispatch: DispatchIntent;
8295
+ /** The temporary width=0 credit leg that sources the missing token. */
8296
+ creditTokenId: bigint;
8297
+ creditPositionSize: bigint;
8298
+ tickLimitLow: bigint;
8299
+ tickLimitHigh: bigint;
8300
+ }
8301
+ /**
8302
+ * Wrap a dispatch with a temporary credit leg that sources the shortfall.
8303
+ *
8304
+ * Exact-output construction: mint the credit with `swapAtMint=true` (paying a
8305
+ * swapped amount of the token the account has), run the user's operations, then
8306
+ * burn it with `swapAtMint=false` to receive exactly the missing token.
8307
+ *
8308
+ * A credit rather than a loan so the recovery is never capped by the shortfall
8309
+ * token's utilization — the case that fails today on a >94% utilized tracker.
8310
+ */
8311
+ declare function buildTokenShortfallRecoveryDispatch(params: BuildTokenShortfallRecoveryDispatchParams): DispatchIntent;
8312
+ /**
8313
+ * Extract a fully-decoded `NotEnoughTokens` revert from an arbitrary error.
8314
+ *
8315
+ * Returns `null` when the error is something else, or when only the 4-byte
8316
+ * selector could be matched (the parser's fallback path constructs the error
8317
+ * with undefined args, which is not actionable).
8318
+ */
8319
+ declare function getNotEnoughTokensError(error: unknown): NotEnoughTokensError | null;
8320
+ declare function quoteTokenShortfallRecovery(params: TokenShortfallRecoveryQuoteParams): Promise<TokenShortfallRecoveryResult>;
8321
+
8100
8322
  //#endregion
8101
8323
  //#region src/panoptic/v2/events/watchEvents.d.ts
8102
8324
  /**
@@ -9080,5 +9302,5 @@ declare function isNonceError(error: unknown): boolean;
9080
9302
  declare function isGasError(error: unknown): boolean;
9081
9303
 
9082
9304
  //#endregion
9083
- export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate$1 as CollateralEstimate, CollateralSharePriceData, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FlowNeutralTokenId, ForceExerciseParams, 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, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenCollateral, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock as getPoolDeploymentBlock$1, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, reconstructFromEvents as reconstructFromEvents$1, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithdraw as simulateWithdraw$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
9084
- //# sourceMappingURL=index-B3JZRUNo.d.ts.map
9305
+ export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate$1 as CollateralEstimate, CollateralSharePriceData, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchIntent, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FlowNeutralTokenId, ForceExerciseParams, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenCollateral, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildTokenShortfallRecoveryDispatch as buildTokenShortfallRecoveryDispatch$1, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxRedeem as getMaxRedeem$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError as getNotEnoughTokensError$1, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock as getPoolDeploymentBlock$1, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, quoteTokenShortfallRecovery as quoteTokenShortfallRecovery$1, reconstructFromEvents as reconstructFromEvents$1, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithdraw as simulateWithdraw$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
9306
+ //# sourceMappingURL=index-DToj2-Vc.d.ts.map