@zama-fhe/react-sdk 3.0.0-alpha.7 → 3.0.0-alpha.9

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, 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, ERC7984_WRAPPER_INTERFACE_ID_LEGACY, EncryptEndEvent, EncryptErrorEvent, EncryptInput, EncryptParams, EncryptParams as EncryptParams$1, EncryptResult, 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, PublicKeyData, RawLog, 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, approveContract, balanceOfContract, chromeSessionStorage, clearPendingUnshield, confidentialBalanceOfContract, confidentialTotalSupplyContract, confidentialTransferContract, confidentialTransferFromContract, decimalsContract, decodeAclEvent, decodeAclEvents, decodeConfidentialTransfer, decodeDelegatedForUserDecryption, decodeOnChainEvent, decodeOnChainEvents, decodeRevokedDelegationForUserDecryption, decodeUnwrapRequested, decodeUnwrappedFinalized, decodeUnwrappedStarted, decodeWrapped, delegateForUserDecryptionContract, finalizeUnwrapContract, findDelegatedForUserDecryption, findRevokedDelegationForUserDecryption, findUnwrapRequested, findWrapped, getDelegationExpiryContract, indexedDBStorage, inferredTotalSupplyContract, isConfidentialTokenContract, isConfidentialWrapperContract, isHandleDelegatedContract, isOperatorContract, isZeroHandle, loadPendingUnshield, matchAclRevert, matchZamaError, memoryStorage, nameContract, rateContract, revokeDelegationContract, savePendingUnshield, setOperatorContract, 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, 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
  /**
@@ -101,14 +101,14 @@ declare function useZamaSDK(): ZamaSDK$1;
101
101
  declare function useEncrypt(): _$_tanstack_react_query0.UseMutationResult<Readonly<{
102
102
  handles: Uint8Array[];
103
103
  inputProof: Uint8Array;
104
- }>, Error, EncryptParams$1, unknown>;
104
+ }>, Error, EncryptParams, unknown>;
105
105
  //#endregion
106
106
  //#region src/relayer/use-user-decrypt.d.ts
107
107
  /**
108
108
  * React hook for FHE user decryption. Thin wrapper around
109
109
  * `userDecryptQueryOptions` with `useQuery` semantics.
110
110
  */
111
- declare function useUserDecrypt(config: UserDecryptQueryConfig$1, options?: Omit<UseQueryOptions<DecryptResult$1>, "queryKey" | "queryFn">): _$_tanstack_react_query0.UseQueryResult<Readonly<Record<`0x${string}`, _$_zama_fhe_sdk0.ClearValueType>>, 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>;
112
112
  /** Return type of {@link useUserDecrypt}. */
113
113
  type UseUserDecryptResult = ReturnType<typeof useUserDecrypt>;
114
114
  //#endregion
@@ -169,7 +169,7 @@ declare function useGenerateKeypair(): _$_tanstack_react_query0.UseMutationResul
169
169
  * });
170
170
  * ```
171
171
  */
172
- declare function useCreateEIP712(): _$_tanstack_react_query0.UseMutationResult<EIP712TypedData$1, Error, CreateEIP712Params, unknown>;
172
+ declare function useCreateEIP712(): _$_tanstack_react_query0.UseMutationResult<EIP712TypedData, Error, CreateEIP712Params, unknown>;
173
173
  //#endregion
174
174
  //#region src/relayer/use-create-delegated-user-decrypt-eip712.d.ts
175
175
  /**
@@ -210,7 +210,7 @@ declare function useCreateDelegatedUserDecryptEIP712(): _$_tanstack_react_query0
210
210
  * // decrypt.data => { "0xHandle1": 1000n }
211
211
  * ```
212
212
  */
213
- 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>;
214
214
  //#endregion
215
215
  //#region src/relayer/use-request-zk-proof-verification.d.ts
