Skip to content

chore(deps): migrate cofhejs to @cofhe/sdk@0.5.0#11

Closed
0xkkkn wants to merge 3 commits into
mainfrom
chore/fhenix-v0.5-migration
Closed

chore(deps): migrate cofhejs to @cofhe/sdk@0.5.0#11
0xkkkn wants to merge 3 commits into
mainfrom
chore/fhenix-v0.5-migration

Conversation

@0xkkkn

@0xkkkn 0xkkkn commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Renames cofhejs@^0.3.1 to @cofhe/sdk@^0.5.0 (Fhenix renamed the JS client package)
  • Bumps cofhe-hardhat-plugin to ^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 / cofhesdk consumers must move to 0.5.0 in the window — old engine and new engine are incompatible.

reineira-code is a Hardhat scaffold for plugin development. No source files import cofhejs directly (only the plugin uses it transitively via hre.cofhe.*), so no code rewrites are needed here — only the dependency rename.

Notes

  • cofhe-hardhat-plugin@0.5.0 is not yet published at the time this PR is opened — install will fail until Fhenix ships it. Empty test/ directories mean nothing currently runs against the plugin, so this is not blocking.
  • @fhenixprotocol/cofhe-contracts stays at 0.0.13 here. Tracked separately as a pre-existing version drift.
  • TASK_MANAGER_ADDRESS confirmed unchanged (0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9) — no contract redeploy needed.

Test plan

  • After cofhe-hardhat-plugin@0.5.0 ships: npm install resolves cleanly
  • npx hardhat compile succeeds
  • Sample plugin tests still execute via hre.cofhe.initializeWithHardhatSigner

0xkkkn added 3 commits April 27, 2026 15:13
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.
@0xkkkn

0xkkkn commented Apr 27, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant