@cofhe/hardhat-plugin 0.0.0-beta-20260708091815 → 0.0.0-beta-20260729121659

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 (3) hide show
  1. package/CHANGELOG.md +11 -3
  2. package/README.md +13 -13
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # @cofhe/hardhat-plugin Changelog
2
2
 
3
- ## 0.0.0-beta-20260708091815
3
+ ## 0.0.0-beta-20260729121659
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d4d662f]
8
+ - @cofhe/sdk@0.0.0-beta-20260729121659
9
+ - @cofhe/mock-contracts@0.0.0-beta-20260729121659
10
+
11
+ ## 0.6.1
4
12
 
5
13
  ### Patch Changes
6
14
 
7
15
  - Updated dependencies [670cda8]
8
- - @cofhe/sdk@0.0.0-beta-20260708091815
9
- - @cofhe/mock-contracts@0.0.0-beta-20260708091815
16
+ - @cofhe/sdk@0.6.1
17
+ - @cofhe/mock-contracts@0.6.1
10
18
 
11
19
  ## 0.6.0
12
20
 
package/README.md CHANGED
@@ -5,11 +5,11 @@ A Hardhat plugin for Fully Homomorphic Encryption (FHE) development with CoFHE.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install cofhe-hardhat-plugin
8
+ npm install @cofhe/hardhat-plugin
9
9
  # or
10
- yarn add cofhe-hardhat-plugin
10
+ yarn add @cofhe/hardhat-plugin
11
11
  # or
12
- pnpm add cofhe-hardhat-plugin
12
+ pnpm add @cofhe/hardhat-plugin
13
13
  ```
14
14
 
15
15
  ## Configuration
@@ -18,9 +18,9 @@ Add the plugin to your Hardhat config:
18
18
 
19
19
  ```javascript
20
20
  // hardhat.config.js or hardhat.config.ts
21
- require('cofhe-hardhat-plugin');
21
+ require('@cofhe/hardhat-plugin');
22
22
  // or if using TypeScript
23
- import 'cofhe-hardhat-plugin';
23
+ import '@cofhe/hardhat-plugin';
24
24
 
25
25
  module.exports = {
26
26
  // ... other config
@@ -41,7 +41,7 @@ The plugin automatically adds network configurations for:
41
41
 
42
42
  ### Mock Contracts
43
43
 
44
- This plugin uses [cofhe-mock-contracts](https://github.com/FhenixProtocol/cofhe-mock-contracts) to provide on-chain simulations of the CoFHE system. These mock contracts enable development and testing without requiring the actual off-chain FHE computation engine.
44
+ This plugin uses [@cofhe/mock-contracts](https://github.com/FhenixProtocol/cofhesdk/tree/main/packages/mock-contracts) to provide on-chain simulations of the CoFHE system. These mock contracts enable development and testing without requiring the actual off-chain FHE computation engine.
45
45
 
46
46
  The mock contracts include:
47
47
 
@@ -84,15 +84,15 @@ The plugin exports several utility functions for working with mock contracts:
84
84
 
85
85
  ```typescript
86
86
  // Get plaintext value from a ciphertext hash
87
- import { mock_getPlaintext } from 'cofhe-hardhat-plugin';
87
+ import { mock_getPlaintext } from '@cofhe/hardhat-plugin';
88
88
  const plaintext = await mock_getPlaintext(provider, ctHash);
89
89
 
90
90
  // Check if a plaintext exists for a ciphertext hash
91
- import { mock_getPlaintextExists } from 'cofhe-hardhat-plugin';
91
+ import { mock_getPlaintextExists } from '@cofhe/hardhat-plugin';
92
92
  const exists = await mock_getPlaintextExists(provider, ctHash);
93
93
 
94
94
  // Test assertion for plaintext values
95
- import { mock_expectPlaintext } from 'cofhe-hardhat-plugin';
95
+ import { mock_expectPlaintext } from '@cofhe/hardhat-plugin';
96
96
  await mock_expectPlaintext(provider, ctHash, expectedValue);
97
97
  ```
98
98
 
@@ -100,15 +100,15 @@ await mock_expectPlaintext(provider, ctHash, expectedValue);
100
100
 
101
101
  ```typescript
102
102
  // Get the CoFHE environment based on network name
103
- import { getCofheEnvironmentFromNetwork } from 'cofhe-hardhat-plugin';
103
+ import { getCofheEnvironmentFromNetwork } from '@cofhe/hardhat-plugin';
104
104
  const environment = getCofheEnvironmentFromNetwork(networkName);
105
105
 
106
106
  // Check if a CoFHE environment is permitted for a given network
107
- import { isPermittedCofheEnvironment } from 'cofhe-hardhat-plugin';
107
+ import { isPermittedCofheEnvironment } from '@cofhe/hardhat-plugin';
108
108
  const isPermitted = isPermittedCofheEnvironment(hre, environmentName);
109
109
 
110
110
  // Initialize CoFHEjs with a Hardhat signer
111
- import { cofhejs_initializeWithHardhatSigner } from 'cofhe-hardhat-plugin';
111
+ import { cofhejs_initializeWithHardhatSigner } from '@cofhe/hardhat-plugin';
112
112
  await cofhejs_initializeWithHardhatSigner(signer, options);
113
113
  ```
114
114
 
@@ -118,7 +118,7 @@ The plugin automatically deploys mock contracts when running tests:
118
118
 
119
119
  ```typescript
120
120
  import { expect } from "chai";
121
- import { mock_expectPlaintext } from "cofhe-hardhat-plugin";
121
+ import { mock_expectPlaintext } from "@cofhe/hardhat-plugin";
122
122
 
123
123
  describe("My FHE Contract", function() {
124
124
  it("should store encrypted value correctly", async function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofhe/hardhat-plugin",
3
- "version": "0.0.0-beta-20260708091815",
3
+ "version": "0.0.0-beta-20260729121659",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "fast-glob": "3.3.2",
22
22
  "viem": "2.38.6",
23
23
  "chai": "4.5.0",
24
- "@cofhe/sdk": "0.0.0-beta-20260708091815",
25
- "@cofhe/mock-contracts": "0.0.0-beta-20260708091815"
24
+ "@cofhe/sdk": "0.0.0-beta-20260729121659",
25
+ "@cofhe/mock-contracts": "0.0.0-beta-20260729121659"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@nomicfoundation/hardhat-ethers": "3.1.0",