@panoptic-eng/sdk 1.0.46 → 1.0.48
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 +48 -4
- package/dist/cow/index.js.map +1 -1
- package/dist/{cow-64lD-1vF.js → cow-BPcuMjYR.js} +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +203 -162
- package/dist/index.js.map +1 -1
- package/dist/{irm-Cg08pWot.js → irm-C7QhFiwL.js} +7 -246
- package/dist/panoptic/v2/index.d.ts +167 -32
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +1562 -930
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +167 -32
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +1164 -528
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{getTrackedPositionIds-BwBtLpz-.js → rates-5oQD-SuM.js} +256 -4
- package/dist/{router-DR1NpQhi.js → router-C26q7i8w.js} +2 -2
- package/dist/{router-Di45CFq9.js → router-ClhAkKjh.js} +1 -1
- package/dist/uniswap/index.js +59 -15
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-BYlZLfDi.js → v2-DVcophLf.js} +1379 -2671
- package/dist/{writes-CmRf1Mok.js → writes-DBHwfbDD.js} +2855 -944
- package/dist/zodiac/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cow/index.js
CHANGED
|
@@ -3743,7 +3743,7 @@ const DISPATCH_FROM_SELECTOR = toFunctionSelector(panopticPoolV2Abi.find((e) =>
|
|
|
3743
3743
|
|
|
3744
3744
|
//#endregion
|
|
3745
3745
|
//#region src/panoptic/v2/formatters/tick.ts
|
|
3746
|
-
const Q192$
|
|
3746
|
+
const Q192$3 = 1n << 192n;
|
|
3747
3747
|
function tickToSqrtPriceX96(tick) {
|
|
3748
3748
|
if (tick < MIN_TICK || tick > MAX_TICK) throw new RangeError("Tick out of bounds");
|
|
3749
3749
|
const absTick = tick < 0n ? -tick : tick;
|
|
@@ -3787,8 +3787,8 @@ const UINT24_MASK = (1n << 24n) - 1n;
|
|
|
3787
3787
|
//#endregion
|
|
3788
3788
|
//#region src/panoptic/v2/greeks/index.ts
|
|
3789
3789
|
/** Fixed-point scale constants for sqrtPriceX96 arithmetic */
|
|
3790
|
-
const Q96 = 1n << 96n;
|
|
3791
|
-
const Q192 = 1n << 192n;
|
|
3790
|
+
const Q96$1 = 1n << 96n;
|
|
3791
|
+
const Q192$2 = 1n << 192n;
|
|
3792
3792
|
|
|
3793
3793
|
//#endregion
|
|
3794
3794
|
//#region src/panoptic/v2/tokenId/constants.ts
|
|
@@ -3844,6 +3844,15 @@ const LEG_MASKS = {
|
|
|
3844
3844
|
WIDTH: (1n << LEG_BITS.WIDTH_SIZE) - 1n,
|
|
3845
3845
|
LEG: (1n << TOKEN_ID_BITS.LEG_SIZE) - 1n
|
|
3846
3846
|
};
|
|
3847
|
+
/**
|
|
3848
|
+
* Maximum and minimum values for leg fields.
|
|
3849
|
+
*/
|
|
3850
|
+
const LEG_LIMITS = {
|
|
3851
|
+
MAX_RATIO: 127n,
|
|
3852
|
+
MAX_WIDTH: 4095n,
|
|
3853
|
+
MAX_STRIKE: 8388607n,
|
|
3854
|
+
MIN_STRIKE: -8388608n
|
|
3855
|
+
};
|
|
3847
3856
|
|
|
3848
3857
|
//#endregion
|
|
3849
3858
|
//#region src/panoptic/v2/utils/option-encoding-v2.ts
|
|
@@ -3876,9 +3885,40 @@ const OPTION_BURNT_EVENT = getAbiItem({
|
|
|
3876
3885
|
name: "OptionBurnt"
|
|
3877
3886
|
});
|
|
3878
3887
|
|
|
3888
|
+
//#endregion
|
|
3889
|
+
//#region src/panoptic/v2/formatters/rates.ts
|
|
3890
|
+
const SECONDS_PER_DAY = 86400n;
|
|
3891
|
+
const DAYS_PER_YEAR = 365n;
|
|
3892
|
+
const SECONDS_PER_YEAR = SECONDS_PER_DAY * DAYS_PER_YEAR;
|
|
3893
|
+
|
|
3894
|
+
//#endregion
|
|
3895
|
+
//#region src/panoptic/v2/tokenId/deriveUniqueTokenId.ts
|
|
3896
|
+
const POOL_ID_MASK$2 = (1n << 64n) - 1n;
|
|
3897
|
+
const MAX_LEGS = TOKEN_ID_BITS.MAX_LEGS;
|
|
3898
|
+
const MAX_OPTION_RATIO = LEG_LIMITS.MAX_RATIO;
|
|
3899
|
+
const Q192$1 = 1n << 192n;
|
|
3900
|
+
|
|
3901
|
+
//#endregion
|
|
3902
|
+
//#region src/panoptic/v2/tokenId/generateOverlapping.ts
|
|
3903
|
+
const MAX_UINT64 = (1n << 64n) - 1n;
|
|
3904
|
+
const MAX_UINT128$2 = (1n << 128n) - 1n;
|
|
3905
|
+
const Q192 = 1n << 192n;
|
|
3906
|
+
|
|
3907
|
+
//#endregion
|
|
3908
|
+
//#region src/panoptic/v2/tokenId/split.ts
|
|
3909
|
+
const POOL_ID_MASK$1 = (1n << TOKEN_ID_BITS.POOL_ID_SIZE) - 1n;
|
|
3910
|
+
const MAX_UINT128$1 = (1n << 128n) - 1n;
|
|
3911
|
+
const MAX_UINT256 = (1n << 256n) - 1n;
|
|
3912
|
+
|
|
3913
|
+
//#endregion
|
|
3914
|
+
//#region src/panoptic/v2/writes/protectedSettle.ts
|
|
3915
|
+
const POOL_ID_MASK = (1n << 64n) - 1n;
|
|
3916
|
+
const Q96 = 1n << 96n;
|
|
3917
|
+
const MAX_UINT128 = (1n << 128n) - 1n;
|
|
3918
|
+
|
|
3879
3919
|
//#endregion
|
|
3880
3920
|
//#region src/panoptic/v2/reads/positionSizes.ts
|
|
3881
|
-
const BIT_MASK_128 = (1n << 128n) - 1n;
|
|
3921
|
+
const BIT_MASK_128$1 = (1n << 128n) - 1n;
|
|
3882
3922
|
|
|
3883
3923
|
//#endregion
|
|
3884
3924
|
//#region src/panoptic/v2/simulations/tokenFlow.ts
|
|
@@ -3900,6 +3940,10 @@ const multicallAbi = [{
|
|
|
3900
3940
|
stateMutability: "nonpayable"
|
|
3901
3941
|
}, ...panopticErrorsAbi];
|
|
3902
3942
|
|
|
3943
|
+
//#endregion
|
|
3944
|
+
//#region src/panoptic/v2/simulations/simulateSettle.ts
|
|
3945
|
+
const BIT_MASK_128 = (1n << 128n) - 1n;
|
|
3946
|
+
|
|
3903
3947
|
//#endregion
|
|
3904
3948
|
//#region src/cow/approval.ts
|
|
3905
3949
|
/** Check whether the vault relayer can pull `amount` of the sell token. */
|