feat(ramps): migrate onramp/offramp examples to Dynamic JS SDK#52
Draft
avneesh0612 wants to merge 1 commit into
Draft
feat(ramps): migrate onramp/offramp examples to Dynamic JS SDK#52avneesh0612 wants to merge 1 commit into
avneesh0612 wants to merge 1 commit into
Conversation
- Converts nextjs-iron-ramp from React SDK to JS SDK 0.24.1 with EVM extension, WalletContext, custom DynamicButton, and standard Roboto/light theme - Upgrades nextjs-moneygram-ramp from JS SDK 0.12.1 to 0.24.1 using simpler addEvmExtension/addSolanaExtension pattern, adds standard theme, header, footer, and custom DynamicButton with multi-chain support Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
3 tasks
avneesh0612
added a commit
that referenced
this pull request
May 21, 2026
* feat(swaps): migrate mayan and lifi examples to JS SDK Converts nextjs-bridge-mayan and nextjs-bridge-swaps-lifi from the React SDK (@dynamic-labs/*) to the JS SDK (@dynamic-labs-sdk/*), applying the standard visual theme and custom DynamicButton auth flow. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * feat(yield): migrate aave, morpho, pods examples to JS SDK Converts nextjs-stablecoin-yield-aave, nextjs-defi-lending-morpho, and nextjs-stablecoin-yield-pods from React SDK (@dynamic-labs/sdk-react-core, @dynamic-labs/wagmi-connector) to the JS SDK (@dynamic-labs-sdk/client ^0.24.1 + @dynamic-labs-sdk/evm ^0.24.1). - Removes DynamicContextProvider, DynamicWagmiConnector, WagmiProvider, ThemeProvider and all wagmi hooks (useAccount, useChainId, useWriteContract, useSwitchChain, useReadContract, useReadContracts) - Adds createDynamicClient + addEvmExtension pattern in src/lib/dynamic.ts - Adds custom WalletContext with useWallet() hook in src/lib/providers.tsx - Replaces wagmi contract hooks with direct viem publicClient reads and createWalletClientForWalletAccount for writes - Applies standard visual theme (Roboto font, #4779FF palette, custom DynamicButton with Google/Email/Wallet auth flows) - Removes theme-provider.tsx, mode-toggle.tsx, hamburger-menu.tsx, wagmi.ts Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * feat(ramps): migrate iron and moneygram examples to JS SDK - Converts nextjs-iron-ramp from React SDK to JS SDK 0.24.1 with EVM extension, WalletContext, custom DynamicButton, and standard Roboto/light theme - Upgrades nextjs-moneygram-ramp from JS SDK 0.12.1 to 0.24.1 using simpler addEvmExtension/addSolanaExtension pattern, adds standard theme, header, footer, and custom DynamicButton with multi-chain support Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * fix(swaps): revert lifi to wagmi/react-sdk, fix mayan layout and chain filtering LiFi: - Revert provider stack to wagmi + @dynamic-labs/sdk-react-core (execution was unreliable with the JS SDK / custom viem transport approach) - Keep all new UI components (ExecutionDisplay loading state, footer fix, etc.) - Restore useSyncWagmiConfig, DynamicContextProvider, WagmiProvider - Fix SSR window error in dynamic.ts with typeof window guard Mayan: - Move nav/footer into layout.tsx for reliable sticky-footer behavior - Restrict FROM chain selector to EVM_CHAINS only (non-EVM source chains can't be signed by the EVM embedded wallet) - Fix SSR window error in dynamic.ts Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * chore(swaps): remove non-swaps files from branch Strip out ramps (iron-ramp, moneygram-ramp), yield (morpho, aave, pods) files — those belong in their own PRs (#49 yield, #52 ramps). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * chore(swaps): remove remaining stray files from non-swaps examples Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <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
@dynamic-labs/sdk-react-coreand@dynamic-labs/ethereumdependencies, adds@dynamic-labs-sdk/client+@dynamic-labs-sdk/evm, builds WalletContext withgetWalletAccounts/onEvent, rewrites custom DynamicButton with email OTP + Google OAuth + EVM wallet connectaddWaasEvmExtension/addWaasSolanaExtension+autoInitialize: false+initializeClientpattern with simpleraddEvmExtension()/addSolanaExtension()auto-initialize pattern, adds multi-chain WalletContext (EVM + Solana)rgb(249,249,249)background,#4779FFprimary, sticky white header with Dynamic logo, footer with "Powered by Dynamic" link,#DADADAbordersTest plan
🤖 Generated with Claude Code