@zama-fhe/react-sdk 2.5.0 → 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 CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
3
  import * as _$_zama_fhe_sdk0 from "@zama-fhe/sdk";
4
- import { ACL_TOPICS, AclEvent, AclPausedError, ActivityAmount, ActivityDirection, ActivityItem, ActivityItem as ActivityItem$1, ActivityLogMetadata, ActivityLogMetadata as ActivityLogMetadata$1, ActivityType, Address, Address as Address$1, ApprovalFailedError, ApproveSubmittedEvent, ApproveUnderlyingSubmittedEvent, BalanceCheckUnavailableError, BaseEvent, BatchBalancesResult, BatchBalancesResult as BatchBalancesResult$1, BatchDecryptAsOptions, ChromeSessionStorage, ClearValueType, ClearValueType as ClearValueType$1, ConfidentialTransferEvent, ConfigurationError, ContractAbi, CredentialsAllowedEvent, CredentialsCachedEvent, CredentialsCreatedEvent, CredentialsCreatingEvent, CredentialsExpiredEvent, CredentialsLoadingEvent, CredentialsManager, CredentialsManagerConfig, CredentialsRevokedEvent, DecryptEndEvent, DecryptErrorEvent, DecryptStartEvent, DecryptionFailedError, DefaultRegistryAddresses, DelegatedCredentialsManager, DelegatedCredentialsManagerConfig, DelegatedForUserDecryptionEvent, DelegatedStoredCredentials, DelegatedUserDecryptParams, DelegatedUserDecryptParams as DelegatedUserDecryptParams$1, DelegationContractIsSelfError, DelegationCooldownError, DelegationDelegateEqualsContractError, DelegationExpirationTooSoonError, DelegationExpiredError, DelegationExpiryUnchangedError, DelegationNotFoundError, DelegationNotPropagatedError, DelegationSelfNotAllowedError, EIP712TypedData, EIP712TypedData as EIP712TypedData$1, ERC20ReadFailedError, ERC7984_INTERFACE_ID, ERC7984_WRAPPER_INTERFACE_ID, EncryptEndEvent, EncryptErrorEvent, EncryptInput, EncryptParams, EncryptParams as EncryptParams$1, EncryptResult, EncryptResult as EncryptResult$1, EncryptStartEvent, EncryptionFailedError, FheTypeName, FhevmInstanceConfig, FinalizeUnwrapSubmittedEvent, GenericSigner, GenericSigner as GenericSigner$1, GenericStorage, GenericStorage as GenericStorage$1, Handle, HardhatConfig, Hex, IndexedDBStorage, InputProofBytesType, InsufficientConfidentialBalanceError, InsufficientERC20BalanceError, InvalidKeypairError, KeypairExpiredError, KeypairType, KmsDelegatedUserDecryptEIP712Type, ListPairsOptions, MainnetConfig, MemoryStorage, NetworkType, NoCiphertextError, OnChainEvent, PaginatedResult, PaginatedResult as PaginatedResult$1, PublicDecryptResult, PublicDecryptResult as PublicDecryptResult$1, RawLog, RawLog as RawLog$1, ReadContractArgs, ReadContractConfig, ReadContractReturnType, ReadFunctionName, ReadonlyToken, ReadonlyToken as ReadonlyToken$1, RelayerRequestFailedError, RelayerSDK, RelayerSDK as RelayerSDK$1, RelayerSDKStatus, RelayerWeb, RelayerWebConfig, RelayerWebSecurityConfig, RevokedDelegationForUserDecryptionEvent, SepoliaConfig, SessionExpiredEvent, ShieldCallbacks, ShieldSubmittedEvent, SigningFailedError, SigningRejectedError, StoredCredentials, TOKEN_TOPICS, Token, TokenWrapperPair, TokenWrapperPair as TokenWrapperPair$1, TokenWrapperPairWithMetadata, TokenWrapperPairWithMetadata as TokenWrapperPairWithMetadata$1, Topics, TransactionErrorEvent, TransactionReceipt, TransactionResult, TransactionResult as TransactionResult$1, TransactionRevertedError, TransferCallbacks, TransferFromSubmittedEvent, TransferSubmittedEvent, UnshieldCallbacks, UnshieldPhase1SubmittedEvent, UnshieldPhase2StartedEvent, UnshieldPhase2SubmittedEvent, UnwrapRequestedEvent, UnwrapSubmittedEvent, UnwrappedFinalizedEvent, UnwrappedStartedEvent, UserDecryptParams, WrappedEvent, WrappersRegistry, WrappersRegistryConfig, WriteContractArgs, WriteContractConfig, WriteFunctionName, ZERO_HANDLE, ZKProofLike, ZKProofLike as ZKProofLike$1, ZamaError, ZamaErrorCode, ZamaSDK, ZamaSDK as ZamaSDK$1, ZamaSDKConfig, ZamaSDKEvent, ZamaSDKEventInput, ZamaSDKEventListener, ZamaSDKEventListener as ZamaSDKEventListener$1, ZamaSDKEventType, ZamaSDKEvents, allowanceContract, applyDecryptedValues, approveContract, balanceOfContract, chromeSessionStorage, clearPendingUnshield, confidentialBalanceOfContract, confidentialTotalSupplyContract, confidentialTransferContract, confidentialTransferFromContract, decimalsContract, decodeAclEvent, decodeAclEvents, decodeConfidentialTransfer, decodeDelegatedForUserDecryption, decodeOnChainEvent, decodeOnChainEvents, decodeRevokedDelegationForUserDecryption, decodeUnwrapRequested, decodeUnwrappedFinalized, decodeUnwrappedStarted, decodeWrapped, delegateForUserDecryptionContract, extractEncryptedHandles, finalizeUnwrapContract, findDelegatedForUserDecryption, findRevokedDelegationForUserDecryption, findUnwrapRequested, findWrapped, getDelegationExpiryContract, indexedDBStorage, inferredTotalSupplyContract, isConfidentialTokenContract, isConfidentialWrapperContract, isHandleDelegatedContract, isOperatorContract, isZeroHandle, loadPendingUnshield, matchAclRevert, matchZamaError, memoryStorage, nameContract, parseActivityFeed, rateContract, revokeDelegationContract, savePendingUnshield, setOperatorContract, sortByBlockNumber, supportsInterfaceContract, symbolContract, totalSupplyContract, underlyingContract, unwrapContract, unwrapFromBalanceContract, wrapContract } from "@zama-fhe/sdk";
5
- import { ApproveUnderlyingParams, ApproveUnderlyingParams as ApproveUnderlyingParams$1, BatchDecryptBalancesAsParams, BatchDecryptBalancesAsParams as BatchDecryptBalancesAsParams$1, ConfidentialApproveParams, ConfidentialApproveParams as ConfidentialApproveParams$1, ConfidentialTransferFromParams, ConfidentialTransferFromParams as ConfidentialTransferFromParams$1, ConfidentialTransferParams, ConfidentialTransferParams as ConfidentialTransferParams$1, CreateDelegatedUserDecryptEIP712Params, CreateEIP712Params, DecryptBalanceAsParams, DecryptBalanceAsParams as DecryptBalanceAsParams$1, DecryptHandle, DecryptResult, DecryptResult as DecryptResult$1, DelegateDecryptionParams, DelegateDecryptionParams as DelegateDecryptionParams$1, DelegationStatusData, DelegationStatusData as DelegationStatusData$1, DelegationStatusQueryConfig, FinalizeUnwrapParams, FinalizeUnwrapParams as FinalizeUnwrapParams$1, ListPairsQueryConfig, ResumeUnshieldParams, ResumeUnshieldParams as ResumeUnshieldParams$1, RevokeDelegationParams, RevokeDelegationParams as RevokeDelegationParams$1, ShieldParams, ShieldParams as ShieldParams$1, TokenMetadata, UnshieldAllParams, UnshieldAllParams as UnshieldAllParams$1, UnshieldParams, UnshieldParams as UnshieldParams$1, UnwrapParams, UnwrapParams as UnwrapParams$1, UserDecryptQueryConfig, UserDecryptQueryConfig as UserDecryptQueryConfig$1, activityFeedQueryOptions, allowMutationOptions, approveUnderlyingMutationOptions, batchDecryptBalancesAsMutationOptions, confidentialApproveMutationOptions, confidentialBalanceQueryOptions, confidentialBalancesQueryOptions, confidentialIsApprovedQueryOptions, confidentialTransferFromMutationOptions, confidentialTransferMutationOptions, createDelegatedUserDecryptEIP712MutationOptions, createEIP712MutationOptions, decryptBalanceAsMutationOptions, delegateDecryptionMutationOptions, delegatedUserDecryptMutationOptions, delegationStatusQueryOptions, encryptMutationOptions, filterQueryOptions, finalizeUnwrapMutationOptions, generateKeypairMutationOptions, hashFn, isAllowedQueryOptions, isConfidentialQueryOptions, isWrapperQueryOptions, listPairsQueryOptions, publicDecryptMutationOptions, publicKeyQueryOptions, publicParamsQueryOptions, requestZKProofVerificationMutationOptions, resumeUnshieldMutationOptions, revokeDelegationMutationOptions, revokeMutationOptions, revokeSessionMutationOptions, shieldMutationOptions, signerAddressQueryOptions, tokenMetadataQueryOptions, totalSupplyQueryOptions, underlyingAllowanceQueryOptions, unshieldAllMutationOptions, unshieldMutationOptions, unwrapAllMutationOptions, unwrapMutationOptions, userDecryptQueryOptions, wrapperDiscoveryQueryOptions, zamaQueryKeys } from "@zama-fhe/sdk/query";
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 { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions } from "@tanstack/react-query";
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$1;
16
+ relayer: RelayerSDK;
17
17
  /** Wallet signer (`ViemSigner`, `EthersSigner`, or custom {@link GenericSigner}). */
