timelock-sdk 0.0.165 → 0.0.167

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.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_optionUtils = require('./optionUtils-Cuuw6jXD.cjs');
4
+ const require_optionUtils = require('./optionUtils-cd5h0wkz.cjs');
5
5
  const require_statelessStateView = require('./statelessStateView-XdTJQxsY.cjs');
6
6
  const require_factory = require('./factory-DitVXzjQ.cjs');
7
7
  let viem = require("viem");
@@ -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: pricingAddr,
1677
- abi: [{
1678
- type: "function",
1679
- name: "readState",
1680
- stateMutability: "view",
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
  {