Skip to content

Version Packages#183

Open
github-actions[bot] wants to merge 1 commit intomasterfrom
changeset-release/master
Open

Version Packages#183
github-actions[bot] wants to merge 1 commit intomasterfrom
changeset-release/master

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Mar 19, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@cofhe/hardhat-3-plugin@0.5.0

Minor Changes

  • 50bb3e4: Decode custom errors from deployed mock contracts by name instead of raw hex selectors.

    @cofhe/mock-contracts

    • Replaced transient storage (tstore/tload) in MockACL.sol with block-number-based storage, removing the EVM cancun requirement and lowering the Solidity pragma to >=0.8.19.
    • Removed bytecode and deployedBytecode fields from published artifacts — they are now sourced at runtime from Hardhat's own compilation output.

    @cofhe/hardhat-plugin

    • Overrides TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS to inject a stub file that imports all mock contracts, so Hardhat compiles them and registers their artifacts. This lets the Hardhat network decode mock contract custom errors by name (e.g. PermissionInvalid_Expired) rather than raw hex.
    • Deployment bytecode is now fetched from hre.artifacts.readArtifact() instead of the pre-built artifact bundle.

    @cofhe/hardhat-3-plugin

    • Calls hre.solidity.build() during the hre.created hook to compile mock contracts once at startup, enabling the EDR to decode their custom errors by name.
    • deployFixed and deployVariable now source bytecode from hre.artifacts.readArtifact(), ensuring the deployed bytecode matches Hardhat's build info — which is required for error decoding on variable-address contracts like MockACL.

Patch Changes

  • Updated dependencies [50bb3e4]
  • Updated dependencies [788a6e2]
  • Updated dependencies [9a06012]
  • Updated dependencies [503536a]
    • @cofhe/mock-contracts@0.5.0
    • @cofhe/sdk@0.5.0

@cofhe/hardhat-plugin@0.5.0

Minor Changes

  • f78beb7: Add @cofhe/hardhat-3-plugin and @cofhe/foundry-plugin packages.

    @cofhe/hardhat-3-plugin — Hardhat 3 plugin with the same mock contract deployment, network.cofhe API, logging, and faucet task as the v2 plugin, adapted to the Hardhat 3 plugin/hook model.

    @cofhe/foundry-plugin — Foundry test utilities: CofheTest base contract (deployMocks, expectPlaintext, getPlaintext) and CofheClient SDK mock (connect, createInE*, decryptForTx, decryptForView, permits). Usable as a git submodule or npm package, with remappings.txt for Hardhat 3 Solidity test compatibility.

    mocksDeployVerbosity config option added to both Hardhat plugins:

    • '' — silent
    • 'v' — single summary line (new default)
    • 'vv' — full per-contract deployment logs (previous default behavior)
  • 50bb3e4: Decode custom errors from deployed mock contracts by name instead of raw hex selectors.

    @cofhe/mock-contracts

    • Replaced transient storage (tstore/tload) in MockACL.sol with block-number-based storage, removing the EVM cancun requirement and lowering the Solidity pragma to >=0.8.19.
    • Removed bytecode and deployedBytecode fields from published artifacts — they are now sourced at runtime from Hardhat's own compilation output.

    @cofhe/hardhat-plugin

    • Overrides TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS to inject a stub file that imports all mock contracts, so Hardhat compiles them and registers their artifacts. This lets the Hardhat network decode mock contract custom errors by name (e.g. PermissionInvalid_Expired) rather than raw hex.
    • Deployment bytecode is now fetched from hre.artifacts.readArtifact() instead of the pre-built artifact bundle.

    @cofhe/hardhat-3-plugin

    • Calls hre.solidity.build() during the hre.created hook to compile mock contracts once at startup, enabling the EDR to decode their custom errors by name.
    • deployFixed and deployVariable now source bytecode from hre.artifacts.readArtifact(), ensuring the deployed bytecode matches Hardhat's build info — which is required for error decoding on variable-address contracts like MockACL.

Patch Changes

  • Updated dependencies [50bb3e4]
  • Updated dependencies [788a6e2]
  • Updated dependencies [9a06012]
  • Updated dependencies [503536a]
    • @cofhe/mock-contracts@0.5.0
    • @cofhe/sdk@0.5.0