216
216
  /**
@@ -229,7 +229,7 @@ declare function useDelegatedUserDecrypt(): _$_tanstack_react_query0.UseMutation
229
229
  declare function useRequestZKProofVerification(): _$_tanstack_react_query0.UseMutationResult<Readonly<{
230
230
  handles: Uint8Array[];
231
231
  inputProof: Uint8Array;
232
- }>, Error, ZKProofLike$1, unknown>;
232
+ }>, Error, ZKProofLike, unknown>;
233
233
  //#endregion
234
234
  //#region src/relayer/use-public-key.d.ts
235
235
  /**
@@ -286,13 +286,13 @@ declare function usePublicParams(bits: number): _$_tanstack_react_query0.UseQuer
286
286
  * await allow([tokenAddress, auctionAddress, governanceAddress]);
287
287
  * ```
288
288
  */
289
- 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>;
290
290
  //#endregion
291
291
  //#region src/authorization/use-is-allowed.d.ts
292
292
  /** Configuration for {@link useIsAllowed}. */
293
293
  interface UseIsAllowedConfig {
294
294
  /** Contract addresses to check credentials against (at least one required). */
295
- contractAddresses: [Address$1, ...Address$1[]];
295
+ contractAddresses: [Address, ...Address[]];
296
296
  }
297
297
  /**
298
298
  * Check whether a session signature is cached for the connected wallet
@@ -321,7 +321,7 @@ declare function useIsAllowed(config: UseIsAllowedConfig): _$_tanstack_react_que
321
321
  * revoke([tokenAddress, auctionAddress]);
322
322
  * ```
323
323
  */
324
- 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>;
325
325
  //#endregion
326
326
  //#region src/authorization/use-revoke-session.d.ts
327
327
  /**
@@ -340,9 +340,9 @@ declare function useRevokeSession(options?: UseMutationOptions<void>): _$_tansta
340
340
  /** Base configuration shared by all mutation hooks that need a Token instance. */
341
341
  interface UseZamaConfig {
342
342
  /** Address of the confidential token contract. */
343
- tokenAddress: Address$1;
343
+ tokenAddress: Address;
344
344
  /** Address of the wrapper contract (required for shield/unshield operations). */
345
- wrapperAddress?: Address$1;
345
+ wrapperAddress?: Address;
346
346
  }
347
347
  /**
348
348
  * Get a {@link Token} instance, memoized by address pair.
@@ -373,13 +373,13 @@ declare function useToken(config: UseZamaConfig): _$_zama_fhe_sdk0.Token;
373
373
  * // token.balanceOf(), token.isConfidential(), etc.
374
374
  * ```
375
375
  */
376
- declare function useReadonlyToken(address: Address$1): _$_zama_fhe_sdk0.ReadonlyToken;
376
+ declare function useReadonlyToken(address: Address): _$_zama_fhe_sdk0.ReadonlyToken;
377
377
  //#endregion
378
378
  //#region src/balance/use-confidential-balance.d.ts
379
379
  /** Configuration for {@link useConfidentialBalance}. */
380
380
  interface UseConfidentialBalanceConfig {
381
381
  /** Address of the confidential token contract. */
382
- tokenAddress: Address$1;
382
+ tokenAddress: Address;
383
383
  }
384
384
  /** Query options for {@link useConfidentialBalance}. */
