@panoptic-eng/sdk 1.0.29 → 1.0.31

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 (36) 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-DQS8Luef.d.ts.map +1 -1
  5. package/dist/{index-B3JZRUNo.d.ts → index-DVtqKAH3.d.ts} +207 -13
  6. package/dist/index-DVtqKAH3.d.ts.map +1 -0
  7. package/dist/index.d.ts +5 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +30 -7
  10. package/dist/index.js.map +1 -1
  11. package/dist/{irm-IcePQm1r.js → irm-iAI9hTYQ.js} +3 -3
  12. package/dist/{irm-IcePQm1r.js.map → irm-iAI9hTYQ.js.map} +1 -1
  13. package/dist/{oracle-BnpPVG8V.d.ts → oracle-DaNTHk7B.d.ts} +14 -1
  14. package/dist/{oracle-BnpPVG8V.d.ts.map → oracle-DaNTHk7B.d.ts.map} +1 -1
  15. package/dist/panoptic/v2/index.d.ts +3 -3
  16. package/dist/panoptic/v2/index.js +5 -5
  17. package/dist/panoptic/v2/react-public.d.ts +6 -6
  18. package/dist/panoptic/v2/react-public.d.ts.map +1 -1
  19. package/dist/panoptic/v2/react-public.js +7 -7
  20. package/dist/{position-UL1gOvqZ.js → position-ClU7GrTa.js} +44 -12
  21. package/dist/position-ClU7GrTa.js.map +1 -0
  22. package/dist/{router-Del9H6e0.js → router-DKFR_vnu.js} +2 -2
  23. package/dist/{router-Del9H6e0.js.map → router-DKFR_vnu.js.map} +1 -1
  24. package/dist/{types-VeWdNN0j.d.ts → types-Cy6v8iPf.d.ts} +2 -2
  25. package/dist/{types-VeWdNN0j.d.ts.map → types-Cy6v8iPf.d.ts.map} +1 -1
  26. package/dist/uniswap/index.d.ts +2 -2
  27. package/dist/uniswap/index.js +3 -3
  28. package/dist/{v2-BSV35bpu.js → v2-D3B5BKml.js} +436 -167
  29. package/dist/v2-D3B5BKml.js.map +1 -0
  30. package/dist/{writes-RyS0kHpB.js → writes-DQLGdkJ5.js} +50 -26
  31. package/dist/writes-DQLGdkJ5.js.map +1 -0
  32. package/package.json +1 -1
  33. package/dist/index-B3JZRUNo.d.ts.map +0 -1
  34. package/dist/position-UL1gOvqZ.js.map +0 -1
  35. package/dist/v2-BSV35bpu.js.map +0 -1
  36. 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
  }
