@panoptic-eng/sdk 1.0.26 → 1.0.27

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 (48) hide show
  1. package/dist/cow/index.d.ts +5 -4
  2. package/dist/cow/index.js +4 -3
  3. package/dist/cow/types.d.ts +2 -2
  4. package/dist/{cow-UR3yv8Wz.js → cow-CbyBBJa8.js} +2 -2
  5. package/dist/{cow-UR3yv8Wz.js.map → cow-CbyBBJa8.js.map} +1 -1
  6. package/dist/greeks-GysWXct-.js +1072 -0
  7. package/dist/greeks-GysWXct-.js.map +1 -0
  8. package/dist/index-Bs35Gs9h.d.ts +261 -0
  9. package/dist/index-Bs35Gs9h.d.ts.map +1 -0
  10. package/dist/{index-CIlr4SNh.d.ts → index-cqnrR3RH.d.ts} +4 -4
  11. package/dist/{index-CIlr4SNh.d.ts.map → index-cqnrR3RH.d.ts.map} +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +3 -2
  15. package/dist/index.js.map +1 -1
  16. package/dist/{irm-Dw6fa-DV.js → irm-CUQhUGHI.js} +3 -2
  17. package/dist/{irm-Dw6fa-DV.js.map → irm-CUQhUGHI.js.map} +1 -1
  18. package/dist/{irm-CSJX9BsU.d.ts → irm-DsuOZAXj.d.ts} +1 -1
  19. package/dist/{irm-CSJX9BsU.d.ts.map → irm-DsuOZAXj.d.ts.map} +1 -1
  20. package/dist/panoptic/v2/greeks/index.d.ts +3 -0
  21. package/dist/panoptic/v2/greeks/index.js +3 -0
  22. package/dist/panoptic/v2/index.d.ts +9 -233
  23. package/dist/panoptic/v2/index.d.ts.map +1 -1
  24. package/dist/panoptic/v2/index.js +7 -6
  25. package/dist/panoptic/v2/index.js.map +1 -1
  26. package/dist/{position-GYsTTl71.js → position-B7cJsaOz.js} +3 -1056
  27. package/dist/position-B7cJsaOz.js.map +1 -0
  28. package/dist/position-C8du80mE.d.ts +199 -0
  29. package/dist/position-C8du80mE.d.ts.map +1 -0
  30. package/dist/{router-DGUQo-8h.js → router-CFs84CaF.js} +2 -2
  31. package/dist/{router-DGUQo-8h.js.map → router-CFs84CaF.js.map} +1 -1
  32. package/dist/{simulation-4SzTI-xf.d.ts → simulation-DMPUACvp.d.ts} +21 -198
  33. package/dist/simulation-DMPUACvp.d.ts.map +1 -0
  34. package/dist/{tx-Banz1S18.d.ts → tx-D4uNr1_K.d.ts} +1 -1
  35. package/dist/{tx-Banz1S18.d.ts.map → tx-D4uNr1_K.d.ts.map} +1 -1
  36. package/dist/{types-Bzw_7NJv.d.ts → types-CRev1pDq.d.ts} +2 -2
  37. package/dist/{types-Bzw_7NJv.d.ts.map → types-CRev1pDq.d.ts.map} +1 -1
  38. package/dist/{types-CspUPolV.d.ts → types-CnfCBl2B.d.ts} +3 -3
  39. package/dist/{types-CspUPolV.d.ts.map → types-CnfCBl2B.d.ts.map} +1 -1
  40. package/dist/uniswap/index.d.ts +4 -3
  41. package/dist/uniswap/index.d.ts.map +1 -1
  42. package/dist/uniswap/index.js +4 -3
  43. package/dist/uniswap/index.js.map +1 -1
  44. package/dist/{writes-h-IX3XQq.js → writes-GvVYh9PQ.js} +3 -2
  45. package/dist/{writes-h-IX3XQq.js.map → writes-GvVYh9PQ.js.map} +1 -1
  46. package/package.json +5 -1
  47. package/dist/position-GYsTTl71.js.map +0 -1
  48. package/dist/simulation-4SzTI-xf.d.ts.map +0 -1
