Skip to content

feat(mobile): support ERC-681 payment QR code scanning and prefilled Send flow (#8022) - #8050

Open
TanmayDagur wants to merge 1 commit into
Uniswap:mainfrom
TanmayDagur:feat/erc-681-qr-scanner
Open

feat(mobile): support ERC-681 payment QR code scanning and prefilled Send flow (#8022)#8050
TanmayDagur wants to merge 1 commit into
Uniswap:mainfrom
TanmayDagur:feat/erc-681-qr-scanner

Conversation

@TanmayDagur

Copy link
Copy Markdown

Description

Resolves #8022. Adds native support for scanning EIP-681 payment request QR codes across mobile scanner entry points. When scanned, users are seamlessly navigated to the Send form pre-filled with the destination chain, token currency, target recipient address, and token amount for safe manual verification.

Key Changes

  • Added dedicated erc681.ts parser in @universe/uniswap with precise scientific notation and hex amount interpretation without precision loss.
  • Registered URIType.ERC681 across ScanSheet/util.ts routing tables.
  • Updated WalletConnectModal.tsx and RecipientScanModal.tsx to build pre-populated TransactionState and navigate via useWalletNavigation.
  • Added thorough unit tests covering all EIP-681 payment test vectors and formatting edge cases.

Verification & Testing

  • ✅ Passed erc681.test.ts across all standard native ETH & ERC-20 payment test vectors (Mainnet & Base).
  • ✅ Passed util.test.ts covering routing logic and encoded URI behaviors.

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.

Feature request: support ERC-681 (EIP-681) QR scanning for native + ERC-20 transfers

1 participant