@panoptic-eng/sdk 1.0.21 → 1.0.23

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 (60) hide show
  1. package/dist/cow/index.d.ts +4 -4
  2. package/dist/cow/index.js +3 -3
  3. package/dist/cow/types.d.ts +2 -3
  4. package/dist/{cow-C_SGXoWr.js → cow-BilQfbNT.js} +2 -2
  5. package/dist/{cow-C_SGXoWr.js.map → cow-BilQfbNT.js.map} +1 -1
  6. package/dist/{index-BuJcj5aO.d.ts → index-CIlr4SNh.d.ts} +4 -3
  7. package/dist/index-CIlr4SNh.d.ts.map +1 -0
  8. package/dist/index.d.ts +696 -5908
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +1393 -579
  11. package/dist/index.js.map +1 -1
  12. package/dist/{irm-CfM383Ku.js → irm-C7EQwrga.js} +332 -3
  13. package/dist/irm-C7EQwrga.js.map +1 -0
  14. package/dist/irm-CSJX9BsU.d.ts +5694 -0
  15. package/dist/irm-CSJX9BsU.d.ts.map +1 -0
  16. package/dist/panoptic/v2/index.d.ts +438 -10
  17. package/dist/panoptic/v2/index.d.ts.map +1 -1
  18. package/dist/panoptic/v2/index.js +200 -8
  19. package/dist/panoptic/v2/index.js.map +1 -1
  20. package/dist/{position-BK4a-Yyu.js → position-CsIEneku.js} +33 -2
  21. package/dist/position-CsIEneku.js.map +1 -0
  22. package/dist/{router-CMrp245w.js → router-BM10ZWY5.js} +90 -40
  23. package/dist/router-BM10ZWY5.js.map +1 -0
  24. package/dist/simulation-4SzTI-xf.d.ts +435 -0
  25. package/dist/simulation-4SzTI-xf.d.ts.map +1 -0
  26. package/dist/test/index.d.ts +2 -2
  27. package/dist/test/index.d.ts.map +1 -1
  28. package/dist/test/index.js +1 -1
  29. package/dist/tx-Banz1S18.d.ts +367 -0
  30. package/dist/tx-Banz1S18.d.ts.map +1 -0
  31. package/dist/{types-CRvvn2ce.d.ts → types-Bzw_7NJv.d.ts} +2 -2
  32. package/dist/{types-CRvvn2ce.d.ts.map → types-Bzw_7NJv.d.ts.map} +1 -1
  33. package/dist/types-CspUPolV.d.ts +892 -0
  34. package/dist/types-CspUPolV.d.ts.map +1 -0
  35. package/dist/uniswap/index.d.ts +121 -4
  36. package/dist/uniswap/index.d.ts.map +1 -1
  37. package/dist/uniswap/index.js +228 -4
  38. package/dist/uniswap/index.js.map +1 -0
  39. package/dist/{writes-DymnVbiE.js → writes-BnO9zj-Z.js} +42 -11
  40. package/dist/writes-BnO9zj-Z.js.map +1 -0
  41. package/dist/zodiac/index.d.ts +439 -0
  42. package/dist/zodiac/index.d.ts.map +1 -0
  43. package/dist/zodiac/index.js +944 -0
  44. package/dist/zodiac/index.js.map +1 -0
  45. package/package.json +6 -1
  46. package/dist/index-BuJcj5aO.d.ts.map +0 -1
  47. package/dist/index-DVMjZi1E.d.ts +0 -1801
  48. package/dist/index-DVMjZi1E.d.ts.map +0 -1
  49. package/dist/irm-CGykVo3q.d.ts +0 -32
  50. package/dist/irm-CGykVo3q.d.ts.map +0 -1
  51. package/dist/irm-CfM383Ku.js.map +0 -1
  52. package/dist/irm-zWjtffWA.d.ts +0 -85
  53. package/dist/irm-zWjtffWA.d.ts.map +0 -1
  54. package/dist/panoptic/v2/types/index.d.ts +0 -3
  55. package/dist/panoptic/v2/types/index.js +0 -0
  56. package/dist/position-BK4a-Yyu.js.map +0 -1
  57. package/dist/router-CMrp245w.js.map +0 -1
  58. package/dist/types-BQejAFnu.d.ts +0 -245
  59. package/dist/types-BQejAFnu.d.ts.map +0 -1
  60. package/dist/writes-DymnVbiE.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"irm-CSJX9BsU.d.ts","names":["Address","IrmPoint","IrmCurrent","IrmMarketStateInputs","collateralTrackerV2Abi","panopticFactoryV3Abi","panopticFactoryV4Abi","panopticGuardianAbi","panopticPoolV2Abi","panopticQueryAbi","riskEngineAbi","semiFungiblePositionManagerV3Abi","semiFungiblePositionManagerV4Abi","annualizePerSecondRateWad","formatPerSecondRateWadAsApyPct","formatPerSecondRateWadAsAprPct","Address","PublicClient","IrmCurrent","IrmMarketStateInputs","IrmPoint","WAD","BPS_SCALE","SECONDS_PER_YEAR","MARKET_EPOCH_SHIFT","BORROW_INDEX_BITS","MARKET_EPOCH_BITS","RATE_AT_TARGET_BITS","UNREALIZED_INTEREST_BITS","packMarketState","utilizationPctToWad","utilizationBpsToWad","ratePerSecWadToAprPct","deriveSupplyRatePerSecWad","getIrmCurrent","Promise","getIrmCurve"],"sources":["../src/panoptic/v2/types/irm.d.ts","../src/generated.d.ts","../src/panoptic/v2/formatters/rates.d.ts","../src/panoptic/v2/reads/irm.d.ts"],"sourcesContent":null,"mappings":";;;;;AAaYkB,KARAE,QAAAA,GAQU;EAAA,cAAA,EAAA,MAAA;EAAA,cACQJ,EAAAA,MAAAA;EAAO,mBACdA,EAAAA,MAAAA;EAAO,mBAAA,EAAA,MAAA;EAUlBG,YAAAA,EAAAA,MAAAA;;;KAZAD,UAAAA;ECbSd,wBAAAA,EDcSY,OC4gC5B;EACmBX,iBAAAA,ED5gCEW,OCs9CrB;EACmBV,qBAAAA,EAigBnB,MAAA;EA6WmBE,qBA2nBnB,EAAA,MAAA;EACmBC,qBAocnB,EAAA,MAAA;EACmBC,mBAg7BnB,EAAA,MAAA;EACmBC,mBAAAA,EAAAA,MAAAA;EAqxBAC,YAAAA,EAAAA,MAAAA;;;;KDlkKTO,oBAAAA;;;;;;;cCzBSf;;;;ADKrB,CAAA,EAAA;EAQYc,SAAAA,IAAU,EAAA,UAAA;EAAA,SAAA,MAAA,EAAA,SAAA,EAAA;EAAA,SACQF,IAAAA,EAAAA,gBAAAA;EAAO,SACdA,OAAAA,EAAAA,SAAAA,EAAAA;EAAO,SAAA,eAAA,EAAA,YAAA;AAU9B,CAAA,EAAA;;;;ICzBqBZ,SAAAA,YA0hCnB,EAAA,SAAA;IACmBC,SAAAA,IAAAA,EAAAA,SA0cnB;EACmBC,CAAAA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A,EAAA,MAAA,CAAA,EAAA,MAAA;AACmBtB,iBEl4GGuB,yBAAAA,CFkzItB,mBAAA,EAAA,MAAA,EAAA,cAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AACmBtB,iBElzIGuB,aAAAA,CFkzIHvB,MAoxBnB,EAAA;EACmBC,MAAAA,EEtkKTK,YFskKSL;4BErkKSI;;IAE1BmB,QAAQjB;iBACYkB,WAAAA;UACZnB;4BACkBD;;;IAG1BmB;WACSjB;UACDE"}
