@qorechain/react 0.5.0
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/LICENSE +201 -0
- package/README.md +175 -0
- package/dist/index.cjs +447 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +401 -0
- package/dist/index.d.ts +401 -0
- package/dist/index.js +435 -0
- package/dist/index.js.map +1 -0
- package/package.json +58 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { CreateClientOptions, QoreChainClient, TxClient, Coin, TxFeeInput, EncodeObject, BroadcastResult, PqcStatus } from '@qorechain/sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The QoreChain React context: a {@link QoreChainProvider} that holds a single
|
|
6
|
+
* composed {@link QoreChainClient} (from `@qorechain/sdk`'s {@link createClient})
|
|
7
|
+
* plus the live wallet connection state, and the {@link useQoreContext} hook the
|
|
8
|
+
* other hooks build on.
|
|
9
|
+
*
|
|
10
|
+
* One provider near the root of the app is enough; every hook
|
|
11
|
+
* ({@link useQoreClient}, {@link useAccount}, {@link useBalance},
|
|
12
|
+
* {@link useConnect}, {@link useTx}, {@link usePqcStatus}) reads from it.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** A connected wallet's resolved addresses, by VM family. */
|
|
16
|
+
interface ConnectedAddresses {
|
|
17
|
+
/** Native bech32 (`qor1...`) address, when a Cosmos wallet is connected. */
|
|
18
|
+
native?: string;
|
|
19
|
+
/** EVM (`0x...`) address, when an EVM wallet is connected. */
|
|
20
|
+
evm?: string;
|
|
21
|
+
/** SVM (base58) address, when an SVM wallet is connected. */
|
|
22
|
+
svm?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The live connection status of the provider. */
|
|
25
|
+
type ConnectionStatus = "disconnected" | "connecting" | "connected" | "error";
|
|
26
|
+
/** Which wallet family is connected. */
|
|
27
|
+
type ConnectedWalletKind = "keplr" | "leap" | "evm" | "svm";
|
|
28
|
+
/** The full context value exposed by {@link QoreChainProvider}. */
|
|
29
|
+
interface QoreContextValue {
|
|
30
|
+
/** The composed read client (created once from the provider config). */
|
|
31
|
+
client: QoreChainClient;
|
|
32
|
+
/** Current connection status. */
|
|
33
|
+
status: ConnectionStatus;
|
|
34
|
+
/** The connected addresses, keyed by VM family. Empty when disconnected. */
|
|
35
|
+
addresses: ConnectedAddresses;
|
|
36
|
+
/** Which wallet is connected, if any. */
|
|
37
|
+
wallet?: ConnectedWalletKind;
|
|
38
|
+
/** The connected signing client, if any (set by `useConnect`). */
|
|
39
|
+
tx?: TxClient;
|
|
40
|
+
/** The last connection error, if `status === "error"`. */
|
|
41
|
+
error?: Error;
|
|
42
|
+
/**
|
|
43
|
+
* Internal: replace the connection state. Used by {@link useConnect}; apps use
|
|
44
|
+
* the hooks rather than calling this directly.
|
|
45
|
+
*/
|
|
46
|
+
setConnection(next: {
|
|
47
|
+
status: ConnectionStatus;
|
|
48
|
+
addresses?: ConnectedAddresses;
|
|
49
|
+
wallet?: ConnectedWalletKind;
|
|
50
|
+
tx?: TxClient;
|
|
51
|
+
error?: Error;
|
|
52
|
+
}): void;
|
|
53
|
+
}
|
|
54
|
+
/** Configuration for {@link QoreChainProvider}, forwarded to `createClient`. */
|
|
55
|
+
interface QoreChainProviderConfig {
|
|
56
|
+
/** Network preset to target. Defaults to `"testnet"`. */
|
|
57
|
+
network?: CreateClientOptions["network"];
|
|
58
|
+
/** Endpoint overrides merged over the preset's defaults. */
|
|
59
|
+
endpoints?: CreateClientOptions["endpoints"];
|
|
60
|
+
/** Chain id override. */
|
|
61
|
+
chainId?: CreateClientOptions["chainId"];
|
|
62
|
+
/** Additional HTTP transport options shared by the read clients. */
|
|
63
|
+
http?: CreateClientOptions["http"];
|
|
64
|
+
}
|
|
65
|
+
/** Props for {@link QoreChainProvider}. */
|
|
66
|
+
interface QoreChainProviderProps {
|
|
67
|
+
/** Network + endpoint configuration for the underlying read client. */
|
|
68
|
+
config: QoreChainProviderConfig;
|
|
69
|
+
/**
|
|
70
|
+
* A pre-built client to use instead of constructing one from `config`. Useful
|
|
71
|
+
* for tests (inject a mocked client) and advanced composition.
|
|
72
|
+
*/
|
|
73
|
+
client?: QoreChainClient;
|
|
74
|
+
/** The app subtree that consumes the QoreChain hooks. */
|
|
75
|
+
children: ReactNode;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Provide a single composed QoreChain client + connection state to the subtree.
|
|
79
|
+
*
|
|
80
|
+
* The client is created once (memoized on the config identity), so place the
|
|
81
|
+
* provider above any component that uses the hooks. Pass `client` to inject a
|
|
82
|
+
* pre-built (or mocked) client instead.
|
|
83
|
+
*/
|
|
84
|
+
declare function QoreChainProvider(props: QoreChainProviderProps): ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Read the raw {@link QoreContextValue}. Throws when used outside a
|
|
87
|
+
* {@link QoreChainProvider}. Most apps use the purpose-built hooks instead.
|
|
88
|
+
*/
|
|
89
|
+
declare function useQoreContext(): QoreContextValue;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* {@link useQoreClient} — the composed read client held by the provider.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Return the {@link QoreChainClient} created by the nearest
|
|
97
|
+
* {@link QoreChainProvider}. Use it for ad-hoc reads (`client.rest`,
|
|
98
|
+
* `client.qor`, `client.fees`, ...) not already covered by a dedicated hook.
|
|
99
|
+
*/
|
|
100
|
+
declare function useQoreClient(): QoreChainClient;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* {@link useAccount} — the connected wallet's addresses and status.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/** The shape returned by {@link useAccount}. */
|
|
107
|
+
interface UseAccountResult {
|
|
108
|
+
/** All connected addresses, by VM family (native / evm / svm). */
|
|
109
|
+
addresses: ConnectedAddresses;
|
|
110
|
+
/** The primary address (native preferred, then evm, then svm), if any. */
|
|
111
|
+
address?: string;
|
|
112
|
+
/** Whether a wallet is connected. */
|
|
113
|
+
isConnected: boolean;
|
|
114
|
+
/** The current connection status. */
|
|
115
|
+
status: ConnectionStatus;
|
|
116
|
+
/** Which wallet is connected, if any. */
|
|
117
|
+
wallet?: ConnectedWalletKind;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Return the connected account's address(es) — native (bech32), EVM (`0x...`),
|
|
121
|
+
* and/or SVM (base58) — plus a convenience primary `address` and connection
|
|
122
|
+
* status. Empty until a wallet is connected via {@link useConnect}.
|
|
123
|
+
*/
|
|
124
|
+
declare function useAccount(): UseAccountResult;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* {@link useBalance} — a bank balance with optional auto-refresh.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/** Options for {@link useBalance}. */
|
|
131
|
+
interface UseBalanceOptions {
|
|
132
|
+
/**
|
|
133
|
+
* The denom to read. Defaults to the network's base denom (e.g. `uqor`).
|
|
134
|
+
*/
|
|
135
|
+
denom?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Auto-refresh interval in milliseconds. `0` (the default) disables polling;
|
|
138
|
+
* the balance is then fetched once on mount / address change.
|
|
139
|
+
*/
|
|
140
|
+
refreshInterval?: number;
|
|
141
|
+
/** Skip fetching entirely (e.g. while disconnected). Defaults to `false`. */
|
|
142
|
+
enabled?: boolean;
|
|
143
|
+
}
|
|
144
|
+
/** The shape returned by {@link useBalance}. */
|
|
145
|
+
interface UseBalanceResult {
|
|
146
|
+
/** The balance coin (`{ denom, amount }`), once loaded. */
|
|
147
|
+
data?: Coin;
|
|
148
|
+
/** Whether a fetch is in flight. */
|
|
149
|
+
isLoading: boolean;
|
|
150
|
+
/** The last fetch error, if any. */
|
|
151
|
+
error?: Error;
|
|
152
|
+
/** Manually re-fetch the balance. */
|
|
153
|
+
refetch(): Promise<void>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Read the bank balance of `address` (or the connected account when omitted) in
|
|
157
|
+
* a denom. Re-fetches on address / denom change and, when `refreshInterval > 0`,
|
|
158
|
+
* polls on that interval. Returns `{ data, isLoading, error, refetch }`.
|
|
159
|
+
*/
|
|
160
|
+
declare function useBalance(address?: string, options?: UseBalanceOptions): UseBalanceResult;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* {@link useConnect} / {@link useWallet} — multi-wallet connect.
|
|
164
|
+
*
|
|
165
|
+
* Wraps the EXISTING wallet adapters so a component connects with one call and
|
|
166
|
+
* the resolved signer + addresses land in the provider's connection state:
|
|
167
|
+
* - Keplr / Leap (Cosmos) via `@qorechain/sdk`'s {@link getCosmosWallet}, which
|
|
168
|
+
* suggests + enables the chain and returns a CosmJS signer; the signer is
|
|
169
|
+
* connected through `client.connectTx` so `useTx` can sign.
|
|
170
|
+
* - MetaMask / any EIP-1193 wallet (EVM) via `eth_requestAccounts` on the
|
|
171
|
+
* injected provider (`window.ethereum` by default).
|
|
172
|
+
* - Phantom / Wallet-Standard (SVM) via the injected Solana provider
|
|
173
|
+
* (`window.solana`); returns the connected base58 address.
|
|
174
|
+
*
|
|
175
|
+
* The hook keeps its dependencies light: the EVM and SVM paths talk to the
|
|
176
|
+
* injected provider's standard request API directly, so neither viem nor a
|
|
177
|
+
* Solana SDK is pulled in. For full EVM/SVM tooling, use `@qorechain/evm` /
|
|
178
|
+
* `@qorechain/svm` alongside this hook.
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/** A minimal EIP-1193 provider surface (MetaMask et al.). */
|
|
182
|
+
interface Eip1193Like {
|
|
183
|
+
request(args: {
|
|
184
|
+
method: string;
|
|
185
|
+
params?: unknown[];
|
|
186
|
+
}): Promise<unknown>;
|
|
187
|
+
}
|
|
188
|
+
/** A minimal injected Solana provider surface (Phantom / Wallet-Standard). */
|
|
189
|
+
interface SolanaProviderLike {
|
|
190
|
+
connect(): Promise<{
|
|
191
|
+
publicKey: {
|
|
192
|
+
toString(): string;
|
|
193
|
+
};
|
|
194
|
+
}>;
|
|
195
|
+
publicKey?: {
|
|
196
|
+
toString(): string;
|
|
197
|
+
} | null;
|
|
198
|
+
}
|
|
199
|
+
/** Which wallet to connect via {@link UseConnectResult.connect}. */
|
|
200
|
+
type ConnectKind = "keplr" | "leap" | "evm" | "svm";
|
|
201
|
+
/** Options for a single {@link UseConnectResult.connect} call. */
|
|
202
|
+
interface ConnectOptions {
|
|
203
|
+
/** Which wallet to connect. Defaults to `"keplr"`. */
|
|
204
|
+
kind?: ConnectKind;
|
|
205
|
+
/**
|
|
206
|
+
* Inject the wallet provider directly instead of reading it off `window`
|
|
207
|
+
* (primarily for tests). The accepted shape depends on `kind`.
|
|
208
|
+
*/
|
|
209
|
+
provider?: unknown;
|
|
210
|
+
/** Use Amino signing for the Cosmos path (forwarded to `getCosmosWallet`). */
|
|
211
|
+
preferAmino?: boolean;
|
|
212
|
+
}
|
|
213
|
+
/** The shape returned by {@link useConnect} / {@link useWallet}. */
|
|
214
|
+
interface UseConnectResult {
|
|
215
|
+
/** Connect a wallet; updates the provider's connection state. */
|
|
216
|
+
connect(opts?: ConnectOptions): Promise<void>;
|
|
217
|
+
/** Disconnect: clears the connection state. */
|
|
218
|
+
disconnect(): void;
|
|
219
|
+
/** The current connection status. */
|
|
220
|
+
status: ReturnType<typeof useQoreContext>["status"];
|
|
221
|
+
/** Whether a connection attempt is in flight. */
|
|
222
|
+
isConnecting: boolean;
|
|
223
|
+
/** The last connection error, if any. */
|
|
224
|
+
error?: Error;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Multi-wallet connect bound to the {@link QoreChainProvider}.
|
|
228
|
+
*
|
|
229
|
+
* On success the provider's connection state holds the resolved addresses, the
|
|
230
|
+
* connected wallet kind, and (for Cosmos) a `TxClient` for signing.
|
|
231
|
+
*/
|
|
232
|
+
declare function useConnect(): UseConnectResult;
|
|
233
|
+
/** Alias for {@link useConnect} — the multi-wallet connect hook. */
|
|
234
|
+
declare const useWallet: typeof useConnect;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* {@link useTx} — send a transaction and track its status.
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
/** The lifecycle status of a {@link useTx} send. */
|
|
241
|
+
type TxStatus = "idle" | "pending" | "success" | "error";
|
|
242
|
+
/** Options for {@link UseTxResult.send}. */
|
|
243
|
+
interface SendOptions {
|
|
244
|
+
/** Fee: an explicit `StdFee` or `"auto"`. Default `"auto"`. */
|
|
245
|
+
fee?: TxFeeInput;
|
|
246
|
+
/** Optional memo. */
|
|
247
|
+
memo?: string;
|
|
248
|
+
}
|
|
249
|
+
/** The shape returned by {@link useTx}. */
|
|
250
|
+
interface UseTxResult {
|
|
251
|
+
/** Sign + broadcast arbitrary messages with the connected signer. */
|
|
252
|
+
send(messages: EncodeObject[], opts?: SendOptions): Promise<BroadcastResult>;
|
|
253
|
+
/** Convenience: send a bank transfer of `amount` to `toAddress`. */
|
|
254
|
+
sendTokens(toAddress: string, amount: Coin[], opts?: SendOptions): Promise<BroadcastResult>;
|
|
255
|
+
/** The current send status. */
|
|
256
|
+
status: TxStatus;
|
|
257
|
+
/** The last broadcast result, on success. */
|
|
258
|
+
data?: BroadcastResult;
|
|
259
|
+
/** The last error, on failure. */
|
|
260
|
+
error?: Error;
|
|
261
|
+
/** Whether a send is in flight. */
|
|
262
|
+
isPending: boolean;
|
|
263
|
+
/** Reset status/data/error back to idle. */
|
|
264
|
+
reset(): void;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Send transactions with the connected signer and track `{ status, data, error }`.
|
|
268
|
+
*
|
|
269
|
+
* Requires a connected wallet that produced a `TxClient` (the Cosmos path of
|
|
270
|
+
* {@link useConnect}). `send` takes raw `{ typeUrl, value }` messages (use the
|
|
271
|
+
* `msg.*` composers from `@qorechain/sdk`); `sendTokens` is a bank-transfer
|
|
272
|
+
* shortcut.
|
|
273
|
+
*/
|
|
274
|
+
declare function useTx(): UseTxResult;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* {@link usePqcStatus} — read an address's quantum-safe (PQC) registration state.
|
|
278
|
+
*
|
|
279
|
+
* Built on the SDK's quantum-safe DX helpers ({@link getPqcStatus} /
|
|
280
|
+
* {@link isPqcRegistered}), which call `qor_getPQCKeyStatus`. Powers the
|
|
281
|
+
* {@link QuantumSafeBadge} component.
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/** Options for {@link usePqcStatus}. */
|
|
285
|
+
interface UsePqcStatusOptions {
|
|
286
|
+
/** Skip fetching (e.g. while disconnected). Defaults to `false`. */
|
|
287
|
+
enabled?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Auto-refresh interval in milliseconds. `0` (default) disables polling; the
|
|
290
|
+
* status is fetched once per address change.
|
|
291
|
+
*/
|
|
292
|
+
refreshInterval?: number;
|
|
293
|
+
}
|
|
294
|
+
/** The shape returned by {@link usePqcStatus}. */
|
|
295
|
+
interface UsePqcStatusResult {
|
|
296
|
+
/** The normalized PQC status, once loaded. */
|
|
297
|
+
data?: PqcStatus;
|
|
298
|
+
/** Whether the address has a registered PQC key (convenience). */
|
|
299
|
+
isRegistered: boolean;
|
|
300
|
+
/** Whether a fetch is in flight. */
|
|
301
|
+
isLoading: boolean;
|
|
302
|
+
/** The last fetch error, if any. */
|
|
303
|
+
error?: Error;
|
|
304
|
+
/** Manually re-fetch the status. */
|
|
305
|
+
refetch(): Promise<void>;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Read whether `address` (or the connected account when omitted) is quantum-safe
|
|
309
|
+
* — i.e. has a registered PQC key on QoreChain. Returns
|
|
310
|
+
* `{ data, isRegistered, isLoading, error, refetch }`.
|
|
311
|
+
*/
|
|
312
|
+
declare function usePqcStatus(address?: string, options?: UsePqcStatusOptions): UsePqcStatusResult;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* {@link ConnectButton} — a minimal, headless-ish multi-wallet connect control.
|
|
316
|
+
*
|
|
317
|
+
* Renders a connect button (or a small picker when multiple wallet kinds are
|
|
318
|
+
* offered) wired to {@link useConnect}; once connected it shows the truncated
|
|
319
|
+
* address and a disconnect action. Styling is intentionally light — pass
|
|
320
|
+
* `className` / `style` to theme it, or rebuild your own UI on the hooks.
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/** Props for {@link ConnectButton}. */
|
|
324
|
+
interface ConnectButtonProps {
|
|
325
|
+
/**
|
|
326
|
+
* The wallet kinds to offer. With one entry the button connects it directly;
|
|
327
|
+
* with several it renders a button per kind. Defaults to `["keplr"]`.
|
|
328
|
+
*/
|
|
329
|
+
wallets?: ConnectKind[];
|
|
330
|
+
/** Optional class applied to the root element. */
|
|
331
|
+
className?: string;
|
|
332
|
+
/** Optional inline styles merged onto the root element. */
|
|
333
|
+
style?: CSSProperties;
|
|
334
|
+
/** Label shown before connecting. Defaults to `"Connect Wallet"`. */
|
|
335
|
+
label?: string;
|
|
336
|
+
/** Render-prop override: full control over the rendered UI. */
|
|
337
|
+
children?: (state: ConnectButtonRenderState) => ReactNode;
|
|
338
|
+
}
|
|
339
|
+
/** State passed to the {@link ConnectButtonProps.children} render-prop. */
|
|
340
|
+
interface ConnectButtonRenderState {
|
|
341
|
+
/** Whether a wallet is connected. */
|
|
342
|
+
isConnected: boolean;
|
|
343
|
+
/** Whether a connection attempt is in flight. */
|
|
344
|
+
isConnecting: boolean;
|
|
345
|
+
/** The connected primary address, if any. */
|
|
346
|
+
address?: string;
|
|
347
|
+
/** Connect a specific wallet kind. */
|
|
348
|
+
connect(kind?: ConnectKind): void;
|
|
349
|
+
/** Disconnect. */
|
|
350
|
+
disconnect(): void;
|
|
351
|
+
/** The last connection error, if any. */
|
|
352
|
+
error?: Error;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* A small connect / disconnect control. Single-wallet by default; pass
|
|
356
|
+
* `wallets` for a multi-wallet picker, or `children` for full custom rendering.
|
|
357
|
+
*/
|
|
358
|
+
declare function ConnectButton(props: ConnectButtonProps): ReactNode;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* {@link QuantumSafeBadge} — a "Quantum-safe" indicator for an address.
|
|
362
|
+
*
|
|
363
|
+
* Reads the address's PQC registration via {@link usePqcStatus} and renders a
|
|
364
|
+
* compact badge: a positive "Quantum-safe" state when a PQC key is registered,
|
|
365
|
+
* otherwise a muted "Not quantum-safe" state (or nothing, with
|
|
366
|
+
* `hideWhenUnsafe`). Styling is minimal; theme it via `className` / `style` or
|
|
367
|
+
* supply a `children` render-prop.
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
/** Props for {@link QuantumSafeBadge}. */
|
|
371
|
+
interface QuantumSafeBadgeProps {
|
|
372
|
+
/** Address to check. Defaults to the connected account. */
|
|
373
|
+
address?: string;
|
|
374
|
+
/** When `true`, render nothing if the address is not quantum-safe. */
|
|
375
|
+
hideWhenUnsafe?: boolean;
|
|
376
|
+
/** Label for the safe state. Defaults to `"Quantum-safe"`. */
|
|
377
|
+
safeLabel?: string;
|
|
378
|
+
/** Label for the unsafe state. Defaults to `"Not quantum-safe"`. */
|
|
379
|
+
unsafeLabel?: string;
|
|
380
|
+
/** Optional class applied to the root element. */
|
|
381
|
+
className?: string;
|
|
382
|
+
/** Optional inline styles merged onto the root element. */
|
|
383
|
+
style?: CSSProperties;
|
|
384
|
+
/** Render-prop override for full control over the rendered UI. */
|
|
385
|
+
children?: (state: QuantumSafeRenderState) => ReactNode;
|
|
386
|
+
}
|
|
387
|
+
/** State passed to the {@link QuantumSafeBadgeProps.children} render-prop. */
|
|
388
|
+
interface QuantumSafeRenderState {
|
|
389
|
+
/** Whether the address has a registered PQC key. */
|
|
390
|
+
isRegistered: boolean;
|
|
391
|
+
/** Whether the status is still loading. */
|
|
392
|
+
isLoading: boolean;
|
|
393
|
+
/** The last fetch error, if any. */
|
|
394
|
+
error?: Error;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* A badge showing whether an address is quantum-safe (has a registered PQC key).
|
|
398
|
+
*/
|
|
399
|
+
declare function QuantumSafeBadge(props: QuantumSafeBadgeProps): ReactNode;
|
|
400
|
+
|
|
401
|
+
export { ConnectButton, type ConnectButtonProps, type ConnectButtonRenderState, type ConnectKind, type ConnectOptions, type ConnectedAddresses, type ConnectedWalletKind, type ConnectionStatus, type Eip1193Like, QoreChainProvider, type QoreChainProviderConfig, type QoreChainProviderProps, type QoreContextValue, QuantumSafeBadge, type QuantumSafeBadgeProps, type QuantumSafeRenderState, type SendOptions, type SolanaProviderLike, type TxStatus, type UseAccountResult, type UseBalanceOptions, type UseBalanceResult, type UseConnectResult, type UsePqcStatusOptions, type UsePqcStatusResult, type UseTxResult, useAccount, useBalance, useConnect, usePqcStatus, useQoreClient, useQoreContext, useTx, useWallet };
|