refactor(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10#431
Draft
zama-cremaud wants to merge 1 commit into
Draft
refactor(examples): upgrade node-viem to @zama-fhe/sdk 3.1.0-alpha.10#431zama-cremaud wants to merge 1 commit into
zama-cremaud wants to merge 1 commit into
Conversation
Public API Changes✅ No public API changes detected. |
Coverage Report
File CoverageNo changed files found. |
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>
084e749 to
7718ef1
Compare
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.
Upgrades the node-viem example from
3.0.0-alpha.34to the3.1.0-alpha.10SDK line.What changed
@zama-fhe/sdkto3.1.0-alpha.10.shield/unshieldmoved toWrappedToken: the shielding account's token is now created withsdk.createWrappedTokeninstead ofsdk.createToken.Tokento thesdk.delegationsAPI (each now takes an explicitcontractAddress):Token.delegateDecryption→sdk.delegations.delegateDecryptionToken.revokeDelegation→sdk.delegations.revokeDelegationToken.isDelegated→sdk.delegations.isActiveVerification
npm run typecheck→ exit 0 against the published3.1.0-alpha.10packages.Part of the SDK-208 example-app upgrade rollout (one PR per app).
🤖 Generated with Claude Code