Skip to content

refactor(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10#431

Draft
zama-cremaud wants to merge 1 commit into
prereleasefrom
feat/upgrade-node-viem-3.1.0-alpha.10
Draft

refactor(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10#431
zama-cremaud wants to merge 1 commit into
prereleasefrom
feat/upgrade-node-viem-3.1.0-alpha.10

Conversation

@zama-cremaud

Copy link
Copy Markdown
Contributor

Upgrades the node-viem example from 3.0.0-alpha.34 to the 3.1.0-alpha.10 SDK line.

What changed

  • Bumps @zama-fhe/sdk to 3.1.0-alpha.10.
  • shield/unshield moved to WrappedToken: the shielding account's token is now created with sdk.createWrappedToken instead of sdk.createToken.
  • Delegation moved off Token to the sdk.delegations API (each now takes an explicit contractAddress):
    • Token.delegateDecryptionsdk.delegations.delegateDecryption
    • Token.revokeDelegationsdk.delegations.revokeDelegation
    • Token.isDelegatedsdk.delegations.isActive

Verification

  • npm run typecheck → exit 0 against the published 3.1.0-alpha.10 packages.

Part of the SDK-208 example-app upgrade rollout (one PR per app).

🤖 Generated with Claude Code

@cla-bot cla-bot Bot added the cla-signed label Jun 16, 2026
@github-actions

Copy link
Copy Markdown

Public API Changes

✅ No public API changes detected.

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 92.13% (🎯 80%) 3105 / 3370
🔵 Statements 92.21% 3199 / 3469
🔵 Functions 92.45% (🎯 80%) 1041 / 1126
🔵 Branches 84.66% (🎯 80%) 1193 / 1409
File CoverageNo changed files found.
Generated in workflow #2595 for commit 7718ef1 by the Vitest Coverage Report Action

Migrate the node-viem example from 3.0.0-alpha.34 to the 3.1 SDK line:
- bump @zama-fhe/sdk pin to 3.1.0-alpha.10
- shield/unshield moved to WrappedToken: create the shielding account's
  token with sdk.createWrappedToken instead of sdk.createToken
- delegation moved off Token to the sdk.delegations API:
  Token.delegateDecryption -> sdk.delegations.delegateDecryption,
  Token.revokeDelegation   -> sdk.delegations.revokeDelegation,
  Token.isDelegated        -> sdk.delegations.isActive
  (all now take an explicit contractAddress)

Verified with `npm run typecheck` (exit 0) against the published
3.1.0-alpha.10 packages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zama-cremaud zama-cremaud force-pushed the feat/upgrade-node-viem-3.1.0-alpha.10 branch from 084e749 to 7718ef1 Compare June 16, 2026 22:43
@zama-cremaud zama-cremaud changed the title feat(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10 refactor(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10 Jun 16, 2026
@ankurdotb ankurdotb added the do not merge This is not ready to be merged, waiting on someone else's work label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed do not merge This is not ready to be merged, waiting on someone else's work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants