@pyratzlabs/react-fhevm-utils 3.5.0 → 3.5.1

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.
@@ -4,11 +4,11 @@ import { FhevmInstance, FhevmInstanceConfig } from "@zama-fhe/relayer-sdk/bundle
4
4
  interface ProviderProps {
5
5
  children: ReactNode;
6
6
  network?: Network;
7
- config?: FhevmInstanceConfig;
7
+ config?: Partial<FhevmInstanceConfig>;
8
8
  }
9
9
  interface ContextProps {
10
10
  instance?: FhevmInstance;
11
- config?: FhevmInstanceConfig;
11
+ config?: Partial<FhevmInstanceConfig>;
12
12
  }
13
13
  export declare const FhevmContext: React.Context<ContextProps>;
14
14
  declare const FhevmProvider: ({ children, network, config, }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export declare const useGetFhevmConfig: () => {
2
- config: {
2
+ config: Partial<{
3
3
  verifyingContractAddressDecryption: string;
4
4
  verifyingContractAddressInputVerification: string;
5
5
  kmsContractAddress: string;
@@ -15,5 +15,5 @@ export declare const useGetFhevmConfig: () => {
15
15
  publicParams?: import("@zama-fhe/relayer-sdk/web").FhevmPkeCrsByCapacityType | undefined;
16
16
  auth?: import("@zama-fhe/relayer-sdk/web").Auth | undefined;
17
17
  debug?: boolean | undefined;
18
- } | undefined;
18
+ }> | undefined;
19
19
  };
@@ -10,6 +10,6 @@ declare global {
10
10
  };
11
11
  }
12
12
  }
13
- export declare const createFhevmInstance: (network?: Network, customConfig?: FhevmInstanceConfig) => Promise<FhevmInstance>;
14
- export declare const getOrCreateFhevmInstance: (network?: Network, customConfig?: FhevmInstanceConfig) => Promise<FhevmInstance>;
13
+ export declare const createFhevmInstance: (network?: Network, customConfig?: Partial<FhevmInstanceConfig>) => Promise<FhevmInstance>;
14
+ export declare const getOrCreateFhevmInstance: (network?: Network, customConfig?: Partial<FhevmInstanceConfig>) => Promise<FhevmInstance>;
15
15
  export declare const getInstance: () => FhevmInstance | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyratzlabs/react-fhevm-utils",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "React hooks and utilities for Fhevmjs",
5
5
  "main": "dist/index.js",
6
6
  "files": [