@pear-protocol/hyperliquid-sdk 0.1.6 → 0.1.7

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.
@@ -2,6 +2,7 @@ import type { GetEIP712MessageResponse } from "../types";
2
2
  export declare function useAuth(): {
3
3
  readonly isReady: boolean;
4
4
  readonly isAuthenticated: boolean;
5
+ readonly address: string | null;
5
6
  readonly accessToken: string | null;
6
7
  readonly refreshToken: string | null;
7
8
  readonly getEip712: (address: string) => Promise<GetEIP712MessageResponse>;
package/dist/index.d.ts CHANGED
@@ -1419,6 +1419,7 @@ declare function usePortfolio(): UsePortfolioResult;
1419
1419
  declare function useAuth(): {
1420
1420
  readonly isReady: boolean;
1421
1421
  readonly isAuthenticated: boolean;
1422
+ readonly address: string | null;
1422
1423
  readonly accessToken: string | null;
1423
1424
  readonly refreshToken: string | null;
1424
1425
  readonly getEip712: (address: string) => Promise<GetEIP712MessageResponse>;
package/dist/index.js CHANGED
@@ -7530,6 +7530,7 @@ function useAuth() {
7530
7530
  const setRefreshToken = useUserData((s) => s.setRefreshToken);
7531
7531
  const isAuthenticated = useUserData((s) => s.isAuthenticated);
7532
7532
  const setIsAuthenticated = useUserData((s) => s.setIsAuthenticated);
7533
+ const address = useUserData((s) => s.address);
7533
7534
  const setAddress = useUserData((s) => s.setAddress);
7534
7535
  useEffect(() => {
7535
7536
  if (typeof window == "undefined") {
@@ -7642,6 +7643,7 @@ function useAuth() {
7642
7643
  return {
7643
7644
  isReady,
7644
7645
  isAuthenticated,
7646
+ address,
7645
7647
  accessToken,
7646
7648
  refreshToken: refreshToken$1,
7647
7649
  getEip712,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",