@@ -1,18 +1,160 @@
1
- import { isCowSupportedChain$1 as isCowSupportedChain } from "../../index-BuJcj5aO.js";
2
- import { AccountCollateral, AccountLiquidatedEvent, AccountSummaryBasic, AccountSummaryRisk, BaseEvent, BlockMeta, ChunkData, ChunkKey, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionSimulation, ClosedPosition, CollateralEstimate, CollateralTracker, CurrentRates, DepositEvent, DepositSimulation, DispatchCall, DispatchSimulation, EventSubscription, FetchPoolIdParams, FetchPoolIdResult, ForceExerciseSimulation, ForcedExercisedEvent, GetOracleStateParams, GetPoolMetadataParams, GetPoolParams, GetRiskParametersParams, GetUtilizationParams, LegGreeksParams, LegUpdate, LiquidateSimulation, LiquidationPrices, NetLiquidationValue, NetLiquidationValues, NonceManager, OpenPositionSimulation, OptionBurntEvent, OptionMintedEvent, OracleState, PanopticError, PanopticEvent, PanopticEventType, Pool, PoolHealthStatus, PoolKey, PoolMetadata, PoolVersionConfig, Position, PositionGreeks, PremiumSettledEvent, RealizedPnL, ReorgDetection, RiskEngine, RiskParameters, SafeMode, SafeModeState, SettleSimulation, SimulationResult, StoredPositionData, SyncCheckpoint, SyncEvent, SyncOptions, SyncResult, SyncState, SyncStatus, TickLimitsResult, TokenCollateral, TokenFlow, TokenIdLeg, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, Utilization, V3PoolConfig, V4PoolConfig, WithdrawEvent, WithdrawSimulation, fetchPoolId, formatPriceRange, formatTick, formatTickRange, getOracleState, getPool, getPoolMetadata, getPricesAtTick, getRiskParameters, getTickSpacing, getUtilization, priceToTick, roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, validateBuilderCode } from "../../index-DVMjZi1E.js";
3
- import { IrmCurrent, IrmMarketStateInputs, IrmPoint } from "../../irm-CGykVo3q.js";
4
- import { CheckCowApprovalParams, QuoteCowSwapParams } from "../../types-CRvvn2ce.js";
5
- import { BORROW_INDEX_BITS$1 as BORROW_INDEX_BITS, BPS_SCALE$1 as BPS_SCALE, MARKET_EPOCH_BITS$1 as MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT$1 as MARKET_EPOCH_SHIFT, RATE_AT_TARGET_BITS$1 as RATE_AT_TARGET_BITS, SECONDS_PER_YEAR$1 as SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS$1 as UNREALIZED_INTEREST_BITS, annualizePerSecondRateWad$1 as annualizePerSecondRateWad, deriveSupplyRatePerSecWad$1 as deriveSupplyRatePerSecWad, formatPerSecondRateWadAsAprPct$1 as formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct$1 as formatPerSecondRateWadAsApyPct, getIrmCurrent$1 as getIrmCurrent, getIrmCurve$1 as getIrmCurve, packMarketState$1 as packMarketState, ratePerSecWadToAprPct$1 as ratePerSecWadToAprPct, utilizationBpsToWad$1 as utilizationBpsToWad, utilizationPctToWad$1 as utilizationPctToWad } from "../../irm-zWjtffWA.js";
6
- import { CheckRouterApprovalParams, QuoteSwapExactInViaRouterParams, QuoteSwapExactOutViaRouterParams } from "../../types-BQejAFnu.js";
1
+ import { isCowSupportedChain$1 as isCowSupportedChain } from "../../index-CIlr4SNh.js";
2
+ import { BlockMeta, ClosePositionSimulation, ClosedPosition, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LegGreeksParams, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, Position, PositionGreeks, RealizedPnL, SettleSimulation, SimulationResult, StoredPositionData, TokenFlow, TokenIdLeg, WithdrawSimulation } from "../../simulation-4SzTI-xf.js";
3
+ import { CheckRouterApprovalParams, CollateralTracker, CurrentRates, FetchPoolIdParams, FetchPoolIdResult, GetOracleStateParams, GetPoolMetadataParams, GetPoolParams, GetRiskParametersParams, GetUtilizationParams, OracleState, Pool, PoolHealthStatus, PoolKey, PoolMetadata, QuoteSwapExactInViaRouterParams, QuoteSwapExactOutViaRouterParams, RiskEngine, RiskParameters, SafeMode, SafeModeState, TickLimitsResult, Utilization, fetchPoolId$1 as fetchPoolId, formatPriceRange$1 as formatPriceRange, formatTick$1 as formatTick, formatTickRange$1 as formatTickRange, getOracleState$1 as getOracleState, getPool$1 as getPool, getPoolMetadata$1 as getPoolMetadata, getPricesAtTick$1 as getPricesAtTick, getRiskParameters$1 as getRiskParameters, getTickSpacing$1 as getTickSpacing, getUtilization$1 as getUtilization, priceToTick$1 as priceToTick, roundToTickSpacing$1 as roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled$1 as sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick$1 as sqrtPriceX96ToTick, tickLimits$1 as tickLimits, tickToPrice$1 as tickToPrice, tickToPriceDecimalScaled$1 as tickToPriceDecimalScaled, tickToSqrtPriceX96$1 as tickToSqrtPriceX96, validateBuilderCode$1 as validateBuilderCode } from "../../types-CspUPolV.js";
4
+ import { BORROW_INDEX_BITS$1 as BORROW_INDEX_BITS, BPS_SCALE$1 as BPS_SCALE, ChainDeployment, IrmCurrent, IrmMarketStateInputs, IrmPoint, MARKET_EPOCH_BITS$1 as MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT$1 as MARKET_EPOCH_SHIFT, RATE_AT_TARGET_BITS$1 as RATE_AT_TARGET_BITS, SECONDS_PER_YEAR$1 as SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS$1 as UNREALIZED_INTEREST_BITS, annualizePerSecondRateWad$1 as annualizePerSecondRateWad, collateralTrackerV2Abi$1 as collateralTrackerV2Abi, deriveSupplyRatePerSecWad$1 as deriveSupplyRatePerSecWad, formatPerSecondRateWadAsAprPct$1 as formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct$1 as formatPerSecondRateWadAsApyPct, getChainDeployment$1 as getChainDeployment, getIrmCurrent$1 as getIrmCurrent, getIrmCurve$1 as getIrmCurve, isSupportedChain$1 as isSupportedChain, packMarketState$1 as packMarketState, panopticPoolV2Abi$1 as panopticPoolV2Abi, ratePerSecWadToAprPct$1 as ratePerSecWadToAprPct, requireChainDeployment$1 as requireChainDeployment, utilizationBpsToWad$1 as utilizationBpsToWad, utilizationPctToWad$1 as utilizationPctToWad } from "../../irm-CSJX9BsU.js";
5
+ import { AccountLiquidatedEvent, BaseEvent, DepositEvent, DispatchCall, EventSubscription, ForcedExercisedEvent, LegUpdate, NonceManager, OptionBurntEvent, OptionMintedEvent, PanopticEvent, PanopticEventType, PremiumSettledEvent, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, WithdrawEvent } from "../../tx-Banz1S18.js";
6
+ import { CheckCowApprovalParams, QuoteCowSwapParams } from "../../types-Bzw_7NJv.js";
7
7
  import { Abi, Address as Address$1, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, WalletClient } from "viem";
