refactor(examples): upgrade example-bnb to @zama-fhe/sdk 3.1.0-alpha.10#433
Draft
zama-cremaud wants to merge 1 commit into
Draft
refactor(examples): upgrade example-bnb to @zama-fhe/sdk 3.1.0-alpha.10#433zama-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 example-bnb app from 3.0.0-alpha.34 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: useUnshield/useResumeUnshield/
useDelegateDecryption/useRevokeDelegation positional; useConfidentialBalance/
useConfidentialTransfer take { address } (was { tokenAddress, wrapperAddress })
- useDelegationStatus config field tokenAddress -> contractAddress;
DelegationStatusData.isDelegated -> isActive
- ZamaSDK.requireSigner removed: use sdk.signer with an explicit null check
- shield() lives on WrappedToken: createToken -> createWrappedToken in ShieldCard
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>
8af63c6 to
8a819bf
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 example-bnb app from
3.0.0-alpha.34to 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 }:useUnshield,useResumeUnshield,useDelegateDecryption,useRevokeDelegation{ address }object:useConfidentialBalance,useConfidentialTransferuseDelegationStatusconfig fieldtokenAddress→contractAddress;DelegationStatusData.isDelegated→isActive.ZamaSDK.requireSignerremoved → usesdk.signerwith an explicit null check.shield()lives onWrappedToken→createTokenbecomescreateWrappedTokenin the manual ShieldCard flow.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