timelock-sdk 0.0.101 → 0.0.103
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 +2 -5
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +2 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -827,7 +827,7 @@ var PerpsOperator = class {
|
|
|
827
827
|
return address;
|
|
828
828
|
}
|
|
829
829
|
async genAuthMessage(userAddr) {
|
|
830
|
-
const { message } = await this.#request("api/auth/
|
|
830
|
+
const { message } = await this.#request("api/auth/gen", { userAddr });
|
|
831
831
|
return message;
|
|
832
832
|
}
|
|
833
833
|
async validateAuthMessage(authMessage, signature) {
|
|
@@ -1047,10 +1047,7 @@ const useMintPerp = (marketAddr) => {
|
|
|
1047
1047
|
if (!operator || !operatorAddr) throw new Error("Operator address not found");
|
|
1048
1048
|
if (!tickSpacing || currentTick === void 0) throw new Error("Pool data not found");
|
|
1049
1049
|
if (optionAssetIsToken0 === void 0 || !payoutAsset) throw new Error("Market data not found");
|
|
1050
|
-
if (!operator.auth)
|
|
1051
|
-
console.log("here");
|
|
1052
|
-
await signMessage();
|
|
1053
|
-
}
|
|
1050
|
+
if (!operator.auth) await signMessage();
|
|
1054
1051
|
if (!hasEnoughPerms) await setOperatorPerms({
|
|
1055
1052
|
operator: operatorAddr,
|
|
1056
1053
|
canMint: true,
|