385
385
  interface UseConfidentialBalanceOptions extends Omit<UseQueryOptions<bigint>, "queryKey" | "queryFn" | "enabled"> {
@@ -409,10 +409,10 @@ declare function useConfidentialBalance(config: UseConfidentialBalanceConfig, op
409
409
  /** Configuration for {@link useConfidentialBalances}. */
410
410
  interface UseConfidentialBalancesConfig {
411
411
  /** Addresses of the confidential token contracts to batch-query. */
412
- tokenAddresses: Address$1[];
412
+ tokenAddresses: Address[];
413
413
  }
414
414
  /** Query options for {@link useConfidentialBalances}. */
415
- interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalancesResult$1>, "queryKey" | "queryFn" | "enabled"> {
415
+ interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalancesResult>, "queryKey" | "queryFn" | "enabled"> {
416
416
  /** Whether the query is enabled. Callback form is not supported in composite hooks. */
417
417
  enabled?: boolean;
418
418
  }
@@ -440,7 +440,7 @@ interface UseConfidentialBalancesOptions extends Omit<UseQueryOptions<BatchBalan
440
440
  * }
441
441
  * ```
442
442
  */
443
- 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>;
444
444
  //#endregion
445
445
  //#region src/transfer/use-confidential-transfer.d.ts
446
446
  /** Configuration for {@link useConfidentialTransfer}. */
@@ -482,7 +482,7 @@ interface UseConfidentialTransferConfig extends UseZamaConfig {
482
482
  * );
483
483
  * ```
484
484
  */
485
- 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>;
486
486
  //#endregion
487
487
  //#region src/transfer/use-confidential-transfer-from.d.ts
488
488
  /**
@@ -503,7 +503,7 @@ declare function useConfidentialTransfer<TContext = unknown>(config: UseConfiden
503
503
  * transferFrom.mutate({ from: "0xOwner", to: "0xRecipient", amount: 500n });
504
504
  * ```
505
505
  */
506
- 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}`>;
507
507
  //#endregion
508
508
  //#region src/transfer/use-confidential-approve.d.ts
509
509
  /**
@@ -522,24 +522,24 @@ declare function useConfidentialTransferFrom(config: UseZamaConfig, options?: Us
522
522
  * approve.mutate({ spender: "0xOperator" });
523
523
  * ```
524
524
  */
525
- 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}`>;
526
526
  //#endregion
527
527
  //#region src/transfer/use-confidential-is-approved.d.ts
528
528
  /** Configuration for {@link useConfidentialIsApproved}. */
529
529
  interface UseConfidentialIsApprovedConfig {
530
530
  /** Address of the confidential token contract. Pass `undefined` to disable the query. */
531
- tokenAddress: Address$1 | undefined;
531
+ tokenAddress: Address | undefined;
532
532
  /** Address to check approval for. Pass `undefined` to disable the query. */
533
- spender: Address$1 | undefined;
533
+ spender: Address | undefined;
534
534
  /** Token holder address. Defaults to the connected wallet. */
535
- holder?: Address$1;
535
+ holder?: Address;
536
536
  }
537
537
  /** Configuration for {@link useConfidentialIsApprovedSuspense}. */
538
538
  interface UseConfidentialIsApprovedSuspenseConfig extends UseZamaConfig {
539
539
  /** Address to check approval for. */
540
- spender: Address$1;
540
+ spender: Address;
541
541
  /** Token holder address. Defaults to the connected wallet. */
542
- holder?: Address$1;
542
+ holder?: Address;
543
543
  }
544
544
  /**
545
545
  * Check if a spender is an approved operator for a given holder (defaults to connected wallet).
@@ -605,7 +605,7 @@ interface UseShieldConfig extends UseZamaConfig {
605
605
  * shield.mutate({ amount: 1000n });
606
606
  * ```
607
607
  */
608
- 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>;
609
609
  //#endregion
610
610
  //#region src/unwrap/use-unwrap.d.ts
611
611
  /**
@@ -627,7 +627,7 @@ declare function useShield<TContext = unknown>(config: UseShieldConfig, options?
627
627
  * unwrap.mutate({ amount: 500n });
628
628
  * ```
629
629
  */
630
- 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}`>;
631
631
  //#endregion
632
632
  //#region src/unwrap/use-unwrap-all.d.ts
633
633
  /**
@@ -648,7 +648,7 @@ declare function useUnwrap(config: UseZamaConfig, options?: UseMutationOptions<T
648
648
  * unwrapAll.mutate();
649
649
  * ```
650
650
  */
651
- 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}`>;
652
652
  //#endregion
653
653
  //#region src/unwrap/use-finalize-unwrap.d.ts
654
654
  /**
@@ -669,7 +669,7 @@ declare function useUnwrapAll(config: UseZamaConfig, options?: UseMutationOption
669
669
  * finalize.mutate({ unwrapRequestId: event.unwrapRequestId });
670
670
  * ```
