Skip to content

Conversation

@ganchoradkov
Copy link
Member

@ganchoradkov ganchoradkov commented Nov 7, 2025

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.

  • 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

Copilot AI review requested due to automatic review settings November 7, 2025 08:41
@vercel
Copy link

vercel bot commented Nov 7, 2025

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

Project Deployment Preview Comments Updated (UTC)
decentralized-relay-app Error Error Nov 7, 2025 9:02am
decentralized-relay-wallet Ready Ready Preview Comment Nov 7, 2025 9:02am
pos-dapp Ready Ready Preview Comment Nov 7, 2025 9:02am
react-wallet-v2 Ready Ready Preview Comment Nov 7, 2025 9:02am
wallet-pay-dapp Error Error Nov 7, 2025 9:02am
8 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-react-wagmi-example Ignored Ignored Nov 7, 2025 9:02am
appkit-solana Ignored Ignored Nov 7, 2025 9:02am
chain-abstraction-demo Ignored Ignored Preview Nov 7, 2025 9:02am
malicious-dapp-verify-simulation Ignored Ignored Preview Nov 7, 2025 9:02am
react-dapp-v2 Ignored Ignored Preview Nov 7, 2025 9:02am
react-dapp-v2-cosmos-provider Ignored Ignored Preview Nov 7, 2025 9:02am
react-dapp-v2-with-ethers Ignored Ignored Preview Nov 7, 2025 9:02am
smart-sessions-demo Ignored Ignored Preview Nov 7, 2025 9:02am

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 7, 2025

Deploying demo-ai-agents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 948ed21
Status:🚫  Build failed.

View logs

Copy link
Contributor

Copilot AI left a 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>
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.

2 participants