@@ -4181,6 +4181,43 @@ interface MarginBuffer {
4181
4181
  lowerLiquidationTick: bigint | null;
4182
4182
  /** Upper liquidation tick (null if safe at MAX_TICK) */
4183
4183
  upperLiquidationTick: bigint | null;
4184
+ /**
4185
+ * Collateral usage against the constraint that actually liquidates, in bps
4186
+ * (10000 = at the liquidation threshold). Null when the account holds no
4187
+ * positions.
4188
+ *
4189
+ * NOT `requiredMargin / currentMargin`. That ratio pools both collateral
4190
+ * tokens into one number, which silently assumes cross-collateral is credited
4191
+ * at 100%. It is only credited at `RiskEngine.crossBufferRatio(utilization,
4192
+ * CROSS_BUFFER_n)`, which decays linearly from the configured buffer to ZERO
4193
+ * between 90% and 95% pool utilization. Measured on mainnet with
4194
+ * CROSS_BUFFER = 100% and the token0 tracker at 91.98% utilization, only
4195
+ * 60.4% of the token0 surplus counted toward the token1 requirement — the
4196
+ * pooled ratio read 40% while this one read ~90% and liquidation was 8.7%
4197
+ * away.
4198
+ *
4199
+ * Sourced from `PanopticQuery.checkCollateral` at the current tick, which
4200
+ * applies the live cross-buffer, and reported for whichever token side is
4201
+ * tighter. Solvency requires both to hold.
4202
+ */
4203
+ crossMarginUsageBps: bigint | null;
4204
+ /** Usage of the token0 side alone, in bps. Null when no positions. */
4205
+ usageBps0: bigint | null;
4206
+ /** Usage of the token1 side alone, in bps. Null when no positions. */
4207
+ usageBps1: bigint | null;
4208
+ /**
4209
+ * Collateral still deployable before the mint solvency check would fail,
4210
+ * in `denominatedInToken` units. Null when the account holds no positions.
4211
+ *
4212
+ * The tighter of `balance - required * BP_DECREASE_BUFFER` across the two
4213
+ * token sides, from `checkCollateral` at the current tick. NOT
4214
+ * `currentMargin - requiredMargin * buffer`, which pools both collateral
4215
+ * tokens and so credits cross-collateral at 100% regardless of the live
4216
+ * `crossBufferRatio`. On a mainnet account that pooled figure read ~24,000
4217
+ * USDC of headroom while the binding side had ~890 — and a mint requiring
4218
+ * ~2,700 USDC duly reverted with AccountInsolvent.
4219
+ */
4220
+ mintableMarginBinding: bigint | null;
4184
4221
  /** Current tick */
4185
4222
  currentTick: bigint;
4186
4223
  /** Block metadata */
@@ -4472,8 +4509,21 @@ interface OpenPositionPreview {
4472
4509
  currentBuyingPower: AccountBuyingPower;
4473
4510
  /** Simulation result (from dry-run dispatch) */
4474
4511
  simulation: SimulationResult<OpenPositionSimulation>;
4475
- /** Whether the simulated mint succeeded (position is solvent post-mint) */
4512
+ /**
4513
+ * Whether the account has enough *buying power* for the position.
4514
+ *
4515
+ * False only for a genuine `AccountInsolvent` revert. A token shortfall is
4516
+ * reported separately via {@link OpenPositionPreview.tokenShortfall} — the two
4517
+ * have different remedies (lower the size vs. source the missing token), so
4518
+ * do not collapse them back into one flag.
4519
+ */
4476
4520
  isSolvent: boolean;
4521
+ /**
4522
+ * Set when the mint reverted because one collateral tracker lacked tokens,
4523
+ * not because the account is short on margin. The account may hold plenty of
4524
+ * value in the *other* token, in which case a collateral swap resolves it.
4525
+ */
4526
+ tokenShortfall: NotEnoughTokensError | null;
4477
4527
  /** Token 0 amount required (negative delta = deposit). Null if simulation failed. */
4478
4528
  amount0Required: bigint | null;
4479
4529
  /** Token 1 amount required. Null if simulation failed. */
@@ -4947,13 +4997,15 @@ interface UniswapV4PoolBasicState {
4947
4997
  poolId: Hex;
4948
4998
  sqrtPriceX96: bigint;
4949
4999
  currentTick: number;
5000
+ /** Packed directional protocol fee: `oneForZero << 12 | zeroForOne`, in pips. */
5001
+ protocolFee: bigint;
4950
5002
  /** Dynamic LP fee from slot0 (NOT necessarily the static PoolKey.fee). */
4951
5003
  lpFee: number;
4952
5004
  liquidity: bigint;
4953
5005
  _meta: BlockMeta;
4954
5006
  }
4955
5007
  interface GetUniswapV4PoolBasicStateParams {
4956
- client: PublicClient;
5008
+ client: Pick<PublicClient, 'getBlock' | 'multicall'>;
4957
5009
  stateViewAddress: Address;
4958
5010
  poolId: Hex;
4959
5011
  }
@@ -4968,11 +5020,13 @@ interface UniswapV4PoolInfo {
4968
5020
  hooks: Address;
4969
5021
  currentTick: number;
4970
5022
  sqrtPriceX96: bigint;
5023
+ /** Packed directional protocol fee: `oneForZero << 12 | zeroForOne`, in pips. */
5024
+ protocolFee: bigint;
4971
5025
  liquidity: bigint;
4972
5026
  _meta: BlockMeta;
4973
5027
  }
4974
5028
  interface GetUniswapV4PoolInfoParams {
4975
- client: PublicClient;
5029
+ client: Pick<PublicClient, 'getBlock' | 'multicall'>;
4976
5030
  stateViewAddress: Address;
4977
5031
  poolKey: UniswapV4PoolKey;
4978
5032
  }
@@ -6997,8 +7051,9 @@ interface SwapExactInParams {
6997
7051
  /**
6998
7052
  * Swap tokens using Panoptic's exact-output mechanism.
6999
7053
  *
7000
- * Opens a loan with `swapAtMint=true` and immediately burns it with `swapAtMint=false`.
7001
- * The user receives exactly `amountOut` of `tokenOut`.
7054
+ * Opens a credit in `tokenOut` with `swapAtMint=true` (paying a swapped amount of
7055
+ * the other token), then burns it with `swapAtMint=false` to receive exactly
7056
+ * `amountOut` of `tokenOut`.
7002
7057
  *
7003
7058
  * @param params - Swap parameters
7004
7059
  * @returns TxResult
@@ -7023,9 +7078,9 @@ declare function swapExactOutAndWait(params: SwapExactOutParams): Promise<TxRece
7023
7078
  /**
7024
7079
  * Swap tokens using Panoptic's exact-input mechanism.
7025
7080
  *
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`.
7081
+ * Opens a credit in `tokenIn` with `swapAtMint=false` (paying exactly `amountIn`),
7082
+ * then burns it with `swapAtMint=true` to receive the swapped amount of the other
7083
+ * token. The user spends exactly `amountIn` of `tokenIn`.
7029
7084
  *
7030
7085
  * @param params - Swap parameters
7031
7086
  * @returns TxResult
@@ -7289,15 +7344,47 @@ declare function resolveTokenIndex(tokenAddress: Address, token0: Address, token
7289
7344
  */
7290
7345
  declare function isInputListFailError(error: unknown): boolean;
7291
7346
  /**
7292
- * Build a unique loan tokenId that doesn't collide with existing positions.
7347
+ * Which kind of width=0 leg to build.
7348
+ *
7349
+ * Loans and credits are the same primitive with the `isLong` bit flipped:
7350
+ * a loan borrows from the pool (`isLong=0`), a credit pays into it
7351
+ * (`isLong=1`). See `createTokenIdBuilder`'s `addLoan` / `addCredit`.
7352
+ */
7353
+ type WidthZeroLegKind = 'loan' | 'credit';
7354
+ /**
7355
+ * Build a unique width=0 tokenId that doesn't collide with existing positions.
7293
7356
  * Bumps optionRatio (1-127) and returns adjusted size to maintain equivalent exposure.
7294
7357
  *
7358
+ * @param kind - Whether to build a loan (borrow) or a credit (pay-in) leg.
7359
+ * @param asset - Which token denominates the positionSize (0 or 1).
7360
+ */
7361
+ declare function buildUniqueWidthZeroLeg(kind: WidthZeroLegKind, poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7362
+ tokenId: bigint;
7363
+ adjustedSize: bigint;
7364
+ };
7365
+ /**
7366
+ * Build a unique loan (borrow) tokenId that doesn't collide with existing positions.
7367
+ *
7295
7368
  * @param asset - Which token denominates the positionSize (0 or 1).
7296
7369
  */
7297
7370
  declare function buildUniqueLoan(poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7298
7371
  tokenId: bigint;
7299
7372
  adjustedSize: bigint;
7300
7373
  };
7374
+ /**
7375
+ * Build a unique credit (pay-in) tokenId that doesn't collide with existing positions.
7376
+ *
7377
+ * Unlike a loan, a credit never borrows from the pool: it requires **zero** buying
7378
+ * power, leaves `s_assetsInAMM` (and therefore utilization and the borrow rate)
7379
+ * untouched, and accrues no interest. This is what lets a credit-based swap run
7380
+ * against a fully-utilized collateral tracker.
7381
+ *
7382
+ * @param asset - Which token denominates the positionSize (0 or 1).
7383
+ */
7384
+ declare function buildUniqueCredit(poolId: bigint, asset: bigint, tokenType: bigint, currentTick: bigint, tickSpacing: bigint, existingPositionIds: bigint[], positionSize: bigint): {
7385
+ tokenId: bigint;
7386
+ adjustedSize: bigint;
7387
+ };
7301
7388
 
7302
7389
  //#endregion
7303
7390
  //#region src/panoptic/v2/writes/lending.d.ts
@@ -8056,6 +8143,8 @@ interface SimulateSwapExactOutParams {
8056
8143
  slippageBps: bigint;
8057
8144
  /** Existing position IDs */
8058
8145
  existingPositionIds: bigint[];
8146
+ /** Builder code for referral fee attribution. Defaults to `0n`. */
8147
+ builderCode?: bigint;
8059
8148
  /** Optional block number */
8060
8149
  blockNumber?: bigint;
8061
8150
  }
@@ -8079,6 +8168,8 @@ interface SimulateSwapExactInParams {
8079
8168
  slippageBps: bigint;
8080
8169
  /** Existing position IDs */
8081
8170
  existingPositionIds: bigint[];
8171
+ /** Builder code for referral fee attribution. Defaults to `0n`. */
8172
+ builderCode?: bigint;
8082
8173
  /** Optional block number */
8083
8174
  blockNumber?: bigint;
8084
8175
  }
@@ -8097,6 +8188,109 @@ declare function simulateSwapExactOut(params: SimulateSwapExactOutParams): Promi
8097
8188
  */
8098
8189
  declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise<SimulationResult<SwapSimulation>>;
8099
8190
 
8191
+ //#endregion
8192
+ //#region src/panoptic/v2/simulations/tokenShortfallRecovery.d.ts
8193
+ /**
8194
+ * Pre-encoded `dispatch()` arguments the recovery wraps.
8195
+ *
8196
+ * Alias of {@link BatchDispatchArgs} — the two are the same concept.
8197
+ */
8198
+ type DispatchIntent = BatchDispatchArgs;
8199
+ interface TokenShortfallRecoveryQuoteParams {
8200
+ client: PublicClient;
8201
+ poolAddress: Address;
8202
+ account: Address;
8203
+ chainId: bigint;
8204
+ existingPositionIds: bigint[];
8205
+ dispatch: DispatchIntent;
8206
+ error: unknown;
8207
+ /**
8208
+ * Slippage tolerance for the recovery swap, in **basis points** (1% = 100).
8209
+ * Applied to `estimatedAmountIn` to produce `maximumAmountIn`.
8210
+ * Values above `10_000` (100%) are rejected as `invalid-slippage`.
8211
+ */
8212
+ slippageBps: bigint;
8213
+ /**
8214
+ * Price bound for the temporary credit legs. Defaults to the full tick range —
8215
+ * the recovery swap is protected economically by `maximumAmountIn`, not by a
8216
+ * price band, and the user's own operations keep their own limits.
8217
+ */
8218
+ tickLimitLow?: bigint;
8219
+ /** See {@link TokenShortfallRecoveryQuoteParams.tickLimitLow}. */
8220
+ tickLimitHigh?: bigint;
8221
+ blockNumber?: bigint;
8222
+ }
8223
+ interface TokenShortfallRecoveryQuote {
8224
+ tokenIn: Address;
8225
+ tokenOut: Address;
8226
+ /**
8227
+ * Exact amount of `tokenOut` the temporary credit sources. Covers the whole
8228
+ * dispatch, not just the first charge that reverted — a batch charges
8229
+ * commission/premia per operation, so the total needed is usually larger
8230
+ * than the `assetsRequested - assetBalance` of the first failure.
8231
+ */
8232
+ amountOut: bigint;
8233
+ estimatedAmountIn: bigint;
8234
+ maximumAmountIn: bigint;
8235
+ slippageBps: bigint;
8236
+ /**
8237
+ * Signed net change of `tokenIn` across the ENTIRE wrapped transaction —
8238
+ * the user's own operations plus the recovery swap. This is what a wallet
8239
+ * simulation shows, and it is not the same as `-estimatedAmountIn`, which
8240
+ * prices the swap leg alone.
8241
+ */
8242
+ netTokenInChange: bigint;
8243
+ /** Signed net change of `tokenOut` across the entire wrapped transaction. */
8244
+ netTokenOutChange: bigint;
8245
+ /** The temporary width=0 credit leg used to source the shortfall. */
8246
+ creditTokenId: bigint;
8247
+ dispatch: DispatchIntent;
8248
+ simulation: SimulationResult<DispatchSimulation> & {
8249
+ success: true;
8250
+ };
8251
+ tokenFlow: TokenFlow;
8252
+ _meta: BlockMeta;
8253
+ }
8254
+ type TokenShortfallRecoveryUnavailableReason = 'not-token-shortfall' | 'invalid-shortfall' | 'invalid-slippage' | 'unsupported-token' | 'invalid-tick-limits' | 'swap-unavailable' | 'recovery-unavailable';
8255
+ type TokenShortfallRecoveryResult = {
8256
+ available: true;
8257
+ quote: TokenShortfallRecoveryQuote;
8258
+ } | {
8259
+ available: false;
8260
+ reason: TokenShortfallRecoveryUnavailableReason;
8261
+ /** Human-readable description of the sub-step that failed, for diagnostics. */
8262
+ detail?: string;
8263
+ error?: PanopticError;
8264
+ };
8265
+ interface BuildTokenShortfallRecoveryDispatchParams {
8266
+ dispatch: DispatchIntent;
8267
+ /** The temporary width=0 credit leg that sources the missing token. */
8268
+ creditTokenId: bigint;
8269
+ creditPositionSize: bigint;
8270
+ tickLimitLow: bigint;
8271
+ tickLimitHigh: bigint;
8272
+ }
8273
+ /**
8274
+ * Wrap a dispatch with a temporary credit leg that sources the shortfall.
8275
+ *
8276
+ * Exact-output construction: mint the credit with `swapAtMint=true` (paying a
8277
+ * swapped amount of the token the account has), run the user's operations, then
8278
+ * burn it with `swapAtMint=false` to receive exactly the missing token.
8279
+ *
8280
+ * A credit rather than a loan so the recovery is never capped by the shortfall
8281
+ * token's utilization — the case that fails today on a >94% utilized tracker.
8282
+ */
8283
+ declare function buildTokenShortfallRecoveryDispatch(params: BuildTokenShortfallRecoveryDispatchParams): DispatchIntent;
8284
+ /**
8285
+ * Extract a fully-decoded `NotEnoughTokens` revert from an arbitrary error.
8286
+ *
8287
+ * Returns `null` when the error is something else, or when only the 4-byte
8288
+ * selector could be matched (the parser's fallback path constructs the error
8289
+ * with undefined args, which is not actionable).
8290
+ */
8291
+ declare function getNotEnoughTokensError(error: unknown): NotEnoughTokensError | null;
8292
+ declare function quoteTokenShortfallRecovery(params: TokenShortfallRecoveryQuoteParams): Promise<TokenShortfallRecoveryResult>;
8293
+
8100
8294
  //#endregion
8101
8295
  //#region src/panoptic/v2/events/watchEvents.d.ts
8102
8296
  /**
@@ -9080,5 +9274,5 @@ declare function isNonceError(error: unknown): boolean;
9080
9274
  declare function isGasError(error: unknown): boolean;
9081
9275
 
9082
9276
  //#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
9277
+ 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, 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, 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 };
9278
+ //# sourceMappingURL=index-DVtqKAH3.d.ts.map