18
- signer: GenericSigner$1;
18
+ signer: GenericSigner;
19
19
  /** Credential storage backend (IndexedDBStorage for browser, MemoryStorage for tests). */
20
- storage: GenericStorage$1;
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$1;
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$1>;
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$1;
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$1;
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<EncryptResult$1, Error, EncryptParams$1, unknown>;
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$1, options?: Omit<UseQueryOptions<DecryptResult$1>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<DecryptResult$1, Error>;
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<PublicDecryptResult$1, Error, `0x${string}`[], unknown>;
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$1, Error, CreateEIP712Params, unknown>;
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$1>, Error, DelegatedUserDecryptParams$1, unknown>;
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$1, unknown>;
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<PublicParamsData | null, Error>;
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$1[]>): _$_tanstack_react_query0.UseMutationResult<void, Error, `0x${string}`[], unknown>;
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$1, ...Address$1[]];
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$1[]>): _$_tanstack_react_query0.UseMutationResult<void, Error, `0x${string}`[], unknown>;
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$1;
343
+ tokenAddress: Address;
348
344
  /** Address of the wrapper contract (required for shield/unshield operations). */
349
- wrapperAddress?: Address$1;
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$1): _$_zama_fhe_sdk0.ReadonlyToken;
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$1;
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$1[];
412
+ tokenAddresses: Address[];
417
413
  }
