feat: add native SOL payment asset for Solana network#4741
Conversation
- Add solanaSOL asset with native token support - Use 'native' as asset value for Solana native payments - Include proper metadata: name: 'Solana', symbol: 'SOL', decimals: 9 - Follows existing pattern of baseETH and baseSepoliaETH Relates to PAY-52 Co-Authored-By: TomTom <tomtom@reown.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Skipped Deployments
|
Coverage Report
File CoverageNo changed files found. |
Description
This PR adds native SOL payment asset support to the
@reown/appkit-paylibrary by introducing a newsolanaSOLasset definition inpackages/pay/src/types/assets.ts.The implementation follows the established pattern for native tokens (like
baseETHandbaseSepoliaETH) by using'native'as the asset value instead of a contract address, which allows the existing PayController logic to handle native Solana transactions correctly.Type of change
Associated Issues
This is a follow-up to PAY-52, specifically implementing native SOL token support as requested by TomTom (tomas.rawski@reown.com).
Key Changes
solanaSOLPaymentAsset with:'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'(Solana mainnet)'native'(indicates native token, not a contract address){ name: 'Solana', symbol: 'SOL', decimals: 9 }Important Review Points
'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'is the correct Solana mainnet identifiersolanaSOLfollows the expected[network][TOKEN]patternasset: 'native'for Solana networksTechnical implementation:
baseETHandbaseSepoliaETHnative tokens'native'asset value which triggerstokenMint: undefinedin PayController for Solana paymentsChecklist
Link to Devin run: https://app.devin.ai/sessions/dc756cccd85841e296f50ff025ba3f02
Requested by: TomTom (tomas.rawski@reown.com)