@pear-protocol/hyperliquid-sdk 0.0.73-beta.4 → 0.0.73-beta.5

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 CHANGED
@@ -64,18 +64,12 @@ const useUserData = create((set) => ({
64
64
  twapDetails: null,
65
65
  notifications: null,
66
66
  userExtraAgents: null,
67
+ spotState: null,
67
68
  setAccessToken: (token) => set({ accessToken: token }),
68
69
  setRefreshToken: (token) => set({ refreshToken: token }),
69
70
  setIsAuthenticated: (value) => set({ isAuthenticated: value }),
70
71
  setIsReady: (value) => set({ isReady: value }),
71
72
  setAddress: (address) => {
72
- // if (typeof window !== "undefined") {
73
- // if (address) {
74
- // window.localStorage.setItem("address", address);
75
- // } else {
76
- // window.localStorage.removeItem("address");
77
- // }
78
- // }
79
73
  set({ address });
80
74
  },
81
75
  setTradeHistories: (value) => set({ tradeHistories: value }),
@@ -84,6 +78,7 @@ const useUserData = create((set) => ({
84
78
  setAccountSummary: (value) => set({ accountSummary: value }),
85
79
  setTwapDetails: (value) => set({ twapDetails: value }),
86
80
  setNotifications: (value) => set({ notifications: value }),
81
+ setSpotState: (value) => set({ spotState: value }),
87
82
  clean: () => set({
88
83
  // accessToken: null,
89
84
  // refreshToken: null,
@@ -96,6 +91,7 @@ const useUserData = create((set) => ({
96
91
  accountSummary: null,
97
92
  twapDetails: null,
98
93
  notifications: null,
94
+ spotState: null,
99
95
  }),
100
96
  setUserExtraAgents: (value) => set({ userExtraAgents: value }),
101
97
  }));
@@ -1,4 +1,4 @@
1
- import { PlatformAccountSummaryResponseDto, OpenLimitOrderDto, RawPositionDto, TradeHistoryDataDto, TwapMonitoringDto, NotificationDto, ExtraAgent } from "../types";
1
+ import { PlatformAccountSummaryResponseDto, OpenLimitOrderDto, RawPositionDto, TradeHistoryDataDto, TwapMonitoringDto, NotificationDto, ExtraAgent, SpotState } from "../types";
2
2
  interface UserDataState {
3
3
  accessToken: string | null;
4
4
  refreshToken: string | null;
@@ -12,6 +12,7 @@ interface UserDataState {
12
12
  twapDetails: TwapMonitoringDto[] | null;
13
13
  notifications: NotificationDto[] | null;
14
14
  userExtraAgents: ExtraAgent[] | null;
15
+ spotState: SpotState | null;
15
16
  setAccessToken: (token: string | null) => void;
16
17
  setRefreshToken: (token: string | null) => void;
17
18
  setIsAuthenticated: (value: boolean) => void;
@@ -24,6 +25,7 @@ interface UserDataState {
24
25
  setUserExtraAgents: (value: ExtraAgent[] | null) => void;
25
26
  setTwapDetails: (value: TwapMonitoringDto[] | null) => void;
26
27
  setNotifications: (value: NotificationDto[] | null) => void;
28
+ setSpotState: (value: SpotState | null) => void;
27
29
  clean: () => void;
28
30
  }
29
31
  export declare const useUserData: import("zustand").UseBoundStore<import("zustand").StoreApi<UserDataState>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.0.73-beta.4",
3
+ "version": "0.0.73-beta.5",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",