8
8
  import { ReactNode } from "react";
9
9
  import * as react_jsx_runtime17 from "react/jsx-runtime";
10
10
 
11
- //#region src/panoptic/v2/errors/contract.d.ts
11
+ //#region src/panoptic/v2/types/account.d.ts
12
12
  /**
13
- * The account is not solvent enough to perform the desired action.
14
- * @see Errors.sol:9
13
+ * Collateral data for a single token.
15
14
  */
15
+ /**
16
+ * Collateral data for a single token.
17
+ */
18
+ interface TokenCollateral {
19
+ /** Total assets deposited (in underlying token) */
20
+ assets: bigint;
21
+ /** Collateral shares owned */
22
+ shares: bigint;
23
+ /** Available (unlocked) assets */
24
+ availableAssets: bigint;
25
+ /** Locked assets (used as collateral for positions) */
26
+ lockedAssets: bigint;
27
+ }
28
+ /**
29
+ * Account collateral data for both tokens.
30
+ */
31
+ interface AccountCollateral {
32
+ /** Account address */
33
+ account: Address$1;
34
+ /** Pool address */
35
+ poolAddress: Address$1;
36
+ /** Token 0 collateral */
37
+ token0: TokenCollateral;
38
+ /** Token 1 collateral */
39
+ token1: TokenCollateral;
40
+ /** Number of open position legs */
41
+ legCount: bigint;
42
+ /** Block metadata */
43
+ _meta: BlockMeta;
44
+ }
45
+ /**
46
+ * Base account summary for UI dashboards.
47
+ *
48
+ * This shape contains non-helper-dependent data only.
49
+ */
50
+ interface AccountSummaryBasic {
51
+ /** Account address */
52
+ account: Address$1;
53
+ /** Pool data */
54
+ pool: Pool;
55
+ /** Collateral data */
56
+ collateral: AccountCollateral;
57
+ /** Open positions */
58
+ positions: Position[];
59
+ /** Health status of the pool */
60
+ healthStatus: PoolHealthStatus;
61
+ /** Whether wallet is on wrong network */
62
+ networkMismatch: boolean;
63
+ /** Block metadata */
64
+ _meta: BlockMeta;
65
+ }
66
+ /**
67
+ * Risk-focused account summary for UI dashboards and bots.
68
+ *
69
+ * Includes everything in AccountSummaryBasic plus helper-dependent risk fields.
70
+ */
71
+ interface AccountSummaryRisk extends AccountSummaryBasic {
72
+ /** Total position greeks */
73
+ totalGreeks: PositionGreeks;
74
+ /** Net liquidation value for token 0 */
75
+ netLiquidationValue0: bigint;
76
+ /** Net liquidation value for token 1 */
77
+ netLiquidationValue1: bigint;
78
+ /** Maintenance margin required for token 0 */
79
+ maintenanceMargin0: bigint;
80
+ /** Maintenance margin required for token 1 */
81
+ maintenanceMargin1: bigint;
82
+ /** Margin excess (positive) or deficit (negative) for token 0 */
83
+ marginExcess0: bigint;
84
+ /** Margin excess (positive) or deficit (negative) for token 1 */
85
+ marginExcess1: bigint;
86
+ /** Margin shortfall for token 0 (positive shortfall, negative excess) */
87
+ marginShortfall0: bigint;
88
+ /** Margin shortfall for token 1 (positive shortfall, negative excess) */
89
+ marginShortfall1: bigint;
90
+ /** Current margin (collateral balance) for token 0 */
91
+ currentMargin0: bigint;
92
+ /** Current margin (collateral balance) for token 1 */
93
+ currentMargin1: bigint;
94
+ /** Whether the account is liquidatable */
95
+ isLiquidatable: boolean;
96
+ /** Liquidation price bounds */
97
+ liquidationPrices: LiquidationPrices;
98
+ }
99
+ /**
100
+ * Net liquidation value result.
101
+ */
102
+ interface NetLiquidationValue {
103
+ /** Net liquidation value for token 0 */
104
+ value0: bigint;
105
+ /** Net liquidation value for token 1 */
106
+ value1: bigint;
107
+ /** Tick used for calculation */
108
+ atTick: bigint;
109
+ /** Whether pending premium was included */
110
+ includedPendingPremium: boolean;
111
+ /** Block metadata */
112
+ _meta: BlockMeta;
113
+ }
114
+ /**
115
+ * Net liquidation values at multiple ticks.
116
+ */
117
+ interface NetLiquidationValues {
118
+ /** Net liquidation values for token 0 at each tick */
119
+ values0: bigint[];
120
+ /** Net liquidation values for token 1 at each tick */
121
+ values1: bigint[];
122
+ /** Ticks used for calculation */
123
+ atTicks: bigint[];
124
+ /** Block metadata */
125
+ _meta: BlockMeta;
126
+ }
127
+ /**
128
+ * Liquidation prices result.
129
+ */
130
+ interface LiquidationPrices {
131
+ /** Lower liquidation tick (null if position is safe at MIN_TICK) */
132
+ lowerTick: bigint | null;
133
+ /** Upper liquidation tick (null if position is safe at MAX_TICK) */
134
+ upperTick: bigint | null;
135
+ /** Whether the account is currently liquidatable */
136
+ isLiquidatable: boolean;
137
+ /** Block metadata */
138
+ _meta: BlockMeta;
139
+ }
140
+ /**
141
+ * Collateral estimate for a potential position.
142
+ */
143
+ interface CollateralEstimate {
144
+ /** Required collateral for token 0 */
145
+ required0: bigint;
146
+ /** Required collateral for token 1 */
147
+ required1: bigint;
148
+ /** Post-position margin excess for token 0 */
149
+ postMarginExcess0: bigint;
150
+ /** Post-position margin excess for token 1 */
151
+ postMarginExcess1: bigint;
152
+ /** Whether the position would be openable */
153
+ canOpen: boolean;
154
+ /** Block metadata */
155
+ _meta: BlockMeta;
156
+ } //#endregion
157
+ //#region src/panoptic/v2/errors/contract.d.ts
16
158
  /**
17
159
  * The account is not solvent enough to perform the desired action.
18
160
  * @see Errors.sol:9
@@ -1111,6 +1253,195 @@ declare function parsePanopticError(error: unknown): ParsedError | null;
1111
1253
  */
