chore(deps): migrate cofhejs to @cofhe/sdk@0.5.0#11
Closed
0xkkkn wants to merge 3 commits into
Closed
Conversation
Fhenix shipped a non-backward-compatible FHE engine upgrade with a ciphertext state migration on 2026-04-27. The cofhejs JS package was renamed to @cofhe/sdk and bumped to 0.5.0; cofhe-hardhat-plugin awaits publication of its 0.5.0-compatible release. - cofhejs@^0.3.1 → @cofhe/sdk@^0.5.0 - cofhe-hardhat-plugin@^0.3.1 → ^0.5.0 (pending Fhenix publication)
…cts to 0.1.0 - cofhe-hardhat-plugin -> @cofhe/hardhat-plugin@^0.5.0 - @fhenixprotocol/cofhe-mock-contracts -> @cofhe/mock-contracts@^0.5.0 - @fhenixprotocol/cofhe-contracts 0.0.13 -> 0.1.0 Fhenix consolidated all SDK packages into FhenixProtocol/cofhesdk monorepo under the @cofhe/ scope as part of the v0.5.0 release.
Pins exact versions matching the protocol's mock-contracts/foundry-plugin tandem. mock-contracts@0.5.0 is incompatible with cofhe-contracts@0.1.3 (TestBed.sol uses removed FHE.decrypt; MockTaskManager has unimplemented abstract methods); 0.5.1 resolves both.
Contributor
Author
|
Superseded: main migrated from Hardhat to Foundry (#5) so the cofhejs/hardhat-plugin bumps in package.json are no longer applicable. Re-doing as a fresh PR against new main: only foundry.toml remappings + reineira.json cofhejs reference need updating. |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cofhejs@^0.3.1to@cofhe/sdk@^0.5.0(Fhenix renamed the JS client package)cofhe-hardhat-pluginto^0.5.0(awaiting Fhenix publication)Why
Fhenix shipped a non-backward-compatible FHE engine upgrade with a ciphertext state migration on 2026-04-27 (window 12:00–15:00 UTC). All
cofhejs/cofhesdkconsumers must move to0.5.0in the window — old engine and new engine are incompatible.reineira-codeis a Hardhat scaffold for plugin development. No source files import cofhejs directly (only the plugin uses it transitively viahre.cofhe.*), so no code rewrites are needed here — only the dependency rename.Notes
cofhe-hardhat-plugin@0.5.0is not yet published at the time this PR is opened — install will fail until Fhenix ships it. Emptytest/directories mean nothing currently runs against the plugin, so this is not blocking.@fhenixprotocol/cofhe-contractsstays at0.0.13here. Tracked separately as a pre-existing version drift.TASK_MANAGER_ADDRESSconfirmed unchanged (0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9) — no contract redeploy needed.Test plan
cofhe-hardhat-plugin@0.5.0ships:npm installresolves cleanlynpx hardhat compilesucceedshre.cofhe.initializeWithHardhatSigner