@pear-protocol/hyperliquid-sdk 0.0.60-beta.6 → 0.0.60-beta.8
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 +3 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7045,6 +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("sdk", { sdkAddress: address });
|
|
7048
7049
|
useEffect(() => {
|
|
7049
7050
|
if (typeof window == "undefined") {
|
|
7050
7051
|
return;
|
|
@@ -7084,7 +7085,7 @@ function useAuth() {
|
|
|
7084
7085
|
return () => {
|
|
7085
7086
|
cleanup();
|
|
7086
7087
|
};
|
|
7087
|
-
}, [apiBaseUrl
|
|
7088
|
+
}, [apiBaseUrl]);
|
|
7088
7089
|
async function getEip712(address) {
|
|
7089
7090
|
const { data } = await getEIP712Message(apiBaseUrl, address, clientId);
|
|
7090
7091
|
return data;
|
|
@@ -7190,7 +7191,7 @@ const PearHyperliquidContext = createContext(undefined);
|
|
|
7190
7191
|
*/
|
|
7191
7192
|
const PearHyperliquidProvider = ({ children, apiBaseUrl = "https://hl-v2.pearprotocol.io", clientId = "PEARPROTOCOLUI", wsUrl = "wss://hl-v2.pearprotocol.io/ws", }) => {
|
|
7192
7193
|
const address = useUserData((s) => s.address);
|
|
7193
|
-
|
|
7194
|
+
useUserData((s) => s.setAddress);
|
|
7194
7195
|
const perpsMetaAssets = useHyperliquidData((state) => state.perpMetaAssets);
|
|
7195
7196
|
const setPerpMetaAssets = useHyperliquidData((state) => state.setPerpMetaAssets);
|
|
7196
7197
|
const setHip3DisplayToFull = useHyperliquidData((state) => state.setHip3DisplayToFull);
|
|
@@ -7249,14 +7250,9 @@ const PearHyperliquidProvider = ({ children, apiBaseUrl = "https://hl-v2.pearpro
|
|
|
7249
7250
|
// HyperLiquid native WebSocket state
|
|
7250
7251
|
nativeIsConnected,
|
|
7251
7252
|
nativeLastError,
|
|
7252
|
-
// Address utilities
|
|
7253
|
-
address,
|
|
7254
|
-
setAddress,
|
|
7255
7253
|
}), [
|
|
7256
7254
|
apiBaseUrl,
|
|
7257
7255
|
wsUrl,
|
|
7258
|
-
address,
|
|
7259
|
-
setAddress,
|
|
7260
7256
|
isConnected,
|
|
7261
7257
|
lastError,
|
|
7262
7258
|
nativeIsConnected,
|