-
Notifications
You must be signed in to change notification settings - Fork 394
feat: adds tron versioned transactions #942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
8 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive TRON blockchain support to both the wallet and dApp implementations, including transaction signing with backward compatibility for different structure versions.
- Adds TRON balance fetching and display functionality
- Implements TRON transaction and message signing with version compatibility
- Adds TRON logo assets and chain metadata
- Introduces session property for TRON method version negotiation
Reviewed Changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| advanced/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx | Adds TRON-specific session property to indicate v1 method version support |
| advanced/wallets/react-wallet-v2/src/utils/TronRequestHandlerUtil.ts | Implements backward compatibility for both old (nested) and new (flat) transaction structures |
| advanced/wallets/react-wallet-v2/src/lib/TronLib.ts | Updates signTransaction to work with unwrapped transaction objects |
| advanced/wallets/react-wallet-v2/public/chain-logos/tron.png | Adds TRON logo for wallet UI |
| advanced/dapps/react-dapp-v2/src/helpers/tron.ts | Fixes control flow to return TronWeb instances correctly for all code paths |
| advanced/dapps/react-dapp-v2/src/helpers/api.ts | Implements TRON balance fetching with network-specific endpoints |
| advanced/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx | Adds TRON transaction/message signing with version-aware parameter structuring and updated TronWeb API calls |
| advanced/dapps/react-dapp-v2/src/components/Asset.tsx | Adds TRX token icon support in asset display |
| advanced/dapps/react-dapp-v2/src/chains/tron.ts | Updates TRON metadata to use local logo assets instead of external URLs |
| advanced/dapps/react-dapp-v2/public/assets/tron.png | Adds TRON logo for dApp UI |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Based on #917
This PR adds comprehensive TRON blockchain support to both the wallet and dApp implementations, including transaction signing with backward compatibility for different structure versions.