@naculus/connect-appkit-vue 0.2.5 → 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 +1934 -341
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +582 -3
- package/dist/index.d.ts +582 -3
- package/dist/index.js +1930 -313
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
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
3
|
import { ComputedRef, MaybeRefOrGetter, MaybeRef, ShallowRef, shallowRef, ref } from 'vue';
|
|
4
|
-
import { NotificationSettingsStorage, RouteQuote, RouteQuoteInput, GetRouteQuotes, CostComparison, CompareCostsInput, CompareCosts, ExecutableQuote, ExecuteRouteOptions, ExecuteRouteResult, ExecuteRouteError, ExecuteRoute, DestinationValidation,
|
|
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 { InAppChannel, NotificationItem, NotificationSettings, ActiveSessionBundle, ChainSession, SessionManager, WalletError, TokenListSource, TokenListManager, TokenListEntry, TokenSearchResult,
|
|
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>;
|
|
@@ -77,6 +77,112 @@ interface UseNotificationReturn {
|
|
|
77
77
|
/** Vue state shell over the shared in-app notification actions. */
|
|
78
78
|
declare function useNotification(options?: UseNotificationOptions): UseNotificationReturn;
|
|
79
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
|
+
|
|
80
186
|
interface UseAccountReturn {
|
|
81
187
|
accounts: ComputedRef<AccountEntry[] | null>;
|
|
82
188
|
evmAccount: ComputedRef<string | null>;
|
|
@@ -124,6 +230,479 @@ interface UseSwitchChainReturn {
|
|
|
124
230
|
/** Vue counterpart of React useSwitchChain around a caller-owned action. */
|
|
125
231
|
declare function useSwitchChain(action: MaybeRef<(chainId: string) => Promise<void>>, chainId: MaybeRefOrGetter<string | null | undefined>): UseSwitchChainReturn;
|
|
126
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
|
+
|
|
127
706
|
/** Minimal read-only contract; a viem PublicClient satisfies it. */
|
|
128
707
|
interface NativeBalanceReader {
|
|
129
708
|
getBalance(args: {
|
|
@@ -571,4 +1150,4 @@ declare function useSolanaRoles(connector: MaybeRefOrGetter<SolanaRolesSource |
|
|
|
571
1150
|
walletType?: string;
|
|
572
1151
|
} | null | undefined>): UseSolanaRolesReturn;
|
|
573
1152
|
|
|
574
|
-
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 NativeBalanceReader, 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 UseDelegationReturn, type UseDisconnectReturn, type UseExecuteRouteReturn, type UseLastTxReturn, type UseLookupAddressReturn, type UseNotificationOptions, type UseNotificationReturn, type UsePassphraseGateReturn, type UseResolveNameReturn, type UseRouteQuoteOptions, type UseRouteQuoteReturn, type UseSessionReturn, type UseSolanaAccountReturn, type UseSolanaBalanceReturn as UseSolanaBalanceVueReturn, type UseSolanaRolesReturn, type UseSwitchChainReturn, type UseTokenBalanceOptions, type UseTokenBalanceReturn, type UseTokenListOptions, type UseTokenListReturn, type UseTokenSearchOptions, type UseTokenSearchReturn, type UseTxHistoryReturn, type UseTxMonitorReturn, type UseValidateDestinationReturn, useAccount, useAccounts, useBalance, useCapabilities, useChain, useCompareCosts, useConnect, useDelegation, useDisconnect, useExecuteRoute, useLastTx, useLookupAddress, useNotification, usePassphraseGate, useResolveName, useRouteQuote, useSession, useSolanaAccount, useSolanaBalance, useSolanaRoles, useSwitchChain, useTokenBalance, useTokenList, useTokenSearch, useTxHistory, useTxMonitor, useValidateDestination };
|
|
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 };
|