timelock-sdk 0.0.165 → 0.0.166
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-cISs8Q1u.d.ts → client-C3Dv62sE.d.cts} +1654 -725
- package/dist/{client-rBb0dgBA.d.cts → client-CgVlKoVW.d.ts} +1673 -744
- package/dist/client.cjs +6 -20
- 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 +6 -20
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -1672,27 +1672,13 @@ const useUpdateMarketFees = (marketAddr) => {
|
|
|
1672
1672
|
//#endregion
|
|
1673
1673
|
//#region src/hooks/pricing/usePricingParams.ts
|
|
1674
1674
|
const usePricingParams = (pricingAddr) => {
|
|
1675
|
+
const { timelockLens } = useLens();
|
|
1675
1676
|
return (0, wagmi.useReadContract)({
|
|
1676
|
-
address:
|
|
1677
|
-
abi:
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
inputs: [],
|
|
1682
|
-
outputs: [{
|
|
1683
|
-
name: "",
|
|
1684
|
-
type: "bytes"
|
|
1685
|
-
}]
|
|
1686
|
-
}],
|
|
1687
|
-
functionName: "readState",
|
|
1688
|
-
query: { select: (data) => {
|
|
1689
|
-
const [pricingModel, rawData] = (0, viem.decodeAbiParameters)([{
|
|
1690
|
-
name: "pricingModel",
|
|
1691
|
-
type: "uint8"
|
|
1692
|
-
}, {
|
|
1693
|
-
name: "rawData",
|
|
1694
|
-
type: "bytes"
|
|
1695
|
-
}], data);
|
|
1677
|
+
address: timelockLens === null || timelockLens === void 0 ? void 0 : timelockLens.address,
|
|
1678
|
+
abi: require_statelessStateView.lensAbi,
|
|
1679
|
+
functionName: "getPricingParams",
|
|
1680
|
+
args: pricingAddr ? [pricingAddr] : void 0,
|
|
1681
|
+
query: { select: ([pricingModel, rawData]) => {
|
|
1696
1682
|
if (pricingModel === 0) {
|
|
1697
1683
|
const [logicContract, iv, riskFreeRate, minPremiumDailyRate, minPremiumAmount] = (0, viem.decodeAbiParameters)([
|
|
1698
1684
|
{
|