timelock-sdk 0.0.99 → 0.0.101
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-JOGxwcn5.d.cts → client-uwDDNqle.d.cts} +251 -251
- package/dist/client.cjs +5 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -943,7 +943,7 @@ const usePerpsOperator = () => {
|
|
|
943
943
|
const { address: address$1, validUntil } = await operator.validateAuthMessage(message, signature);
|
|
944
944
|
if (validUntil < Date.now()) throw new Error("Signature expired");
|
|
945
945
|
if (address$1 !== userAddr) throw new Error("Valid signature but different user address");
|
|
946
|
-
operator.setAuth(
|
|
946
|
+
operator.setAuth(message, signature);
|
|
947
947
|
} catch (error) {
|
|
948
948
|
clearSignature(userAddr);
|
|
949
949
|
console.error(error);
|
|
@@ -1055,7 +1055,10 @@ const useMintPerp = (marketAddr) => {
|
|
|
1055
1055
|
if (!operator || !operatorAddr) throw new Error("Operator address not found");
|
|
1056
1056
|
if (!tickSpacing || currentTick === void 0) throw new Error("Pool data not found");
|
|
1057
1057
|
if (optionAssetIsToken0 === void 0 || !payoutAsset) throw new Error("Market data not found");
|
|
1058
|
-
if (!operator.auth)
|
|
1058
|
+
if (!operator.auth) {
|
|
1059
|
+
console.log("here");
|
|
1060
|
+
await signMessage();
|
|
1061
|
+
}
|
|
1059
1062
|
if (!hasEnoughPerms) await setOperatorPerms({
|
|
1060
1063
|
operator: operatorAddr,
|
|
1061
1064
|
canMint: true,
|