671
671
  */
672
- 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}`>;
673
673
  //#endregion
674
674
  //#region src/unshield/use-unshield.d.ts
675
675
  /**
@@ -691,7 +691,7 @@ declare function useFinalizeUnwrap(config: UseZamaConfig, options?: UseMutationO
691
691
  * unshield.mutate({ amount: 500n });
692
692
  * ```
693
693
  */
694
- 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}`>;
695
695
  //#endregion
696
696
  //#region src/unshield/use-unshield-all.d.ts
697
697
  /**
@@ -712,7 +712,7 @@ declare function useUnshield(config: UseZamaConfig, options?: UseMutationOptions
712
712
  * unshieldAll.mutate();
713
713
  * ```
714
714
  */
715
- 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}`>;
716
716
  //#endregion
717
717
  //#region src/unshield/use-resume-unshield.d.ts
718
718
  /**
@@ -733,15 +733,15 @@ declare function useUnshieldAll(config: UseZamaConfig, options?: UseMutationOpti
733
733
  * resumeUnshield.mutate({ unwrapTxHash: "0xabc..." });
734
734
  * ```
735
735
  */
736
- 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}`>;
737
737
  //#endregion
738
738
  //#region src/shield/use-underlying-allowance.d.ts
739
739
  /** Configuration for {@link useUnderlyingAllowance}. */
740
740
  interface UseUnderlyingAllowanceConfig {
741
741
  /** Address of the confidential token contract used to scope the query cache. */
742
- tokenAddress: Address$1;
742
+ tokenAddress: Address;
743
743
  /** Address of the wrapper contract whose underlying ERC-20 allowance is checked. */
744
- wrapperAddress: Address$1;
744
+ wrapperAddress: Address;
745
745
  }
746
746
  /**
747
747
  * Read the underlying ERC-20 allowance granted to the wrapper contract.
@@ -785,9 +785,9 @@ interface UseWrapperDiscoveryConfig {
785
785
  * Used only to derive the signer context and to scope the query cache key —
786
786
  * it does not affect which wrapper the registry returns.
787
787
  */
788
- tokenAddress: Address$1;
788
+ tokenAddress: Address;
789
789
  /** ERC-20 address to discover the wrapper for. Pass `undefined` to disable the query. */
790
- erc20Address: Address$1 | undefined;
790
+ erc20Address: Address | undefined;
791
791
  }
792
792
  /** Configuration for {@link useWrapperDiscoverySuspense}. */
793
793
  interface UseWrapperDiscoverySuspenseConfig {
@@ -796,9 +796,9 @@ interface UseWrapperDiscoverySuspenseConfig {
796
796
  * Used only to derive the signer context and to scope the query cache key —
797
797
  * it does not affect which wrapper the registry returns.
798
798
  */
799
- tokenAddress: Address$1;
799
+ tokenAddress: Address;
800
800
  /** ERC-20 address to discover the wrapper for. */
801
- erc20Address: Address$1;
801
+ erc20Address: Address;
802
802
  }
803
803
  /**
804
804
  * Discover the confidential wrapper for an ERC-20 token via the on-chain registry.
@@ -817,7 +817,7 @@ interface UseWrapperDiscoverySuspenseConfig {
817
817
  * });
818
818
  * ```
819
819
  */
820
- 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>;
821
821
  /**
822
822
  * Suspense variant of {@link useWrapperDiscovery}.
823
823
  * Suspends rendering until the wrapper address is resolved.
@@ -850,7 +850,7 @@ declare function useWrapperDiscoverySuspense(config: UseWrapperDiscoverySuspense
850
850
  * // metadata?.name, metadata?.symbol, metadata?.decimals
851
851
  * ```
852
852
  */
853
- 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>;
854
854
  /**
855
855
  * Suspense variant of {@link useMetadata}.
856
856
  * Suspends rendering until metadata is loaded.
@@ -863,7 +863,7 @@ declare function useMetadata(tokenAddress: Address$1, options?: Omit<UseQueryOpt
863
863
  * const { data: metadata } = useMetadataSuspense("0xToken");
864
864
  * ```
865
865
  */