1112
1254
  declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: new (...args: unknown[]) => T): error is T;
1113
1255
 
1256
+ //#endregion
1257
+ //#region src/panoptic/v2/types/chunks.d.ts
1258
+ /**
1259
+ * Chunk spread represents a range of ticks being tracked.
1260
+ * Used to organize position data for efficient storage and retrieval.
1261
+ */
1262
+ interface ChunkSpread {
1263
+ /** Lower tick bound (inclusive) */
1264
+ tickLower: bigint;
1265
+ /** Upper tick bound (exclusive) */
1266
+ tickUpper: bigint;
1267
+ /** Pool address */
1268
+ poolAddress: Address$1;
1269
+ /** Chain ID */
1270
+ chainId: bigint;
1271
+ }
1272
+ /**
1273
+ * Chunk key for storage lookup.
1274
+ * Format: chain{chainId}:pool{poolAddress}:chunk{tickLower}:{tickUpper}
1275
+ */
1276
+ interface ChunkKey {
1277
+ /** Chain ID */
1278
+ chainId: bigint;
1279
+ /** Pool address */
1280
+ poolAddress: Address$1;
1281
+ /** Lower tick bound */
1282
+ tickLower: bigint;
1283
+ /** Upper tick bound */
1284
+ tickUpper: bigint;
1285
+ }
1286
+ /**
1287
+ * Chunk data stored in persistent storage.
1288
+ */
1289
+ interface ChunkData {
1290
+ /** The chunk key */
1291
+ key: ChunkKey;
1292
+ /** Token IDs in this chunk */
1293
+ tokenIds: bigint[];
1294
+ /** Last update block number */
1295
+ lastBlock: bigint;
1296
+ /** Last update block hash */
1297
+ lastBlockHash: Hash;
1298
+ /** Creation timestamp */
1299
+ createdAt: bigint;
1300
+ /** Last update timestamp */
1301
+ updatedAt: bigint;
1302
+ }
1303
+ /**
1304
+ * Chunk metadata for LRU eviction.
1305
+ */
1306
+ interface ChunkMetadata {
1307
+ /** The chunk key */
1308
+ key: ChunkKey;
1309
+ /** Access count for frequency-based eviction */
1310
+ accessCount: bigint;
1311
+ /** Last access timestamp */
1312
+ lastAccessedAt: bigint;
1313
+ /** Size in bytes (approximate) */
1314
+ sizeBytes: bigint;
1315
+ }
1316
+ /**
1317
+ * Chunk statistics for monitoring.
1318
+ */
1319
+ interface ChunkStats {
1320
+ /** Total number of chunks */
1321
+ totalChunks: bigint;
1322
+ /** Total token IDs across all chunks */
1323
+ totalTokenIds: bigint;
1324
+ /** Oldest chunk timestamp */
1325
+ oldestChunk: bigint;
1326
+ /** Newest chunk timestamp */
1327
+ newestChunk: bigint;
1328
+ /** Average chunk size */
1329
+ avgChunkSize: bigint;
1330
+ }
1331
+
1332
+ //#endregion
1333
+ //#region src/panoptic/v2/types/poolConfig.d.ts
1334
+ /** V3 pool configuration. */
1335
+ interface V3PoolConfig {
1336
+ version: 'v3';
1337
+ /** Uniswap V3 pool contract address */
1338
+ poolAddress: Address$1;
1339
+ }
1340
+ /** V4 pool configuration. */
1341
+ interface V4PoolConfig {
1342
+ version: 'v4';
1343
+ /** StateView contract address */
1344
+ stateViewAddress: Address$1;
1345
+ /** V4 pool ID (bytes32) */
1346
+ poolId: `0x${string}`;
1347
+ }
1348
+ /** Discriminated union of V3 and V4 pool configurations. */
1349
+ type PoolVersionConfig = V3PoolConfig | V4PoolConfig;
1350
+
1351
+ //#endregion
1352
+ //#region src/panoptic/v2/types/sync.d.ts
1353
+ /**
1354
+ * Sync status enum.
1355
+ */
1356
+ type SyncStatus = 'idle' | 'syncing' | 'error' | 'complete';
1357
+ /**
1358
+ * Sync state for tracking synchronization progress.
1359
+ */
1360
+ interface SyncState {
1361
+ /** Current sync status */
1362
+ status: SyncStatus;
1363
+ /** Last synced block number */
1364
+ lastSyncedBlock: bigint;
1365
+ /** Last synced block hash */
1366
+ lastSyncedBlockHash: Hash;
1367
+ /** Target block to sync to */
1368
+ targetBlock: bigint;
1369
+ /** Number of positions found during sync */
1370
+ positionsFound: bigint;
1371
+ /** Progress percentage (0-100) */
1372
+ progress: bigint;
1373
+ /** Error message if status is 'error' */
1374
+ errorMessage?: string;
1375
+ /** Timestamp when sync started */
1376
+ startedAt: bigint;
1377
+ /** Timestamp when sync completed (or errored) */
1378
+ completedAt?: bigint;
1379
+ }
1380
+ /**
1381
+ * Sync checkpoint for resumable syncs.
1382
+ */
1383
+ interface SyncCheckpoint {
1384
+ /** Chain ID */
1385
+ chainId: bigint;
1386
+ /** Pool address being synced */
1387
+ poolAddress: Address$1;
1388
+ /** Account address being synced */
1389
+ account: Address$1;
1390
+ /** Last processed block */
1391
+ lastBlock: bigint;
1392
+ /** Last processed block hash */
1393
+ lastBlockHash: Hash;
1394
+ /** Positions discovered so far */
1395
+ positionIds: bigint[];
1396
+ /** Checkpoint creation timestamp */
1397
+ createdAt: bigint;
1398
+ }
1399
+ /**
1400
+ * Sync options for customizing sync behavior.
1401
+ */
1402
+ interface SyncOptions {
1403
+ /** Starting block for sync (defaults to pool deployment block) */
1404
+ fromBlock?: bigint;
1405
+ /** Ending block for sync (defaults to latest) */
1406
+ toBlock?: bigint;
1407
+ /** Batch size for event fetching */
1408
+ batchSize?: bigint;
1409
+ /** Whether to use checkpoints for resumable syncs */
1410
+ useCheckpoints?: boolean;
1411
+ /** Progress callback */
1412
+ onProgress?: (state: SyncState) => void;
1413
+ }
1414
+ /**
1415
+ * Sync result after completion.
1416
+ */
1417
+ interface SyncResult {
1418
+ /** Whether sync completed successfully */
1419
+ success: boolean;
1420
+ /** Final sync state */
1421
+ state: SyncState;
1422
+ /** Position IDs discovered */
1423
+ positionIds: bigint[];
1424
+ /** Number of blocks processed */
1425
+ blocksProcessed: bigint;
1426
+ /** Duration in milliseconds */
1427
+ durationMs: bigint;
1428
+ }
1429
+ /**
1430
+ * Reorg detection result.
1431
+ */
1432
+ interface ReorgDetection {
1433
+ /** Whether a reorg was detected */
1434
+ detected: boolean;
1435
+ /** Block number where reorg started (if detected) */
1436
+ reorgBlock?: bigint;
1437
+ /** Expected block hash */
1438
+ expectedHash?: Hash;
1439
+ /** Actual block hash */
1440
+ actualHash?: Hash;
1441
+ /** Number of blocks to resync */
1442
+ blocksToResync?: bigint;
1443
+ }
1444
+
1114
1445
  //#endregion
