@panoptic-eng/sdk 1.0.43 → 1.0.45
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.
- package/dist/cow/index.js +10 -0
- package/dist/cow/index.js.map +1 -1
- package/dist/{cow-tRUtAUZy.js → cow-DIYBU1j9.js} +1 -1
- package/dist/{getTrackedPositionIds-ms3W9dYB.js → getTrackedPositionIds-CwBHzOO2.js} +1 -1
- package/dist/{greeks-GysWXct-.js → greeks-9aTE-DwO.js} +11 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/{irm-SPC2KxLA.js → irm-CvLqxTAo.js} +6 -7
- package/dist/panoptic/v2/greeks/index.js +10 -0
- package/dist/panoptic/v2/greeks/index.js.map +1 -1
- package/dist/panoptic/v2/index.d.ts +22 -6
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +24 -17
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +22 -6
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +24 -17
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{router-BTfbaRfg.js → router-CUlQfzoc.js} +1 -1
- package/dist/{router-mLWy0MD9.js → router-OcmdMkXx.js} +2 -2
- package/dist/uniswap/index.js +10 -0
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-Djy0rVdh.js → v2-D5oeb9YD.js} +11 -14
- package/dist/{writes-_gfkBizf.js → writes-CG9mYns0.js} +4 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PanopticError, submitWrite } from "./getTrackedPositionIds-
|
|
1
|
+
import { PanopticError, submitWrite } from "./getTrackedPositionIds-CwBHzOO2.js";
|
|
2
2
|
import { erc20Abi, getAddress, keccak256, maxUint256, stringToHex, zeroAddress } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/cow/addresses.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ORACLE_EPOCH_SECONDS, SCHEMA_VERSION, STORAGE_PREFIX, calculatePositionGreeks, tickToSqrtPriceX96 } from "./greeks-
|
|
1
|
+
import { ORACLE_EPOCH_SECONDS, SCHEMA_VERSION, STORAGE_PREFIX, calculatePositionGreeks, tickToSqrtPriceX96 } from "./greeks-9aTE-DwO.js";
|
|
2
2
|
import { BaseError, decodeAbiParameters, decodeErrorResult, decodeEventLog, decodeFunctionData, encodeFunctionData, getAddress, keccak256, parseAbi, toFunctionSelector, zeroAddress } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/generated.ts
|
|
@@ -70,6 +70,16 @@ const MIN_TICK = -887272n;
|
|
|
70
70
|
*/
|
|
71
71
|
const MAX_TICK = 887272n;
|
|
72
72
|
/**
|
|
73
|
+
* PanopticQuery sentinel indicating that no lower liquidation boundary exists.
|
|
74
|
+
* This is int24.min, not Uniswap's minimum usable tick.
|
|
75
|
+
*/
|
|
76
|
+
const NO_LOWER_LIQUIDATION_TICK = -(1n << 23n);
|
|
77
|
+
/**
|
|
78
|
+
* PanopticQuery sentinel indicating that no upper liquidation boundary exists.
|
|
79
|
+
* This is int24.max, not Uniswap's maximum usable tick.
|
|
80
|
+
*/
|
|
81
|
+
const NO_UPPER_LIQUIDATION_TICK = (1n << 23n) - 1n;
|
|
82
|
+
/**
|
|
73
83
|
* Basis points denominator (100% = 10000 bps).
|
|
74
84
|
*/
|
|
75
85
|
const BPS_DENOMINATOR = 10000n;
|
|
@@ -1068,4 +1078,4 @@ function calculatePositionDeltaWithSwap(input) {
|
|
|
1068
1078
|
}
|
|
1069
1079
|
|
|
1070
1080
|
//#endregion
|
|
1071
|
-
export { BPS_DENOMINATOR, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, ORACLE_EPOCH_SECONDS, REORG_DEPTH, SCHEMA_VERSION, STORAGE_PREFIX, UTILIZATION_DENOMINATOR, WAD, ZERO_COLLATERAL, ZERO_VALUATION, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, formatPriceRange, formatTick, formatTickRange, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, getPricesAtTick, getTickSpacing, isCall, isDefinedRisk, priceToTick, roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick };
|
|
1081
|
+
export { BPS_DENOMINATOR, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, ORACLE_EPOCH_SECONDS, REORG_DEPTH, SCHEMA_VERSION, STORAGE_PREFIX, UTILIZATION_DENOMINATOR, WAD, ZERO_COLLATERAL, ZERO_VALUATION, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, formatPriceRange, formatTick, formatTickRange, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, getPricesAtTick, getTickSpacing, isCall, isDefinedRisk, priceToTick, roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick };
|
package/dist/index.js
CHANGED
|
@@ -22524,6 +22524,16 @@ const MIN_TICK = -887272n;
|
|
|
22524
22524
|
* Maximum tick value for Uniswap v3/v4 pools.
|
|
22525
22525
|
*/
|
|
22526
22526
|
const MAX_TICK = 887272n;
|
|
22527
|
+
/**
|
|
22528
|
+
* PanopticQuery sentinel indicating that no lower liquidation boundary exists.
|
|
22529
|
+
* This is int24.min, not Uniswap's minimum usable tick.
|
|
22530
|
+
*/
|
|
22531
|
+
const NO_LOWER_LIQUIDATION_TICK = -(1n << 23n);
|
|
22532
|
+
/**
|
|
22533
|
+
* PanopticQuery sentinel indicating that no upper liquidation boundary exists.
|
|
22534
|
+
* This is int24.max, not Uniswap's maximum usable tick.
|
|
22535
|
+
*/
|
|
22536
|
+
const NO_UPPER_LIQUIDATION_TICK = (1n << 23n) - 1n;
|
|
22527
22537
|
|
|
22528
22538
|
//#endregion
|
|
22529
22539
|
//#region src/panoptic/v2/formatters/tick.ts
|