866
- declare function useMetadataSuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<TokenMetadata, Error>;
866
+ declare function useMetadataSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<TokenMetadata, Error>;
867
867
  //#endregion
868
868
  //#region src/delegation/use-delegate-decryption.d.ts
869
869
  /**
@@ -878,7 +878,7 @@ declare function useMetadataSuspense(tokenAddress: Address$1): _$_tanstack_react
878
878
  * delegate.mutate({ delegateAddress: "0xDelegate" });
879
879
  * ```
880
880
  */
881
- 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>;
882
882
  //#endregion
883
883
  //#region src/delegation/use-revoke-delegation.d.ts
884
884
  /**
@@ -893,16 +893,16 @@ declare function useDelegateDecryption(config: UseZamaConfig, options?: UseMutat
893
893
  * revoke.mutate({ delegateAddress: "0xDelegate" });
894
894
  * ```
895
895
  */
896
- 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>;
897
897
  //#endregion
898
898
  //#region src/delegation/use-delegation-status.d.ts
899
899
  interface UseDelegationStatusConfig {
900
900
  /** Address of the confidential token contract. Pass `undefined` to disable the query. */
901
- tokenAddress: Address$1 | undefined;
901
+ tokenAddress: Address | undefined;
902
902
  /** The address that granted the delegation. */
903
- delegatorAddress?: Address$1;
903
+ delegatorAddress?: Address;
904
904
  /** The address that received delegation rights. */
905
- delegateAddress?: Address$1;
905
+ delegateAddress?: Address;
906
906
  }
907
907
  /**
908
908
  * Query delegation status between a delegator and delegate for a token.
@@ -921,7 +921,7 @@ interface UseDelegationStatusConfig {
921
921
  * // data?.isDelegated, data?.expiryTimestamp
922
922
  * ```
923
923
  */
924
- 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>;
925
925
  //#endregion
926
926
  //#region src/delegation/use-decrypt-balance-as.d.ts
927
927
  /**
@@ -937,7 +937,7 @@ declare function useDelegationStatus(config: UseDelegationStatusConfig, options?
937
937
  * // decryptAs.data => 1000n
938
938
  * ```
939
939
  */
940
- 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>;
941
941
  //#endregion
942
942
  //#region src/delegation/use-batch-decrypt-balances-as.d.ts
943
943
  /**
@@ -955,7 +955,7 @@ declare function useDecryptBalanceAs(tokenAddress: Address$1, options?: UseMutat
955
955
  * // batchDecryptAs.data => Map { "0xTokenA" => 100n, "0xTokenB" => 200n }
956
956
  * ```
957
957
  */
958
- 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>;
959
959
  //#endregion
960
960
  //#region src/shield/use-approve-underlying.d.ts
961
961
  /**
@@ -977,7 +977,7 @@ declare function useBatchDecryptBalancesAs(tokens: ReadonlyToken$1[], options?:
977
977
  * approve.mutate({ amount: 1000n }); // exact amount
978
978
  * ```
979
979
  */
980
- 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}`>;
981
981
  //#endregion
982
982
  //#region src/token/use-is-confidential.d.ts
983
983
  /**
@@ -993,7 +993,7 @@ declare function useApproveUnderlying(config: UseZamaConfig, options?: UseMutati
993
993
  * const { data: isConfidential } = useIsConfidential("0xToken");
994
994
  * ```
995
995
  */
996
- 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>;
997
997
  /**
998
998
  * Suspense variant of {@link useIsConfidential}.
999
999
  * Suspends rendering until the ERC-165 check resolves.
@@ -1006,7 +1006,7 @@ declare function useIsConfidential(tokenAddress: Address$1, options?: Omit<UseQu
1006
1006
  * const { data: isConfidential } = useIsConfidentialSuspense("0xToken");
1007
1007
  * ```
1008
1008
  */