1115
1446
  //#region src/panoptic/v2/utils/constants.d.ts
1116
1447
  /**
@@ -2312,6 +2643,81 @@ interface RequiredCreditForITM {
2312
2643
  * ```
2313
2644
  */
2314
2645
  declare function getRequiredCreditForITM(params: GetRequiredCreditForITMParams): Promise<RequiredCreditForITM>;
2646
+ /**
2647
+ * Parameters for createFlowNeutralTokenId.
2648
+ */
2649
+ interface CreateFlowNeutralTokenIdParams {
2650
+ /** viem PublicClient */
2651
+ client: PublicClient;
2652
+ /** PanopticPool address */
2653
+ poolAddress: Address$1;
2654
+ /** Account address */
2655
+ account: Address$1;
2656
+ /** The base tokenId (without neutralizing leg) */
2657
+ tokenId: bigint;
2658
+ /** Position size (number of contracts) — unchanged by this function */
2659
+ positionSize: bigint;
2660
+ /** Existing position IDs held by the account (defaults to empty) */
2661
+ existingPositionIds?: bigint[];
2662
+ /** Optional block number for simulation */
2663
+ blockNumber?: bigint;
2664
+ /** Optional pre-fetched block metadata */
2665
+ _meta?: BlockMeta;
2666
+ }
2667
+ /**
2668
+ * Result of createFlowNeutralTokenId.
2669
+ */
2670
+ interface FlowNeutralTokenId {
2671
+ /**
2672
+ * New tokenId with a single width=0 neutralizing leg prepended at index 0
2673
+ * (existing legs shifted to 1..n). Equals the original tokenId if OTM.
2674
+ */
2675
+ tokenId: bigint;
2676
+ /**
2677
+ * Position size to use when opening this tokenId. Always equal to the input
2678
+ * `positionSize` — the neutralizing leg is sized via its strike, not by
2679
+ * rescaling the position.
2680
+ */
2681
+ positionSize: bigint;
2682
+ /** The computed strike of the neutralizing leg (0n if OTM). */
2683
+ neutralStrike: bigint;
2684
+ /** Asset (0n or 1n) of the neutralizing leg (0n if OTM). */
2685
+ neutralAsset: bigint;
2686
+ /** Token type (0n or 1n) of the neutralizing leg (0n if OTM). */
2687
+ neutralTokenType: bigint;
2688
+ /** true = credit leg (isLong), false = loan leg; only meaningful when a leg was added. */
2689
+ neutralIsCredit: boolean;
2690
+ /** The raw ITM measurement that drove the leg sizing. */
2691
+ originalCredit: RequiredCreditForITM;
2692
+ /**
2693
+ * Tick-spacing rounding residual (solved tick − rounded tick) for diagnostics.
2694
+ * The achieved notional differs from the exact ITM amount by at most ~half a
2695
+ * tick-spacing in basis points (each tick ≈ 1bp) — an intended approximation.
2696
+ */
2697
+ strikeResidualTick: bigint;
2698
+ /** Block metadata */
2699
+ _meta: BlockMeta;
2700
+ }
2701
+ /**
2702
+ * Create a flow-neutral tokenId by prepending a width=0 credit/loan leg that
2703
+ * offsets the net ITM token flow.
2704
+ *
2705
+ * When a position is ITM, opening it produces an imbalanced single-sided token
2706
+ * flow. This function measures that net flow via {@link getRequiredCreditForITM}
2707
+ * and prepends a single width=0 leg (at index 0, with `asset !== tokenType` so
2708
+ * its notional scales continuously by strike) sized so its token flow is equal
2709
+ * and opposite. The result has net flow ~zero at mint.
2710
+ *
2711
+ * The leg occupies index 0; existing legs are shifted to indices 1..n with their
2712
+ * `riskPartner` references remapped (self-partners stay self, cross-partners +1).
2713
+ * The input `positionSize` is never modified — the leg is sized via its strike.
2714
+ *
2715
+ * @param params - The parameters
2716
+ * @returns The flow-neutral tokenId with metadata
2717
+ * @throws PanopticError if the tokenId already has 4 legs, positionSize <= 0, or
2718
+ * the required neutralizing strike falls outside the valid tick range.
2719
+ */
2720
+ declare function createFlowNeutralTokenId(params: CreateFlowNeutralTokenIdParams): Promise<FlowNeutralTokenId>;
2315
2721
  /**
2316
2722
  * Parameters for getMaxWithdrawable.
2317
2723
  */
