timelock-sdk 0.0.189 → 0.0.191
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/{client-bpABXvJa.d.cts → client-9wbQVrDG.d.ts} +165 -165
- package/dist/{client-D-cR5vCY.d.ts → client-CEtNglT8.d.cts} +165 -165
- package/dist/client.cjs +7 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +7 -2
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-BjPxfPAz.js → optionUtils-96oUNrzV.js} +2 -3
- package/dist/optionUtils-96oUNrzV.js.map +1 -0
- package/dist/{optionUtils-Dj9hOtZo.cjs → optionUtils-DsqMIDm1.cjs} +2 -3
- package/dist/optionUtils-DsqMIDm1.cjs.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
- package/dist/optionUtils-BjPxfPAz.js.map +0 -1
- package/dist/optionUtils-Dj9hOtZo.cjs.map +0 -1
package/dist/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
const require_optionUtils = require('./optionUtils-
|
|
3
|
+
const require_optionUtils = require('./optionUtils-DsqMIDm1.cjs');
|
|
4
4
|
const require_statelessStateView = require('./statelessStateView-Dl3QIl1g.cjs');
|
|
5
5
|
const require_factory = require('./factory-DitVXzjQ.cjs');
|
|
6
6
|
let viem = require("viem");
|
|
@@ -700,7 +700,7 @@ const useExerciseOption = (marketAddr) => {
|
|
|
700
700
|
if (!marketAddr) throw new Error("Market address not available");
|
|
701
701
|
if (!timelockLens) throw new Error("Timelock lens not available");
|
|
702
702
|
if (!vault) throw new Error("Vault not available");
|
|
703
|
-
if (!poolKey) throw new Error("Pool data not available");
|
|
703
|
+
if (!poolKey || !poolManager) throw new Error("Pool data not available");
|
|
704
704
|
if (!sqrtPriceX96) throw new Error("Current price not available");
|
|
705
705
|
const swapper = require_optionUtils.swappers[client.chain.id];
|
|
706
706
|
if (!swapper) throw new Error("Swapper not available");
|
|
@@ -717,6 +717,10 @@ const useExerciseOption = (marketAddr) => {
|
|
|
717
717
|
0n,
|
|
718
718
|
swapper,
|
|
719
719
|
(0, viem.encodeAbiParameters)([
|
|
720
|
+
{
|
|
721
|
+
type: "address",
|
|
722
|
+
name: "poolManager"
|
|
723
|
+
},
|
|
720
724
|
{
|
|
721
725
|
type: "tuple",
|
|
722
726
|
components: [
|
|
@@ -745,6 +749,7 @@ const useExerciseOption = (marketAddr) => {
|
|
|
745
749
|
{ type: "uint160" },
|
|
746
750
|
{ type: "uint160" }
|
|
747
751
|
], [
|
|
752
|
+
poolManager,
|
|
748
753
|
poolKey,
|
|
749
754
|
minSqrtPrice,
|
|
750
755
|
maxSqrtPrice
|