1009
- declare function useIsConfidentialSuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1009
+ declare function useIsConfidentialSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1010
1010
  /**
1011
1011
  * Check if a token supports the ERC-7984 wrapper interface via ERC-165.
1012
1012
  * Result is cached indefinitely since interface support does not change.
@@ -1020,7 +1020,7 @@ declare function useIsConfidentialSuspense(tokenAddress: Address$1): _$_tanstack
1020
1020
  * const { data: isWrapper } = useIsWrapper("0xToken");
1021
1021
  * ```
1022
1022
  */
1023
- 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>;
1024
1024
  /**
1025
1025
  * Suspense variant of {@link useIsWrapper}.
1026
1026
  * Suspends rendering until the ERC-165 check resolves.
@@ -1033,7 +1033,7 @@ declare function useIsWrapper(tokenAddress: Address$1, options?: Omit<UseQueryOp
1033
1033
  * const { data: isWrapper } = useIsWrapperSuspense("0xToken");
1034
1034
  * ```
1035
1035
  */
1036
- declare function useIsWrapperSuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1036
+ declare function useIsWrapperSuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<boolean, Error>;
1037
1037
  //#endregion
1038
1038
  //#region src/token/use-total-supply.d.ts
1039
1039
  /**
@@ -1049,7 +1049,7 @@ declare function useIsWrapperSuspense(tokenAddress: Address$1): _$_tanstack_reac
1049
1049
  * const { data: totalSupply } = useTotalSupply("0xToken");
1050
1050
  * ```
1051
1051
  */
1052
- 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>;
1053
1053
  /**
1054
1054
  * Suspense variant of {@link useTotalSupply}.
1055
1055
  * Suspends rendering until the total supply is loaded.
@@ -1062,7 +1062,7 @@ declare function useTotalSupply(tokenAddress: Address$1, options?: Omit<UseQuery
1062
1062
  * const { data: totalSupply } = useTotalSupplySuspense("0xToken");
1063
1063
  * ```
1064
1064
  */
1065
- declare function useTotalSupplySuspense(tokenAddress: Address$1): _$_tanstack_react_query0.UseSuspenseQueryResult<bigint, Error>;
1065
+ declare function useTotalSupplySuspense(tokenAddress: Address): _$_tanstack_react_query0.UseSuspenseQueryResult<bigint, Error>;
1066
1066
  //#endregion
1067
1067
  //#region src/wrappers-registry/use-wrappers-registry-address.d.ts
1068
1068
  /**
@@ -1076,14 +1076,14 @@ declare function useTotalSupplySuspense(tokenAddress: Address$1): _$_tanstack_re
1076
1076
  * The chain ID is cached for 30 seconds (`staleTime`), so chain
1077
1077
  * switches may take up to 30s to reflect.
1078
1078
  */
1079
- declare function useWrappersRegistryAddress(): Address$1 | undefined;
1079
+ declare function useWrappersRegistryAddress(): Address | undefined;
1080
1080
  //#endregion
1081
1081
  //#region src/wrappers-registry/use-token-pairs-registry.d.ts
1082
1082
  /**
1083
1083
  * Fetches all token wrapper pairs from the ConfidentialTokenWrappersRegistry
1084
1084
  * contract on the current chain.
1085
1085
  */
1086
- declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair$1[], Error>;
1086
+ declare function useTokenPairsRegistry(): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
1087
1087
  //#endregion
1088
1088
  //#region src/wrappers-registry/use-token-pairs-length.d.ts