418
414
  /** Query options for {@link useConfidentialBalances}. */
419
- interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalancesResult$1>, "queryKey" | "queryFn" | "enabled"> {
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$1, Error>;
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$1, Error, ConfidentialTransferParams$1, TContext>): UseMutationResult<TransactionResult$1, Error, ConfidentialTransferParams$1, TContext>;
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$1, Error, ConfidentialTransferFromParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, ConfidentialTransferFromParams$1, `0x${string}`>;
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$1, Error, ConfidentialApproveParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, ConfidentialApproveParams$1, `0x${string}`>;
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$1 | undefined;
531
+ tokenAddress: Address | undefined;
536
532
  /** Address to check approval for. Pass `undefined` to disable the query. */
537
- spender: Address$1 | undefined;
533
+ spender: Address | undefined;
538
534
  /** Token holder address. Defaults to the connected wallet. */
539
- holder?: Address$1;
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$1;
540
+ spender: Address;
545
541
  /** Token holder address. Defaults to the connected wallet. */
546
- holder?: Address$1;
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$1, Error, ShieldParams$1, TContext>): UseMutationResult<TransactionResult$1, Error, ShieldParams$1, TContext>;
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$1, Error, UnwrapParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, UnwrapParams$1, `0x${string}`>;
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$1, Error, void, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, void, `0x${string}`>;
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({ burnAmountHandle: event.encryptedAmount });
669
+ * finalize.mutate({ unwrapRequestId: event.unwrapRequestId });
674
670
  * ```
675
671
  */
676
- declare function useFinalizeUnwrap(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult$1, Error, FinalizeUnwrapParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, FinalizeUnwrapParams$1, `0x${string}`>;
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$1, Error, UnshieldParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, UnshieldParams$1, `0x${string}`>;
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$1, Error, UnshieldAllParams$1 | void, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, void | UnshieldAllParams$1, `0x${string}`>;
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$1, Error, ResumeUnshieldParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, ResumeUnshieldParams$1, `0x${string}`>;
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$1;
742
+ tokenAddress: Address;
747
743
  /** Address of the wrapper contract whose underlying ERC-20 allowance is checked. */
748
- wrapperAddress: Address$1;
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$1;
788
+ tokenAddress: Address;
793
789
  /** ERC-20 address to discover the wrapper for. Pass `undefined` to disable the query. */
794
- erc20Address: Address$1 | undefined;
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$1;
799
+ tokenAddress: Address;
804
800
  /** ERC-20 address to discover the wrapper for. */
805
- erc20Address: Address$1;
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$1 | null>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<`0x${string}` | null, Error>;
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$1, options?: Omit<UseQueryOptions<TokenMetadata>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<TokenMetadata, Error>;
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,41 +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$1): _$_tanstack_react_query0.UseSuspenseQueryResult<TokenMetadata, Error>;
871
- //#endregion
872
- //#region src/balance/use-activity-feed.d.ts
873
- /** Configuration for {@link useActivityFeed}. */
874
- interface UseActivityFeedConfig {
875
- /** Address of the confidential token contract. */
876
- tokenAddress: Address$1;
877
- /** Connected wallet address. Pass `undefined` to disable the query. */
878
- userAddress: Address$1 | undefined;
879
- /** Raw event logs from the provider (viem, ethers, etc.). Pass `undefined` to disable. */
880
- logs: readonly (RawLog$1 & Partial<ActivityLogMetadata$1>)[] | undefined;
881
- /** Whether to batch-decrypt encrypted transfer amounts. Default: `true`. */
882
- decrypt?: boolean;
883
- }
884
- /**
885
- * Two-phase activity feed hook.
886
- * Phase 1: Instantly parses raw logs into classified {@link ActivityItem}s (sync, cheap).
887
- * Phase 2: Batch-decrypts encrypted transfer amounts via the relayer (async).
888
- *
889
- * The wallet provides logs (from its own provider — viem, ethers, etc.)
890
- * and this hook normalizes + decrypts them.
891
- *
892
- * @param config - Token address, user address, raw logs, and decrypt option.
893
- * @returns Query result with `data: ActivityItem[]`.
894
- *
895
- * @example
896
- * ```tsx
897
- * const { data: activity } = useActivityFeed({
898
- * tokenAddress: "0xToken",
899
- * userAddress: "0xUser",
900
- * logs: rawLogs,
901
- * });
902
- * ```
903
- */
904
- declare function useActivityFeed(config: UseActivityFeedConfig): _$_tanstack_react_query0.UseQueryResult<ActivityItem$1[], Error>;
866
+ declare function useMetadataSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<TokenMetadata, Error>;
905
867
  //#endregion
906
868
  //#region src/delegation/use-delegate-decryption.d.ts
907
869
  /**
@@ -916,7 +878,7 @@ declare function useActivityFeed(config: UseActivityFeedConfig): _$_tanstack_rea
916
878
  * delegate.mutate({ delegateAddress: "0xDelegate" });
917
879
  * ```
