@pear-protocol/hyperliquid-sdk 0.0.60-beta.7 → 0.0.60-beta.9
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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7045,7 +7045,7 @@ function useAuth() {
|
|
|
7045
7045
|
const setIsReady = useUserData((s) => s.setIsReady);
|
|
7046
7046
|
const setIsAuthenticated = useUserData((s) => s.setIsAuthenticated);
|
|
7047
7047
|
const setAddress = useUserData((s) => s.setAddress);
|
|
7048
|
-
console.log({ sdkAddress: address });
|
|
7048
|
+
console.log("sdk", { sdkAddress: address });
|
|
7049
7049
|
useEffect(() => {
|
|
7050
7050
|
if (typeof window == "undefined") {
|
|
7051
7051
|
return;
|
|
@@ -7085,7 +7085,7 @@ function useAuth() {
|
|
|
7085
7085
|
return () => {
|
|
7086
7086
|
cleanup();
|
|
7087
7087
|
};
|
|
7088
|
-
}, [apiBaseUrl
|
|
7088
|
+
}, [apiBaseUrl]);
|
|
7089
7089
|
async function getEip712(address) {
|
|
7090
7090
|
const { data } = await getEIP712Message(apiBaseUrl, address, clientId);
|
|
7091
7091
|
return data;
|
|
@@ -7104,7 +7104,7 @@ function useAuth() {
|
|
|
7104
7104
|
window.localStorage.setItem(refreshTokenKey, data.refreshToken);
|
|
7105
7105
|
setAccessToken(data.accessToken);
|
|
7106
7106
|
setRefreshToken(data.refreshToken);
|
|
7107
|
-
setAddress(address);
|
|
7107
|
+
// setAddress(address);
|
|
7108
7108
|
setIsAuthenticated(true);
|
|
7109
7109
|
}
|
|
7110
7110
|
catch (e) {
|
|
@@ -7125,7 +7125,7 @@ function useAuth() {
|
|
|
7125
7125
|
window.localStorage.setItem(refreshTokenKey, data.refreshToken);
|
|
7126
7126
|
setAccessToken(data.accessToken);
|
|
7127
7127
|
setRefreshToken(data.refreshToken);
|
|
7128
|
-
setAddress(address);
|
|
7128
|
+
// setAddress(address);
|
|
7129
7129
|
setIsAuthenticated(true);
|
|
7130
7130
|
}
|
|
7131
7131
|
catch (e) {
|
|
@@ -7167,7 +7167,7 @@ function useAuth() {
|
|
|
7167
7167
|
}
|
|
7168
7168
|
setAccessToken(null);
|
|
7169
7169
|
setRefreshToken(null);
|
|
7170
|
-
setAddress(null);
|
|
7170
|
+
// setAddress(null);
|
|
7171
7171
|
setIsAuthenticated(false);
|
|
7172
7172
|
}
|
|
7173
7173
|
return {
|