1089
1089
  /**
@@ -1104,7 +1104,7 @@ declare function useTokenPairsSlice({
1104
1104
  }: {
1105
1105
  fromIndex: bigint | undefined;
1106
1106
  toIndex: bigint | undefined;
1107
- }): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair$1[], Error>;
1107
+ }): _$_tanstack_react_query0.UseQueryResult<readonly TokenWrapperPair[], Error>;
1108
1108
  //#endregion
1109
1109
  //#region src/wrappers-registry/use-token-pair.d.ts
1110
1110
  /**
@@ -1116,7 +1116,7 @@ declare function useTokenPair({
1116
1116
  index
1117
1117
  }: {
1118
1118
  index: bigint | undefined;
1119
- }): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair$1, Error>;
1119
+ }): _$_tanstack_react_query0.UseQueryResult<TokenWrapperPair, Error>;
1120
1120
  //#endregion
1121
1121
  //#region src/wrappers-registry/use-confidential-token-address.d.ts
1122
1122
  /**
@@ -1125,7 +1125,7 @@ declare function useTokenPair({
1125
1125
  declare function useConfidentialTokenAddress({
1126
1126
  tokenAddress
1127
1127
  }: {
1128
- tokenAddress: Address$1 | undefined;
1128
+ tokenAddress: Address | undefined;
1129
1129
  }): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
1130
1130
  //#endregion
1131
1131
  //#region src/wrappers-registry/use-token-address.d.ts
@@ -1135,7 +1135,7 @@ declare function useConfidentialTokenAddress({
1135
1135
  declare function useTokenAddress({
1136
1136
  confidentialTokenAddress
1137
1137
  }: {
1138
- confidentialTokenAddress: Address$1 | undefined;
1138
+ confidentialTokenAddress: Address | undefined;
1139
1139
  }): _$_tanstack_react_query0.UseQueryResult<readonly [boolean, `0x${string}`], Error>;
1140
1140
  //#endregion
1141
1141
  //#region src/wrappers-registry/use-is-confidential-token-valid.d.ts
@@ -1148,7 +1148,7 @@ declare function useTokenAddress({
1148
1148
  declare function useIsConfidentialTokenValid({
1149
1149
  confidentialTokenAddress
1150
1150
  }: {
1151
- confidentialTokenAddress: Address$1 | undefined;
1151
+ confidentialTokenAddress: Address | undefined;
1152
1152
  }): _$_tanstack_react_query0.UseQueryResult<boolean, Error>;
1153
1153
  //#endregion
1154
1154
  //#region src/wrappers-registry/use-list-pairs.d.ts
@@ -1173,15 +1173,7 @@ declare function useListPairs({
1173
1173
  page?: number;
1174
1174
  pageSize?: number;
1175
1175
  metadata?: boolean;
1176
- }): _$_tanstack_react_query0.UseQueryResult<PaginatedResult$1<TokenWrapperPair$1 | TokenWrapperPairWithMetadata$1>, Error>;
1176
+ }): _$_tanstack_react_query0.UseQueryResult<PaginatedResult<TokenWrapperPair | TokenWrapperPairWithMetadata>, Error>;
1177
1177
  //#endregion
1178
- //#region src/balance/optimistic-balance-update.d.ts
1179
- type OptimisticBalanceSnapshot = [QueryKey, bigint | undefined][];
1180
- /** Combined context returned by optimistic `onMutate`. */
1181
- interface OptimisticMutateContext {
1182
- snapshot: OptimisticBalanceSnapshot;
1183
- callerContext?: unknown;
1184
- }
1185
- //#endregion
1186
- export { ACL_TOPICS, type AclEvent, AclPausedError, 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, ERC7984_WRAPPER_INTERFACE_ID_LEGACY, 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 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 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, allowMutationOptions, allowanceContract, 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, 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, publicDecryptMutationOptions, publicKeyQueryOptions, publicParamsQueryOptions, rateContract, requestZKProofVerificationMutationOptions, resumeUnshieldMutationOptions, revokeDelegationContract, revokeDelegationMutationOptions, revokeMutationOptions, revokeSessionMutationOptions, savePendingUnshield, setOperatorContract, shieldMutationOptions, signerAddressQueryOptions, supportsInterfaceContract, symbolContract, tokenMetadataQueryOptions, totalSupplyContract, totalSupplyQueryOptions, underlyingAllowanceQueryOptions, underlyingContract, unshieldAllMutationOptions, unshieldMutationOptions, unwrapAllMutationOptions, unwrapContract, unwrapFromBalanceContract, unwrapMutationOptions, 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 };
1187
1179
  //# sourceMappingURL=index.d.ts.map