918
880
  */
919
- declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult$1, Error, DelegateDecryptionParams$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, DelegateDecryptionParams$1, unknown>;
881
+ declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, DelegateDecryptionParams>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, DelegateDecryptionParams, unknown>;
920
882
  //#endregion
921
883
  //#region src/delegation/use-revoke-delegation.d.ts
922
884
  /**
@@ -931,16 +893,16 @@ declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutat
931
893
  * revoke.mutate({ delegateAddress: "0xDelegate" });
932
894
  * ```
933
895
  */
934
- declare function useRevokeDelegation(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult$1, Error, RevokeDelegationParams$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, RevokeDelegationParams$1, unknown>;
896
+ declare function useRevokeDelegation(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, RevokeDelegationParams>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, RevokeDelegationParams, unknown>;
935
897
  //#endregion
936
898
  //#region src/delegation/use-delegation-status.d.ts
937
899
  interface UseDelegationStatusConfig {
938
900
  /** Address of the confidential token contract. Pass `undefined` to disable the query. */
939
- tokenAddress: Address$1 | undefined;
901
+ tokenAddress: Address | undefined;
940
902
  /** The address that granted the delegation. */
941
- delegatorAddress?: Address$1;
903
+ delegatorAddress?: Address;
942
904
  /** The address that received delegation rights. */
943
- delegateAddress?: Address$1;
905
+ delegateAddress?: Address;
944
906
  }
945
907
  /**
946
908
  * Query delegation status between a delegator and delegate for a token.
@@ -959,7 +921,7 @@ interface UseDelegationStatusConfig {
959
921
  * // data?.isDelegated, data?.expiryTimestamp
960
922
  * ```
961
923
  */
962
- declare function useDelegationStatus(config: UseDelegationStatusConfig, options?: Omit<UseQueryOptions<DelegationStatusData$1>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<DelegationStatusData$1, Error>;
924
+ declare function useDelegationStatus(config: UseDelegationStatusConfig, options?: Omit<UseQueryOptions<DelegationStatusData>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<DelegationStatusData, Error>;
963
925
  //#endregion
964
926
  //#region src/delegation/use-decrypt-balance-as.d.ts
965
927
  /**
@@ -975,7 +937,7 @@ declare function useDelegationStatus(config: UseDelegationStatusConfig, options?
975
937
  * // decryptAs.data => 1000n
976
938
  * ```
977
939
  */
978
- declare function useDecryptBalanceAs(tokenAddress: Address$1, options?: UseMutationOptions<bigint, Error, DecryptBalanceAsParams$1>): _$_tanstack_react_query0.UseMutationResult<bigint, Error, DecryptBalanceAsParams$1, unknown>;
940
+ declare function useDecryptBalanceAs(tokenAddress: Address, options?: UseMutationOptions<bigint, Error, DecryptBalanceAsParams>): _$_tanstack_react_query0.UseMutationResult<bigint, Error, DecryptBalanceAsParams, unknown>;
979
941
  //#endregion
980
942
  //#region src/delegation/use-batch-decrypt-balances-as.d.ts
981
943
  /**
@@ -993,7 +955,7 @@ declare function useDecryptBalanceAs(tokenAddress: Address$1, options?: UseMutat
993
955
  * // batchDecryptAs.data => Map { "0xTokenA" => 100n, "0xTokenB" => 200n }
994
956
  * ```
995
957
  */
996
- declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken$1[], options?: UseMutationOptions<Map<Address$1, bigint>, Error, BatchDecryptBalancesAsParams$1>): _$_tanstack_react_query0.UseMutationResult<Map<`0x${string}`, bigint>, Error, _$_zama_fhe_sdk0.BatchDecryptAsOptions, unknown>;
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>;
997
959
  //#endregion
998
960
  //#region src/shield/use-approve-underlying.d.ts
999
961
  /**
@@ -1015,7 +977,7 @@ declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken$1[], options?:
1015
977
  * approve.mutate({ amount: 1000n }); // exact amount
1016
978
  * ```
1017
979
  */
1018
- declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult$1, Error, ApproveUnderlyingParams$1, Address$1>): _$_tanstack_react_query0.UseMutationResult<TransactionResult$1, Error, ApproveUnderlyingParams$1, `0x${string}`>;
980
+ declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutationOptions<TransactionResult, Error, ApproveUnderlyingParams, Address>): _$_tanstack_react_query0.UseMutationResult<TransactionResult, Error, ApproveUnderlyingParams, `0x${string}`>;
1019
981
  //#endregion
1020
982
  //#region src/token/use-is-confidential.d.ts
1021
983
  /**
@@ -1031,7 +993,7 @@ declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutati
1031
993
  * const { data: isConfidential } = useIsConfidential("0xToken");
1032
994
  * ```
1033
995
  */
1034
- declare function useIsConfidential(tokenAddress: Address$1, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
996
+ declare function useIsConfidential(tokenAddress: Address, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
1035
997
  /**
1036
998
  * Suspense variant of {@link useIsConfidential}.
1037
999
  * Suspends rendering until the ERC-165 check resolves.
@@ -1044,7 +1006,7 @@ declare function useIsConfidential(tokenAddress: Address$1, options?: Omit<UseQu
1044
1006
  * const { data: isConfidential } = useIsConfidentialSuspense("0xToken");
1045
1007
  * ```
1046
1008
  */
1047
- declare function useIsConfidentialSuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1009
+ declare function useIsConfidentialSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1048
1010
  /**
1049
1011
  * Check if a token supports the ERC-7984 wrapper interface via ERC-165.
1050
1012
  * Result is cached indefinitely since interface support does not change.
@@ -1058,7 +1020,7 @@ declare function useIsConfidentialSuspense(tokenAddress: Address$1): _$_tanstack
1058
1020
  * const { data: isWrapper } = useIsWrapper("0xToken");
1059
1021
  * ```
1060
1022
  */
1061
- declare function useIsWrapper(tokenAddress: Address$1, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
1023
+ declare function useIsWrapper(tokenAddress: Address, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
1062
1024
  /**
1063
1025
  * Suspense variant of {@link useIsWrapper}.
1064
1026
  * Suspends rendering until the ERC-165 check resolves.
@@ -1071,7 +1033,7 @@ declare function useIsWrapper(tokenAddress: Address$1, options?: Omit<UseQueryOp
1071
1033
  * const { data: isWrapper } = useIsWrapperSuspense("0xToken");
1072
1034
  * ```
1073
1035
  */
1074
- declare function useIsWrapperSuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1036
+ declare function useIsWrapperSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1075
1037
  //#endregion
1076
1038
  //#region src/token/use-total-supply.d.ts
1077
1039
  /**
@@ -1087,7 +1049,7 @@ declare function useIsWrapperSuspense(tokenAddress: Address$1): _$_tanstack_reac
1087
1049
  * const { data: totalSupply } = useTotalSupply("0xToken");
1088
1050
  * ```
1089
1051
  */
1090
- declare function useTotalSupply(tokenAddress: Address$1, options?: Omit<UseQueryOptions<bigint>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<bigint, Error>;
1052
+ declare function useTotalSupply(tokenAddress: Address, options?: Omit<UseQueryOptions<bigint>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<bigint, Error>;
1091
1053
  /**
1092
1054
  * Suspense variant of {@link useTotalSupply}.
1093
1055
  * Suspends rendering until the total supply is loaded.
@@ -1100,7 +1062,7 @@ declare function useTotalSupply(tokenAddress: Address$1, options?: Omit<UseQuery
1100
1062
  * const { data: totalSupply } = useTotalSupplySuspense("0xToken");
1101
1063
  * ```
1102
1064
  */
1103
- declare function useTotalSupplySuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<bigint, Error>;
1065
+ declare function useTotalSupplySuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<bigint, Error>;
1104
1066
  //#endregion
1105
1067
  //#region src/wrappers-registry/use-wrappers-registry-address.d.ts
1106
1068
  /**
@@ -1114,14 +1076,14 @@ declare function useTotalSupplySuspense(tokenAddress: Address$1): _$_tanstack_re
1114
1076
  * The chain ID is cached for 30 seconds (`staleTime`), so chain
1115
1077
  * switches may take up to 30s to reflect.
1116
1078
  */
1117
- declare function useWrappersRegistryAddress(): Address$1 | undefined;
1079
+ declare function useWrappersRegistryAddress(): Address | undefined;
1118
1080
  //#endregion
1119
1081
  //#region src/wrappers-registry/use-token-pairs-registry.d.ts
1120
1082
  /**
1121
1083
  * Fetches all token wrapper pairs from the ConfidentialTokenWrappersRegistry
1122
1084
  * contract on the current chain.
1123
1085
  */
1124
- declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair$1[], Error>;
1086
+ declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
1125
1087
  //#endregion
1126
1088
  //#region src/wrappers-registry/use-token-pairs-length.d.ts
1127
1089
  /**
@@ -1142,7 +1104,7 @@ declare function useTokenPairsSlice({
1142
1104
  }: {
1143
1105
  fromIndex: bigint | undefined;
1144
1106
  toIndex: bigint | undefined;
1145
- }): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair$1[], Error>;
1107
+ }): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
1146
1108
  //#endregion
1147
1109
  //#region src/wrappers-registry/use-token-pair.d.ts
1148
1110
  /**
@@ -1154,7 +1116,7 @@ declare function useTokenPair({
1154
1116
  index
1155
1117
  }: {
1156
1118
  index: bigint | undefined;
1157
- }): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair$1, Error>;
1119
+ }): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair, Error>;
1158
1120
  //#endregion
1159
1121
  //#region src/wrappers-registry/use-confidential-token-address.d.ts
1160
1122
  /**
@@ -1163,7 +1125,7 @@ declare function useTokenPair({
1163
1125
  declare function useConfidentialTokenAddress({
1164
1126
  tokenAddress
1165
1127
  }: {
1166
- tokenAddress: Address$1 | undefined;
1128
+ tokenAddress: Address | undefined;
1167
1129
  }): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
1168
1130
  //#endregion
1169
1131
  //#region src/wrappers-registry/use-token-address.d.ts
@@ -1173,7 +1135,7 @@ declare function useConfidentialTokenAddress({
1173
1135
  declare function useTokenAddress({
1174
1136
  confidentialTokenAddress
1175
1137
  }: {
1176
- confidentialTokenAddress: Address$1 | undefined;
1138
+ confidentialTokenAddress: Address | undefined;
1177
1139
  }): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
1178
1140
  //#endregion
1179
1141
  //#region src/wrappers-registry/use-is-confidential-token-valid.d.ts
@@ -1186,7 +1148,7 @@ declare function useTokenAddress({
1186
1148
  declare function useIsConfidentialTokenValid({
1187
1149
  confidentialTokenAddress
1188
1150
  }: {
1189
- confidentialTokenAddress: Address$1 | undefined;
1151
+ confidentialTokenAddress: Address | undefined;
1190
1152
  }): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
1191
1153
  //#endregion
1192
1154
  //#region src/wrappers-registry/use-list-pairs.d.ts
@@ -1211,15 +1173,7 @@ declare function useListPairs({
1211
1173
  page?: number;
1212
1174
  pageSize?: number;
1213
1175
  metadata?: boolean;
1214
- }): _$_tanstack_react_query0.UseQueryResult<PaginatedResult$1<TokenWrapperPair$1 | TokenWrapperPairWithMetadata$1>, Error>;
1215
- //#endregion
1216
- //#region src/balance/optimistic-balance-update.d.ts
1217
- type OptimisticBalanceSnapshot = [QueryKey, bigint | undefined][];
1218
- /** Combined context returned by optimistic `onMutate`. */
1219
- interface OptimisticMutateContext {
1220
- snapshot: OptimisticBalanceSnapshot;
1221
- callerContext?: unknown;
1222
- }
1176
+ }): _$_tanstack_react_query0.UseQueryResult<PaginatedResult<TokenWrapperPair | TokenWrapperPairWithMetadata>, Error>;
1223
1177
  //#endregion
1224
- export { ACL_TOPICS, type AclEvent, AclPausedError, type ActivityAmount, type ActivityDirection, type ActivityItem, type ActivityLogMetadata, type ActivityType, type Address, ApprovalFailedError, type ApproveSubmittedEvent, type ApproveUnderlyingParams, type ApproveUnderlyingSubmittedEvent, BalanceCheckUnavailableError, type BaseEvent, type BatchBalancesResult, type BatchDecryptAsOptions, type BatchDecryptBalancesAsParams, ChromeSessionStorage, type ClearValueType, type ConfidentialApproveParams, type ConfidentialTransferEvent, type ConfidentialTransferFromParams, type ConfidentialTransferParams, ConfigurationError, type ContractAbi, type CreateDelegatedUserDecryptEIP712Params, type CreateEIP712Params, type CredentialsAllowedEvent, type CredentialsCachedEvent, type CredentialsCreatedEvent, type CredentialsCreatingEvent, type CredentialsExpiredEvent, type CredentialsLoadingEvent, CredentialsManager, type CredentialsManagerConfig, type CredentialsRevokedEvent, type DecryptBalanceAsParams, type DecryptEndEvent, type DecryptErrorEvent, type DecryptHandle, type DecryptResult, type DecryptStartEvent, DecryptionFailedError, DefaultRegistryAddresses, type DelegateDecryptionParams, DelegatedCredentialsManager, type DelegatedCredentialsManagerConfig, type DelegatedForUserDecryptionEvent, type DelegatedStoredCredentials, type DelegatedUserDecryptParams, DelegationContractIsSelfError, DelegationCooldownError, DelegationDelegateEqualsContractError, DelegationExpirationTooSoonError, DelegationExpiredError, DelegationExpiryUnchangedError, DelegationNotFoundError, DelegationNotPropagatedError, DelegationSelfNotAllowedError, type DelegationStatusData, type DelegationStatusQueryConfig, type EIP712TypedData, ERC20ReadFailedError, ERC7984_INTERFACE_ID, ERC7984_WRAPPER_INTERFACE_ID, type EncryptEndEvent, type EncryptErrorEvent, type EncryptInput, type EncryptParams, type EncryptResult, type EncryptStartEvent, EncryptionFailedError, type FheTypeName, type FhevmInstanceConfig, type FinalizeUnwrapParams, type FinalizeUnwrapSubmittedEvent, type GenericSigner, type GenericStorage, type Handle, HardhatConfig, type Hex, IndexedDBStorage, type InputProofBytesType, InsufficientConfidentialBalanceError, InsufficientERC20BalanceError, InvalidKeypairError, KeypairExpiredError, type KeypairType, type KmsDelegatedUserDecryptEIP712Type, type ListPairsOptions, type ListPairsQueryConfig, MainnetConfig, MemoryStorage, type NetworkType, NoCiphertextError, type OnChainEvent, type OptimisticBalanceSnapshot, type OptimisticMutateContext, type PaginatedResult, type PublicDecryptResult, type PublicKeyData, type PublicParamsData, type RawLog, type ReadContractArgs, type ReadContractConfig, type ReadContractReturnType, type ReadFunctionName, ReadonlyToken, RelayerRequestFailedError, type RelayerSDK, type RelayerSDKStatus, RelayerWeb, type RelayerWebConfig, type RelayerWebSecurityConfig, type ResumeUnshieldParams, type RevokeDelegationParams, type RevokedDelegationForUserDecryptionEvent, SepoliaConfig, type SessionExpiredEvent, type ShieldCallbacks, type ShieldParams, type ShieldSubmittedEvent, SigningFailedError, SigningRejectedError, type StoredCredentials, TOKEN_TOPICS, Token, type TokenMetadata, type TokenWrapperPair, type TokenWrapperPairWithMetadata, Topics, type TransactionErrorEvent, type TransactionReceipt, type TransactionResult, TransactionRevertedError, type TransferCallbacks, type TransferFromSubmittedEvent, type TransferSubmittedEvent, type UnshieldAllParams, type UnshieldCallbacks, type UnshieldParams, type UnshieldPhase1SubmittedEvent, type UnshieldPhase2StartedEvent, type UnshieldPhase2SubmittedEvent, type UnwrapParams, type UnwrapRequestedEvent, type UnwrapSubmittedEvent, type UnwrappedFinalizedEvent, type UnwrappedStartedEvent, type UseActivityFeedConfig, 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, type UserDecryptParams, type UserDecryptQueryConfig, type WrappedEvent, WrappersRegistry, type WrappersRegistryConfig, type WriteContractArgs, type WriteContractConfig, type WriteFunctionName, ZERO_HANDLE, type ZKProofLike, ZamaError, ZamaErrorCode, ZamaProvider, type ZamaProviderProps, ZamaSDK, type ZamaSDKConfig, type ZamaSDKEvent, type ZamaSDKEventInput, type ZamaSDKEventListener, type ZamaSDKEventType, ZamaSDKEvents, activityFeedQueryOptions, allowMutationOptions, allowanceContract, applyDecryptedValues, approveContract, approveUnderlyingMutationOptions, balanceOfContract, batchDecryptBalancesAsMutationOptions, chromeSessionStorage, clearPendingUnshield, confidentialApproveMutationOptions, confidentialBalanceOfContract, confidentialBalanceQueryOptions, confidentialBalancesQueryOptions, confidentialIsApprovedQueryOptions, confidentialTotalSupplyContract, confidentialTransferContract, confidentialTransferFromContract, confidentialTransferFromMutationOptions, confidentialTransferMutationOptions, createDelegatedUserDecryptEIP712MutationOptions, createEIP712MutationOptions, decimalsContract, decodeAclEvent, decodeAclEvents, decodeConfidentialTransfer, decodeDelegatedForUserDecryption, decodeOnChainEvent, decodeOnChainEvents, decodeRevokedDelegationForUserDecryption, decodeUnwrapRequested, decodeUnwrappedFinalized, decodeUnwrappedStarted, decodeWrapped, decryptBalanceAsMutationOptions, delegateDecryptionMutationOptions, delegateForUserDecryptionContract, delegatedUserDecryptMutationOptions, delegationStatusQueryOptions, encryptMutationOptions, extractEncryptedHandles, filterQueryOptions, finalizeUnwrapContract, finalizeUnwrapMutationOptions, findDelegatedForUserDecryption, findRevokedDelegationForUserDecryption, findUnwrapRequested, findWrapped, generateKeypairMutationOptions, getDelegationExpiryContract, hashFn, indexedDBStorage, inferredTotalSupplyContract, isAllowedQueryOptions, isConfidentialQueryOptions, isConfidentialTokenContract, isConfidentialWrapperContract, isHandleDelegatedContract, isOperatorContract, isWrapperQueryOptions, isZeroHandle, listPairsQueryOptions, loadPendingUnshield, matchAclRevert, matchZamaError, memoryStorage, nameContract, parseActivityFeed, publicDecryptMutationOptions, publicKeyQueryOptions, publicParamsQueryOptions, rateContract, requestZKProofVerificationMutationOptions, resumeUnshieldMutationOptions, revokeDelegationContract, revokeDelegationMutationOptions, revokeMutationOptions, revokeSessionMutationOptions, savePendingUnshield, setOperatorContract, shieldMutationOptions, signerAddressQueryOptions, sortByBlockNumber, supportsInterfaceContract, symbolContract, tokenMetadataQueryOptions, totalSupplyContract, totalSupplyQueryOptions, underlyingAllowanceQueryOptions, underlyingContract, unshieldAllMutationOptions, unshieldMutationOptions, unwrapAllMutationOptions, unwrapContract, unwrapFromBalanceContract, unwrapMutationOptions, useActivityFeed, 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, userDecryptQueryOptions, wrapContract, wrapperDiscoveryQueryOptions, zamaQueryKeys };
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 };
1225
1179
  //# sourceMappingURL=index.d.ts.map