@@ -5691,4 +5691,4 @@ declare function getIrmCurve(params: {
5691
5691
 
5692
5692
  //#endregion
5693
5693
  export { BASE_CHAIN_ID as BASE_CHAIN_ID$1, BASE_DEPLOYMENT as BASE_DEPLOYMENT$1, BASE_ETH_USDC_5BPS_MARKET as BASE_ETH_USDC_5BPS_MARKET$1, BASE_HYPOVAULT_ADDRESSES as BASE_HYPOVAULT_ADDRESSES$1, BASE_HYPOVAULT_CORE_ADDRESSES as BASE_HYPOVAULT_CORE_ADDRESSES$1, BASE_HYPOVAULT_MANAGER_ADDRESSES as BASE_HYPOVAULT_MANAGER_ADDRESSES$1, BASE_HYPOVAULT_MANAGER_TURNKEY_SIGNERS as BASE_HYPOVAULT_MANAGER_TURNKEY_SIGNERS$1, BASE_PANOPTIC_POOL_ADDRESSES as BASE_PANOPTIC_POOL_ADDRESSES$1, BASE_PANOPTIC_V2_ADDRESSES as BASE_PANOPTIC_V2_ADDRESSES$1, BORROW_INDEX_BITS as BORROW_INDEX_BITS$1, BPS_SCALE as BPS_SCALE$1, CHAIN_DEPLOYMENTS as CHAIN_DEPLOYMENTS$1, ChainDeployment, HypoVaultManagerTurnkeySigners, IrmCurrent, IrmMarketStateInputs, IrmPoint, MAINNET_CHAIN_ID as MAINNET_CHAIN_ID$1, MAINNET_DEPLOYMENT as MAINNET_DEPLOYMENT$1, MAINNET_PANOPTIC_V2_ADDRESSES as MAINNET_PANOPTIC_V2_ADDRESSES$1, MARKET_EPOCH_BITS as MARKET_EPOCH_BITS$1, MARKET_EPOCH_SHIFT as MARKET_EPOCH_SHIFT$1, RATE_AT_TARGET_BITS as RATE_AT_TARGET_BITS$1, SECONDS_PER_YEAR as SECONDS_PER_YEAR$1, SEPOLIA_CHAIN_ID as SEPOLIA_CHAIN_ID$1, SEPOLIA_DEPLOYMENT as SEPOLIA_DEPLOYMENT$1, SEPOLIA_ETH_USDC_5BPS_MARKET as SEPOLIA_ETH_USDC_5BPS_MARKET$1, SEPOLIA_HYPOVAULT_ADDRESSES as SEPOLIA_HYPOVAULT_ADDRESSES$1, SEPOLIA_HYPOVAULT_CORE_ADDRESSES as SEPOLIA_HYPOVAULT_CORE_ADDRESSES$1, SEPOLIA_HYPOVAULT_MANAGER_ADDRESSES as SEPOLIA_HYPOVAULT_MANAGER_ADDRESSES$1, SEPOLIA_HYPOVAULT_MANAGER_TURNKEY_SIGNERS as SEPOLIA_HYPOVAULT_MANAGER_TURNKEY_SIGNERS$1, SEPOLIA_PANOPTIC_POOL_ADDRESSES as SEPOLIA_PANOPTIC_POOL_ADDRESSES$1, SEPOLIA_PANOPTIC_V2_ADDRESSES as SEPOLIA_PANOPTIC_V2_ADDRESSES$1, UNREALIZED_INTEREST_BITS as UNREALIZED_INTEREST_BITS$1, WAD as WAD$2, annualizePerSecondRateWad as annualizePerSecondRateWad$1, collateralTrackerV2Abi as collateralTrackerV2Abi$1, deriveSupplyRatePerSecWad as deriveSupplyRatePerSecWad$1, formatPerSecondRateWadAsAprPct as formatPerSecondRateWadAsAprPct$1, formatPerSecondRateWadAsApyPct as formatPerSecondRateWadAsApyPct$1, getChainDeployment as getChainDeployment$1, getEthUsdcMarket as getEthUsdcMarket$1, getIrmCurrent as getIrmCurrent$1, getIrmCurve as getIrmCurve$1, isSupportedChain as isSupportedChain$1, packMarketState as packMarketState$1, panopticFactoryV3Abi as panopticFactoryV3Abi$1, panopticFactoryV4Abi as panopticFactoryV4Abi$1, panopticPoolV2Abi as panopticPoolV2Abi$1, panopticQueryAbi as panopticQueryAbi$2, ratePerSecWadToAprPct as ratePerSecWadToAprPct$1, requireChainDeployment as requireChainDeployment$1, riskEngineAbi as riskEngineAbi$1, semiFungiblePositionManagerV3Abi as semiFungiblePositionManagerV3Abi$1, semiFungiblePositionManagerV4Abi as semiFungiblePositionManagerV4Abi$1, utilizationBpsToWad as utilizationBpsToWad$1, utilizationPctToWad as utilizationPctToWad$1 };
5694
- //# sourceMappingURL=irm-CSJX9BsU.d.ts.map
5694
+ //# sourceMappingURL=irm-DsuOZAXj.d.ts.map
@@ -1 +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,EAAAA;IA82BAE,SAAAA,IAAAA,EAAAA,SA2nBnB;IACmBC,SAAAA,YAocnB,EAAA,SAAA;IACmBC,SAAAA,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AAA,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
+ {"version":3,"file":"irm-DsuOZAXj.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,E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TO,gBAAAA,GHMS,SAAA;AAUlBJ,cGfSK,kBAAAA,GHeW,EAAA;cGdXC,iBAAAA;cACAC,iBAAAA;cACAC,mBAAAA;AFbAvB,cEcAwB,wBAAAA,GF4gCnB,IAAA;AACmBvB,iBE5gCGwB,eAAAA,CFs9CtB,MAAA,EEt9C8CV,oBFs9C9C,CAAA,EAAA,MAAA;AACmBb,iBEt9CGwB,mBAAAA,CFu9DtB,cAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AA6WmBtB,iBEn0EGuB,mBAAAA,CF87FtB,cAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AACmBtB,iBE97FGuB,qBAAAA,CFk4GtB,aAAA,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"}
@@ -0,0 +1,3 @@
1
+ import "../../../position-C8du80mE.js";
2
+ import { PositionGreeksInput, PositionGreeksResult, calculatePortfolioDelta$1 as calculatePortfolioDelta, calculatePortfolioGamma$1 as calculatePortfolioGamma, calculatePortfolioGreeks$1 as calculatePortfolioGreeks, calculatePortfolioValue$1 as calculatePortfolioValue, calculatePositionDelta$1 as calculatePositionDelta, calculatePositionDeltaDebtOnly$1 as calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap$1 as calculatePositionDeltaWithSwap, calculatePositionGamma$1 as calculatePositionGamma, calculatePositionGreeks$1 as calculatePositionGreeks, calculatePositionValue$1 as calculatePositionValue, getLegDelta$1 as getLegDelta, getLegDeltaInVaultFrame$1 as getLegDeltaInVaultFrame, getLegGamma$1 as getLegGamma, getLegNetValueWidth0$1 as getLegNetValueWidth0, getLegValue$1 as getLegValue, getLoanEffectiveDelta$1 as getLoanEffectiveDelta, isCall$1 as isCall, isDefinedRisk$1 as isDefinedRisk, toVaultFrameAtTick$1 as toVaultFrameAtTick } from "../../../index-Bs35Gs9h.js";
3
+ export { PositionGreeksInput, PositionGreeksResult, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, isCall, isDefinedRisk, toVaultFrameAtTick };
@@ -0,0 +1,3 @@
1
+ import { calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, isCall, isDefinedRisk, toVaultFrameAtTick } from "../../../greeks-GysWXct-.js";
2
+
3
+ export { calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, isCall, isDefinedRisk, toVaultFrameAtTick };
@@ -1,9 +1,11 @@
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";
1
+ import { isCowSupportedChain$1 as isCowSupportedChain } from "../../index-cqnrR3RH.js";
2
+ import { BlockMeta, ClosedPosition, LegGreeksParams, Position, PositionGreeks, RealizedPnL, StoredPositionData, TokenIdLeg } from "../../position-C8du80mE.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-CnfCBl2B.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-DsuOZAXj.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-D4uNr1_K.js";
6
+ import { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation } from "../../simulation-DMPUACvp.js";
7
+ import { CheckCowApprovalParams, QuoteCowSwapParams } from "../../types-CRev1pDq.js";
8
+ import { PositionGreeksInput, PositionGreeksResult, calculatePortfolioDelta$1 as calculatePortfolioDelta, calculatePortfolioGamma$1 as calculatePortfolioGamma, calculatePortfolioGreeks$1 as calculatePortfolioGreeks, calculatePortfolioValue$1 as calculatePortfolioValue, calculatePositionDelta$1 as calculatePositionDelta, calculatePositionDeltaDebtOnly$1 as calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap$1 as calculatePositionDeltaWithSwap, calculatePositionGamma$1 as calculatePositionGamma, calculatePositionGreeks$1 as calculatePositionGreeks, calculatePositionValue$1 as calculatePositionValue, getLegDelta$1 as getLegDelta, getLegDeltaInVaultFrame$1 as getLegDeltaInVaultFrame, getLegGamma$1 as getLegGamma, getLegNetValueWidth0$1 as getLegNetValueWidth0, getLegValue$1 as getLegValue, isCall$1 as isCall, isDefinedRisk$1 as isDefinedRisk, toVaultFrameAtTick$1 as toVaultFrameAtTick } from "../../index-Bs35Gs9h.js";
7
9
  import { Abi, Address as Address$1, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, WalletClient } from "viem";
8
10
  import { ReactNode } from "react";
9
11
  import * as react_jsx_runtime21 from "react/jsx-runtime";
@@ -3304,232 +3306,6 @@ interface GetPoolLiquiditiesParams {
3304
3306
  */
3305
3307
  declare function getPoolLiquidities(params: GetPoolLiquiditiesParams): Promise<PoolLiquidities>;
3306
3308
 
3307
- //#endregion
3308
- //#region src/panoptic/v2/greeks/index.d.ts
3309
- /**
3310
- * Calculate the NET (user-experienced) payoff value for a width=0 (loan/credit) leg.
3311
- *
3312
- * Unlike `getLegValueWidth0` (debt-only), this includes the collateral/holding side and
3313
- * therefore depends on how the position was opened:
3314
- *
3315
- * - **Cover at mint** (`swapAtMint = false`): the collateral is sourced in the SAME token as
3316
- * the debt/credit, so the holding side exactly offsets it → net PnL is FLAT (0 everywhere,
3317
- * mint-relative), regardless of which token the leg is denominated in.
3318
- * - **Zap** (`swapAtMint = true`): the collateral is sourced in the OTHER token, leaving a
3319
- * ±1-delta line in the asset (ETH), anchored to 0 at the mint price:
3320
- * - USDC loan → zap to ETH: +1 (long ETH)
3321
- * - ETH loan → zap to USDC: −1 (short ETH)
3322
- * - USDC credit ← zap from ETH: −1 (short ETH)
3323
- * - ETH credit ← zap from USDC: +1 (long ETH)
3324
- *
3325
- * @returns Net leg value in numeraire token smallest units (mint-relative PnL).
3326
- */
3327
- declare function getLegNetValueWidth0(leg: TokenIdLeg, m: bigint, qCurrentTick: bigint, qMintTick: bigint, isAssetToken0: boolean, swapAtMint: boolean, itmOffsetNotional?: bigint): bigint;
3328
- /**
3329
- * Check if leg is a call option (vs put).
3330
- *
3331
- * A call is when the leg moves the asset token:
3332
- * - If asset is token0: call when tokenType=0
3333
- * - If asset is token1: call when tokenType=1
3334
- */
3335
- declare function isCall(tokenType: bigint, isAssetToken0: boolean): boolean;
3336
- /**
3337
- * Check if position has defined risk (is a spread).
3338
- *
3339
- * A position is defined risk if it has 2+ legs of the same tokenType
3340
- * with both long and short exposure.
3341
- */
3342
- declare function isDefinedRisk(legs: Pick<TokenIdLeg, 'tokenType' | 'isLong'>[]): boolean;
3343
- /**
3344
- * Calculate the value of a single leg.
3345
- *
3346
- * Value represents the current P&L of the position in numeraire token units.
3347
- * Combines base value (from Panoptic's piecewise formula), debt, and ITM adjustment.
3348
- *
3349
- * Uses sqrtPriceX96 for all calculations to maintain precision and on-chain fidelity.
3350
- *
3351
- * @param leg - The leg to calculate
3352
- * @param currentTick - Current pool tick
3353
- * @param mintTick - Tick at position mint
3354
- * @param positionSize - Position size in asset token smallest units
3355
- * @param poolTickSpacing - Pool tick spacing
3356
- * @param definedRisk - Whether position is defined risk
3357
- * @param assetIndex - Optional override for leg.asset (0n = token0 is asset, 1n = token1)
3358
- * @returns Leg value in numeraire token smallest units
3359
- */
3360
- declare function getLegValue(leg: TokenIdLeg, currentTick: bigint, mintTick: bigint, positionSize: bigint, poolTickSpacing: bigint, definedRisk: boolean, assetIndex?: bigint, swapAtMint?: boolean): bigint;
3361
- /**
3362
- * Calculate the delta of a single leg.
3363
- *
3364
- * Delta is the rate of change of position value with respect to price.
3365
- * For puts: delta = vDelta
3366
- * For calls: delta = debtDelta + vDelta + itmDelta (if not defined risk)
3367
- *
3368
- * Uses sqrtPriceX96 for all price calculations to maintain precision.
3369
- *
3370
- * @param leg - The leg to calculate
3371
- * @param currentTick - Current pool tick
3372
- * @param positionSize - Position size in asset token smallest units
3373
- * @param poolTickSpacing - Pool tick spacing
3374
- * @param mintTick - Tick at mint (optional, for ITM adjustment)
3375
- * @param definedRisk - Whether position is defined risk
3376
- * @param assetIndex - Optional override for leg.asset (0n = token0 is asset, 1n = token1)
3377
- * @returns Leg delta in asset token smallest units
3378
- */
3379
- declare function getLegDelta(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, assetIndex?: bigint): bigint;
3380
- /** Convert a delta between token frames at the current pool tick. */
3381
- declare function toVaultFrameAtTick(delta: bigint, fromAsset: bigint, vaultAssetIndex: 0n | 1n, currentTick: bigint, flipSignOnAssetInversion?: boolean): bigint;
3382
- /**
3383
- * Calculate one leg's wallet-aware delta in the vault asset frame.
3384
- *
3385
- * Width-zero loans and credits must be evaluated directly in the vault frame.
3386
- * Option legs remain in their natural leg frame until converted at the mark tick.
3387
- */
3388
- declare function getLegDeltaInVaultFrame(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, vaultAssetIndex: 0n | 1n): bigint;
3389
- /**
3390
- * Calculate the gamma (dollar gamma) of a single leg.
3391
- *
3392
- * Formula: gamma = (m * sqrt(K * P * r)) / (2 * (r - 1))
3393
- * where:
3394
- * - m = positionSize * optionRatio (with sign based on long/short)
3395
- * - K = strike price (numeraire/asset)
3396
- * - P = current price (numeraire/asset)
3397
- * - r = 1.0001^(width*tickSpacing/2) ≈ 1 (dimensionless ratio)
3398
- *
3399
- * Uses sqrtPriceX96 arithmetic:
3400
- * - sqrt(K*P*r) = tickToSqrtPriceX96(strikeₜ + currentₜ + widthₜ/2)
3401
- * - Keeps X96/X192 precision until final division
3402
- *
3403
- * @param leg - The leg to calculate
3404
- * @param currentTick - Current pool tick
3405
- * @param positionSize - Position size in asset token smallest units
3406
- * @param poolTickSpacing - Pool tick spacing
3407
- * @param assetIndex - Optional override for leg.asset (0n = token0 is asset, 1n = token1)
3408
- * @returns Leg gamma in numeraire token smallest units
3409
- */
3410
- declare function getLegGamma(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, assetIndex?: bigint): bigint;
3411
- /**
3412
- * Parameters for position-level greek calculations.
3413
- */
3414
- interface PositionGreeksInput {
3415
- /** Position legs */
3416
- legs: TokenIdLeg[];
3417
- /** Current pool tick */
3418
- currentTick: bigint;
3419
- /** Tick at position mint */
3420
- mintTick: bigint;
3421
- /** Position size in asset token smallest units */
3422
- positionSize: bigint;
3423
- /** Pool tick spacing */
3424
- poolTickSpacing: bigint;
3425
- /** Optional override for leg.asset on all legs (0n = token0 is asset, 1n = token1) */
3426
- assetIndex?: bigint;
3427
- /**
3428
- * How width=0 (loan/credit) legs were opened. When provided, `calculatePositionValue`
3429
- * returns the NET user-experienced payoff for those legs (Zap = ±1 line, Cover = flat)
3430
- * instead of the debt-only value. Leave undefined for delta/greeks aggregation, which
3431
- * accounts for the held collateral separately.
3432
- */
3433
- swapAtMint?: boolean;
3434
- }
3435
- /**
3436
- * Calculate total value across all legs.
3437
- */
3438
- declare function calculatePositionValue(input: PositionGreeksInput): bigint;
3439
- /**
3440
- * Calculate total delta across all legs.
3441
- */
3442
- declare function calculatePositionDelta(input: PositionGreeksInput): bigint;
3443
- /**
3444
- * Calculate total gamma across all legs.
3445
- */
3446
- declare function calculatePositionGamma(input: PositionGreeksInput): bigint;
3447
- /**
3448
- * Position greeks result.
3449
- */
3450
- interface PositionGreeksResult {
3451
- /** Position value in numeraire token smallest units */
3452
- value: bigint;
3453
- /** Position delta in asset token smallest units */
3454
- delta: bigint;
3455
- /** Position gamma in numeraire token smallest units */
3456
- gamma: bigint;
3457
- }
3458
- /**
3459
- * Calculate all greeks for a position.
3460
- */
3461
- declare function calculatePositionGreeks(input: PositionGreeksInput): PositionGreeksResult;
3462
- /**
3463
- * Aggregate value across multiple independent positions.
3464
- *
3465
- * Each entry is valued with its OWN `positionSize`, `mintTick`, and legs, then
3466
- * summed. Do NOT collapse multiple positions into one synthetic `PositionGreeksInput`
3467
- * with a shared `positionSize` — `m = positionSize * optionRatio` is per-position, so a
3468
- * shared size double-counts (and integer `optionRatio` cannot encode fractional shares).
3469
- *
3470
- * @param positions - One `PositionGreeksInput` per open position
3471
- * @returns Total value in numeraire token smallest units
3472
- */
3473
- declare function calculatePortfolioValue(positions: PositionGreeksInput[]): bigint;
3474
- /**
3475
- * Aggregate delta across multiple independent positions.
3476
- *
3477
- * See {@link calculatePortfolioValue} for why each position must keep its own
3478
- * `positionSize` rather than being merged into one synthetic position.
3479
- *
3480
- * @param positions - One `PositionGreeksInput` per open position
3481
- * @returns Total delta in asset token smallest units
3482
- */
3483
- declare function calculatePortfolioDelta(positions: PositionGreeksInput[]): bigint;
3484
- /**
3485
- * Aggregate gamma across multiple independent positions.
3486
- *
3487
- * See {@link calculatePortfolioValue} for why each position must keep its own
3488
- * `positionSize` rather than being merged into one synthetic position.
3489
- *
3490
- * @param positions - One `PositionGreeksInput` per open position
3491
- * @returns Total gamma in numeraire token smallest units
3492
- */
3493
- declare function calculatePortfolioGamma(positions: PositionGreeksInput[]): bigint;
3494
- /**
3495
- * Calculate all greeks aggregated across multiple independent positions.
3496
- */
3497
- declare function calculatePortfolioGreeks(positions: PositionGreeksInput[]): PositionGreeksResult;
3498
- /**
3499
- * Calculate the effective delta of a loan leg accounting for swapAtMint.
3500
- *
3501
- * A loan borrows one token and (optionally) swaps it for the other at mint.
3502
- * The net delta depends on whether the swap occurred:
3503
- *
3504
- * | Scenario | Result |
3505
- * |-----------------------|-------------------------------------------------|
3506
- * | No swap | 0n (hold what you owe, net zero) |
3507
- * | Swap + borrows asset | -m (hold numeraire, owe asset → short exposure) |
3508
- * | Swap + borrows numer. | +m (hold asset, owe numeraire → long exposure) |
3509
- *
3510
- * Only meaningful for legs with `width === 0n`. For options, use `getLegDelta`.
3511
- *
3512
- * @param leg - The loan leg
3513
- * @param positionSize - Position size in asset token smallest units
3514
- * @param swapAtMint - Whether the borrowed tokens were swapped at mint
3515
- * @param assetIndex - Optional override for leg.asset (0n = token0 is asset)
3516
- * @returns Effective delta in asset token smallest units
3517
- */
3518
-
3519
- /**
3520
- * Calculate total delta for a position, using swap-aware delta for loan legs.
3521
- *
3522
- * For legs with `width === 0n` (loans/credits), uses `getLoanEffectiveDelta`
3523
- * which accounts for the swapAtMint flag. For option legs (`width > 0n`),
3524
- * uses the standard `getLegDelta`.
3525
- *
3526
- * @param input - Position greeks input plus swapAtMint flag
3527
- * @returns Total delta in asset token smallest units
3528
- */
3529
- declare function calculatePositionDeltaWithSwap(input: PositionGreeksInput & {
3530
- swapAtMint: boolean;
3531
- }): bigint;
3532
-
3533
3309
  //#endregion
3534
3310
  //#region src/panoptic/v2/reads/accountGreeks.d.ts
3535
3311
  /**
@@ -10176,5 +9952,5 @@ declare function isNonceError(error: unknown): boolean;
10176
9952
  declare function isGasError(error: unknown): boolean;
10177
9953
 
10178
9954
  //#endregion
10179
- export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
9955
+ export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
10180
9956
  //# sourceMappingURL=index.d.ts.map