|
8 | 8 | import * as anchor from '@coral-xyz/anchor'; |
9 | 9 | import { create } from 'zustand'; |
10 | 10 | import { createJSONStorage, persist } from 'zustand/middleware'; |
11 | | -import { WalletState, WalletInfo, WalletConfig, ConnectOptions, SignOptions } from '../types'; |
| 11 | +import { WalletStateClient, WalletInfo, WalletConfig, ConnectOptions, SignOptions } from '../types'; |
12 | 12 | import { DEFAULT_COMMITMENT, DEFAULTS, STORAGE_KEYS } from '../config'; |
13 | 13 | import { logger } from '../core/logger'; |
14 | 14 | import { connectAction, disconnectAction, signMessageAction } from '../actions'; |
15 | | -import { SmartWalletActionArgs } from '../contract-integration'; |
| 15 | +import { SmartWalletActionArgs } from '../contract'; |
16 | 16 |
|
17 | 17 | // AsyncStorage dynamic import remains unchanged |
18 | 18 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
@@ -68,7 +68,7 @@ const storage = { |
68 | 68 | }, |
69 | 69 | }; |
70 | 70 |
|
71 | | -export const useWalletStore = create<WalletState>()( |
| 71 | +export const useWalletStore = create<WalletStateClient>()( |
72 | 72 | persist( |
73 | 73 | (set, get) => ({ |
74 | 74 | wallet: null, |
@@ -141,7 +141,7 @@ export const useWalletStore = create<WalletState>()( |
141 | 141 | { |
142 | 142 | name: STORAGE_KEYS.WALLET, |
143 | 143 | storage: createJSONStorage(() => storage), |
144 | | - partialize: (state: WalletState) => ({ |
| 144 | + partialize: (state: WalletStateClient) => ({ |
145 | 145 | wallet: state.wallet, |
146 | 146 | config: state.config, |
147 | 147 | }), |
|
0 commit comments