@@ -4407,6 +4813,10 @@ declare function usePreviewRedeem(poolAddress: Address$1, tokenIndex: 0 | 1, amo
4407
4813
  declare function useEstimateCollateralRequired(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, queryAddress: Address$1, account?: Address$1, options?: QueryOptions & {
4408
4814
  atTick?: bigint;
4409
4815
  }): QueryObserverResult<TData, TError>;
4816
+ declare function useFlowNeutralTokenId(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, account?: Address$1, options?: QueryOptions & {
4817
+ existingPositionIds?: bigint[];
4818
+ neutralizeITM?: boolean;
4819
+ }): QueryObserverResult<TData, TError>;
4410
4820
  declare function useMaxPositionSize(poolAddress: Address$1, tokenId: bigint, queryAddress: Address$1, account?: Address$1, options?: QueryOptions & {
4411
4821
  existingPositionIds?: bigint[];
4412
4822
  swapAtMint?: boolean;
@@ -5693,6 +6103,10 @@ declare const queryKeys: {
5693
6103
  * Key for required credit for ITM position.
5694
6104
  */
5695
6105
  readonly requiredCreditForITM: (chainId: bigint, poolAddress: Address, account: Address, tokenId: bigint) => readonly ["panoptic-v2", "requiredCreditForITM", string, Address, Address, string];
6106
+ /**
6107
+ * Key for flow-neutral tokenId (ITM-neutralizing leg).
6108
+ */
6109
+ readonly flowNeutralTokenId: (chainId: bigint, poolAddress: Address, account: Address, tokenId: bigint) => readonly ["panoptic-v2", "flowNeutralTokenId", string, Address, Address, string];
5696
6110
  /**
5697
6111
  * Key for interest state (per-user borrows).
5698
6112
  */
@@ -6403,6 +6817,14 @@ interface GetOpenPositionIdsParams {
6403
6817
  * scanning from block 0. Use the checkpoint's lastBlock for incremental syncs.
6404
6818
  */
6405
6819
  fromBlock?: bigint;
6820
+ /** Upper bound for fallback event recovery. */
6821
+ toBlock?: bigint;
6822
+ /** Expected Zodiac Roles wrapper for a bot-relayed Safe dispatch. */
6823
+ rolesContext?: {
6824
+ modifier: Address$1;
6825
+ member: Address$1;
6826
+ roleKey: Hash;
6827
+ };
6406
6828
  }
6407
6829
  /**
6408
6830
  * Get the authoritative list of open position IDs from the chain.
@@ -7133,6 +7555,12 @@ interface RecoverSnapshotFromTxParams {
7133
7555
  account?: Address$1;
7134
7556
  /** Pool address to validate against. When set, rejects transactions not sent to this pool. */
7135
7557
  pool?: Address$1;
7558
+ /** Expected Zodiac Roles wrapper for bot-originated Safe dispatches. */
7559
+ rolesContext?: {
7560
+ modifier: Address$1;
7561
+ member: Address$1;
7562
+ roleKey: Hash;
7563
+ };
7136
7564
  }
7137
7565
  /**
7138
7566
  * Recover position snapshot from a specific dispatch transaction hash.
@@ -9619,5 +10047,5 @@ declare function isNonceError(error: unknown): boolean;
9619
10047
  declare function isGasError(error: unknown): boolean;
9620
10048
 
9621
10049
  //#endregion
9622
- export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getLegDelta, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
10050
+ export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getLegDelta, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
9623
10051
  //# sourceMappingURL=index.d.ts.map