refactor(examples): upgrade react-wagmi to @zama-fhe/sdk 3.1.0-alpha.10#428
Draft
zama-cremaud wants to merge 1 commit into
Draft
refactor(examples): upgrade react-wagmi to @zama-fhe/sdk 3.1.0-alpha.10#428zama-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 react-wagmi example from 3.0.0-alpha.30 to the 3.1 SDK line:
- bump @zama-fhe/sdk and @zama-fhe/react-sdk pins to 3.1.0-alpha.10
- permit hooks renamed: useIsAllowed -> useHasPermit, useAllow -> useGrantPermit
- token hooks take the address directly instead of a config object:
useUnshield/useResumeUnshield/useDelegateDecryption/useRevokeDelegation
now take a positional address; useShield/useConfidentialTransfer/
useConfidentialBalance take { address } (was { tokenAddress, wrapperAddress })
- ZamaConfigWagmi: sessionStorage renamed to permitStorage
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>
06e81f3 to
a7726c9
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 react-wagmi example from
3.0.0-alpha.30to the3.1.0-alpha.10SDK line.What changed
@zama-fhe/sdkand@zama-fhe/react-sdkto3.1.0-alpha.10.useIsAllowed→useHasPermit,useAllow→useGrantPermit.{ tokenAddress, wrapperAddress }config object:useUnshield,useResumeUnshield,useDelegateDecryption,useRevokeDelegation{ address }object:useShield,useConfidentialTransfer,useConfidentialBalanceZamaConfigWagmi:sessionStoragerenamed topermitStorage.Verification
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