timelock-sdk 0.0.253 → 0.0.254
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 +10 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +577 -577
- package/dist/client.d.ts +226 -226
- package/dist/client.js +10 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-Dr0df0Cw.d.ts → index-CNYDmu55.d.ts} +483 -483
- package/dist/{index-JA1QJRKe.d.cts → index-C_d6dHDk.d.cts} +612 -612
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -2116,14 +2116,21 @@ const useUpdateMarketPricing = (marketAddr) => {
|
|
|
2116
2116
|
data.minPremiumAmount
|
|
2117
2117
|
]
|
|
2118
2118
|
});
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2119
|
+
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
2120
|
+
const deployEvent = receipt.logs.find((log) => log.address.toLowerCase() === factoryAddr.toLowerCase());
|
|
2121
|
+
if (!deployEvent) {
|
|
2122
|
+
console.error(receipt);
|
|
2123
|
+
throw new Error(`Deploy event not found in tx: ${hash}`);
|
|
2124
|
+
}
|
|
2121
2125
|
const decodedEvent = (0, viem.decodeEventLog)({
|
|
2122
2126
|
abi: require_factory.factoryAbi,
|
|
2123
2127
|
data: deployEvent.data,
|
|
2124
2128
|
topics: deployEvent.topics
|
|
2125
2129
|
});
|
|
2126
|
-
if (decodedEvent.eventName !== "DeployStaticPerpsPricing" && decodedEvent.eventName !== "DeployOptionPricing")
|
|
2130
|
+
if (decodedEvent.eventName !== "DeployStaticPerpsPricing" && decodedEvent.eventName !== "DeployOptionPricing") {
|
|
2131
|
+
console.error(receipt);
|
|
2132
|
+
throw new Error(`Unexpected event ${decodedEvent.eventName} in tx ${hash}`);
|
|
2133
|
+
}
|
|
2127
2134
|
const pricingAddr = decodedEvent.args.pricing;
|
|
2128
2135
|
const hash2 = await writeContractAsync({
|
|
2129
2136
|
address: marketAddr,
|