Skip to content

feat(rn-moneygram-ramp): React Native MoneyGram off-ramp with EVM + Solana#56

Open
avneesh0612 wants to merge 5 commits into
mainfrom
feat/rn-moneygram-ramp
Open

feat(rn-moneygram-ramp): React Native MoneyGram off-ramp with EVM + Solana#56
avneesh0612 wants to merge 5 commits into
mainfrom
feat/rn-moneygram-ramp

Conversation

@avneesh0612
Copy link
Copy Markdown
Contributor

Summary

  • New Expo (React Native) app: examples/rn-moneygram-ramp
  • Off-ramp USDC on Base, Ethereum, and Solana to cash via MoneyGram Ramps
  • Dynamic embedded wallets via the JS SDK (@dynamic-labs/client v4.x + react-native-extension)
  • Email OTP authentication — no seed phrases, no browser extension
  • MoneyGram Ramps widget via react-native-webview with full postMessage protocol

What's included

File Purpose
app/_layout.tsx Auth-gated root layout with dynamicClient.reactNative.WebView
app/login.tsx Email OTP login screen
app/(app)/index.tsx Main screen: chain selector, wallet addresses, USDC balance, Cash Pickup CTA
components/MoneygramWidget.tsx Full-screen WebView modal with full MoneyGram postMessage protocol
lib/dynamic.ts Dynamic client with ReactNativeExtension + ViemExtension
lib/chains.ts Chain config (Base, Ethereum, Solana)
lib/balance.ts USDC balance via viem (EVM) and @solana/spl-token (Solana)

Test plan

  • cp .example.env .env and fill in keys
  • npm install && npx expo prebuild && npx expo run:ios
  • Sign in with email OTP — verify EVM + Solana wallets are created
  • Select each chain and confirm USDC balance loads
  • Tap Cash Pickup — verify MoneyGram widget opens in modal WebView
  • Verify RAMPS_READYRAMPS_CONFIG handshake fires (check console)

🤖 Generated with Claude Code

New Expo app demonstrating MoneyGram Ramps off-ramp with Dynamic
embedded wallets on Base, Ethereum, and Solana.

- Email OTP auth via @dynamic-labs/client + ReactNativeExtension
- EVM wallets (Base/Ethereum) via ViemExtension
- Solana wallet support via @dynamic-labs/solana-extension
- MoneyGram Ramps WebView widget with full postMessage protocol
- Chain selector, USDC balance fetching, dark theme

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kamino Error Error May 22, 2026 10:43am
predictions-market-demo Ready Ready Preview, Comment May 22, 2026 10:43am

Request Review

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

Deployment failed with the following error:

There is no GitHub account connected to this Vercel account.

…nsion peer dep

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Add network.ts with chain IDs, USDC mint addresses, and network labels
- Support devnet/mainnet network switching via Dynamic wallets.switchNetwork
- Replace deprecated RN Clipboard with expo-clipboard
- Update balance.ts to accept custom USDC mint override
- Update server to use CORS, structured error responses, and new routes

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant