Skip to content

feat: add support for tron ecosystem#356

Draft
tomiiide wants to merge 5 commits intomainfrom
feature/emb-178-add-support-for-tron-ecosystem
Draft

feat: add support for tron ecosystem#356
tomiiide wants to merge 5 commits intomainfrom
feature/emb-178-add-support-for-tron-ecosystem

Conversation

@tomiiide
Copy link
Copy Markdown
Contributor

@tomiiide tomiiide commented Mar 9, 2026

Which Jira task is linked to this PR?

https://linear.app/lifi-linear/issue/EMB-178/add-support-for-tron-ecosystem

Why was it implemented this way?

Explain the reasoning behind the implementation. Were there alternative approaches? Why was this solution chosen?

Visual showcase (Screenshots or Videos)

If applicable, attach screenshots, GIFs, or videos to showcase the functionality, UI changes, or bug fixes.

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.
  • If this PR modifies the SDK API or adds new features that require documentation, I have updated the documentation in the public-docs repository.

@tomiiide tomiiide changed the title Feature/emb 178 add support for tron ecosystem feat: add support for tron ecosystem Mar 9, 2026
@tomiiide tomiiide force-pushed the feature/emb-178-add-support-for-tron-ecosystem branch 4 times, most recently from 5aaac66 to 2a625c7 Compare March 13, 2026 11:34
@tomiiide tomiiide force-pushed the feature/emb-178-add-support-for-tron-ecosystem branch from 975bb34 to 5157cec Compare March 23, 2026 15:22
Changes:
- Add TronProvider with wallet integration, balance fetching, and address resolution
- Add TronStepExecutor with sign, broadcast, and confirmation tasks
- Add RPC retry with multi-URL fallback
- Add Tron-specific error parsing for wallet and transaction errors
- Add unit tests for error parsing, address resolution, and zero address utils
- Register ChainType.TVM in SDK client storage
- Add TronCheckAllowanceTask and TronSetAllowanceTask for TRC-20 approval flow
- Refactor TronSignAndExecuteTask to deserialize raw tx data from the API
- Separate build, sign, and broadcast phases in approval to avoid re-signing on RPC retry
- Add bandwidth error handling in parseTronErrors
- Add stripHexPrefix utility and shared polling constants
- Pass `from` address in TRC-20 balanceOf calls
- Use callTronRpcsWithRetry for broadcast in WaitForTransactionTask
- Treat DUP_TRANSACTION_ERROR as success in both broadcast tasks
- Remove unused getTronWebInstance
- Add empty URLs guard in callTronRpcsWithRetry
@tomiiide tomiiide force-pushed the feature/emb-178-add-support-for-tron-ecosystem branch from 5157cec to e8ac163 Compare March 24, 2026 10:24
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