@zama-fhe/react-sdk 3.0.0-alpha.1 → 3.0.0-alpha.10
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/dist/index.d.ts +86 -98
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/wagmi/index.js +1 -1
- package/dist/wagmi/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import * as _$_zama_fhe_sdk0 from "@zama-fhe/sdk";
|
|
4
|
-
import {
|
|
5
|
-
import { ApproveUnderlyingParams,
|
|
4
|
+
import { Address, BatchBalancesResult, ClearValueType, DelegatedUserDecryptParams, EIP712TypedData, EncryptParams, GenericSigner, GenericStorage, PaginatedResult, PublicKeyData, ReadonlyToken, RelayerSDK, TokenWrapperPair, TokenWrapperPairWithMetadata, TransactionResult, ZKProofLike, ZamaSDK, ZamaSDKEventListener } from "@zama-fhe/sdk";
|
|
5
|
+
import { ApproveUnderlyingParams, BatchDecryptBalancesAsParams, ConfidentialApproveParams, ConfidentialTransferFromParams, ConfidentialTransferParams, CreateDelegatedUserDecryptEIP712Params, CreateEIP712Params, DecryptBalanceAsParams, DecryptResult, DelegateDecryptionParams, DelegationStatusData, FinalizeUnwrapParams, ResumeUnshieldParams, RevokeDelegationParams, ShieldParams, TokenMetadata, UnshieldAllParams, UnshieldParams, UnwrapParams, UserDecryptQueryConfig } from "@zama-fhe/sdk/query";
|
|
6
6
|
import * as _$_tanstack_react_query0 from "@tanstack/react-query";
|
|
7
|
-
import {
|
|
7
|
+
import { UseMutationOptions, UseMutationResult, UseQueryOptions } from "@tanstack/react-query";
|
|
8
8
|
import { PropsWithChildren } from "react";
|
|
9
9
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
10
|
import * as _$_zama_fhe_relayer_sdk_web0 from "@zama-fhe/relayer-sdk/web";
|
|
@@ -13,16 +13,16 @@ import * as _$_zama_fhe_relayer_sdk_web0 from "@zama-fhe/relayer-sdk/web";
|
|
|
13
13
|
/** Props for {@link ZamaProvider}. */
|
|
14
14
|
interface ZamaProviderProps extends PropsWithChildren {
|
|
15
15
|
/** FHE relayer backend (RelayerWeb for browser, RelayerNode for server). */
|
|
16
|
-
relayer: RelayerSDK
|
|
16
|
+
relayer: RelayerSDK;
|
|
17
17
|
/** Wallet signer (`ViemSigner`, `EthersSigner`, or custom {@link GenericSigner}). */
|
|
18
|
-
signer: GenericSigner
|
|
18
|
+
signer: GenericSigner;
|
|
19
19
|
/** Credential storage backend (IndexedDBStorage for browser, MemoryStorage for tests). */
|
|
20
|
-
storage: GenericStorage
|
|
20
|
+
storage: GenericStorage;
|
|
21
21
|
/**
|
|
22
22
|
* Session storage for wallet signatures. Defaults to in-memory (lost on reload).
|
|
23
23
|
* Pass a `chrome.storage.session`-backed store for web extensions.
|
|
24
24
|
*/
|
|
25
|
-
sessionStorage?: GenericStorage
|
|
25
|
+
sessionStorage?: GenericStorage;
|
|
26
26
|
/**
|
|
27
27
|
* How long the ML-KEM re-encryption keypair remains valid, in seconds.
|
|
28
28
|
* Default: `86400` (1 day). Must be positive — `0` is rejected.
|
|
@@ -39,14 +39,14 @@ interface ZamaProviderProps extends PropsWithChildren {
|
|
|
39
39
|
* Per-chain wrappers registry address overrides, merged on top of built-in defaults.
|
|
40
40
|
* Use this for custom or local chains (e.g. Hardhat) where no default registry exists.
|
|
41
41
|
*/
|
|
42
|
-
registryAddresses?: Record<number, Address
|
|
42
|
+
registryAddresses?: Record<number, Address>;
|
|
43
43
|
/**
|
|
44
44
|
* How long cached registry results remain valid, in seconds.
|
|
45
45
|
* Default: `86400` (24 hours).
|
|
46
46
|
*/
|
|
47
47
|
registryTTL?: number;
|
|
48
48
|
/** Callback invoked on SDK lifecycle events. */
|
|
49
|
-
onEvent?: ZamaSDKEventListener
|
|
49
|
+
onEvent?: ZamaSDKEventListener;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Provides a {@link ZamaSDK} instance to all descendant hooks.
|
|
@@ -80,7 +80,7 @@ declare function ZamaProvider({
|
|
|
80
80
|
* const token = sdk.createReadonlyToken("0x...");
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare function useZamaSDK(): ZamaSDK
|
|
83
|
+
declare function useZamaSDK(): ZamaSDK;
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/relayer/use-encrypt.d.ts
|
|
86
86
|
/**
|
|
@@ -98,14 +98,17 @@ declare function useZamaSDK(): ZamaSDK$1;
|
|
|
98
98
|
* encrypt.mutate({ values: [{ value: 1000n, type: "euint64" }], contractAddress: "0x...", userAddress: "0x..." });
|
|
99
99
|
* ```
|
|
100
100
|
*/
|
|
101
|
-
declare function useEncrypt(): _$_tanstack_react_query0.UseMutationResult<
|
|
101
|
+
declare function useEncrypt(): _$_tanstack_react_query0.UseMutationResult<Readonly<{
|
|
102
|
+
handles: Uint8Array[];
|
|
103
|
+
inputProof: Uint8Array;
|
|
104
|
+
}>, Error, EncryptParams, unknown>;
|
|
102
105
|
//#endregion
|
|
103
106
|
//#region src/relayer/use-user-decrypt.d.ts
|
|
104
107
|
/**
|
|
105
108
|
* React hook for FHE user decryption. Thin wrapper around
|
|
106
109
|
* `userDecryptQueryOptions` with `useQuery` semantics.
|
|
107
110
|
*/
|
|
108
|
-
declare function useUserDecrypt(config: UserDecryptQueryConfig
|
|
111
|
+
declare function useUserDecrypt(config: UserDecryptQueryConfig, options?: Omit<UseQueryOptions<DecryptResult>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<Readonly<Record<`0x${string}`, _$_zama_fhe_sdk0.ClearValueType>>, Error>;
|
|
109
112
|
/** Return type of {@link useUserDecrypt}. */
|
|
110
113
|
type UseUserDecryptResult = ReturnType<typeof useUserDecrypt>;
|
|
111
114
|
//#endregion
|
|
@@ -124,7 +127,11 @@ type UseUserDecryptResult = ReturnType<typeof useUserDecrypt>;
|
|
|
124
127
|
* // publicDecrypt.data?.clearValues => { "0xHandle1": 500n, ... }
|
|
125
128
|
* ```
|
|
126
129
|
*/
|
|
127
|
-
declare function usePublicDecrypt(): _$_tanstack_react_query0.UseMutationResult<
|
|
130
|
+
declare function usePublicDecrypt(): _$_tanstack_react_query0.UseMutationResult<Readonly<{
|
|
131
|
+
clearValues: _$_zama_fhe_relayer_sdk_web0.ClearValues;
|
|
132
|
+
abiEncodedClearValues: `0x${string}`;
|
|
133
|
+
decryptionProof: `0x${string}`;
|
|
134
|
+
}>, Error, `0x${string}`[], unknown>;
|
|
128
135
|
//#endregion
|
|
129
136
|
//#region src/relayer/use-generate-keypair.d.ts
|
|
130
137
|
/**
|
|
@@ -162,7 +169,7 @@ declare function useGenerateKeypair(): _$_tanstack_react_query0.UseMutationResul
|
|
|
162
169
|
* });
|
|
163
170
|
* ```
|
|
164
171
|
*/
|
|
165
|
-
declare function useCreateEIP712(): _$_tanstack_react_query0.UseMutationResult<EIP712TypedData
|
|
172
|
+
declare function useCreateEIP712(): _$_tanstack_react_query0.UseMutationResult<EIP712TypedData, Error, CreateEIP712Params, unknown>;
|
|
166
173
|
//#endregion
|
|
167
174
|
//#region src/relayer/use-create-delegated-user-decrypt-eip712.d.ts
|
|
168
175
|
/**
|
|
@@ -203,7 +210,7 @@ declare function useCreateDelegatedUserDecryptEIP712(): _$_tanstack_react_query0
|
|
|
203
210
|
* // decrypt.data => { "0xHandle1": 1000n }
|
|
204
211
|
* ```
|
|
205
212
|
*/
|
|
206
|
-
declare function useDelegatedUserDecrypt(): _$_tanstack_react_query0.UseMutationResult<Record<`0x${string}`, ClearValueType
|
|
213
|
+
declare function useDelegatedUserDecrypt(): _$_tanstack_react_query0.UseMutationResult<Record<`0x${string}`, ClearValueType>, Error, DelegatedUserDecryptParams, unknown>;
|
|
207
214
|
//#endregion
|
|
208
215
|
//#region src/relayer/use-request-zk-proof-verification.d.ts
|
|
209
216
|
/**
|
|
@@ -222,16 +229,9 @@ declare function useDelegatedUserDecrypt(): _$_tanstack_react_query0.UseMutation
|
|
|
222
229
|
declare function useRequestZKProofVerification(): _$_tanstack_react_query0.UseMutationResult<Readonly<{
|
|
223
230
|
handles: Uint8Array[];
|
|
224
231
|
inputProof: Uint8Array;
|
|
225
|
-
}>, Error, ZKProofLike
|
|
232
|
+
}>, Error, ZKProofLike, unknown>;
|
|
226
233
|
//#endregion
|
|
227
234
|
//#region src/relayer/use-public-key.d.ts
|
|
228
|
-
/** Shape of the FHE public key data returned by the relayer. */
|
|
229
|
-
interface PublicKeyData {
|
|
230
|
-
/** Unique identifier for this public key version. */
|
|
231
|
-
publicKeyId: string;
|
|
232
|
-
/** The raw FHE public key bytes. */
|
|
233
|
-
publicKey: Uint8Array;
|
|
234
|
-
}
|
|
235
235
|
/**
|
|
236
236
|
* Fetch the FHE network public key from the relayer.
|
|
237
237
|
* Cached indefinitely since the key does not change during a session.
|
|
@@ -247,13 +247,6 @@ interface PublicKeyData {
|
|
|
247
247
|
declare function usePublicKey(): _$_tanstack_react_query0.UseQueryResult<PublicKeyData | null, Error>;
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region src/relayer/use-public-params.d.ts
|
|
250
|
-
/** Shape of the FHE public parameters returned by the relayer. */
|
|
251
|
-
interface PublicParamsData {
|
|
252
|
-
/** The raw public parameters bytes (WASM-ready). */
|
|
253
|
-
publicParams: Uint8Array;
|
|
254
|
-
/** Unique identifier for this public params version. */
|
|
255
|
-
publicParamsId: string;
|
|
256
|
-
}
|
|
257
250
|
/**
|
|
258
251
|
* Fetch FHE public parameters for a given bit size from the relayer.
|
|
259
252
|
* Cached indefinitely since parameters do not change during a session.
|
|
@@ -267,7 +260,10 @@ interface PublicParamsData {
|
|
|
267
260
|
* // params?.publicParams, params?.publicParamsId
|
|
268
261
|
* ```
|
|
269
262
|
*/
|
|
270
|
-
declare function usePublicParams(bits: number): _$_tanstack_react_query0.UseQueryResult<
|
|
263
|
+
declare function usePublicParams(bits: number): _$_tanstack_react_query0.UseQueryResult<{
|
|
264
|
+
publicParams: Uint8Array<ArrayBufferLike>;
|
|
265
|
+
publicParamsId: string;
|
|
266
|
+
} | null, Error>;
|
|
271
267
|
//#endregion
|
|
272
268
|
//#region src/authorization/use-allow.d.ts
|
|
273
269
|
/**
|
|
@@ -290,13 +286,13 @@ declare function usePublicParams(bits: number): _$_tanstack_react_query0.UseQuer
|
|
|
290
286
|
* await allow([tokenAddress, auctionAddress, governanceAddress]);
|
|
291
287
|
* ```
|
|
292
288
|
*/
|
|
293
|
-
declare function useAllow(options?: UseMutationOptions<void, Error, Address
|
|
289
|
+
declare function useAllow(options?: UseMutationOptions<void, Error, Address[]>): _$_tanstack_react_query0.UseMutationResult<void, Error, `0x${string}`[], unknown>;
|
|
294
290
|
//#endregion
|
|
295
291
|
//#region src/authorization/use-is-allowed.d.ts
|
|
296
292
|
/** Configuration for {@link useIsAllowed}. */
|
|
297
293
|
interface UseIsAllowedConfig {
|
|
298
294
|
/** Contract addresses to check credentials against (at least one required). */
|
|
299
|
-
contractAddresses: [Address
|
|
295
|
+
contractAddresses: [Address, ...Address[]];
|
|
300
296
|
}
|
|
301
297
|
/**
|
|
302
298
|
* Check whether a session signature is cached for the connected wallet
|
|
@@ -325,7 +321,7 @@ declare function useIsAllowed(config: UseIsAllowedConfig): _$_tanstack_react_que
|
|
|
325
321
|
* revoke([tokenAddress, auctionAddress]);
|
|
326
322
|
* ```
|
|
327
323
|
*/
|
|
328
|
-
declare function useRevoke(options?: UseMutationOptions<void, Error, Address
|
|
324
|
+
declare function useRevoke(options?: UseMutationOptions<void, Error, Address[]>): _$_tanstack_react_query0.UseMutationResult<void, Error, `0x${string}`[], unknown>;
|
|
329
325
|
//#endregion
|
|
330
326
|
//#region src/authorization/use-revoke-session.d.ts
|
|
331
327
|
/**
|
|
@@ -344,9 +340,9 @@ declare function useRevokeSession(options?: UseMutationOptions<void>): _$_tansta
|
|
|
344
340
|
/** Base configuration shared by all mutation hooks that need a Token instance. */
|
|
345
341
|
interface UseZamaConfig {
|
|
346
342
|
/** Address of the confidential token contract. */
|
|
347
|
-
tokenAddress: Address
|
|
343
|
+
tokenAddress: Address;
|
|
348
344
|
/** Address of the wrapper contract (required for shield/unshield operations). */
|
|
349
|
-
wrapperAddress?: Address
|
|
345
|
+
wrapperAddress?: Address;
|
|
350
346
|
}
|
|
351
347
|
/**
|
|
352
348
|
* Get a {@link Token} instance, memoized by address pair.
|
|
@@ -377,13 +373,13 @@ declare function useToken(config: UseZamaConfig): _$_zama_fhe_sdk0.Token;
|
|
|
377
373
|
* // token.balanceOf(), token.isConfidential(), etc.
|
|
378
374
|
* ```
|
|
379
375
|
*/
|
|
380
|
-
declare function useReadonlyToken(address: Address
|
|
376
|
+
declare function useReadonlyToken(address: Address): _$_zama_fhe_sdk0.ReadonlyToken;
|
|
381
377
|
//#endregion
|
|
382
378
|
//#region src/balance/use-confidential-balance.d.ts
|
|
383
379
|
/** Configuration for {@link useConfidentialBalance}. */
|
|
384
380
|
interface UseConfidentialBalanceConfig {
|
|
385
381
|
/** Address of the confidential token contract. */
|
|
386
|
-
tokenAddress: Address
|
|
382
|
+
tokenAddress: Address;
|
|
387
383
|
}
|
|
388
384
|
/** Query options for {@link useConfidentialBalance}. */
|
|
389
385
|
interface UseConfidentialBalanceOptions extends Omit<UseQueryOptions<bigint>, "queryKey" | "queryFn" | "enabled"> {
|
|
@@ -413,10 +409,10 @@ declare function useConfidentialBalance(config: UseConfidentialBalanceConfig, op
|
|
|
413
409
|
/** Configuration for {@link useConfidentialBalances}. */
|
|
414
410
|
interface UseConfidentialBalancesConfig {
|
|
415
411
|
/** Addresses of the confidential token contracts to batch-query. */
|
|
416
|
-
tokenAddresses: Address
|
|
412
|
+
tokenAddresses: Address[];
|
|
417
413
|
}
|
|
418
414
|
/** Query options for {@link useConfidentialBalances}. */
|
|
419
|
-
interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalancesResult
|
|
415
|
+
interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalancesResult>, "queryKey" | "queryFn" | "enabled"> {
|
|
420
416
|
/** Whether the query is enabled. Callback form is not supported in composite hooks. */
|
|
421
417
|
enabled?: boolean;
|
|
422
418
|
}
|
|
@@ -444,7 +440,7 @@ interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalan
|
|
|
444
440
|
* }
|
|
445
441
|
* ```
|
|
446
442
|
*/
|
|
447
|
-
declare function useConfidentialBalances(config: UseConfidentialBalancesConfig, options?: UseConfidentialBalancesOptions): _$_tanstack_react_query0.UseQueryResult<BatchBalancesResult
|
|
443
|
+
declare function useConfidentialBalances(config: UseConfidentialBalancesConfig, options?: UseConfidentialBalancesOptions): _$_tanstack_react_query0.UseQueryResult<BatchBalancesResult, Error>;
|
|
448
444
|
//#endregion
|
|
449
445
|
//#region src/transfer/use-confidential-transfer.d.ts
|
|
450
446
|
/** Configuration for {@link useConfidentialTransfer}. */
|
|
@@ -486,7 +482,7 @@ interface UseConfidentialTransferConfig extends UseZamaConfig {
|
|
|
486
482
|
* );
|
|
487
483
|
* ```
|
|
488
484
|
*/
|
|
489
|
-
declare function useConfidentialTransfer<TContext = unknown>(config: UseConfidentialTransferConfig, options?: UseMutationOptions<TransactionResult
|
|
485
|
+
declare function useConfidentialTransfer<TContext = unknown>(config: UseConfidentialTransferConfig, options?: UseMutationOptions<TransactionResult, Error, ConfidentialTransferParams, TContext>): UseMutationResult<TransactionResult, Error, ConfidentialTransferParams, TContext>;
|
|
490
486
|
//#endregion
|
|
491
487
|
//#region src/transfer/use-confidential-transfer-from.d.ts
|
|
492
488
|
/**
|
|
@@ -507,7 +503,7 @@ declare function useConfidentialTransfer<TContext = unknown>(config: UseConfiden
|
|
|
507
503
|
* transferFrom.mutate({ from: "0xOwner", to: "0xRecipient", amount: 500n });
|
|
508
504
|
* ```
|
|
509
505
|
*/
|
|
510
|
-
declare function useConfidentialTransferFrom(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
506
|
+
declare function useConfidentialTransferFrom(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, ConfidentialTransferFromParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, ConfidentialTransferFromParams, `0x${string}`>;
|
|
511
507
|
//#endregion
|
|
512
508
|
//#region src/transfer/use-confidential-approve.d.ts
|
|
513
509
|
/**
|
|
@@ -526,24 +522,24 @@ declare function useConfidentialTransferFrom(config: UseZamaConfig, options?: Us
|
|
|
526
522
|
* approve.mutate({ spender: "0xOperator" });
|
|
527
523
|
* ```
|
|
528
524
|
*/
|
|
529
|
-
declare function useConfidentialApprove(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
525
|
+
declare function useConfidentialApprove(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, ConfidentialApproveParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, ConfidentialApproveParams, `0x${string}`>;
|
|
530
526
|
//#endregion
|
|
531
527
|
//#region src/transfer/use-confidential-is-approved.d.ts
|
|
532
528
|
/** Configuration for {@link useConfidentialIsApproved}. */
|
|
533
529
|
interface UseConfidentialIsApprovedConfig {
|
|
534
530
|
/** Address of the confidential token contract. Pass `undefined` to disable the query. */
|
|
535
|
-
tokenAddress: Address
|
|
531
|
+
tokenAddress: Address | undefined;
|
|
536
532
|
/** Address to check approval for. Pass `undefined` to disable the query. */
|
|
537
|
-
spender: Address
|
|
533
|
+
spender: Address | undefined;
|
|
538
534
|
/** Token holder address. Defaults to the connected wallet. */
|
|
539
|
-
holder?: Address
|
|
535
|
+
holder?: Address;
|
|
540
536
|
}
|
|
541
537
|
/** Configuration for {@link useConfidentialIsApprovedSuspense}. */
|
|
542
538
|
interface UseConfidentialIsApprovedSuspenseConfig extends UseZamaConfig {
|
|
543
539
|
/** Address to check approval for. */
|
|
544
|
-
spender: Address
|
|
540
|
+
spender: Address;
|
|
545
541
|
/** Token holder address. Defaults to the connected wallet. */
|
|
546
|
-
holder?: Address
|
|
542
|
+
holder?: Address;
|
|
547
543
|
}
|
|
548
544
|
/**
|
|
549
545
|
* Check if a spender is an approved operator for a given holder (defaults to connected wallet).
|
|
@@ -609,7 +605,7 @@ interface UseShieldConfig extends UseZamaConfig {
|
|
|
609
605
|
* shield.mutate({ amount: 1000n });
|
|
610
606
|
* ```
|
|
611
607
|
*/
|
|
612
|
-
declare function useShield<TContext = unknown>(config: UseShieldConfig, options?: UseMutationOptions<TransactionResult
|
|
608
|
+
declare function useShield<TContext = unknown>(config: UseShieldConfig, options?: UseMutationOptions<TransactionResult, Error, ShieldParams, TContext>): UseMutationResult<TransactionResult, Error, ShieldParams, TContext>;
|
|
613
609
|
//#endregion
|
|
614
610
|
//#region src/unwrap/use-unwrap.d.ts
|
|
615
611
|
/**
|
|
@@ -631,7 +627,7 @@ declare function useShield<TContext = unknown>(config: UseShieldConfig, options?
|
|
|
631
627
|
* unwrap.mutate({ amount: 500n });
|
|
632
628
|
* ```
|
|
633
629
|
*/
|
|
634
|
-
declare function useUnwrap(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
630
|
+
declare function useUnwrap(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, UnwrapParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, UnwrapParams, `0x${string}`>;
|
|
635
631
|
//#endregion
|
|
636
632
|
//#region src/unwrap/use-unwrap-all.d.ts
|
|
637
633
|
/**
|
|
@@ -652,7 +648,7 @@ declare function useUnwrap(config: UseZamaConfig, options?: UseMutationOptions<T
|
|
|
652
648
|
* unwrapAll.mutate();
|
|
653
649
|
* ```
|
|
654
650
|
*/
|
|
655
|
-
declare function useUnwrapAll(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
651
|
+
declare function useUnwrapAll(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, void, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, void, `0x${string}`>;
|
|
656
652
|
//#endregion
|
|
657
653
|
//#region src/unwrap/use-finalize-unwrap.d.ts
|
|
658
654
|
/**
|
|
@@ -670,10 +666,10 @@ declare function useUnwrapAll(config: UseZamaConfig, options?: UseMutationOption
|
|
|
670
666
|
* @example
|
|
671
667
|
* ```tsx
|
|
672
668
|
* const finalize = useFinalizeUnwrap({ tokenAddress: "0x..." });
|
|
673
|
-
* finalize.mutate({
|
|
669
|
+
* finalize.mutate({ unwrapRequestId: event.unwrapRequestId });
|
|
674
670
|
* ```
|
|
675
671
|
*/
|
|
676
|
-
declare function useFinalizeUnwrap(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
672
|
+
declare function useFinalizeUnwrap(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, FinalizeUnwrapParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, FinalizeUnwrapParams, `0x${string}`>;
|
|
677
673
|
//#endregion
|
|
678
674
|
//#region src/unshield/use-unshield.d.ts
|
|
679
675
|
/**
|
|
@@ -695,7 +691,7 @@ declare function useFinalizeUnwrap(config: UseZamaConfig, options?: UseMutationO
|
|
|
695
691
|
* unshield.mutate({ amount: 500n });
|
|
696
692
|
* ```
|
|
697
693
|
*/
|
|
698
|
-
declare function useUnshield(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
694
|
+
declare function useUnshield(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, UnshieldParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, UnshieldParams, `0x${string}`>;
|
|
699
695
|
//#endregion
|
|
700
696
|
//#region src/unshield/use-unshield-all.d.ts
|
|
701
697
|
/**
|
|
@@ -716,7 +712,7 @@ declare function useUnshield(config: UseZamaConfig, options?: UseMutationOptions
|
|
|
716
712
|
* unshieldAll.mutate();
|
|
717
713
|
* ```
|
|
718
714
|
*/
|
|
719
|
-
declare function useUnshieldAll(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
715
|
+
declare function useUnshieldAll(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, UnshieldAllParams | void, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, void | UnshieldAllParams, `0x${string}`>;
|
|
720
716
|
//#endregion
|
|
721
717
|
//#region src/unshield/use-resume-unshield.d.ts
|
|
722
718
|
/**
|
|
@@ -737,15 +733,15 @@ declare function useUnshieldAll(config: UseZamaConfig, options?: UseMutationOpti
|
|
|
737
733
|
* resumeUnshield.mutate({ unwrapTxHash: "0xabc..." });
|
|
738
734
|
* ```
|
|
739
735
|
*/
|
|
740
|
-
declare function useResumeUnshield(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
736
|
+
declare function useResumeUnshield(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, ResumeUnshieldParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, ResumeUnshieldParams, `0x${string}`>;
|
|
741
737
|
//#endregion
|
|
742
738
|
//#region src/shield/use-underlying-allowance.d.ts
|
|
743
739
|
/** Configuration for {@link useUnderlyingAllowance}. */
|
|
744
740
|
interface UseUnderlyingAllowanceConfig {
|
|
745
741
|
/** Address of the confidential token contract used to scope the query cache. */
|
|
746
|
-
tokenAddress: Address
|
|
742
|
+
tokenAddress: Address;
|
|
747
743
|
/** Address of the wrapper contract whose underlying ERC-20 allowance is checked. */
|
|
748
|
-
wrapperAddress: Address
|
|
744
|
+
wrapperAddress: Address;
|
|
749
745
|
}
|
|
750
746
|
/**
|
|
751
747
|
* Read the underlying ERC-20 allowance granted to the wrapper contract.
|
|
@@ -789,9 +785,9 @@ interface UseWrapperDiscoveryConfig {
|
|
|
789
785
|
* Used only to derive the signer context and to scope the query cache key —
|
|
790
786
|
* it does not affect which wrapper the registry returns.
|
|
791
787
|
*/
|
|
792
|
-
tokenAddress: Address
|
|
788
|
+
tokenAddress: Address;
|
|
793
789
|
/** ERC-20 address to discover the wrapper for. Pass `undefined` to disable the query. */
|
|
794
|
-
erc20Address: Address
|
|
790
|
+
erc20Address: Address | undefined;
|
|
795
791
|
}
|
|
796
792
|
/** Configuration for {@link useWrapperDiscoverySuspense}. */
|
|
797
793
|
interface UseWrapperDiscoverySuspenseConfig {
|
|
@@ -800,9 +796,9 @@ interface UseWrapperDiscoverySuspenseConfig {
|
|
|
800
796
|
* Used only to derive the signer context and to scope the query cache key —
|
|
801
797
|
* it does not affect which wrapper the registry returns.
|
|
802
798
|
*/
|
|
803
|
-
tokenAddress: Address
|
|
799
|
+
tokenAddress: Address;
|
|
804
800
|
/** ERC-20 address to discover the wrapper for. */
|
|
805
|
-
erc20Address: Address
|
|
801
|
+
erc20Address: Address;
|
|
806
802
|
}
|
|
807
803
|
/**
|
|
808
804
|
* Discover the confidential wrapper for an ERC-20 token via the on-chain registry.
|
|
@@ -821,7 +817,7 @@ interface UseWrapperDiscoverySuspenseConfig {
|
|
|
821
817
|
* });
|
|
822
818
|
* ```
|
|
823
819
|
*/
|
|
824
|
-
declare function useWrapperDiscovery(config: UseWrapperDiscoveryConfig, options?: Omit<UseQueryOptions<Address
|
|
820
|
+
declare function useWrapperDiscovery(config: UseWrapperDiscoveryConfig, options?: Omit<UseQueryOptions<Address | null>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<`0x${string}` | null, Error>;
|
|
825
821
|
/**
|
|
826
822
|
* Suspense variant of {@link useWrapperDiscovery}.
|
|
827
823
|
* Suspends rendering until the wrapper address is resolved.
|
|
@@ -854,7 +850,7 @@ declare function useWrapperDiscoverySuspense(config: UseWrapperDiscoverySuspense
|
|
|
854
850
|
* // metadata?.name, metadata?.symbol, metadata?.decimals
|
|
855
851
|
* ```
|
|
856
852
|
*/
|
|
857
|
-
declare function useMetadata(tokenAddress: Address
|
|
853
|
+
declare function useMetadata(tokenAddress: Address, options?: Omit<UseQueryOptions<TokenMetadata>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<TokenMetadata, Error>;
|
|
858
854
|
/**
|
|
859
855
|
* Suspense variant of {@link useMetadata}.
|
|
860
856
|
* Suspends rendering until metadata is loaded.
|
|
@@ -867,7 +863,7 @@ declare function useMetadata(tokenAddress: Address$1, options?: Omit<UseQueryOpt
|
|
|
867
863
|
* const { data: metadata } = useMetadataSuspense("0xToken");
|
|
868
864
|
* ```
|
|
869
865
|
*/
|
|
870
|
-
declare function useMetadataSuspense(tokenAddress: Address
|
|
866
|
+
declare function useMetadataSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<TokenMetadata, Error>;
|
|
871
867
|
//#endregion
|
|
872
868
|
//#region src/delegation/use-delegate-decryption.d.ts
|
|
873
869
|
/**
|
|
@@ -882,7 +878,7 @@ declare function useMetadataSuspense(tokenAddress: Address$1): _$_tanstack_react
|
|
|
882
878
|
* delegate.mutate({ delegateAddress: "0xDelegate" });
|
|
883
879
|
* ```
|
|
884
880
|
*/
|
|
885
|
-
declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
881
|
+
declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, DelegateDecryptionParams>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, DelegateDecryptionParams, unknown>;
|
|
886
882
|
//#endregion
|
|
887
883
|
//#region src/delegation/use-revoke-delegation.d.ts
|
|
888
884
|
/**
|
|
@@ -897,16 +893,16 @@ declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutat
|
|
|
897
893
|
* revoke.mutate({ delegateAddress: "0xDelegate" });
|
|
898
894
|
* ```
|
|
899
895
|
*/
|
|
900
|
-
declare function useRevokeDelegation(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
896
|
+
declare function useRevokeDelegation(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, RevokeDelegationParams>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, RevokeDelegationParams, unknown>;
|
|
901
897
|
//#endregion
|
|
902
898
|
//#region src/delegation/use-delegation-status.d.ts
|
|
903
899
|
interface UseDelegationStatusConfig {
|
|
904
900
|
/** Address of the confidential token contract. Pass `undefined` to disable the query. */
|
|
905
|
-
tokenAddress: Address
|
|
901
|
+
tokenAddress: Address | undefined;
|
|
906
902
|
/** The address that granted the delegation. */
|
|
907
|
-
delegatorAddress?: Address
|
|
903
|
+
delegatorAddress?: Address;
|
|
908
904
|
/** The address that received delegation rights. */
|
|
909
|
-
delegateAddress?: Address
|
|
905
|
+
delegateAddress?: Address;
|
|
910
906
|
}
|
|
911
907
|
/**
|
|
912
908
|
* Query delegation status between a delegator and delegate for a token.
|
|
@@ -925,7 +921,7 @@ interface UseDelegationStatusConfig {
|
|
|
925
921
|
* // data?.isDelegated, data?.expiryTimestamp
|
|
926
922
|
* ```
|
|
927
923
|
*/
|
|
928
|
-
declare function useDelegationStatus(config: UseDelegationStatusConfig, options?: Omit<UseQueryOptions<DelegationStatusData
|
|
924
|
+
declare function useDelegationStatus(config: UseDelegationStatusConfig, options?: Omit<UseQueryOptions<DelegationStatusData>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<DelegationStatusData, Error>;
|
|
929
925
|
//#endregion
|
|
930
926
|
//#region src/delegation/use-decrypt-balance-as.d.ts
|
|
931
927
|
/**
|
|
@@ -941,7 +937,7 @@ declare function useDelegationStatus(config: UseDelegationStatusConfig, options?
|
|
|
941
937
|
* // decryptAs.data => 1000n
|
|
942
938
|
* ```
|
|
943
939
|
*/
|
|
944
|
-
declare function useDecryptBalanceAs(tokenAddress: Address
|
|
940
|
+
declare function useDecryptBalanceAs(tokenAddress: Address, options?: UseMutationOptions<bigint, Error, DecryptBalanceAsParams>): _$_tanstack_react_query0.UseMutationResult<bigint, Error, DecryptBalanceAsParams, unknown>;
|
|
945
941
|
//#endregion
|
|
946
942
|
//#region src/delegation/use-batch-decrypt-balances-as.d.ts
|
|
947
943
|
/**
|
|
@@ -959,7 +955,7 @@ declare function useDecryptBalanceAs(tokenAddress: Address$1, options?: UseMutat
|
|
|
959
955
|
* // batchDecryptAs.data => Map { "0xTokenA" => 100n, "0xTokenB" => 200n }
|
|
960
956
|
* ```
|
|
961
957
|
*/
|
|
962
|
-
declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken
|
|
958
|
+
declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken[], options?: UseMutationOptions<Map<Address, bigint>, Error, BatchDecryptBalancesAsParams>): _$_tanstack_react_query0.UseMutationResult<Map<`0x${string}`, bigint>, Error, _$_zama_fhe_sdk0.BatchDecryptAsOptions, unknown>;
|
|
963
959
|
//#endregion
|
|
964
960
|
//#region src/shield/use-approve-underlying.d.ts
|
|
965
961
|
/**
|
|
@@ -981,7 +977,7 @@ declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken$1[], options?:
|
|
|
981
977
|
* approve.mutate({ amount: 1000n }); // exact amount
|
|
982
978
|
* ```
|
|
983
979
|
*/
|
|
984
|
-
declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult
|
|
980
|
+
declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, ApproveUnderlyingParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, ApproveUnderlyingParams, `0x${string}`>;
|
|
985
981
|
//#endregion
|
|
986
982
|
//#region src/token/use-is-confidential.d.ts
|
|
987
983
|
/**
|
|
@@ -997,7 +993,7 @@ declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutati
|
|
|
997
993
|
* const { data: isConfidential } = useIsConfidential("0xToken");
|
|
998
994
|
* ```
|
|
999
995
|
*/
|
|
1000
|
-
declare function useIsConfidential(tokenAddress: Address
|
|
996
|
+
declare function useIsConfidential(tokenAddress: Address, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
|
|
1001
997
|
/**
|
|
1002
998
|
* Suspense variant of {@link useIsConfidential}.
|
|
1003
999
|
* Suspends rendering until the ERC-165 check resolves.
|
|
@@ -1010,7 +1006,7 @@ declare function useIsConfidential(tokenAddress: Address$1, options?: Omit<UseQu
|
|
|
1010
1006
|
* const { data: isConfidential } = useIsConfidentialSuspense("0xToken");
|
|
1011
1007
|
* ```
|
|
1012
1008
|
*/
|
|
1013
|
-
declare function useIsConfidentialSuspense(tokenAddress: Address
|
|
1009
|
+
declare function useIsConfidentialSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
|
|
1014
1010
|
/**
|
|
1015
1011
|
* Check if a token supports the ERC-7984 wrapper interface via ERC-165.
|
|
1016
1012
|
* Result is cached indefinitely since interface support does not change.
|
|
@@ -1024,7 +1020,7 @@ declare function useIsConfidentialSuspense(tokenAddress: Address$1): _$_tanstack
|
|
|
1024
1020
|
* const { data: isWrapper } = useIsWrapper("0xToken");
|
|
1025
1021
|
* ```
|
|
1026
1022
|
*/
|
|
1027
|
-
declare function useIsWrapper(tokenAddress: Address
|
|
1023
|
+
declare function useIsWrapper(tokenAddress: Address, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
|
|
1028
1024
|
/**
|
|
1029
1025
|
* Suspense variant of {@link useIsWrapper}.
|
|
1030
1026
|
* Suspends rendering until the ERC-165 check resolves.
|
|
@@ -1037,7 +1033,7 @@ declare function useIsWrapper(tokenAddress: Address$1, options?: Omit<UseQueryOp
|
|
|
1037
1033
|
* const { data: isWrapper } = useIsWrapperSuspense("0xToken");
|
|
1038
1034
|
* ```
|
|
1039
1035
|
*/
|
|
1040
|
-
declare function useIsWrapperSuspense(tokenAddress: Address
|
|
1036
|
+
declare function useIsWrapperSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
|
|
1041
1037
|
//#endregion
|
|
1042
1038
|
//#region src/token/use-total-supply.d.ts
|
|
1043
1039
|
/**
|
|
@@ -1053,7 +1049,7 @@ declare function useIsWrapperSuspense(tokenAddress: Address$1): _$_tanstack_reac
|
|
|
1053
1049
|
* const { data: totalSupply } = useTotalSupply("0xToken");
|
|
1054
1050
|
* ```
|
|
1055
1051
|
*/
|
|
1056
|
-
declare function useTotalSupply(tokenAddress: Address
|
|
1052
|
+
declare function useTotalSupply(tokenAddress: Address, options?: Omit<UseQueryOptions<bigint>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<bigint, Error>;
|
|
1057
1053
|
/**
|
|
1058
1054
|
* Suspense variant of {@link useTotalSupply}.
|
|
1059
1055
|
* Suspends rendering until the total supply is loaded.
|
|
@@ -1066,7 +1062,7 @@ declare function useTotalSupply(tokenAddress: Address$1, options?: Omit<UseQuery
|
|
|
1066
1062
|
* const { data: totalSupply } = useTotalSupplySuspense("0xToken");
|
|
1067
1063
|
* ```
|
|
1068
1064
|
*/
|
|
1069
|
-
declare function useTotalSupplySuspense(tokenAddress: Address
|
|
1065
|
+
declare function useTotalSupplySuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<bigint, Error>;
|
|
1070
1066
|
//#endregion
|
|
1071
1067
|
//#region src/wrappers-registry/use-wrappers-registry-address.d.ts
|
|
1072
1068
|
/**
|
|
@@ -1080,14 +1076,14 @@ declare function useTotalSupplySuspense(tokenAddress: Address$1): _$_tanstack_re
|
|
|
1080
1076
|
* The chain ID is cached for 30 seconds (`staleTime`), so chain
|
|
1081
1077
|
* switches may take up to 30s to reflect.
|
|
1082
1078
|
*/
|
|
1083
|
-
declare function useWrappersRegistryAddress(): Address
|
|
1079
|
+
declare function useWrappersRegistryAddress(): Address | undefined;
|
|
1084
1080
|
//#endregion
|
|
1085
1081
|
//#region src/wrappers-registry/use-token-pairs-registry.d.ts
|
|
1086
1082
|
/**
|
|
1087
1083
|
* Fetches all token wrapper pairs from the ConfidentialTokenWrappersRegistry
|
|
1088
1084
|
* contract on the current chain.
|
|
1089
1085
|
*/
|
|
1090
|
-
declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair
|
|
1086
|
+
declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
|
|
1091
1087
|
//#endregion
|
|
1092
1088
|
//#region src/wrappers-registry/use-token-pairs-length.d.ts
|
|
1093
1089
|
/**
|
|
@@ -1108,7 +1104,7 @@ declare function useTokenPairsSlice({
|
|
|
1108
1104
|
}: {
|
|
1109
1105
|
fromIndex: bigint | undefined;
|
|
1110
1106
|
toIndex: bigint | undefined;
|
|
1111
|
-
}): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair
|
|
1107
|
+
}): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
|
|
1112
1108
|
//#endregion
|
|
1113
1109
|
//#region src/wrappers-registry/use-token-pair.d.ts
|
|
1114
1110
|
/**
|
|
@@ -1120,7 +1116,7 @@ declare function useTokenPair({
|
|
|
1120
1116
|
index
|
|
1121
1117
|
}: {
|
|
1122
1118
|
index: bigint | undefined;
|
|
1123
|
-
}): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair
|
|
1119
|
+
}): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair, Error>;
|
|
1124
1120
|
//#endregion
|
|
1125
1121
|
//#region src/wrappers-registry/use-confidential-token-address.d.ts
|
|
1126
1122
|
/**
|
|
@@ -1129,7 +1125,7 @@ declare function useTokenPair({
|
|
|
1129
1125
|
declare function useConfidentialTokenAddress({
|
|
1130
1126
|
tokenAddress
|
|
1131
1127
|
}: {
|
|
1132
|
-
tokenAddress: Address
|
|
1128
|
+
tokenAddress: Address | undefined;
|
|
1133
1129
|
}): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
|
|
1134
1130
|
//#endregion
|
|
1135
1131
|
//#region src/wrappers-registry/use-token-address.d.ts
|
|
@@ -1139,7 +1135,7 @@ declare function useConfidentialTokenAddress({
|
|
|
1139
1135
|
declare function useTokenAddress({
|
|
1140
1136
|
confidentialTokenAddress
|
|
1141
1137
|
}: {
|
|
1142
|
-
confidentialTokenAddress: Address
|
|
1138
|
+
confidentialTokenAddress: Address | undefined;
|
|
1143
1139
|
}): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
|
|
1144
1140
|
//#endregion
|
|
1145
1141
|
//#region src/wrappers-registry/use-is-confidential-token-valid.d.ts
|
|
@@ -1152,7 +1148,7 @@ declare function useTokenAddress({
|
|
|
1152
1148
|
declare function useIsConfidentialTokenValid({
|
|
1153
1149
|
confidentialTokenAddress
|
|
1154
1150
|
}: {
|
|
1155
|
-
confidentialTokenAddress: Address
|
|
1151
|
+
confidentialTokenAddress: Address | undefined;
|
|
1156
1152
|
}): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
|
|
1157
1153
|
//#endregion
|
|
1158
1154
|
//#region src/wrappers-registry/use-list-pairs.d.ts
|
|
@@ -1177,15 +1173,7 @@ declare function useListPairs({
|
|
|
1177
1173
|
page?: number;
|
|
1178
1174
|
pageSize?: number;
|
|
1179
1175
|
metadata?: boolean;
|
|
1180
|
-
}): _$_tanstack_react_query0.UseQueryResult<PaginatedResult
|
|
1181
|
-
//#endregion
|
|
1182
|
-
//#region src/balance/optimistic-balance-update.d.ts
|
|
1183
|
-
type OptimisticBalanceSnapshot = [QueryKey, bigint | undefined][];
|
|
1184
|
-
/** Combined context returned by optimistic `onMutate`. */
|
|
1185
|
-
interface OptimisticMutateContext {
|
|
1186
|
-
snapshot: OptimisticBalanceSnapshot;
|
|
1187
|
-
callerContext?: unknown;
|
|
1188
|
-
}
|
|
1176
|
+
}): _$_tanstack_react_query0.UseQueryResult<PaginatedResult<TokenWrapperPair | TokenWrapperPairWithMetadata>, Error>;
|
|
1189
1177
|
//#endregion
|
|
1190
|
-
export {
|
|
1178
|
+
export { type UseConfidentialBalanceConfig, type UseConfidentialBalanceOptions, type UseConfidentialBalancesConfig, type UseConfidentialBalancesOptions, type UseConfidentialIsApprovedConfig, type UseConfidentialIsApprovedSuspenseConfig, type UseConfidentialTransferConfig, type UseDelegationStatusConfig, type UseIsAllowedConfig, type UseShieldConfig, type UseUnderlyingAllowanceConfig, type UseUserDecryptResult, type UseWrapperDiscoveryConfig, type UseWrapperDiscoverySuspenseConfig, type UseZamaConfig, ZamaProvider, type ZamaProviderProps, useAllow, useApproveUnderlying, useBatchDecryptBalancesAs, useConfidentialApprove, useConfidentialBalance, useConfidentialBalances, useConfidentialIsApproved, useConfidentialIsApprovedSuspense, useConfidentialTokenAddress, useConfidentialTransfer, useConfidentialTransferFrom, useCreateDelegatedUserDecryptEIP712, useCreateEIP712, useDecryptBalanceAs, useDelegateDecryption, useDelegatedUserDecrypt, useDelegationStatus, useEncrypt, useFinalizeUnwrap, useGenerateKeypair, useIsAllowed, useIsConfidential, useIsConfidentialSuspense, useIsConfidentialTokenValid, useIsWrapper, useIsWrapperSuspense, useListPairs, useMetadata, useMetadataSuspense, usePublicDecrypt, usePublicKey, usePublicParams, useReadonlyToken, useRequestZKProofVerification, useResumeUnshield, useRevoke, useRevokeDelegation, useRevokeSession, useShield, useToken, useTokenAddress, useTokenPair, useTokenPairsLength, useTokenPairsRegistry, useTokenPairsSlice, useTotalSupply, useTotalSupplySuspense, useUnderlyingAllowance, useUnderlyingAllowanceSuspense, useUnshield, useUnshieldAll, useUnwrap, useUnwrapAll, useUserDecrypt, useWrapperDiscovery, useWrapperDiscoverySuspense, useWrappersRegistryAddress, useZamaSDK };
|
|
1191
1179
|
//# sourceMappingURL=index.d.ts.map
|