@cofhe/mock-contracts@0.5.0

Minor Changes

  • 50bb3e4: Decode custom errors from deployed mock contracts by name instead of raw hex selectors.

    @cofhe/mock-contracts

    • Replaced transient storage (tstore/tload) in MockACL.sol with block-number-based storage, removing the EVM cancun requirement and lowering the Solidity pragma to >=0.8.19.
    • Removed bytecode and deployedBytecode fields from published artifacts — they are now sourced at runtime from Hardhat's own compilation output.

    @cofhe/hardhat-plugin

    • Overrides TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS to inject a stub file that imports all mock contracts, so Hardhat compiles them and registers their artifacts. This lets the Hardhat network decode mock contract custom errors by name (e.g. PermissionInvalid_Expired) rather than raw hex.
    • Deployment bytecode is now fetched from hre.artifacts.readArtifact() instead of the pre-built artifact bundle.

    @cofhe/hardhat-3-plugin

    • Calls hre.solidity.build() during the hre.created hook to compile mock contracts once at startup, enabling the EDR to decode their custom errors by name.
    • deployFixed and deployVariable now source bytecode from hre.artifacts.readArtifact(), ensuring the deployed bytecode matches Hardhat's build info — which is required for error decoding on variable-address contracts like MockACL.

@cofhe/react@0.5.0

Minor Changes

  • 788a6e2: Add onPoll callback support for decrypt polling (tx + view) so consumers can observe poll progress.

    • SDK decrypt helpers accept onPoll and emit { operation, requestId, attemptIndex, elapsedMs, intervalMs, timeoutMs } once per poll attempt.
    • React wiring supports passing the callback end-to-end.
    • Docs updated with usage examples.
  • 9a06012: Tighten permit validation and treat invalid permits as missing.

    • SDK: PermitUtils.validate now enforces schema + signed + not-expired (use PermitUtils.validateSchema for schema-only validation).
    • SDK: ValidationResult.error is now a typed union ('invalid-schema' | 'expired' | 'not-signed' | null).
    • React: rename disabledDueToMissingPermit to disabledDueToMissingValidPermit in read/decrypt hooks and token balance helpers, and disable reads when the active permit is invalid.
  • 09bf7c9: Add the useCofheEnabled hook to read TaskManager.isEnabled() from the connected chain.

Patch Changes

  • 503536a: Improve logging ergonomics across React + web SDK.

    • Add a configurable internal logger to @cofhe/react via createCofheConfig({ react: { logger } }).
    • Make @cofhe/sdk createWebStorage logging opt-in via createWebStorage({ enableLog }).
  • Updated dependencies [788a6e2]

  • Updated dependencies [9a06012]

  • Updated dependencies [503536a]

    • @cofhe/sdk@0.5.0

@cofhe/sdk@0.5.0

Minor Changes

  • 788a6e2: Add onPoll callback support for decrypt polling (tx + view) so consumers can observe poll progress.

    • SDK decrypt helpers accept onPoll and emit { operation, requestId, attemptIndex, elapsedMs, intervalMs, timeoutMs } once per poll attempt.
    • React wiring supports passing the callback end-to-end.
    • Docs updated with usage examples.
  • 9a06012: Tighten permit validation and treat invalid permits as missing.

    • SDK: PermitUtils.validate now enforces schema + signed + not-expired (use PermitUtils.validateSchema for schema-only validation).
    • SDK: ValidationResult.error is now a typed union ('invalid-schema' | 'expired' | 'not-signed' | null).
    • React: rename disabledDueToMissingPermit to disabledDueToMissingValidPermit in read/decrypt hooks and token balance helpers, and disable reads when the active permit is invalid.

Patch Changes

  • 503536a: Improve logging ergonomics across React + web SDK.

    • Add a configurable internal logger to @cofhe/react via createCofheConfig({ react: { logger } }).
    • Make @cofhe/sdk createWebStorage logging opt-in via createWebStorage({ enableLog }).

@cofhe/abi@0.5.0

