@naculus/connect-appkit-react 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -241
- package/dist/index.d.ts +67 -241
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _naculus_connect_core from '@naculus/connect-core';
|
|
2
|
-
import { UniversalWalletSession,
|
|
2
|
+
import { UniversalWalletSession, DelegationStatus, ExecutionPlan, AtomicityRequirement, BatchCall, SessionKeyInfo, ScopeCheckResult, SessionKeyTransaction, Hex, SessionKeyManagerConfig, SessionKeyScope, TokenConfig, NameResolverConfig, NameResult, InAppChannel, NotificationItem, NotificationSettings, PassphraseRequest, PassphraseGate, AddressResult, ExecutionStrategy, CallsStatus, Address as Address$1, Call, SendUserOpOptions, UserOperationResponse, UserOperationReceipt, ActiveSessionBundle, ChainSession, SmartAccountInfo, SolanaBalance, SolanaConfirmationStatus, SessionManager, TokenListSource, TokenListEntry, TokenSearchResult } from '@naculus/connect-core';
|
|
3
3
|
export { LAMPORTS_PER_SOL, PassphraseCancelledError, PassphraseGate, PassphraseIntent, PassphraseRequest, SolanaBalance, SolanaConfirmationStatus, SolanaRpcError, formatSol, getLatestBlockhash, getSignatureStatus, getSolanaBalance, parseSol } from '@naculus/connect-core';
|
|
4
4
|
import { PocketConfig, WalletAccount, WalletNamespace, WalletData, StorageSecurityReport } from '@naculus/connector-embedded';
|
|
5
5
|
export { StorageSecurityFinding, StorageSecurityReport, WalletAccount, WalletData, WalletNamespace } from '@naculus/connector-embedded';
|
|
6
|
+
import * as _naculus_connect_appkit_core from '@naculus/connect-appkit-core';
|
|
7
|
+
import { CompareCostsInput, CostComparison, CompareCosts, ExecuteRouteError, ExecuteRouteOptions, ExecutableQuote, ExecuteRouteResult, ExecuteRoute, RouteQuote, RouteQuoteOptions, RouteQuoteInput, GetRouteQuotes, Web3State, WalletChain, ChainCapabilities, AtomicSupport, ChainInfo, NotificationSettingsStorage, SolanaRoles, SolanaRolesAbsence, SolanaIdentity, SolanaSigner, SolanaPayer, AddressValidationLevel } from '@naculus/connect-appkit-core';
|
|
8
|
+
export { AddressValidationLevel, AtomicSupport, ChainCapabilities, ChainInfo, ConnectionStatus, CostComparison, CostComparisonOperation, CostComparisonOptions, ExecuteRouteResult, SolanaIdentity, SolanaPayer, SolanaRoles, SolanaRolesAbsence, SolanaSigner, SolanaWalletFeatures, WalletChain, Web3State } from '@naculus/connect-appkit-core';
|
|
6
9
|
import { Web3Client } from './client.js';
|
|
7
10
|
export { ClientConfig, clearClient, createClient, getClient } from './client.js';
|
|
8
|
-
import * as _naculus_connect_appkit_core from '@naculus/connect-appkit-core';
|
|
9
|
-
import { Web3State, WalletChain, ChainInfo } from '@naculus/connect-appkit-core';
|
|
10
|
-
export { ChainInfo, ConnectionStatus, WalletChain, Web3State } from '@naculus/connect-appkit-core';
|
|
11
11
|
import { Address, PublicClient, WalletClient } from 'viem';
|
|
12
12
|
import { SimulationResult } from '@naculus/wallet-engine';
|
|
13
13
|
export { ApprovalChange, BalanceChange, GasInfo, RiskAssessment, RiskLevel, RiskWarning, SimulationResult, SimulationStatus } from '@naculus/wallet-engine';
|
|
@@ -49,233 +49,59 @@ import '@naculus/connector-passkeys';
|
|
|
49
49
|
import '@naculus/connector-walletconnect';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* useCompareCosts —
|
|
53
|
-
*
|
|
54
|
-
* Provides reactive state for comparing gas costs, fees, and estimated
|
|
55
|
-
* times for a given operation across multiple chains.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* import { useCompareCosts } from "@naculus/connect-appkit-react";
|
|
52
|
+
* useCompareCosts — compare an operation's cost across chains.
|
|
60
53
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* operation: "send_erc20",
|
|
64
|
-
* chains: ["eip155:1", "eip155:137", "eip155:10"],
|
|
65
|
-
* });
|
|
66
|
-
*
|
|
67
|
-
* if (loading) return <div>Loading...</div>;
|
|
68
|
-
*
|
|
69
|
-
* return (
|
|
70
|
-
* <div>
|
|
71
|
-
* {comparisons.map(c => (
|
|
72
|
-
* <div key={c.chain}>
|
|
73
|
-
* {c.chainName}: ${c.totalCost} (gas: ${c.gasCost})
|
|
74
|
-
* </div>
|
|
75
|
-
* ))}
|
|
76
|
-
* </div>
|
|
77
|
-
* );
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
54
|
+
* Types and the value-key for the input live in
|
|
55
|
+
* `@naculus/connect-appkit-core` (`routing`), shared with the Vue composable.
|
|
80
56
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
chainName: string;
|
|
84
|
-
totalCost: string;
|
|
85
|
-
gasCost: string;
|
|
86
|
-
estimatedTimeMs: number;
|
|
87
|
-
}
|
|
88
|
-
type CostComparisonOperation = "send_erc20" | "swap" | "bridge" | (string & {});
|
|
89
|
-
interface CostComparisonOptions {
|
|
90
|
-
amount?: string;
|
|
91
|
-
token?: string;
|
|
92
|
-
[key: string]: unknown;
|
|
93
|
-
}
|
|
94
|
-
interface UseCompareCostsInput {
|
|
95
|
-
operation: CostComparisonOperation;
|
|
96
|
-
chains: string[];
|
|
97
|
-
options?: CostComparisonOptions;
|
|
98
|
-
}
|
|
57
|
+
|
|
58
|
+
type UseCompareCostsInput = CompareCostsInput;
|
|
99
59
|
interface UseCompareCostsReturn {
|
|
100
|
-
/** Sorted cost comparisons (cheapest first) */
|
|
101
60
|
comparisons: CostComparison[];
|
|
102
|
-
/** Whether a comparison request is in flight */
|
|
103
61
|
loading: boolean;
|
|
104
|
-
/** Error that occurred during the last request */
|
|
105
62
|
error: Error | null;
|
|
106
|
-
/** Manually trigger a refresh */
|
|
107
63
|
refresh: () => Promise<void>;
|
|
108
64
|
}
|
|
109
|
-
declare function useCompareCosts(input: UseCompareCostsInput, compareCostsFn?:
|
|
65
|
+
declare function useCompareCosts(input: UseCompareCostsInput, compareCostsFn?: CompareCosts): UseCompareCostsReturn;
|
|
110
66
|
|
|
111
67
|
/**
|
|
112
|
-
* useExecuteRoute —
|
|
113
|
-
*
|
|
114
|
-
* Manages the execution lifecycle of a cross-chain transfer.
|
|
115
|
-
* Tracks execution status, bridge reference, and completion state.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```tsx
|
|
119
|
-
* import { useExecuteRoute } from "@naculus/connect-appkit-react";
|
|
120
|
-
*
|
|
121
|
-
* function RouteExecutionPanel({ quote }) {
|
|
122
|
-
* const { execute, executing, result, error } = useExecuteRoute();
|
|
68
|
+
* useExecuteRoute — execute a quoted cross-chain route once.
|
|
123
69
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* <button onClick={() => execute(quote, "0xRecipient")} disabled={executing}>
|
|
127
|
-
* {executing ? "Executing..." : "Execute Route"}
|
|
128
|
-
* </button>
|
|
129
|
-
* {result && <div>Tx: {result.fromTxHash}</div>}
|
|
130
|
-
* {error && <div>Error: {error.message}</div>}
|
|
131
|
-
* </div>
|
|
132
|
-
* );
|
|
133
|
-
* }
|
|
134
|
-
* ```
|
|
70
|
+
* Types, the recipient check and error normalisation live in
|
|
71
|
+
* `@naculus/connect-appkit-core` (`routing`), shared with the Vue composable.
|
|
135
72
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* CAIP-2 chain the funds arrive on.
|
|
143
|
-
*
|
|
144
|
-
* Optional, and the only thing that makes `recipient` checkable. Without it
|
|
145
|
-
* this hook cannot know whether "0x…" or a base58 string is the right shape,
|
|
146
|
-
* so it does not guess — an EVM-looking check here would reject every
|
|
147
|
-
* legitimate Solana and XRPL recipient. Supply it and the recipient is
|
|
148
|
-
* validated for that namespace before anything is sent.
|
|
149
|
-
*
|
|
150
|
-
* Note that `Quote` as exported from the package root is `useRouteQuote`'s
|
|
151
|
-
* type, which has different fields. A quote from that hook satisfies this
|
|
152
|
-
* one structurally, so `totalCost` and `estimatedTimeMs` arrive undefined
|
|
153
|
-
* and `toChain` has to be supplied by the caller.
|
|
154
|
-
*/
|
|
155
|
-
toChain?: string;
|
|
156
|
-
}
|
|
157
|
-
interface ExecuteRouteResult {
|
|
158
|
-
fromTxHash: string;
|
|
159
|
-
toTxHash?: string;
|
|
160
|
-
}
|
|
161
|
-
interface ExecuteOptions {
|
|
162
|
-
timeoutMs?: number;
|
|
163
|
-
gasLimit?: bigint;
|
|
164
|
-
}
|
|
73
|
+
|
|
74
|
+
type Quote$1 = ExecutableQuote;
|
|
75
|
+
type ExecuteOptions = ExecuteRouteOptions;
|
|
76
|
+
type ExecuteError = ExecuteRouteError;
|
|
77
|
+
|
|
165
78
|
interface UseExecuteRouteReturn {
|
|
166
|
-
/**
|
|
167
|
-
* Execute a route. Resolves with the result, or null if it failed.
|
|
168
|
-
*
|
|
169
|
-
* The result is returned as well as stored because `result` on this object
|
|
170
|
-
* belongs to the render that produced it: a caller awaiting `execute` cannot
|
|
171
|
-
* read it, and for a cross-chain transfer "did the funds move" is not a
|
|
172
|
-
* question to answer on the next render.
|
|
173
|
-
*/
|
|
174
79
|
execute: (quote: Quote$1, recipient: string, options?: ExecuteOptions) => Promise<ExecuteRouteResult | null>;
|
|
175
|
-
/** Whether execution is in progress */
|
|
176
80
|
executing: boolean;
|
|
177
|
-
/** The execution result (populated after successful execution) */
|
|
178
81
|
result: ExecuteRouteResult | null;
|
|
179
|
-
/** Error that occurred during execution */
|
|
180
82
|
error: ExecuteError | null;
|
|
181
|
-
/** Reset execution state back to initial */
|
|
182
83
|
reset: () => void;
|
|
183
84
|
}
|
|
184
|
-
|
|
185
|
-
code: string;
|
|
186
|
-
message: string;
|
|
187
|
-
details?: Record<string, unknown>;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Hook for executing a cross-chain route.
|
|
191
|
-
*
|
|
192
|
-
* Manages the full lifecycle from calling executeRoute to
|
|
193
|
-
* tracking the result. For auto-approve flows, handles the
|
|
194
|
-
* approve → cross-chain sequence.
|
|
195
|
-
*
|
|
196
|
-
* @param executeRouteFn - Function that performs the actual route execution
|
|
197
|
-
*/
|
|
198
|
-
declare function useExecuteRoute(executeRouteFn?: (quote: Quote$1, recipient: string, options?: ExecuteOptions) => Promise<ExecuteRouteResult>): UseExecuteRouteReturn;
|
|
85
|
+
declare function useExecuteRoute(executeRouteFn?: ExecuteRoute): UseExecuteRouteReturn;
|
|
199
86
|
|
|
200
87
|
/**
|
|
201
|
-
* useRouteQuote —
|
|
88
|
+
* useRouteQuote — debounced cross-chain route quotes.
|
|
202
89
|
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* ```tsx
|
|
208
|
-
* import { useRouteQuote } from "@naculus/connect-appkit-react";
|
|
209
|
-
*
|
|
210
|
-
* function QuotePanel() {
|
|
211
|
-
* const { quotes, loading, error, refresh } = useRouteQuote({
|
|
212
|
-
* fromChain: "eip155:1",
|
|
213
|
-
* toChain: "eip155:137",
|
|
214
|
-
* fromToken: "USDC",
|
|
215
|
-
* amount: "1000000",
|
|
216
|
-
* });
|
|
217
|
-
*
|
|
218
|
-
* if (loading) return <div>Loading quotes...</div>;
|
|
219
|
-
* if (error) return <div>Error: {error.message}</div>;
|
|
220
|
-
*
|
|
221
|
-
* return (
|
|
222
|
-
* <div>
|
|
223
|
-
* {quotes.map(q => (
|
|
224
|
-
* <div key={q.routeId}>
|
|
225
|
-
* {q.provider} — {q.netReceiveFormatted} {q.toTokenSymbol}
|
|
226
|
-
* </div>
|
|
227
|
-
* ))}
|
|
228
|
-
* </div>
|
|
229
|
-
* );
|
|
230
|
-
* }
|
|
231
|
-
* ```
|
|
90
|
+
* Types and the "is this amount quotable" decision live in
|
|
91
|
+
* `@naculus/connect-appkit-core` (`routing`), shared with the Vue composable.
|
|
232
92
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
toTokenSymbol: string;
|
|
238
|
-
}
|
|
239
|
-
interface QuoteOptions {
|
|
240
|
-
sortBy?: "cost" | "time" | "balance";
|
|
241
|
-
maxSlippage?: number;
|
|
242
|
-
}
|
|
243
|
-
interface UseRouteQuoteInput {
|
|
244
|
-
fromChain: string;
|
|
245
|
-
toChain: string;
|
|
246
|
-
fromToken: string;
|
|
247
|
-
toToken?: string;
|
|
248
|
-
amount: string;
|
|
249
|
-
options?: QuoteOptions;
|
|
250
|
-
}
|
|
93
|
+
|
|
94
|
+
type Quote = RouteQuote;
|
|
95
|
+
type QuoteOptions = RouteQuoteOptions;
|
|
96
|
+
type UseRouteQuoteInput = RouteQuoteInput;
|
|
251
97
|
interface UseRouteQuoteReturn {
|
|
252
|
-
/** Current list of quotes (sorted by options.sortBy) */
|
|
253
98
|
quotes: Quote[];
|
|
254
|
-
/** Whether a quote request is in flight */
|
|
255
99
|
loading: boolean;
|
|
256
|
-
/** Error that occurred during the last request */
|
|
257
100
|
error: Error | null;
|
|
258
|
-
/** Manually trigger a refresh (re-fetches quotes) */
|
|
259
101
|
refresh: () => Promise<void>;
|
|
260
|
-
/** Clear the current quotes and error state */
|
|
261
102
|
clear: () => void;
|
|
262
103
|
}
|
|
263
|
-
|
|
264
|
-
* Hook for fetching cross-chain route quotes.
|
|
265
|
-
*
|
|
266
|
-
* Automatically re-fetches when input parameters change.
|
|
267
|
-
* Debounces rapid changes to avoid excessive API calls.
|
|
268
|
-
*
|
|
269
|
-
* @param input - Quote request parameters
|
|
270
|
-
* @param getQuoteFn - Function that performs the actual quote fetch
|
|
271
|
-
*/
|
|
272
|
-
declare function useRouteQuote(input: UseRouteQuoteInput, getQuoteFn?: (from: string, to: string, token: string, amount: string, options?: QuoteOptions,
|
|
273
|
-
/**
|
|
274
|
-
* Destination token for a cross-token route. Appended so existing
|
|
275
|
-
* implementations stay assignable; `toToken` was declared on the input and
|
|
276
|
-
* then dropped, so a USDC→USDT quote silently asked for USDC→USDC.
|
|
277
|
-
*/
|
|
278
|
-
toToken?: string) => Promise<Quote[]>): UseRouteQuoteReturn;
|
|
104
|
+
declare function useRouteQuote(input: UseRouteQuoteInput, getQuoteFn?: GetRouteQuotes): UseRouteQuoteReturn;
|
|
279
105
|
|
|
280
106
|
interface AccountEntry {
|
|
281
107
|
/** As the session reports it: CAIP-10 for most wallets, bare hex for some. */
|
|
@@ -433,25 +259,6 @@ interface UseBalanceResult {
|
|
|
433
259
|
}
|
|
434
260
|
declare function useBalance(options?: UseBalanceOptions): UseBalanceResult;
|
|
435
261
|
|
|
436
|
-
/**
|
|
437
|
-
* Whether a wallet can execute a batch atomically.
|
|
438
|
-
*
|
|
439
|
-
* Three values, not two. A wallet that does not implement
|
|
440
|
-
* `wallet_getCapabilities` has not said no — it has said nothing, and EIP-5792
|
|
441
|
-
* is explicit that absence is not a denial. Collapsing that into `false` sends
|
|
442
|
-
* every such wallet down the sequential path, which is the one where an
|
|
443
|
-
* approve can land and the swap it was for can fail.
|
|
444
|
-
*/
|
|
445
|
-
type AtomicSupport = "supported" | "unsupported" | "unknown";
|
|
446
|
-
interface ChainCapabilities {
|
|
447
|
-
/** CAIP-2 chain this describes. */
|
|
448
|
-
chainId: string;
|
|
449
|
-
atomic: AtomicSupport;
|
|
450
|
-
/** Largest batch the wallet will accept, when it says. */
|
|
451
|
-
maxBatchSize?: number;
|
|
452
|
-
/** The raw entry, for capabilities this SDK does not model. */
|
|
453
|
-
raw: WalletCapabilities;
|
|
454
|
-
}
|
|
455
262
|
interface UseCapabilitiesReturn {
|
|
456
263
|
/** Per-chain, keyed by CAIP-2. Null until a query has actually returned. */
|
|
457
264
|
capabilities: Record<string, ChainCapabilities> | null;
|
|
@@ -1058,11 +865,7 @@ declare function useNotification(options?: {
|
|
|
1058
865
|
/** External InAppChannel instance (for sharing between hooks). If omitted, creates one. */
|
|
1059
866
|
channel?: InAppChannel;
|
|
1060
867
|
/** Custom storage for settings (defaults to localStorage) */
|
|
1061
|
-
storage?:
|
|
1062
|
-
getItem: <T>(key: string) => Promise<T | null>;
|
|
1063
|
-
setItem: <T>(key: string, value: T) => Promise<void>;
|
|
1064
|
-
removeItem: (key: string) => Promise<void>;
|
|
1065
|
-
};
|
|
868
|
+
storage?: NotificationSettingsStorage;
|
|
1066
869
|
}): {
|
|
1067
870
|
/** All in-app notifications (newest last) */
|
|
1068
871
|
notifications: NotificationItem[];
|
|
@@ -1714,6 +1517,37 @@ interface UseSolanaBalanceReturn {
|
|
|
1714
1517
|
*/
|
|
1715
1518
|
declare function useSolanaBalance(options?: UseSolanaBalanceOptions): UseSolanaBalanceReturn;
|
|
1716
1519
|
|
|
1520
|
+
interface UseSolanaRolesReturn {
|
|
1521
|
+
/** The roles the connected account can fill, or null with a reason. */
|
|
1522
|
+
roles: SolanaRoles | null;
|
|
1523
|
+
/** Why `roles` is null. Null when it is not. */
|
|
1524
|
+
absence: SolanaRolesAbsence | null;
|
|
1525
|
+
/** Which account this is. Never null while `roles` is present. */
|
|
1526
|
+
identity: SolanaIdentity | null;
|
|
1527
|
+
/**
|
|
1528
|
+
* Signs without submitting. Null when the wallet declared it cannot — a
|
|
1529
|
+
* send-only wallet, the usual shape behind Mobile Wallet Adapter — *and*
|
|
1530
|
+
* null when nothing is known; check `absence` to tell those apart.
|
|
1531
|
+
*/
|
|
1532
|
+
signer: SolanaSigner | null;
|
|
1533
|
+
/** Signs and broadcasts itself. Null under the same two conditions. */
|
|
1534
|
+
payer: SolanaPayer | null;
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Which roles the connected Solana account can actually fill.
|
|
1538
|
+
*
|
|
1539
|
+
* Ask before building a flow. A multisig proposal, a co-signed escrow or a
|
|
1540
|
+
* relayer-submitted transaction needs `signer`; an ordinary transfer needs
|
|
1541
|
+
* `payer`; filling an `authority` field needs only `identity`. A wallet can
|
|
1542
|
+
* answer yes to one and no to another, and finding out here is what keeps
|
|
1543
|
+
* the answer from arriving at the approval prompt instead.
|
|
1544
|
+
*
|
|
1545
|
+
* Synchronous: the connector recorded what the wallet declared at discovery,
|
|
1546
|
+
* so this never prompts. Recomputed when the session or its accounts change,
|
|
1547
|
+
* which is how an in-wallet account switch reaches `identity.address`.
|
|
1548
|
+
*/
|
|
1549
|
+
declare function useSolanaRoles(): UseSolanaRolesReturn;
|
|
1550
|
+
|
|
1717
1551
|
interface UseSolanaTransactionReturn {
|
|
1718
1552
|
/**
|
|
1719
1553
|
* Sign a serialized transaction and return the signed bytes.
|
|
@@ -1885,22 +1719,14 @@ declare function useUserOpStatus(options?: UseUserOpStatusOptions): UseUserOpSta
|
|
|
1885
1719
|
/**
|
|
1886
1720
|
* useValidateDestination — address blackhole prevention hook.
|
|
1887
1721
|
*
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1722
|
+
* The checks live in `@naculus/connect-appkit-core` (`validateDestination`),
|
|
1723
|
+
* shared with the Vue composable. This file only adds React and the
|
|
1724
|
+
* user-facing string for the machine-readable issue.
|
|
1890
1725
|
*
|
|
1891
|
-
* Level: "ok" | "warning" | "blocked"
|
|
1726
|
+
* Level: "ok" | "warning" | "blocked". "ok" means nothing wrong was found —
|
|
1727
|
+
* not that the destination is safe; see the core module for why.
|
|
1892
1728
|
*/
|
|
1893
|
-
|
|
1894
|
-
* What the four syntactic checks below found.
|
|
1895
|
-
*
|
|
1896
|
-
* `"ok"` was `"safe"`, which this function is in no position to say. It checks
|
|
1897
|
-
* that an address is non-empty, well-formed, and not the zero or a burn
|
|
1898
|
-
* address — nothing about whether the recipient is who the user thinks. It
|
|
1899
|
-
* cannot see an address-poisoning lookalike, a contract that will not release
|
|
1900
|
-
* the funds, or a known-malicious destination. Labelling that "safe" put a
|
|
1901
|
-
* green tick beside a scammer's address.
|
|
1902
|
-
*/
|
|
1903
|
-
type AddressValidationLevel = "ok" | "warning" | "blocked";
|
|
1729
|
+
|
|
1904
1730
|
interface AddressValidationResult {
|
|
1905
1731
|
isValid: boolean;
|
|
1906
1732
|
level: AddressValidationLevel;
|
|
@@ -1913,7 +1739,7 @@ interface UseValidateDestinationOptions {
|
|
|
1913
1739
|
interface UseValidateDestinationReturn {
|
|
1914
1740
|
validation: AddressValidationResult;
|
|
1915
1741
|
}
|
|
1916
|
-
declare function useValidateDestination({ address }: UseValidateDestinationOptions): UseValidateDestinationReturn;
|
|
1742
|
+
declare function useValidateDestination({ address, }: UseValidateDestinationOptions): UseValidateDestinationReturn;
|
|
1917
1743
|
|
|
1918
1744
|
declare function useViemClient(): {
|
|
1919
1745
|
publicClient: PublicClient | null;
|
|
@@ -2267,4 +2093,4 @@ declare const AppkitToggleGroup: StencilReactComponent<AppkitToggleGroup$1, Appk
|
|
|
2267
2093
|
type AppkitTooltipEvents = NonNullable<unknown>;
|
|
2268
2094
|
declare const AppkitTooltip: StencilReactComponent<AppkitTooltip$1, AppkitTooltipEvents, Components.AppkitTooltip>;
|
|
2269
2095
|
|
|
2270
|
-
export { type
|
|
2096
|
+
export { type AddressValidationResult, AppkitAccordion, type AppkitAccordionEvents, AppkitAccountButton, type AppkitAccountButtonEvents, AppkitAlertDialog, type AppkitAlertDialogEvents, AppkitAvatar, type AppkitAvatarEvents, AppkitBadge, type AppkitBadgeEvents, AppkitButton, type AppkitButtonEvents, AppkitCard, AppkitCardContent, type AppkitCardContentEvents, AppkitCardDescription, type AppkitCardDescriptionEvents, type AppkitCardEvents, AppkitCardFooter, type AppkitCardFooterEvents, AppkitCardHeader, type AppkitCardHeaderEvents, AppkitCardTitle, type AppkitCardTitleEvents, AppkitCheckbox, type AppkitCheckboxEvents, AppkitCollapsible, type AppkitCollapsibleEvents, AppkitConnectButton, type AppkitConnectButtonEvents, AppkitDialog, type AppkitDialogEvents, AppkitDropdownMenu, type AppkitDropdownMenuEvents, AppkitInput, type AppkitInputEvents, AppkitPopover, type AppkitPopoverEvents, AppkitProgress, type AppkitProgressEvents, AppkitScrollArea, type AppkitScrollAreaEvents, AppkitSelect, type AppkitSelectEvents, AppkitSeparator, type AppkitSeparatorEvents, AppkitSkeleton, type AppkitSkeletonEvents, AppkitSwitch, type AppkitSwitchEvents, AppkitTabs, type AppkitTabsEvents, AppkitToggleGroup, type AppkitToggleGroupEvents, AppkitTooltip, type AppkitTooltipEvents, DEFAULT_EVM_CHAINS, type DelegationPolicyPreview, type EmbeddedWalletAccountView, type EmbeddedWalletView, type EvmTransaction, type ExecuteError, type ExecuteOptions, type ExecutionPreview, type ExecutionRoute, type Locale, type PolicyExecutionAdapter, type PolicyExecutionCheck, type PolicyExecutionRoute, type PolicyExecutionSubmission, type PreparedPolicyExecution, type Quote, type QuoteOptions, type SIWxConfig, type SendCallsStatus, type TokenBalanceResult, type TokenInfo, TokenSelector, type TokenSelectorProps, TxMonitorContext, type TxMonitorLike, type TxStatus, type TxStatusEntry, type UseCapabilitiesReturn, type UseCompareCostsInput, type UseCompareCostsReturn, type UseCreateSessionKeyReturn, type UseDelegationPolicyOptions, type UseDelegationPolicyReturn, type UseDelegationReturn, type UseERC20AllowanceOptions, type UseERC20AllowanceReturn, type UseERC20ApproveOptions, type UseERC20ApproveReturn, type UseERC20TransferOptions, type UseERC20TransferReturn, type UseERC20TransferSimulationOptions, type UseERC20TransferSimulationReturn, type UseEmbeddedWalletReturn, type UseExecuteCallsOptions, type UseExecuteCallsReturn, type UseExecuteRouteReturn, type UseLastTxResult, type UseLookupAddressOptions, type UseLookupAddressResult, type UsePassphraseGateReturn, type UseResolveNameOptions, type UseResolveNameResult, type UseRevokeSessionReturn, type UseRouteQuoteInput, type UseRouteQuoteReturn, type UseSIWxLoginOptions, type UseSIWxLoginReturn, type UseSIWxSessionOptions, type UseSIWxSessionReturn, type UseSendUserOperationOptions, type UseSendUserOperationReturn, type UseSendWithSessionReturn, type UseSessionKeysReturn, type UseSessionReturn, type UseSignInWithEthereumOptions, type UseSignInWithEthereumReturn, type UseSignInWithXOptions, type UseSignInWithXReturn, type UseSimulateTransferOptions, type UseSimulateTransferReturn, type UseSiwxAuthSessionOptions, type UseSiwxAuthSessionReturn, type UseSmartAccountOptions, type UseSmartAccountReturn, type UseSolanaAccountReturn, type UseSolanaBalanceOptions, type UseSolanaBalanceReturn, type UseSolanaRolesReturn, type UseSolanaTransactionReturn, type UseSwitchChainReturn, type UseTokenBalanceOptions, type UseTokenListOptions, type UseTokenListReturn, type UseTokenSearchReturn, type UseTransactionSimulationReturn, type UseTxHistoryResult, type UseTxMonitorResult, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseValidateDestinationOptions, type UseValidateDestinationReturn, type UseWalletReturn, type UseWeb3ErrorHandlerReturn, type UserFriendlyError, type UserOpStatus, WALLET_ERROR_DESCRIPTIONS, WALLET_ERROR_TITLES, type Web3Actions, Web3Client, type Web3ConnectConfig, Web3ConnectProvider, type Web3ConnectProviderProps, Web3Context, buildDelegationPolicyMessage, getChainById, getDefaultChains, getLocale, getUserFriendlyError, isRetryableError, resetSessionKeyManager, setLocale, t, useAccount, useBalance, useCapabilities, useChain, useCompareCosts, useConnect, useCreateSessionKey, useDelegation, useDelegationPolicy, useDisconnect, useERC20Allowance, 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, useViemClient, useWallet, useWeb3, useWeb3ErrorHandler, validateDestination };
|