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-cISs8Q1u.d.ts → client-Cq946h0I.d.cts} +946 -17
- package/dist/{client-rBb0dgBA.d.cts → client-DKmMbskR.d.ts} +1878 -949
- package/dist/client.cjs +7 -21
- 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 -21
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-OyY8qOu0.js → optionUtils-Ctn8remy.js} +2 -2
- package/dist/{optionUtils-OyY8qOu0.js.map → optionUtils-Ctn8remy.js.map} +1 -1
- package/dist/{optionUtils-Cuuw6jXD.cjs → optionUtils-cd5h0wkz.cjs} +2 -2
- package/dist/{optionUtils-Cuuw6jXD.cjs.map → optionUtils-cd5h0wkz.cjs.map} +1 -1
- 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/client.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_optionUtils = require('./optionUtils-
|
|
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:
|
|
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
|
{
|