Patch Changes

  • Updated dependencies [788a6e2]
  • Updated dependencies [9a06012]
  • Updated dependencies [503536a]
    • @cofhe/sdk@0.5.0

@cofhe/foundry-plugin@0.5.0

Patch Changes

  • Updated dependencies [50bb3e4]
    • @cofhe/mock-contracts@0.5.0

@cofhe/site@0.5.0

Minor Changes

  • 788a6e2: Add onPoll callback support for decrypt polling (tx + view) so consumers can observe poll progress.

    • SDK decrypt helpers accept onPoll and emit { operation, requestId, attemptIndex, elapsedMs, intervalMs, timeoutMs } once per poll attempt.
    • React wiring supports passing the callback end-to-end.
    • Docs updated with usage examples.

@cofhe/example-react@0.5.0

Patch Changes

  • Updated dependencies [788a6e2]
  • Updated dependencies [9a06012]
  • Updated dependencies [503536a]
  • Updated dependencies [09bf7c9]
    • @cofhe/sdk@0.5.0
    • @cofhe/react@0.5.0

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cofhesdk Ready Ready Preview, Comment Apr 9, 2026 1:31pm
cofhesdk-docs-gh-action Ready Ready Preview, Comment Apr 9, 2026 1:31pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
cofhesdk-docs Ignored Ignored Apr 9, 2026 1:31pm

Request Review

@github-actions github-actions bot force-pushed the changeset-release/master branch 5 times, most recently from 75b1e45 to 7e61fb2 Compare March 24, 2026 13:45
@github-actions github-actions bot force-pushed the changeset-release/master branch from 7e61fb2 to 058f05d Compare March 24, 2026 21:08
@github-actions github-actions bot force-pushed the changeset-release/master branch from 058f05d to 945c2a3 Compare March 25, 2026 16:10
@github-actions github-actions bot force-pushed the changeset-release/master branch from 945c2a3 to 0885e87 Compare March 30, 2026 06:03
@github-actions github-actions bot force-pushed the changeset-release/master branch from 0885e87 to 4f93d20 Compare March 30, 2026 06:30
@github-actions github-actions bot force-pushed the changeset-release/master branch from 4f93d20 to d6d8e2e Compare March 31, 2026 07:55
@github-actions github-actions bot force-pushed the changeset-release/master branch from d6d8e2e to b055125 Compare April 2, 2026 09:17
@github-actions github-actions bot force-pushed the changeset-release/master branch from b055125 to bcf837b Compare April 2, 2026 10:06
@github-actions github-actions bot force-pushed the changeset-release/master branch from bcf837b to 535b535 Compare April 7, 2026 09:14
@github-actions github-actions bot force-pushed the changeset-release/master branch from 535b535 to 27a7fc2 Compare April 7, 2026 09:22
@github-actions github-actions bot force-pushed the changeset-release/master branch from 27a7fc2 to 6949bfb Compare April 7, 2026 09:57
@github-actions github-actions bot force-pushed the changeset-release/master branch from 6949bfb to 9345813 Compare April 7, 2026 12:21
@github-actions github-actions bot force-pushed the changeset-release/master branch from 9345813 to 1da39ac Compare April 8, 2026 14:45
@github-actions github-actions bot force-pushed the changeset-release/master branch from 1da39ac to 4a3bae2 Compare April 8, 2026 14:59
@github-actions github-actions bot force-pushed the changeset-release/master branch from 4a3bae2 to 9dd36c1 Compare April 9, 2026 07:18
@github-actions github-actions bot force-pushed the changeset-release/master branch from 9dd36c1 to e5591df Compare April 9, 2026 10:12
@github-actions github-actions bot force-pushed the changeset-release/master branch from e5591df to 511c576 Compare April 9, 2026 10:22
@github-actions github-actions bot force-pushed the changeset-release/master branch from 511c576 to ca0e486 Compare April 9, 2026 11:18
@github-actions github-actions bot force-pushed the changeset-release/master branch from ca0e486 to 7e5ac20 Compare April 9, 2026 11:29
@github-actions github-actions bot force-pushed the changeset-release/master branch from 7e5ac20 to 3435b78 Compare April 9, 2026 13:15
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.

0 participants