@zama-fhe/react-sdk 3.1.0-alpha.3 → 3.1.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -5
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { Address, BatchBalancesResult, EncryptParams, PaginatedResult, Token, TokenWrapperPair, TokenWrapperPairWithMetadata, TransactionResult, WrappedToken, ZamaConfig, ZamaSDK } from "@zama-fhe/sdk";
3
+ import { Address, BatchBalancesResult, EncryptParams, EncryptResult, PaginatedResult, Token, TokenWrapperPair, TokenWrapperPairWithMetadata, TransactionResult, WrappedToken, ZamaConfig, ZamaSDK } from "@zama-fhe/sdk";
4
4
  import { ApproveUnderlyingParams, BatchDecryptBalancesAsParams, ConfidentialSetOperatorParams, ConfidentialTransferFromParams, ConfidentialTransferParams, DecryptBalanceAsParams, DecryptResult, DelegateDecryptionParams, DelegatedDecryptMutationParams, DelegationStatusData, FinalizeUnwrapParams, ResumeUnshieldParams, RevokeDelegationParams, ShieldParams, TokenMetadata, UnshieldAllParams, UnshieldParams, UnwrapParams } from "@zama-fhe/sdk/query";
5
5
  import { UseMutationOptions, UseMutationResult, UseQueryOptions } from "@tanstack/react-query";
6
6
  import { PropsWithChildren } from "react";
@@ -54,10 +54,7 @@ declare function useZamaSDK(): ZamaSDK;
54
54
  * encrypt.mutate({ values: [{ value: 1000n, type: "euint64" }], contractAddress: "0x...", userAddress: "0x..." });
55
55
  * ```
56
56
  */
57
- declare function useEncrypt(): import("@tanstack/react-query").UseMutationResult<Readonly<{
58
- handles: Uint8Array[];
59
- inputProof: Uint8Array;
60
- }>, Error, EncryptParams, unknown>;
57
+ declare function useEncrypt(): import("@tanstack/react-query").UseMutationResult<EncryptResult, Error, EncryptParams, unknown>;
61
58
  //#endregion
62
59
  //#region src/decrypt/use-user-decrypt.d.ts
63
60
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zama-fhe/react-sdk",
3
- "version": "3.1.0-alpha.3",
3
+ "version": "3.1.0-alpha.4",
4
4
  "description": "React hooks for Zama SDK",
5
5
  "license": "BSD-3-Clause-Clear",
6
6
  "author": "Zama",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@tanstack/react-query": ">=5",
65
- "@zama-fhe/sdk": "^3.1.0-alpha.3",
65
+ "@zama-fhe/sdk": "^3.1.0-alpha.4",
66
66
  "react": ">=18",
67
67
  "viem": ">=2",
68
68
  "wagmi": ">=2"