@naculus/connect-appkit-vue 0.2.4 → 0.2.6
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/README.md +38 -4
- package/dist/index.cjs +2748 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +955 -4
- package/dist/index.d.ts +955 -4
- package/dist/index.js +2773 -42
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StencilVueComponent } from '@stencil/vue-output-target/runtime';
|
|
2
2
|
import { JSX } from '@naculus/connect-appkit-wc';
|
|
3
|
-
import { ComputedRef, MaybeRefOrGetter, shallowRef, ref
|
|
4
|
-
import { WalletChain, ChainInfo, ChainCapabilities, AtomicSupport, SolanaRoles, SolanaRolesAbsence, SolanaIdentity, SolanaSigner, SolanaPayer, SolanaRolesSource } from '@naculus/connect-appkit-core';
|
|
3
|
+
import { ComputedRef, MaybeRefOrGetter, MaybeRef, ShallowRef, shallowRef, ref } from 'vue';
|
|
4
|
+
import { NotificationSettingsStorage, WalletChain, SimulationCallClient, SimulationTransaction, SiwxResultLike, PolicySignatureVerifier, PolicyExecutionPreview, PolicyExecutionAdapter, DelegationPolicyPreview, PolicyExecutionSubmission, SmartAccountType, RouteQuote, RouteQuoteInput, GetRouteQuotes, CostComparison, CompareCostsInput, CompareCosts, ExecutableQuote, ExecuteRouteOptions, ExecuteRouteResult, ExecuteRouteError, ExecuteRoute, DestinationValidation, ChainInfo, ChainCapabilities, AtomicSupport, SolanaRoles, SolanaRolesAbsence, SolanaIdentity, SolanaSigner, SolanaPayer, SolanaRolesSource } from '@naculus/connect-appkit-core';
|
|
5
5
|
export { AtomicSupport, ChainCapabilities, SolanaIdentity, SolanaPayer, SolanaRoles, SolanaRolesAbsence, SolanaRolesSource, SolanaSigner, SolanaWalletFeatures } from '@naculus/connect-appkit-core';
|
|
6
|
-
import { PassphraseGate } from '@naculus/connect-core';
|
|
6
|
+
import { InAppChannel, NotificationItem, NotificationSettings, SimulationResult, ERC20_MIN_ABI, TokenConfig, ActiveSessionBundle, ChainSession, SessionManager, WalletError, SolanaConfirmationStatus, BatchCall, AtomicityRequirement, ExecutionPlan, CallsStatus, ExecutionStrategy, SessionKeyManagerConfig, SessionKeyManager, SessionKeyInfo, SessionKeyScope, SessionKeyTransaction, Address, SmartAccountManager, SmartAccountInfo, SmartAccountConfig, Hex, Call, SendUserOpOptions, UserOperationResponse, UserOperationReceipt, ScopeCheckResult, TokenListSource, TokenListManager, TokenListEntry, TokenSearchResult, AddressResult, NameResolverConfig, NameResult, PassphraseGate } from '@naculus/connect-core';
|
|
7
7
|
|
|
8
8
|
declare const AppkitAccordion: StencilVueComponent<JSX.AppkitAccordion>;
|
|
9
9
|
declare const AppkitAccountButton: StencilVueComponent<JSX.AppkitAccountButton>;
|
|
@@ -56,6 +56,882 @@ interface UseAccountsReturn {
|
|
|
56
56
|
*/
|
|
57
57
|
declare function useAccounts(accounts: MaybeRefOrGetter<string[] | null | undefined>): UseAccountsReturn;
|
|
58
58
|
|
|
59
|
+
interface UseNotificationOptions {
|
|
60
|
+
channel?: MaybeRef<InAppChannel>;
|
|
61
|
+
storage?: MaybeRef<NotificationSettingsStorage>;
|
|
62
|
+
}
|
|
63
|
+
interface UseNotificationReturn {
|
|
64
|
+
notifications: ShallowRef<NotificationItem[]>;
|
|
65
|
+
unreadCount: ComputedRef<number>;
|
|
66
|
+
settings: ShallowRef<NotificationSettings>;
|
|
67
|
+
addNotification: (item: Omit<NotificationItem, "id" | "timestamp">) => void;
|
|
68
|
+
clear: () => void;
|
|
69
|
+
clearOne: (id: string) => void;
|
|
70
|
+
markAsRead: (id: string) => void;
|
|
71
|
+
markAllAsRead: () => void;
|
|
72
|
+
updateSettings: (update: Partial<NotificationSettings>) => void;
|
|
73
|
+
setChannels: (channels: string[]) => void;
|
|
74
|
+
muteChain: (chainId: string) => void;
|
|
75
|
+
unmuteChain: (chainId: string) => void;
|
|
76
|
+
}
|
|
77
|
+
/** Vue state shell over the shared in-app notification actions. */
|
|
78
|
+
declare function useNotification(options?: UseNotificationOptions): UseNotificationReturn;
|
|
79
|
+
|
|
80
|
+
interface UseSimulateTransferOptions {
|
|
81
|
+
rpcUrl?: MaybeRef<string | undefined>;
|
|
82
|
+
chainId?: MaybeRef<number | undefined>;
|
|
83
|
+
}
|
|
84
|
+
interface UseSimulateTransferReturn {
|
|
85
|
+
result: ShallowRef<SimulationResult | null>;
|
|
86
|
+
loading: ShallowRef<boolean>;
|
|
87
|
+
error: ShallowRef<Error | null>;
|
|
88
|
+
simulate: (tokenAddress: `0x${string}`, from: `0x${string}`, to: `0x${string}`, amount: string, options?: {
|
|
89
|
+
chainId?: number;
|
|
90
|
+
rpcUrl?: string;
|
|
91
|
+
decimals?: number;
|
|
92
|
+
}) => Promise<SimulationResult>;
|
|
93
|
+
reset: () => void;
|
|
94
|
+
}
|
|
95
|
+
/** Vue state shell around the canonical connect-core ERC-20 simulator. */
|
|
96
|
+
declare function useSimulateTransfer(options?: UseSimulateTransferOptions): UseSimulateTransferReturn;
|
|
97
|
+
|
|
98
|
+
interface UseTransactionSimulationOptions {
|
|
99
|
+
chainId?: MaybeRef<number | undefined>;
|
|
100
|
+
currentChain?: MaybeRef<WalletChain | null | undefined>;
|
|
101
|
+
publicClient?: MaybeRef<SimulationCallClient | null | undefined>;
|
|
102
|
+
evmAccount?: MaybeRef<string | null | undefined>;
|
|
103
|
+
}
|
|
104
|
+
interface UseTransactionSimulationReturn {
|
|
105
|
+
result: ShallowRef<SimulationResult | undefined>;
|
|
106
|
+
isSimulating: ShallowRef<boolean>;
|
|
107
|
+
error: ShallowRef<Error | null>;
|
|
108
|
+
simulate: () => Promise<SimulationResult>;
|
|
109
|
+
reset: () => void;
|
|
110
|
+
}
|
|
111
|
+
/** Basic eth_call preview; caller supplies chain/account/client context. */
|
|
112
|
+
declare function useTransactionSimulation(tx: MaybeRefOrGetter<SimulationTransaction | undefined>, options?: UseTransactionSimulationOptions): UseTransactionSimulationReturn;
|
|
113
|
+
|
|
114
|
+
interface ERC20Reader {
|
|
115
|
+
readContract(args: {
|
|
116
|
+
address: `0x${string}`;
|
|
117
|
+
abi: typeof ERC20_MIN_ABI;
|
|
118
|
+
functionName: "decimals" | "allowance";
|
|
119
|
+
args?: readonly [`0x${string}`, `0x${string}`];
|
|
120
|
+
}): Promise<unknown>;
|
|
121
|
+
}
|
|
122
|
+
interface ERC20Transaction {
|
|
123
|
+
to: `0x${string}`;
|
|
124
|
+
data: `0x${string}`;
|
|
125
|
+
value: "0";
|
|
126
|
+
}
|
|
127
|
+
type ERC20Sender = (transaction: ERC20Transaction) => Promise<`0x${string}`>;
|
|
128
|
+
|
|
129
|
+
interface UseERC20TransferOptions {
|
|
130
|
+
token: MaybeRefOrGetter<TokenConfig>;
|
|
131
|
+
account: MaybeRefOrGetter<string | null | undefined>;
|
|
132
|
+
chainId: MaybeRefOrGetter<number | undefined>;
|
|
133
|
+
connected: MaybeRefOrGetter<boolean>;
|
|
134
|
+
publicClient: MaybeRefOrGetter<ERC20Reader | null | undefined>;
|
|
135
|
+
sendTransaction: MaybeRef<ERC20Sender>;
|
|
136
|
+
}
|
|
137
|
+
interface UseERC20TransferReturn {
|
|
138
|
+
sendTransfer: (to: `0x${string}`, amount: string) => Promise<`0x${string}`>;
|
|
139
|
+
isSending: ShallowRef<boolean>;
|
|
140
|
+
error: ShallowRef<Error | null>;
|
|
141
|
+
}
|
|
142
|
+
/** Vue state shell for an ERC-20 transfer through a caller-owned send action. */
|
|
143
|
+
declare function useERC20Transfer(options: UseERC20TransferOptions): UseERC20TransferReturn;
|
|
144
|
+
|
|
145
|
+
interface UseERC20ApproveOptions {
|
|
146
|
+
token: MaybeRefOrGetter<TokenConfig>;
|
|
147
|
+
spender: MaybeRefOrGetter<`0x${string}`>;
|
|
148
|
+
account: MaybeRefOrGetter<string | null | undefined>;
|
|
149
|
+
chainId: MaybeRefOrGetter<number | undefined>;
|
|
150
|
+
connected: MaybeRefOrGetter<boolean>;
|
|
151
|
+
publicClient: MaybeRefOrGetter<ERC20Reader | null | undefined>;
|
|
152
|
+
sendTransaction: MaybeRef<ERC20Sender>;
|
|
153
|
+
}
|
|
154
|
+
interface UseERC20ApproveReturn {
|
|
155
|
+
approve: (amount: string) => Promise<`0x${string}`>;
|
|
156
|
+
approveMax: () => Promise<`0x${string}`>;
|
|
157
|
+
allowanceRaw: ShallowRef<bigint | null>;
|
|
158
|
+
allowance: ComputedRef<string | null>;
|
|
159
|
+
hasAllowance: (required: string) => Promise<boolean>;
|
|
160
|
+
isApproving: ShallowRef<boolean>;
|
|
161
|
+
isFetchingAllowance: ShallowRef<boolean>;
|
|
162
|
+
error: ShallowRef<Error | null>;
|
|
163
|
+
refetchAllowance: () => Promise<bigint | null>;
|
|
164
|
+
}
|
|
165
|
+
/** Vue state shell for ERC-20 approvals through caller-owned read/send actions. */
|
|
166
|
+
declare function useERC20Approve(options: UseERC20ApproveOptions): UseERC20ApproveReturn;
|
|
167
|
+
|
|
168
|
+
interface UseERC20TransferSimulationOptions {
|
|
169
|
+
token: MaybeRefOrGetter<TokenConfig>;
|
|
170
|
+
to: MaybeRefOrGetter<`0x${string}`>;
|
|
171
|
+
amount: MaybeRefOrGetter<string>;
|
|
172
|
+
connected: MaybeRefOrGetter<boolean>;
|
|
173
|
+
evmAccount: MaybeRef<string | null | undefined>;
|
|
174
|
+
currentChain?: MaybeRef<WalletChain | null | undefined>;
|
|
175
|
+
publicClient?: MaybeRef<SimulationCallClient | null | undefined>;
|
|
176
|
+
}
|
|
177
|
+
interface UseERC20TransferSimulationReturn extends Omit<UseTransactionSimulationReturn, "result" | "isSimulating" | "error" | "simulate"> {
|
|
178
|
+
result: ComputedRef<SimulationResult | undefined>;
|
|
179
|
+
isSimulating: ComputedRef<boolean>;
|
|
180
|
+
error: ComputedRef<Error | null>;
|
|
181
|
+
reSimulate: () => Promise<SimulationResult>;
|
|
182
|
+
}
|
|
183
|
+
/** Vue shell that previews exactly the calldata accepted by the transfer hook. */
|
|
184
|
+
declare function useERC20TransferSimulation(options: UseERC20TransferSimulationOptions): UseERC20TransferSimulationReturn;
|
|
185
|
+
|
|
186
|
+
interface UseAccountReturn {
|
|
187
|
+
accounts: ComputedRef<AccountEntry[] | null>;
|
|
188
|
+
evmAccount: ComputedRef<string | null>;
|
|
189
|
+
primaryAccount: ComputedRef<string | null>;
|
|
190
|
+
isConnected: ComputedRef<boolean>;
|
|
191
|
+
count: ComputedRef<number>;
|
|
192
|
+
}
|
|
193
|
+
/** React useAccount's connected-state view of the shared account parser. */
|
|
194
|
+
declare function useAccount(accounts: MaybeRefOrGetter<string[] | null | undefined>, connected: MaybeRefOrGetter<boolean>): UseAccountReturn;
|
|
195
|
+
|
|
196
|
+
interface UseSessionReturn {
|
|
197
|
+
session: ComputedRef<ActiveSessionBundle["walletSession"] | null>;
|
|
198
|
+
chainSessions: ComputedRef<ChainSession[]>;
|
|
199
|
+
activeChainId: ComputedRef<string | null>;
|
|
200
|
+
isConnected: ComputedRef<boolean>;
|
|
201
|
+
connectorId: ComputedRef<string | null>;
|
|
202
|
+
}
|
|
203
|
+
/** Reactively expose a caller-owned SessionManager's active bundle. */
|
|
204
|
+
declare function useSession(manager: MaybeRefOrGetter<SessionManager | null | undefined>): UseSessionReturn;
|
|
205
|
+
|
|
206
|
+
interface UseConnectReturn {
|
|
207
|
+
connect: () => Promise<void>;
|
|
208
|
+
isConnecting: ComputedRef<boolean>;
|
|
209
|
+
error: ShallowRef<Error | null>;
|
|
210
|
+
}
|
|
211
|
+
/** Connection state around a caller-owned action; never connects on mount. */
|
|
212
|
+
declare function useConnect(action: MaybeRef<() => Promise<void>>, status: MaybeRefOrGetter<string>): UseConnectReturn;
|
|
213
|
+
|
|
214
|
+
interface UseDisconnectReturn {
|
|
215
|
+
disconnect: () => Promise<void>;
|
|
216
|
+
isDisconnecting: ShallowRef<boolean>;
|
|
217
|
+
error: ShallowRef<Error | null>;
|
|
218
|
+
cleanup: () => void;
|
|
219
|
+
}
|
|
220
|
+
/** Disconnect through a caller-owned action, preserving React's no-op when already disconnected. */
|
|
221
|
+
declare function useDisconnect(action: MaybeRef<() => Promise<void>>, status: MaybeRefOrGetter<string>): UseDisconnectReturn;
|
|
222
|
+
|
|
223
|
+
interface UseSwitchChainReturn {
|
|
224
|
+
switchChain: (chainId: string) => Promise<void>;
|
|
225
|
+
isSwitching: ShallowRef<boolean>;
|
|
226
|
+
currentChainId: ComputedRef<string | null>;
|
|
227
|
+
error: ShallowRef<WalletError | null>;
|
|
228
|
+
clearError: () => void;
|
|
229
|
+
}
|
|
230
|
+
/** Vue counterpart of React useSwitchChain around a caller-owned action. */
|
|
231
|
+
declare function useSwitchChain(action: MaybeRef<(chainId: string) => Promise<void>>, chainId: MaybeRefOrGetter<string | null | undefined>): UseSwitchChainReturn;
|
|
232
|
+
|
|
233
|
+
type SignMessageAction = (message: string) => Promise<string>;
|
|
234
|
+
interface UseSignMessageReturn {
|
|
235
|
+
signMessage: SignMessageAction;
|
|
236
|
+
isSigning: ShallowRef<boolean>;
|
|
237
|
+
error: ShallowRef<Error | null>;
|
|
238
|
+
reset: () => void;
|
|
239
|
+
}
|
|
240
|
+
/** Reactive state around a caller-owned message-signing action. */
|
|
241
|
+
declare function useSignMessage(action: MaybeRef<SignMessageAction>): UseSignMessageReturn;
|
|
242
|
+
|
|
243
|
+
interface EvmTransaction {
|
|
244
|
+
to: string;
|
|
245
|
+
from?: string;
|
|
246
|
+
value?: string;
|
|
247
|
+
data?: string;
|
|
248
|
+
gas?: string;
|
|
249
|
+
gasPrice?: string;
|
|
250
|
+
nonce?: string;
|
|
251
|
+
chainId?: number;
|
|
252
|
+
}
|
|
253
|
+
type SendTransactionAction = (transaction: EvmTransaction) => Promise<string>;
|
|
254
|
+
type SendTransactionStatus = "idle" | "awaiting_approval" | "submitted" | "failed";
|
|
255
|
+
interface UseSendTransactionReturn {
|
|
256
|
+
sendTransaction: SendTransactionAction;
|
|
257
|
+
status: ShallowRef<SendTransactionStatus>;
|
|
258
|
+
error: ShallowRef<Error | null>;
|
|
259
|
+
reset: () => void;
|
|
260
|
+
isSending: ComputedRef<boolean>;
|
|
261
|
+
}
|
|
262
|
+
/** Reactive state around a caller-owned EVM transaction action. */
|
|
263
|
+
declare function useSendTransaction(action: MaybeRef<SendTransactionAction>): UseSendTransactionReturn;
|
|
264
|
+
|
|
265
|
+
type SolanaTransaction = Uint8Array | string;
|
|
266
|
+
type SignSolanaTransactionAction = (transaction: SolanaTransaction) => Promise<Uint8Array>;
|
|
267
|
+
type SendSolanaTransactionAction = (transaction: SolanaTransaction) => Promise<string>;
|
|
268
|
+
type GetSolanaTransactionStatusAction = (signature: string) => Promise<{
|
|
269
|
+
status: SolanaConfirmationStatus;
|
|
270
|
+
error: string | null;
|
|
271
|
+
}>;
|
|
272
|
+
interface UseSolanaTransactionOptions {
|
|
273
|
+
signTransaction: MaybeRef<SignSolanaTransactionAction>;
|
|
274
|
+
sendTransaction: MaybeRef<SendSolanaTransactionAction>;
|
|
275
|
+
getStatus: MaybeRef<GetSolanaTransactionStatusAction>;
|
|
276
|
+
}
|
|
277
|
+
interface UseSolanaTransactionReturn {
|
|
278
|
+
signTransaction: SignSolanaTransactionAction;
|
|
279
|
+
sendTransaction: SendSolanaTransactionAction;
|
|
280
|
+
getStatus: GetSolanaTransactionStatusAction;
|
|
281
|
+
isSigning: ShallowRef<boolean>;
|
|
282
|
+
isSending: ShallowRef<boolean>;
|
|
283
|
+
error: ShallowRef<Error | null>;
|
|
284
|
+
reset: () => void;
|
|
285
|
+
}
|
|
286
|
+
/** Reactive state around caller-owned Solana sign, send, and status actions. */
|
|
287
|
+
declare function useSolanaTransaction(options: UseSolanaTransactionOptions): UseSolanaTransactionReturn;
|
|
288
|
+
|
|
289
|
+
interface SiwxSignInOptions {
|
|
290
|
+
domain?: string;
|
|
291
|
+
statement?: string;
|
|
292
|
+
uri?: string;
|
|
293
|
+
chainId?: string;
|
|
294
|
+
expirySeconds?: number;
|
|
295
|
+
resources?: string[];
|
|
296
|
+
requestId?: string;
|
|
297
|
+
}
|
|
298
|
+
type SiwxResult = SiwxResultLike;
|
|
299
|
+
type SiwxSignInAction = (options?: SiwxSignInOptions) => Promise<SiwxResult>;
|
|
300
|
+
interface SiwxSessionLike {
|
|
301
|
+
id: string;
|
|
302
|
+
chainId: string;
|
|
303
|
+
address: string;
|
|
304
|
+
domain: string;
|
|
305
|
+
message: SiwxResult["message"];
|
|
306
|
+
signature: string;
|
|
307
|
+
issuedAt: string;
|
|
308
|
+
expiresAt: string | null;
|
|
309
|
+
refreshedAt: string | null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface UseSignInWithXReturn {
|
|
313
|
+
signIn: SiwxSignInAction;
|
|
314
|
+
isSigningIn: ShallowRef<boolean>;
|
|
315
|
+
result: ShallowRef<SiwxResult | null>;
|
|
316
|
+
error: ShallowRef<Error | null>;
|
|
317
|
+
clearError: () => void;
|
|
318
|
+
reset: () => void;
|
|
319
|
+
}
|
|
320
|
+
/** Reactive state around a caller-owned SIWX sign-in action. */
|
|
321
|
+
declare function useSignInWithX(action: MaybeRef<SiwxSignInAction>): UseSignInWithXReturn;
|
|
322
|
+
|
|
323
|
+
type UseSignInWithEthereumOptions = SiwxSignInOptions;
|
|
324
|
+
interface UseSignInWithEthereumReturn extends UseSignInWithXReturn {
|
|
325
|
+
}
|
|
326
|
+
/** Ethereum-named view of the caller-owned SIWX sign-in shell. */
|
|
327
|
+
declare function useSignInWithEthereum(action: MaybeRef<SiwxSignInAction>): UseSignInWithEthereumReturn;
|
|
328
|
+
|
|
329
|
+
interface PaymasterService {
|
|
330
|
+
url: string;
|
|
331
|
+
context?: Record<string, unknown>;
|
|
332
|
+
}
|
|
333
|
+
interface SendCallsOptions {
|
|
334
|
+
chainId?: string;
|
|
335
|
+
strategy?: ExecutionStrategy;
|
|
336
|
+
paymasterService?: PaymasterService;
|
|
337
|
+
}
|
|
338
|
+
type SendCallsAction = (calls: BatchCall[], options?: SendCallsOptions) => Promise<string>;
|
|
339
|
+
type GetCallsStatusAction = (hash?: string) => Promise<CallsStatus>;
|
|
340
|
+
type ShowCallsStatusAction = (hash?: string) => Promise<boolean>;
|
|
341
|
+
type ExecutionRoute = "wallet-batch" | "user-operation" | "sequential";
|
|
342
|
+
interface ExecutionPreview extends ExecutionPlan {
|
|
343
|
+
route: ExecutionRoute | null;
|
|
344
|
+
}
|
|
345
|
+
type PreviewExecutionAction = (callCount: number, atomicity?: AtomicityRequirement) => ExecutionPreview;
|
|
346
|
+
type ExecuteCallsAction = (calls: BatchCall[], atomicity?: AtomicityRequirement) => Promise<string>;
|
|
347
|
+
|
|
348
|
+
interface UseExecuteCallsOptions {
|
|
349
|
+
preview: MaybeRef<PreviewExecutionAction>;
|
|
350
|
+
execute: MaybeRef<ExecuteCallsAction>;
|
|
351
|
+
lastRoute: MaybeRefOrGetter<ExecutionRoute | null>;
|
|
352
|
+
reset: MaybeRef<() => void>;
|
|
353
|
+
}
|
|
354
|
+
interface UseExecuteCallsReturn {
|
|
355
|
+
preview: PreviewExecutionAction;
|
|
356
|
+
execute: ExecuteCallsAction;
|
|
357
|
+
isExecuting: ShallowRef<boolean>;
|
|
358
|
+
error: ShallowRef<Error | null>;
|
|
359
|
+
lastRoute: ComputedRef<ExecutionRoute | null>;
|
|
360
|
+
reset: () => void;
|
|
361
|
+
}
|
|
362
|
+
/** Reactive state around a caller-owned EIP-5792 execution planner/action. */
|
|
363
|
+
declare function useExecuteCalls(options: UseExecuteCallsOptions): UseExecuteCallsReturn;
|
|
364
|
+
|
|
365
|
+
interface UseDelegationPolicyOptions {
|
|
366
|
+
/** Connected EOA (plain or CAIP-10). */
|
|
367
|
+
account: MaybeRefOrGetter<string | null | undefined>;
|
|
368
|
+
/** Whether a wallet session is connected (gates the policy list). */
|
|
369
|
+
connected: MaybeRefOrGetter<boolean>;
|
|
370
|
+
/** Main-wallet EIP-191 signer for the policy message. */
|
|
371
|
+
signMessage: MaybeRef<(message: string) => Promise<string>>;
|
|
372
|
+
/** Recovers an EIP-191 signer and compares; e.g. viem's recoverMessageAddress. */
|
|
373
|
+
verifySignature: MaybeRef<PolicySignatureVerifier>;
|
|
374
|
+
/** Execution planner (from useExecuteCalls-style preview) for readiness. */
|
|
375
|
+
previewExecution: MaybeRef<(callCount: number, atomicity: AtomicityRequirement) => PolicyExecutionPreview>;
|
|
376
|
+
/** Current on-chain EIP-7702 delegation of the account (from useDelegation). */
|
|
377
|
+
delegation: MaybeRefOrGetter<{
|
|
378
|
+
delegated: boolean | null;
|
|
379
|
+
delegate: `0x${string}` | null;
|
|
380
|
+
}>;
|
|
381
|
+
managerConfig?: SessionKeyManagerConfig;
|
|
382
|
+
/** Reuse a caller-owned manager instead of the shared one. */
|
|
383
|
+
manager?: SessionKeyManager;
|
|
384
|
+
origin?: string;
|
|
385
|
+
sponsorship?: AtomicityRequirement;
|
|
386
|
+
adapter?: PolicyExecutionAdapter;
|
|
387
|
+
}
|
|
388
|
+
interface UseDelegationPolicyReturn {
|
|
389
|
+
policies: ShallowRef<SessionKeyInfo[]>;
|
|
390
|
+
/** Active policies whose stored signature currently verifies. */
|
|
391
|
+
activePolicies: ComputedRef<SessionKeyInfo[]>;
|
|
392
|
+
storageAvailable: boolean;
|
|
393
|
+
loading: ComputedRef<boolean>;
|
|
394
|
+
isBusy: ShallowRef<boolean>;
|
|
395
|
+
error: ComputedRef<Error | null>;
|
|
396
|
+
createPolicy: (scope: Partial<SessionKeyScope>) => Promise<SessionKeyInfo>;
|
|
397
|
+
revokePolicy: (policyId: string) => Promise<void>;
|
|
398
|
+
previewPolicyExecution: (policyId: string, tx: SessionKeyTransaction, callCount?: number, atomicity?: AtomicityRequirement) => Promise<DelegationPolicyPreview>;
|
|
399
|
+
signPolicyDigest: (policyId: string, digest: `0x${string}`, tx: SessionKeyTransaction) => Promise<`0x${string}`>;
|
|
400
|
+
executePolicy: (policyId: string, tx: SessionKeyTransaction) => Promise<PolicyExecutionSubmission>;
|
|
401
|
+
refresh: () => Promise<void>;
|
|
402
|
+
clearError: () => void;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Signed off-chain delegation policies in Vue. The whole flow is
|
|
406
|
+
* appkit-core's createDelegationPolicyFlow, shared with React; this file
|
|
407
|
+
* supplies reactivity and the caller-owned signer, verifier, planner and
|
|
408
|
+
* delegation state that React gets from its provider.
|
|
409
|
+
*/
|
|
410
|
+
declare function useDelegationPolicy(options: UseDelegationPolicyOptions): UseDelegationPolicyReturn;
|
|
411
|
+
|
|
412
|
+
/** What deployWallet needs from the caller: something that sends an EVM transaction. */
|
|
413
|
+
type DeployTransactionSender = (transaction: {
|
|
414
|
+
to: Address;
|
|
415
|
+
data: `0x${string}`;
|
|
416
|
+
value: string;
|
|
417
|
+
chainId: string;
|
|
418
|
+
}) => Promise<Address>;
|
|
419
|
+
interface UseSmartAccountOptions {
|
|
420
|
+
/** Connected EOA (plain or CAIP-10); becomes the smart-account owner. */
|
|
421
|
+
account: MaybeRefOrGetter<string | null | undefined>;
|
|
422
|
+
/** Connected chain (CAIP-2), if any. */
|
|
423
|
+
connectedChainId: MaybeRefOrGetter<string | null | undefined>;
|
|
424
|
+
rpcUrl: MaybeRefOrGetter<string | undefined>;
|
|
425
|
+
bundlerUrl?: MaybeRefOrGetter<string | undefined>;
|
|
426
|
+
chainId?: MaybeRefOrGetter<string | undefined>;
|
|
427
|
+
entryPoint?: Address;
|
|
428
|
+
accountType?: SmartAccountType;
|
|
429
|
+
salt?: bigint;
|
|
430
|
+
/** Required for deployWallet; the connected wallet's sendTransaction. */
|
|
431
|
+
sendTransaction?: MaybeRef<DeployTransactionSender | null | undefined>;
|
|
432
|
+
/** Reuse a caller-owned manager instead of constructing one. */
|
|
433
|
+
manager?: MaybeRefOrGetter<SmartAccountManager | null | undefined>;
|
|
434
|
+
}
|
|
435
|
+
interface UseSmartAccountReturn {
|
|
436
|
+
address: ShallowRef<Address | null>;
|
|
437
|
+
isDeployed: ShallowRef<boolean>;
|
|
438
|
+
accountInfo: ShallowRef<SmartAccountInfo | null>;
|
|
439
|
+
isLoading: ShallowRef<boolean>;
|
|
440
|
+
error: ShallowRef<Error | null>;
|
|
441
|
+
/** Null until rpcUrl, chain and owner are all known. */
|
|
442
|
+
config: ComputedRef<SmartAccountConfig | null>;
|
|
443
|
+
createWallet: () => Promise<SmartAccountInfo | null>;
|
|
444
|
+
deployWallet: () => Promise<Address | null>;
|
|
445
|
+
getAddress: () => Promise<Address | null>;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Counterfactual smart-account address, deployment state and deployment,
|
|
449
|
+
* mirroring the React hook. Address derivation, factory calldata and the
|
|
450
|
+
* refusal to broadcast from the manager are connect-core's; chain and
|
|
451
|
+
* config decisions are appkit-core's. Deployment is sent through the
|
|
452
|
+
* caller's own transaction sender, never by this composable.
|
|
453
|
+
*/
|
|
454
|
+
declare function useSmartAccount(options: UseSmartAccountOptions): UseSmartAccountReturn;
|
|
455
|
+
|
|
456
|
+
/** Signs the 32-byte UserOperation hash. Raw or EIP-191, per signerMode. */
|
|
457
|
+
type UserOpSigner = (hash: Hex) => Promise<Hex> | Hex;
|
|
458
|
+
interface UseSendUserOperationOptions {
|
|
459
|
+
account: MaybeRefOrGetter<string | null | undefined>;
|
|
460
|
+
connectedChainId: MaybeRefOrGetter<string | null | undefined>;
|
|
461
|
+
rpcUrl: MaybeRefOrGetter<string | undefined>;
|
|
462
|
+
bundlerUrl: MaybeRefOrGetter<string | undefined>;
|
|
463
|
+
chainId?: MaybeRefOrGetter<string | undefined>;
|
|
464
|
+
entryPoint?: Address;
|
|
465
|
+
accountType?: SmartAccountType;
|
|
466
|
+
salt?: bigint;
|
|
467
|
+
/** Override the connected account as the smart-account owner. */
|
|
468
|
+
owner?: MaybeRefOrGetter<Address | undefined>;
|
|
469
|
+
/**
|
|
470
|
+
* Required. Vue has no wallet provider to fall back to, so the caller
|
|
471
|
+
* supplies the signer for the UserOperation hash. Its output is validated
|
|
472
|
+
* by the manager, not trusted.
|
|
473
|
+
*/
|
|
474
|
+
signer: MaybeRef<UserOpSigner>;
|
|
475
|
+
signerMode?: "raw" | "eip191";
|
|
476
|
+
}
|
|
477
|
+
interface UseSendUserOperationReturn {
|
|
478
|
+
sendUserOp: (calls: Call[], opts?: SendUserOpOptions) => Promise<UserOperationResponse | null>;
|
|
479
|
+
userOpHash: ShallowRef<Hex | null>;
|
|
480
|
+
receipt: ShallowRef<UserOperationReceipt | null>;
|
|
481
|
+
isPending: ShallowRef<boolean>;
|
|
482
|
+
isEstimating: ShallowRef<boolean>;
|
|
483
|
+
error: ShallowRef<Error | null>;
|
|
484
|
+
reset: () => void;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Build, sign and submit one UserOperation, mirroring the React hook.
|
|
488
|
+
* Preconditions fail closed before anything is signed: configured URLs,
|
|
489
|
+
* at least one call, a resolvable chain that matches the connected one, an
|
|
490
|
+
* owner address. Only one operation may be in flight; a result for a
|
|
491
|
+
* superseded request is dropped.
|
|
492
|
+
*/
|
|
493
|
+
declare function useSendUserOperation(options: UseSendUserOperationOptions): UseSendUserOperationReturn;
|
|
494
|
+
|
|
495
|
+
type UserOpStatus = "idle" | "pending" | "confirmed" | "failed" | "not_found";
|
|
496
|
+
interface UseUserOpStatusOptions {
|
|
497
|
+
bundlerUrl: MaybeRefOrGetter<string | undefined>;
|
|
498
|
+
/** Poll interval in ms (default 2000). */
|
|
499
|
+
pollInterval?: number;
|
|
500
|
+
/** Attempts before giving up as not_found (default 30). */
|
|
501
|
+
maxRetries?: number;
|
|
502
|
+
}
|
|
503
|
+
interface UseUserOpStatusReturn {
|
|
504
|
+
status: ShallowRef<UserOpStatus>;
|
|
505
|
+
receipt: ShallowRef<UserOperationReceipt | null>;
|
|
506
|
+
userOpHash: ShallowRef<Hex | null>;
|
|
507
|
+
error: ShallowRef<Error | null>;
|
|
508
|
+
isPolling: ShallowRef<boolean>;
|
|
509
|
+
elapsedMs: ShallowRef<number>;
|
|
510
|
+
attempts: ShallowRef<number>;
|
|
511
|
+
start: (hash: Hex) => void;
|
|
512
|
+
stop: () => void;
|
|
513
|
+
reset: () => void;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Poll a bundler for a UserOperation receipt, mirroring the React hook.
|
|
517
|
+
* Receipt validation is appkit-core's: a malformed receipt ends polling as
|
|
518
|
+
* not_found rather than being retried or banked; transport errors retry up
|
|
519
|
+
* to maxRetries. A start() or dispose aborts the in-flight request.
|
|
520
|
+
*/
|
|
521
|
+
declare function useUserOpStatus(options: UseUserOpStatusOptions): UseUserOpStatusReturn;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Vue counterparts of the React session-key hooks. The SessionKeyManager —
|
|
525
|
+
* key generation, encryption at rest, scope enforcement, fail-closed signing
|
|
526
|
+
* — is connect-core's; the shared instance and its config guard are
|
|
527
|
+
* appkit-core's. These composables only add reactivity. Private key material
|
|
528
|
+
* never reaches them: signWithSession returns a signature, not a key.
|
|
529
|
+
*/
|
|
530
|
+
interface SessionKeyComposableOptions {
|
|
531
|
+
/** Reuse a caller-owned manager instead of the shared process-wide one. */
|
|
532
|
+
manager?: SessionKeyManager;
|
|
533
|
+
}
|
|
534
|
+
interface UseSessionKeysReturn {
|
|
535
|
+
sessions: ShallowRef<SessionKeyInfo[]>;
|
|
536
|
+
activeSessions: ComputedRef<SessionKeyInfo[]>;
|
|
537
|
+
loading: ShallowRef<boolean>;
|
|
538
|
+
error: ShallowRef<Error | null>;
|
|
539
|
+
refresh: () => Promise<void>;
|
|
540
|
+
clearError: () => void;
|
|
541
|
+
storageAvailable: boolean;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Lists session keys while a wallet session is connected; an empty list
|
|
545
|
+
* otherwise, as in React. `connected` is the caller's session state.
|
|
546
|
+
*/
|
|
547
|
+
declare function useSessionKeys(connected: MaybeRefOrGetter<boolean>, config?: SessionKeyManagerConfig, options?: SessionKeyComposableOptions): UseSessionKeysReturn;
|
|
548
|
+
interface UseCreateSessionKeyReturn {
|
|
549
|
+
createSessionKey: (scope?: Partial<SessionKeyScope>, signerAddress?: `0x${string}`) => Promise<SessionKeyInfo>;
|
|
550
|
+
lastCreated: ShallowRef<SessionKeyInfo | null>;
|
|
551
|
+
isCreating: ShallowRef<boolean>;
|
|
552
|
+
error: ShallowRef<Error | null>;
|
|
553
|
+
clearError: () => void;
|
|
554
|
+
}
|
|
555
|
+
declare function useCreateSessionKey(config?: SessionKeyManagerConfig, options?: SessionKeyComposableOptions): UseCreateSessionKeyReturn;
|
|
556
|
+
interface UseRevokeSessionReturn {
|
|
557
|
+
revokeSession: (sessionId: string) => Promise<void>;
|
|
558
|
+
isRevoking: ShallowRef<boolean>;
|
|
559
|
+
error: ShallowRef<Error | null>;
|
|
560
|
+
clearError: () => void;
|
|
561
|
+
}
|
|
562
|
+
/** Revocation is device-local: a bundle already handed out cannot be recalled. */
|
|
563
|
+
declare function useRevokeSession(config?: SessionKeyManagerConfig, options?: SessionKeyComposableOptions): UseRevokeSessionReturn;
|
|
564
|
+
interface UseSendWithSessionReturn {
|
|
565
|
+
signWithSession: (sessionId: string, messageHash: `0x${string}`, tx: SessionKeyTransaction) => Promise<`0x${string}`>;
|
|
566
|
+
checkScope: (sessionId: string, tx: SessionKeyTransaction) => Promise<ScopeCheckResult>;
|
|
567
|
+
isBusy: ShallowRef<boolean>;
|
|
568
|
+
error: ShallowRef<Error | null>;
|
|
569
|
+
clearError: () => void;
|
|
570
|
+
}
|
|
571
|
+
declare function useSendWithSession(config?: SessionKeyManagerConfig, options?: SessionKeyComposableOptions): UseSendWithSessionReturn;
|
|
572
|
+
|
|
573
|
+
type SendCallsStatus = "idle" | "awaiting_approval" | "submitted" | "failed";
|
|
574
|
+
interface UseSendCallsOptions {
|
|
575
|
+
sendCalls: MaybeRef<SendCallsAction>;
|
|
576
|
+
getCallsStatus: MaybeRef<GetCallsStatusAction>;
|
|
577
|
+
showCallsStatus: MaybeRef<ShowCallsStatusAction>;
|
|
578
|
+
execution?: MaybeRefOrGetter<ExecutionStrategy | null>;
|
|
579
|
+
}
|
|
580
|
+
interface UseSendCallsReturn {
|
|
581
|
+
sendCalls: SendCallsAction;
|
|
582
|
+
getCallsStatus: GetCallsStatusAction;
|
|
583
|
+
showCallsStatus: ShowCallsStatusAction;
|
|
584
|
+
status: ShallowRef<SendCallsStatus>;
|
|
585
|
+
error: ShallowRef<Error | null>;
|
|
586
|
+
batchHash: ShallowRef<string | null>;
|
|
587
|
+
callsStatus: ShallowRef<CallsStatus | null>;
|
|
588
|
+
execution: ComputedRef<ExecutionStrategy | null>;
|
|
589
|
+
isSending: ComputedRef<boolean>;
|
|
590
|
+
reset: () => void;
|
|
591
|
+
}
|
|
592
|
+
/** Reactive state around caller-owned EIP-5792 actions and execution policy. */
|
|
593
|
+
declare function useSendCalls(options: UseSendCallsOptions): UseSendCallsReturn;
|
|
594
|
+
|
|
595
|
+
interface EmbeddedWalletAccountView {
|
|
596
|
+
namespace: string;
|
|
597
|
+
address: string;
|
|
598
|
+
derivationPath?: string;
|
|
599
|
+
}
|
|
600
|
+
interface EmbeddedWalletView {
|
|
601
|
+
accounts: EmbeddedWalletAccountView[];
|
|
602
|
+
activeNamespace: string;
|
|
603
|
+
createdAt: number;
|
|
604
|
+
chainId?: string;
|
|
605
|
+
version?: 2;
|
|
606
|
+
recoveryAvailable: boolean;
|
|
607
|
+
readonly address?: string;
|
|
608
|
+
}
|
|
609
|
+
interface UseEmbeddedWalletOptions<TWalletData, TSecurityReport> {
|
|
610
|
+
wallet: MaybeRefOrGetter<EmbeddedWalletView | null>;
|
|
611
|
+
backupPending: MaybeRefOrGetter<boolean>;
|
|
612
|
+
storageSecurityLevel: MaybeRefOrGetter<number>;
|
|
613
|
+
securityReport: MaybeRefOrGetter<TSecurityReport | null>;
|
|
614
|
+
connectEmbedded: MaybeRef<() => Promise<void>>;
|
|
615
|
+
restoreWallet: MaybeRef<() => Promise<boolean>>;
|
|
616
|
+
generateWallet: MaybeRef<() => Promise<TWalletData | null>>;
|
|
617
|
+
importFromMnemonic: MaybeRef<(mnemonic: string) => Promise<TWalletData | null>>;
|
|
618
|
+
importFromPrivateKey: MaybeRef<(privateKey: string) => Promise<TWalletData | null>>;
|
|
619
|
+
wipe: MaybeRef<() => Promise<void>>;
|
|
620
|
+
setActiveNamespace: MaybeRef<(namespace: string) => void>;
|
|
621
|
+
backfillAccounts: MaybeRef<() => Promise<EmbeddedWalletAccountView[]>>;
|
|
622
|
+
getSeedPhrase: MaybeRef<() => string | null>;
|
|
623
|
+
getPrivateKey: MaybeRef<() => string | null>;
|
|
624
|
+
confirmBackup: MaybeRef<() => void>;
|
|
625
|
+
}
|
|
626
|
+
interface UseEmbeddedWalletReturn<TWalletData, TSecurityReport> {
|
|
627
|
+
wallet: ComputedRef<EmbeddedWalletView | null>;
|
|
628
|
+
hasWallet: ComputedRef<boolean>;
|
|
629
|
+
address: ComputedRef<string | null>;
|
|
630
|
+
accounts: ComputedRef<EmbeddedWalletAccountView[]>;
|
|
631
|
+
activeNamespace: ComputedRef<string | null>;
|
|
632
|
+
backupPending: ComputedRef<boolean>;
|
|
633
|
+
storageSecurityLevel: ComputedRef<number>;
|
|
634
|
+
securityReport: ComputedRef<TSecurityReport | null>;
|
|
635
|
+
connectEmbedded: () => Promise<void>;
|
|
636
|
+
restoreWallet: () => Promise<boolean>;
|
|
637
|
+
generateWallet: () => Promise<TWalletData | null>;
|
|
638
|
+
importFromMnemonic: (mnemonic: string) => Promise<TWalletData | null>;
|
|
639
|
+
importFromPrivateKey: (privateKey: string) => Promise<TWalletData | null>;
|
|
640
|
+
wipe: () => Promise<void>;
|
|
641
|
+
setActiveNamespace: (namespace: string) => void;
|
|
642
|
+
backfillAccounts: () => Promise<EmbeddedWalletAccountView[]>;
|
|
643
|
+
getSeedPhrase: () => string | null;
|
|
644
|
+
getPrivateKey: () => string | null;
|
|
645
|
+
confirmBackup: () => void;
|
|
646
|
+
isBusy: ShallowRef<boolean>;
|
|
647
|
+
error: ShallowRef<Error | null>;
|
|
648
|
+
clearError: () => void;
|
|
649
|
+
}
|
|
650
|
+
/** Reactive view over caller-owned embedded-wallet state and actions. */
|
|
651
|
+
declare function useEmbeddedWallet<TWalletData = unknown, TSecurityReport = unknown>(options: UseEmbeddedWalletOptions<TWalletData, TSecurityReport>): UseEmbeddedWalletReturn<TWalletData, TSecurityReport>;
|
|
652
|
+
|
|
653
|
+
interface UseSIWxLoginReturn {
|
|
654
|
+
signIn: SiwxSignInAction;
|
|
655
|
+
isSigningIn: ShallowRef<boolean>;
|
|
656
|
+
error: ShallowRef<Error | null>;
|
|
657
|
+
clearError: () => void;
|
|
658
|
+
}
|
|
659
|
+
/** Login-shaped view of the shared caller-owned SIWX sign-in shell. */
|
|
660
|
+
declare function useSIWxLogin(action: MaybeRef<SiwxSignInAction>): UseSIWxLoginReturn;
|
|
661
|
+
|
|
662
|
+
interface UseSIWxSessionOptions {
|
|
663
|
+
session: MaybeRefOrGetter<SiwxSessionLike | null>;
|
|
664
|
+
isRestoring: MaybeRefOrGetter<boolean>;
|
|
665
|
+
isExpired: MaybeRefOrGetter<boolean>;
|
|
666
|
+
timeUntilExpiry: MaybeRefOrGetter<number | null>;
|
|
667
|
+
signIn: MaybeRef<(options?: SiwxSignInOptions) => Promise<SiwxSessionLike>>;
|
|
668
|
+
signOut: MaybeRef<() => Promise<void>>;
|
|
669
|
+
refresh: MaybeRef<() => Promise<SiwxSessionLike>>;
|
|
670
|
+
}
|
|
671
|
+
interface UseSIWxSessionReturn {
|
|
672
|
+
session: ComputedRef<SiwxSessionLike | null>;
|
|
673
|
+
isAuthenticated: ComputedRef<boolean>;
|
|
674
|
+
isRestoring: ComputedRef<boolean>;
|
|
675
|
+
isSigningIn: ShallowRef<boolean>;
|
|
676
|
+
isExpired: ComputedRef<boolean>;
|
|
677
|
+
timeUntilExpiry: ComputedRef<number | null>;
|
|
678
|
+
signIn: (options?: SiwxSignInOptions) => Promise<SiwxSessionLike>;
|
|
679
|
+
signOut: () => Promise<void>;
|
|
680
|
+
refresh: () => Promise<SiwxSessionLike>;
|
|
681
|
+
error: ShallowRef<Error | null>;
|
|
682
|
+
clearError: () => void;
|
|
683
|
+
}
|
|
684
|
+
/** Reactive view over caller-owned SIWX session lifecycle and policy state. */
|
|
685
|
+
declare function useSIWxSession(options: UseSIWxSessionOptions): UseSIWxSessionReturn;
|
|
686
|
+
|
|
687
|
+
interface UseSiwxAuthSessionOptions {
|
|
688
|
+
result: MaybeRefOrGetter<SiwxResult | null>;
|
|
689
|
+
isRestoring: MaybeRefOrGetter<boolean>;
|
|
690
|
+
signIn: MaybeRef<SiwxSignInAction>;
|
|
691
|
+
signOut: MaybeRef<() => Promise<void>>;
|
|
692
|
+
}
|
|
693
|
+
interface UseSiwxAuthSessionReturn {
|
|
694
|
+
isSignedIn: ComputedRef<boolean>;
|
|
695
|
+
isRestoring: ComputedRef<boolean>;
|
|
696
|
+
siwxResult: ComputedRef<SiwxResult | null>;
|
|
697
|
+
isSigningIn: ShallowRef<boolean>;
|
|
698
|
+
error: ShallowRef<Error | null>;
|
|
699
|
+
signIn: SiwxSignInAction;
|
|
700
|
+
signOut: () => Promise<void>;
|
|
701
|
+
clearError: () => void;
|
|
702
|
+
}
|
|
703
|
+
/** Reactive auth view over caller-owned, already-validated SIWX persistence. */
|
|
704
|
+
declare function useSiwxAuthSession(options: UseSiwxAuthSessionOptions): UseSiwxAuthSessionReturn;
|
|
705
|
+
|
|
706
|
+
/** Minimal read-only contract; a viem PublicClient satisfies it. */
|
|
707
|
+
interface NativeBalanceReader {
|
|
708
|
+
getBalance(args: {
|
|
709
|
+
address: `0x${string}`;
|
|
710
|
+
}): Promise<bigint>;
|
|
711
|
+
}
|
|
712
|
+
interface UseBalanceOptions {
|
|
713
|
+
/** Native currency decimals. Default 18. */
|
|
714
|
+
decimals?: MaybeRefOrGetter<number | null | undefined>;
|
|
715
|
+
/**
|
|
716
|
+
* Native currency symbol, or null when it is not known. Null rather than
|
|
717
|
+
* "ETH": a wrong unit beside the number is worse than no unit.
|
|
718
|
+
*/
|
|
719
|
+
symbol?: MaybeRefOrGetter<string | null | undefined>;
|
|
720
|
+
/** Auto-refresh interval in milliseconds. Default: no auto-refresh. */
|
|
721
|
+
refreshInterval?: MaybeRefOrGetter<number | null | undefined>;
|
|
722
|
+
}
|
|
723
|
+
interface UseBalanceReturn {
|
|
724
|
+
/** Raw balance in wei as a decimal string, or null when unread. */
|
|
725
|
+
balance: ShallowRef<string | null>;
|
|
726
|
+
/** Human-readable balance in the native unit, or null when unread. */
|
|
727
|
+
formatted: ComputedRef<string | null>;
|
|
728
|
+
symbol: ComputedRef<string | null>;
|
|
729
|
+
isFetching: ShallowRef<boolean>;
|
|
730
|
+
error: ShallowRef<Error | null>;
|
|
731
|
+
refetch: () => Promise<void>;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Native balance of an EVM account through a caller-owned reader.
|
|
735
|
+
*
|
|
736
|
+
* Vue has no AppKit provider, so the client is explicit. Unlike the React
|
|
737
|
+
* hook this does not fetch a USD price: that is an outward HTTP call the
|
|
738
|
+
* caller did not hand us, and it belongs beside the reader they did.
|
|
739
|
+
*/
|
|
740
|
+
declare function useBalance(account: MaybeRefOrGetter<string | null | undefined>, client: MaybeRefOrGetter<NativeBalanceReader | null | undefined>, options?: UseBalanceOptions): UseBalanceReturn;
|
|
741
|
+
|
|
742
|
+
interface UseRouteQuoteOptions {
|
|
743
|
+
/** Debounce before auto-fetching after an input change (default 300 ms). */
|
|
744
|
+
debounceMs?: number;
|
|
745
|
+
}
|
|
746
|
+
interface UseRouteQuoteReturn {
|
|
747
|
+
quotes: ShallowRef<RouteQuote[]>;
|
|
748
|
+
loading: ShallowRef<boolean>;
|
|
749
|
+
error: ShallowRef<Error | null>;
|
|
750
|
+
refresh: () => Promise<void>;
|
|
751
|
+
clear: () => void;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Debounced cross-chain route quotes through a caller-supplied quote
|
|
755
|
+
* function, mirroring the React hook. Which inputs are quotable is decided
|
|
756
|
+
* in appkit-core; this file debounces and drops late results.
|
|
757
|
+
*/
|
|
758
|
+
declare function useRouteQuote(input: MaybeRefOrGetter<RouteQuoteInput>, getQuotes?: MaybeRef<GetRouteQuotes | null | undefined>, options?: UseRouteQuoteOptions): UseRouteQuoteReturn;
|
|
759
|
+
|
|
760
|
+
interface UseCompareCostsReturn {
|
|
761
|
+
comparisons: ShallowRef<CostComparison[]>;
|
|
762
|
+
loading: ShallowRef<boolean>;
|
|
763
|
+
error: ShallowRef<Error | null>;
|
|
764
|
+
refresh: () => Promise<void>;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Compare an operation's cost across chains through a caller-supplied
|
|
768
|
+
* function, mirroring the React hook. Re-fetches when the input's *value*
|
|
769
|
+
* changes (appkit-core's `compareCostsKey`), not when a new array or object
|
|
770
|
+
* with the same content is passed; only the newest request may write.
|
|
771
|
+
*/
|
|
772
|
+
declare function useCompareCosts(input: MaybeRefOrGetter<CompareCostsInput>, compareCosts?: MaybeRef<CompareCosts | null | undefined>): UseCompareCostsReturn;
|
|
773
|
+
|
|
774
|
+
interface UseExecuteRouteReturn {
|
|
775
|
+
execute: (quote: ExecutableQuote, recipient: string, options?: ExecuteRouteOptions) => Promise<ExecuteRouteResult | null>;
|
|
776
|
+
executing: ShallowRef<boolean>;
|
|
777
|
+
result: ShallowRef<ExecuteRouteResult | null>;
|
|
778
|
+
error: ShallowRef<ExecuteRouteError | null>;
|
|
779
|
+
reset: () => void;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Execute a quoted route once through a caller-supplied executor, mirroring
|
|
783
|
+
* the React hook. The recipient check and error shape are appkit-core's. A
|
|
784
|
+
* second call while one is in flight is refused, and `reset()` deliberately
|
|
785
|
+
* does not unlock that guard: the first request is still out there.
|
|
786
|
+
*/
|
|
787
|
+
declare function useExecuteRoute(executeRoute?: MaybeRef<ExecuteRoute | null | undefined>): UseExecuteRouteReturn;
|
|
788
|
+
|
|
789
|
+
interface UseTokenListOptions {
|
|
790
|
+
/** Load on creation (default: true). */
|
|
791
|
+
autoLoad?: boolean;
|
|
792
|
+
/** Custom sources; the manager's defaults otherwise. */
|
|
793
|
+
sources?: TokenListSource[];
|
|
794
|
+
/** Reuse a caller-owned manager instead of creating one. */
|
|
795
|
+
manager?: TokenListManager;
|
|
796
|
+
}
|
|
797
|
+
interface UseTokenListReturn {
|
|
798
|
+
/** Tokens for the given chain, or all chains when none is given. */
|
|
799
|
+
tokens: ShallowRef<TokenListEntry[]>;
|
|
800
|
+
isLoading: ShallowRef<boolean>;
|
|
801
|
+
/** True once a load has completed at least once. */
|
|
802
|
+
isLoaded: ShallowRef<boolean>;
|
|
803
|
+
error: ShallowRef<Error | null>;
|
|
804
|
+
/** Force a refresh from all sources. */
|
|
805
|
+
refetch: () => Promise<void>;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Token list for a chain, mirroring the React hook. The list logic, caching
|
|
809
|
+
* and chain filtering are `TokenListManager`'s; this file is Vue plumbing.
|
|
810
|
+
* The chain id is CAIP-2; a non-EVM chain yields the unfiltered list rather
|
|
811
|
+
* than a bogus numeric filter.
|
|
812
|
+
*/
|
|
813
|
+
declare function useTokenList(chainId?: MaybeRefOrGetter<string | null | undefined>, options?: UseTokenListOptions): UseTokenListReturn;
|
|
814
|
+
|
|
815
|
+
interface UseTokenSearchOptions {
|
|
816
|
+
/** Reuse a caller-owned manager; otherwise one shared instance per page. */
|
|
817
|
+
manager?: TokenListManager;
|
|
818
|
+
/** Debounce in ms (default 300). */
|
|
819
|
+
debounceMs?: number;
|
|
820
|
+
/** Max results per bucket (default 20). */
|
|
821
|
+
limit?: number;
|
|
822
|
+
}
|
|
823
|
+
interface UseTokenSearchReturn {
|
|
824
|
+
results: ShallowRef<TokenSearchResult>;
|
|
825
|
+
/** True from the first keystroke until the debounced search has run. */
|
|
826
|
+
isSearching: ShallowRef<boolean>;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Debounced token search by symbol, name or address, mirroring the React
|
|
830
|
+
* hook. Matching lives in `TokenListManager.search`; this file only debounces
|
|
831
|
+
* and keeps a late timer from writing after the query moved on.
|
|
832
|
+
*/
|
|
833
|
+
declare function useTokenSearch(query: MaybeRefOrGetter<string | null | undefined>, chainId?: MaybeRefOrGetter<string | null | undefined>, options?: UseTokenSearchOptions): UseTokenSearchReturn;
|
|
834
|
+
|
|
835
|
+
interface UseValidateDestinationReturn {
|
|
836
|
+
validation: ComputedRef<DestinationValidation>;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Syntactic destination checks, shared with the React hook through
|
|
840
|
+
* `@naculus/connect-appkit-core`. Returns a machine-readable `issue`; the
|
|
841
|
+
* Vue package carries no locale table, so the caller maps it to a string.
|
|
842
|
+
* `level: "ok"` means nothing wrong was found — not that it is safe.
|
|
843
|
+
*/
|
|
844
|
+
declare function useValidateDestination(address: MaybeRefOrGetter<string | null | undefined>): UseValidateDestinationReturn;
|
|
845
|
+
|
|
846
|
+
interface TokenInfo {
|
|
847
|
+
/** ERC-20 token contract address */
|
|
848
|
+
address: `0x${string}`;
|
|
849
|
+
symbol: string;
|
|
850
|
+
decimals: number;
|
|
851
|
+
name?: string;
|
|
852
|
+
}
|
|
853
|
+
/** Minimal read-only contract; a viem PublicClient satisfies it. */
|
|
854
|
+
interface TokenBalanceReader {
|
|
855
|
+
readContract(args: {
|
|
856
|
+
address: `0x${string}`;
|
|
857
|
+
abi: typeof ERC20_MIN_ABI;
|
|
858
|
+
functionName: "balanceOf";
|
|
859
|
+
args: readonly [`0x${string}`];
|
|
860
|
+
}): Promise<unknown>;
|
|
861
|
+
}
|
|
862
|
+
interface TokenBalanceResult extends TokenInfo {
|
|
863
|
+
/** Raw balance in the smallest unit as a decimal string, or null if unread. */
|
|
864
|
+
balance: string | null;
|
|
865
|
+
/** Human-readable balance, or null if unread. */
|
|
866
|
+
formatted: string | null;
|
|
867
|
+
}
|
|
868
|
+
interface UseTokenBalanceOptions {
|
|
869
|
+
/** Auto-refresh interval in milliseconds. Default: no auto-refresh. */
|
|
870
|
+
refreshInterval?: MaybeRefOrGetter<number | null | undefined>;
|
|
871
|
+
}
|
|
872
|
+
interface UseTokenBalanceReturn {
|
|
873
|
+
tokenBalances: ShallowRef<TokenBalanceResult[]>;
|
|
874
|
+
isFetching: ShallowRef<boolean>;
|
|
875
|
+
error: ShallowRef<Error | null>;
|
|
876
|
+
refetch: () => Promise<void>;
|
|
877
|
+
getTokenBalance: (tokenAddress: `0x${string}`) => TokenBalanceResult | undefined;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* ERC-20 balances of an EVM account through a caller-owned reader.
|
|
881
|
+
*
|
|
882
|
+
* Mirrors the React hook: one token failing to read leaves that entry with a
|
|
883
|
+
* null balance and does not fail the others. A late response for a previous
|
|
884
|
+
* account, reader or token list is dropped.
|
|
885
|
+
*/
|
|
886
|
+
declare function useTokenBalance(account: MaybeRefOrGetter<string | null | undefined>, client: MaybeRefOrGetter<TokenBalanceReader | null | undefined>, tokens: MaybeRefOrGetter<readonly TokenInfo[] | null | undefined>, options?: UseTokenBalanceOptions): UseTokenBalanceReturn;
|
|
887
|
+
|
|
888
|
+
/** Minimal read-only contract; a viem PublicClient can supply getCode. */
|
|
889
|
+
interface DelegationCodeReader {
|
|
890
|
+
getCode(args: {
|
|
891
|
+
address: `0x${string}`;
|
|
892
|
+
}): Promise<`0x${string}` | undefined>;
|
|
893
|
+
}
|
|
894
|
+
interface UseDelegationReturn {
|
|
895
|
+
delegated: ComputedRef<boolean | null>;
|
|
896
|
+
delegate: ComputedRef<`0x${string}` | null>;
|
|
897
|
+
isFetching: ShallowRef<boolean>;
|
|
898
|
+
error: ShallowRef<Error | null>;
|
|
899
|
+
refetch: () => Promise<void>;
|
|
900
|
+
}
|
|
901
|
+
/** Read current EIP-7702 delegation without treating an unread account as undelegated. */
|
|
902
|
+
declare function useDelegation(account: MaybeRefOrGetter<string | null | undefined>, client: MaybeRefOrGetter<DelegationCodeReader | null | undefined>, chainId?: MaybeRefOrGetter<string | null | undefined>): UseDelegationReturn;
|
|
903
|
+
|
|
904
|
+
interface NameLookupReturn<T> {
|
|
905
|
+
data: ShallowRef<T | null>;
|
|
906
|
+
isLoading: ComputedRef<boolean>;
|
|
907
|
+
error: ShallowRef<Error | null>;
|
|
908
|
+
refetch: () => void;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
type UseResolveNameReturn = NameLookupReturn<AddressResult>;
|
|
912
|
+
/** Resolve a reactive ENS or SNS name to an address. */
|
|
913
|
+
declare function useResolveName(name: MaybeRefOrGetter<string>, options?: {
|
|
914
|
+
skip?: MaybeRefOrGetter<boolean | undefined>;
|
|
915
|
+
resolverConfig?: MaybeRefOrGetter<NameResolverConfig | undefined>;
|
|
916
|
+
}): UseResolveNameReturn;
|
|
917
|
+
|
|
918
|
+
type UseLookupAddressReturn = NameLookupReturn<NameResult>;
|
|
919
|
+
/** Reverse-resolve a reactive address, optionally scoped to a CAIP-2 chain. */
|
|
920
|
+
declare function useLookupAddress(address: MaybeRefOrGetter<string>, options?: {
|
|
921
|
+
chainId?: MaybeRefOrGetter<string | undefined>;
|
|
922
|
+
skip?: MaybeRefOrGetter<boolean | undefined>;
|
|
923
|
+
resolverConfig?: MaybeRefOrGetter<NameResolverConfig | undefined>;
|
|
924
|
+
}): UseLookupAddressReturn;
|
|
925
|
+
|
|
926
|
+
interface UseSolanaAccountReturn {
|
|
927
|
+
address: ComputedRef<string | null>;
|
|
928
|
+
caip10: ComputedRef<string | null>;
|
|
929
|
+
chainId: ComputedRef<string | null>;
|
|
930
|
+
isConnected: ComputedRef<boolean>;
|
|
931
|
+
}
|
|
932
|
+
/** Read the connected Solana CAIP-10 account from any wallet. */
|
|
933
|
+
declare function useSolanaAccount(accounts: MaybeRefOrGetter<string[] | null | undefined>, connected: MaybeRefOrGetter<boolean>): UseSolanaAccountReturn;
|
|
934
|
+
|
|
59
935
|
interface UseChainReturn {
|
|
60
936
|
/** The configured chain matching the connected CAIP-2 id, or null. */
|
|
61
937
|
currentChain: ComputedRef<WalletChain | null>;
|
|
@@ -133,6 +1009,81 @@ interface UseSolanaBalanceReturn {
|
|
|
133
1009
|
*/
|
|
134
1010
|
declare function useSolanaBalance(address: MaybeRefOrGetter<string | null | undefined>, rpcUrl: MaybeRefOrGetter<string | null | undefined>): UseSolanaBalanceReturn;
|
|
135
1011
|
|
|
1012
|
+
type TxStatus = "pending" | "mined" | "confirmed" | "failed" | "unknown";
|
|
1013
|
+
interface TxStatusEntry {
|
|
1014
|
+
hash: string;
|
|
1015
|
+
chainId: number;
|
|
1016
|
+
from: string;
|
|
1017
|
+
to: string;
|
|
1018
|
+
value: string;
|
|
1019
|
+
data?: string;
|
|
1020
|
+
nonce?: number;
|
|
1021
|
+
status: TxStatus;
|
|
1022
|
+
blockNumber?: number;
|
|
1023
|
+
blockHash?: string;
|
|
1024
|
+
gasUsed?: string;
|
|
1025
|
+
effectiveGasPrice?: string;
|
|
1026
|
+
createdAt: number;
|
|
1027
|
+
confirmedAt?: number;
|
|
1028
|
+
updatedAt: number;
|
|
1029
|
+
error?: string;
|
|
1030
|
+
label?: string;
|
|
1031
|
+
memo?: string;
|
|
1032
|
+
replacementCount?: number;
|
|
1033
|
+
}
|
|
1034
|
+
/** Structural contract accepted by the transaction-monitor composables. */
|
|
1035
|
+
interface TxMonitorLike {
|
|
1036
|
+
watchTx(hash: string, chainId: number, options?: Record<string, unknown>): Promise<TxStatusEntry>;
|
|
1037
|
+
stopWatching(hash: string, chainId?: number): void;
|
|
1038
|
+
getTxStatus(hash: string, chainId?: number): TxStatusEntry | null;
|
|
1039
|
+
getTxHistory(address?: string, chainId?: number): Promise<TxStatusEntry[]>;
|
|
1040
|
+
refreshTx(hash: string, chainId?: number): Promise<void>;
|
|
1041
|
+
on(event: "statusChange", listener: (entry: TxStatusEntry) => void): this;
|
|
1042
|
+
on(event: "confirmed", listener: (entry: TxStatusEntry) => void): this;
|
|
1043
|
+
on(event: "failed", listener: (entry: TxStatusEntry) => void): this;
|
|
1044
|
+
off(event: string, listener: Function): this;
|
|
1045
|
+
}
|
|
1046
|
+
interface UseTxMonitorReturn {
|
|
1047
|
+
entry: ShallowRef<TxStatusEntry | null>;
|
|
1048
|
+
status: ComputedRef<TxStatus | "idle">;
|
|
1049
|
+
isLoading: ShallowRef<boolean>;
|
|
1050
|
+
isWatching: ShallowRef<boolean>;
|
|
1051
|
+
error: ShallowRef<Error | null>;
|
|
1052
|
+
refresh: () => Promise<void>;
|
|
1053
|
+
stopWatching: () => void;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Reactively monitor one transaction using a caller-owned TxMonitor.
|
|
1057
|
+
*
|
|
1058
|
+
* Vue has no AppKit monitor provider, so the monitor is explicit. The hook
|
|
1059
|
+
* listens only while its source values are current; a late promise from a
|
|
1060
|
+
* previous hash, chain, or monitor cannot overwrite the active result.
|
|
1061
|
+
*/
|
|
1062
|
+
declare function useTxMonitor(hash: MaybeRefOrGetter<string | null | undefined>, chainId: MaybeRefOrGetter<number | null | undefined>, monitor: MaybeRefOrGetter<TxMonitorLike | null | undefined>): UseTxMonitorReturn;
|
|
1063
|
+
|
|
1064
|
+
interface UseLastTxReturn {
|
|
1065
|
+
lastTx: ShallowRef<TxStatusEntry | null>;
|
|
1066
|
+
lastConfirmedTx: ShallowRef<TxStatusEntry | null>;
|
|
1067
|
+
lastFailedTx: ShallowRef<TxStatusEntry | null>;
|
|
1068
|
+
clear: () => void;
|
|
1069
|
+
}
|
|
1070
|
+
/** Track the latest confirmed or failed transaction from a caller-owned monitor. */
|
|
1071
|
+
declare function useLastTx(monitor: MaybeRefOrGetter<TxMonitorLike | null | undefined>): UseLastTxReturn;
|
|
1072
|
+
|
|
1073
|
+
interface UseTxHistoryReturn {
|
|
1074
|
+
entries: ShallowRef<TxStatusEntry[]>;
|
|
1075
|
+
isLoading: ShallowRef<boolean>;
|
|
1076
|
+
error: ShallowRef<Error | null>;
|
|
1077
|
+
refresh: () => Promise<void>;
|
|
1078
|
+
summary: ComputedRef<{
|
|
1079
|
+
pending: number;
|
|
1080
|
+
confirmed: number;
|
|
1081
|
+
failed: number;
|
|
1082
|
+
}>;
|
|
1083
|
+
}
|
|
1084
|
+
/** Query and keep a caller-owned monitor's transaction history current. */
|
|
1085
|
+
declare function useTxHistory(address: MaybeRefOrGetter<string | null | undefined>, chainId: MaybeRefOrGetter<number | null | undefined>, monitor: MaybeRefOrGetter<TxMonitorLike | null | undefined>): UseTxHistoryReturn;
|
|
1086
|
+
|
|
136
1087
|
/** The part of a connector this needs. Anything with these two is enough. */
|
|
137
1088
|
interface CapabilityClient {
|
|
138
1089
|
getCapabilities?: (session: unknown) => Promise<Record<string, unknown>>;
|
|
@@ -199,4 +1150,4 @@ declare function useSolanaRoles(connector: MaybeRefOrGetter<SolanaRolesSource |
|
|
|
199
1150
|
walletType?: string;
|
|
200
1151
|
} | null | undefined>): UseSolanaRolesReturn;
|
|
201
1152
|
|
|
202
|
-
export { type AccountEntry, AppkitAccordion, AppkitAccountButton, AppkitAlertDialog, AppkitAvatar, AppkitBadge, AppkitButton, AppkitCard, AppkitCardContent, AppkitCardDescription, AppkitCardFooter, AppkitCardHeader, AppkitCardTitle, AppkitCheckbox, AppkitCollapsible, AppkitConnectButton, AppkitDialog, AppkitDropdownMenu, AppkitInput, AppkitPopover, AppkitProgress, AppkitScrollArea, AppkitSelect, AppkitSeparator, AppkitSkeleton, AppkitSwitch, AppkitTabs, AppkitToggleGroup, AppkitTooltip, type CapabilityClient, type UseAccountsReturn, type UseCapabilitiesReturn, type UseChainReturn, type UsePassphraseGateReturn, type UseSolanaBalanceReturn as UseSolanaBalanceVueReturn, type UseSolanaRolesReturn, useAccounts, useCapabilities, useChain, usePassphraseGate, useSolanaBalance, useSolanaRoles };
|
|
1153
|
+
export { type AccountEntry, AppkitAccordion, AppkitAccountButton, AppkitAlertDialog, AppkitAvatar, AppkitBadge, AppkitButton, AppkitCard, AppkitCardContent, AppkitCardDescription, AppkitCardFooter, AppkitCardHeader, AppkitCardTitle, AppkitCheckbox, AppkitCollapsible, AppkitConnectButton, AppkitDialog, AppkitDropdownMenu, AppkitInput, AppkitPopover, AppkitProgress, AppkitScrollArea, AppkitSelect, AppkitSeparator, AppkitSkeleton, AppkitSwitch, AppkitTabs, AppkitToggleGroup, AppkitTooltip, type CapabilityClient, type DelegationCodeReader, type DeployTransactionSender, type ERC20Reader, type ERC20Sender, type ERC20Transaction, type EmbeddedWalletAccountView, type EmbeddedWalletView, type EvmTransaction, type ExecuteCallsAction, type ExecutionPreview, type ExecutionRoute, type GetCallsStatusAction, type GetSolanaTransactionStatusAction, type NativeBalanceReader, type PaymasterService, type PreviewExecutionAction, type SendCallsAction, type SendCallsOptions, type SendCallsStatus, type SendSolanaTransactionAction, type SendTransactionAction, type SendTransactionStatus, type SessionKeyComposableOptions, type ShowCallsStatusAction, type SignMessageAction, type SignSolanaTransactionAction, type SiwxResult, type SiwxSessionLike, type SiwxSignInAction, type SiwxSignInOptions, type SolanaTransaction, type TokenBalanceReader, type TokenBalanceResult, type TokenInfo, type TxMonitorLike, type TxStatus, type TxStatusEntry, type UseAccountReturn, type UseAccountsReturn, type UseBalanceOptions, type UseBalanceReturn, type UseCapabilitiesReturn, type UseChainReturn, type UseCompareCostsReturn, type UseConnectReturn, type UseCreateSessionKeyReturn, type UseDelegationPolicyOptions, type UseDelegationPolicyReturn, type UseDelegationReturn, type UseDisconnectReturn, type UseERC20ApproveOptions, type UseERC20ApproveReturn, type UseERC20TransferOptions, type UseERC20TransferReturn, type UseERC20TransferSimulationOptions, type UseERC20TransferSimulationReturn, type UseEmbeddedWalletOptions, type UseEmbeddedWalletReturn, type UseExecuteCallsOptions, type UseExecuteCallsReturn, type UseExecuteRouteReturn, type UseLastTxReturn, type UseLookupAddressReturn, type UseNotificationOptions, type UseNotificationReturn, type UsePassphraseGateReturn, type UseResolveNameReturn, type UseRevokeSessionReturn, type UseRouteQuoteOptions, type UseRouteQuoteReturn, type UseSIWxLoginReturn, type UseSIWxSessionOptions, type UseSIWxSessionReturn, type UseSendCallsOptions, type UseSendCallsReturn, type UseSendTransactionReturn, type UseSendUserOperationOptions, type UseSendUserOperationReturn, type UseSendWithSessionReturn, type UseSessionKeysReturn, type UseSessionReturn, type UseSignInWithEthereumOptions, type UseSignInWithEthereumReturn, type UseSignInWithXReturn, type UseSignMessageReturn, type UseSimulateTransferOptions, type UseSimulateTransferReturn, type UseSiwxAuthSessionOptions, type UseSiwxAuthSessionReturn, type UseSmartAccountOptions, type UseSmartAccountReturn, type UseSolanaAccountReturn, type UseSolanaBalanceReturn as UseSolanaBalanceVueReturn, type UseSolanaRolesReturn, type UseSolanaTransactionOptions, type UseSolanaTransactionReturn, type UseSwitchChainReturn, type UseTokenBalanceOptions, type UseTokenBalanceReturn, type UseTokenListOptions, type UseTokenListReturn, type UseTokenSearchOptions, type UseTokenSearchReturn, type UseTransactionSimulationOptions, type UseTransactionSimulationReturn, type UseTxHistoryReturn, type UseTxMonitorReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseValidateDestinationReturn, type UserOpSigner, type UserOpStatus, useAccount, useAccounts, useBalance, useCapabilities, useChain, useCompareCosts, useConnect, useCreateSessionKey, useDelegation, useDelegationPolicy, useDisconnect, useERC20Approve, useERC20Transfer, useERC20TransferSimulation, useEmbeddedWallet, useExecuteCalls, useExecuteRoute, useLastTx, useLookupAddress, useNotification, usePassphraseGate, useResolveName, useRevokeSession, useRouteQuote, useSIWxLogin, useSIWxSession, useSendCalls, useSendTransaction, useSendUserOperation, useSendWithSession, useSession, useSessionKeys, useSignInWithEthereum, useSignInWithX, useSignMessage, useSimulateTransfer, useSiwxAuthSession, useSmartAccount, useSolanaAccount, useSolanaBalance, useSolanaRoles, useSolanaTransaction, useSwitchChain, useTokenBalance, useTokenList, useTokenSearch, useTransactionSimulation, useTxHistory, useTxMonitor, useUserOpStatus, useValidateDestination };
|