feat: migrate all examples to @dynamic-labs-sdk JS SDK v1.4.0 - #68
Open
avneesh0612 wants to merge 4 commits into
Open
feat: migrate all examples to @dynamic-labs-sdk JS SDK v1.4.0#68avneesh0612 wants to merge 4 commits into
avneesh0612 wants to merge 4 commits into
Conversation
Migrates 14 examples from @dynamic-labs/* v4.x to the new headless
@dynamic-labs-sdk/{client,react-hooks,evm,solana} v1.4.0 SDK.
Version-bumped (were already on new SDK at v1.2.1/0.26.5):
- nextjs-bridge-mayan
- nextjs-defi-lending-morpho
- nextjs-stablecoin-yield-aave
- nextjs-stablecoin-yield-kamino
- nextjs-stablecoin-yield-pods
Fully migrated from @dynamic-labs/* SDK:
- nextjs-delegated-access
- nextjs-external-wallets
- nextjs-gasless-relayer
- nextjs-gateway-arc (wagmi removed → viem)
- nextjs-global-payments-blindpay (wagmi removed → viem)
- nextjs-sidebar
- nextjs-stablecoin-card-rain
- vite-linera-counter
- vite-stablecoin-payment-links
Key changes across all examples:
- DynamicContextProvider → DynamicProvider + DynamicBootstrap
- addEvmExtension/addSolanaExtension → addWaasEvmExtension/addWaasSolanaExtension
- autoInitialize: false with explicit initDynamic() + initializeClient()
- useIsLoggedIn/useDynamicContext → useUser/useWalletAccounts/useInitStatus
- DynamicWidget → custom DynamicButton (Google + Email OTP)
- getAuthToken() → getAuthToken(dynamicClient)
- wagmi hooks → createWalletClientForWalletAccount + createPublicClient (viem)
- Server-side files (node-evm, JWT auth) left untouched
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Deployment failed with the following error: |
…ration) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Revert version bump from 1.10.0 → 1.4.0 across all examples (1.10.0 is not installable: wallet-connect@1.10.0 doesn't exist yet) - Add QueryClientProvider from @tanstack/react-query to providers in nextjs-external-wallets, nextjs-gasless-relayer, vite-linera-counter, and vite-stablecoin-payment-links (following iron-ramp pattern) - Add @tanstack/react-query dependency to those examples - Update nextjs-delegated-access pnpm-lock.yaml with clean v1.4.0 resolution Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
Migrates examples from the legacy `@dynamic-labs/*` v4.x SDK to the new headless `@dynamic-labs-sdk/{client,react-hooks,evm,solana}` v1.4.0 SDK.
Excluded (separate PRs or out of scope): nextjs-kalshi-demo, nextjs-polymarket-demo, nextjs-bridge-swaps-lifi, nextjs-global-payments-blindpay.
Version-bumped (already on new SDK, bumped 1.2.1→1.4.0)
Fully migrated from `@dynamic-labs/*`
Key API changes applied
Test plan
🤖 Generated with Claude Code