Project Name: Tron DeFi Agent & Smart Contract Suite
Project Track: DeFi
Team Name: DeFi Mavericks
Team Member(s): 2 members - Abhishek (Forum Username: abhishek), Kamal Singh (Forum Username: 0xkamal7).
DevPost Project Link: Tron Defi Agent | Devpost
Project Goal:
The goal of Tron DeFi Agent & Smart Contract Suite is to simplify the interaction between users and the Tron DeFi ecosystem by providing a unified interface for executing decentralized finance (DeFi) actions (e.g., token swaps, staking, lending) while enabling AI-powered smart contract generation, editing, and deployment. Users can easily interact with existing protocols, generate contracts, and even edit them within TronIDE.
Project Value:
This project brings several key values:
- Simplifies Access to DeFi: It unifies all DeFi activities under one platform, eliminating the need to jump between different protocols or platforms.
- AI-Powered Smart Contract Generation: Non-technical users can generate complex smart contracts using natural language prompts, and advanced users can edit and deploy them directly on Tron.
- Seamless Protocol Integration: Users can interact with existing DeFi protocols (Justlend, Sunswap, HTX DAO) without needing to deploy their own smart contracts.
- Enhanced Developer Productivity: Developers can generate, edit, compile, and deploy contracts all in one platform, enabling quicker prototyping and implementation on the Tron blockchain.
Project Info:
Functionality and Fundamental Goal of the Project:
The Tron DeFi Agent & Smart Contract Suite serves as an all-in-one platform that simplifies decentralized finance (DeFi) interactions and smart contract creation for the Tron blockchain. The core functionalities of the platform include:
- AI-Powered Smart Contract Generation: Users can easily generate various types of smart contracts (e.g., Token, NFT, and general contracts) using simple prompts powered by OpenAI. The contracts can be edited, compiled, and deployed directly on Tron.
- DeFi Transaction Execution: Users can interact with multiple DeFi protocols, such as Justlend, Sunswap, and HTX DAO, to execute lending, staking, and token swaps.
- TronIDE Integration: The platform integrates with TronIDE, allowing users to open and edit AI-generated smart contracts, make adjustments, compile, and deploy them with ease.
Problems our App Trying to Solve?
The project addresses several key issues in the blockchain space:
- Complexity in Smart Contract Development: For many developers and new entrants, writing smart contracts in Solidity is a challenge. Our platform lowers the entry barrier by enabling AI-generated smart contracts through simple text prompts.
- Fragmented DeFi Access: Users often have to interact with multiple platforms and protocols to perform common DeFi actions like staking, lending, and token swaps. The platform consolidates these actions into one interface, streamlining user experience.
- High Learning Curve: For developers new to the Tron ecosystem, getting started with blockchain development can be daunting. The platform simplifies the entire process from contract generation to deployment and makes it more accessible to beginners.
Demo Video -
Integration with TRON/BTTC:
Our project integrates seamlessly with the Tron blockchain to enable users to interact with DeFi protocols and manage smart contract creation effortlessly. Key aspects of the integration include:
-
DeFi Protocol Integration:
- Justlend: Allows users to lend assets like
stUSDT
on the Justlend protocol. - Sunswap: Users can perform token swaps between
sTRX
,USDD
, and other Tron tokens using Sunswap. - HTX DAO: Users can participate in decentralized governance actions and staking protocols via HTX DAO.
- Justlend: Allows users to lend assets like
-
Wallet Integration:
- TronLink Wallet: The platform integrates with the TronLink wallet to allow users to manage their Tron-based accounts and interact with TRX, TRC-20 tokens (like USDD), and other blockchain features.
-
Smart Contract Compilation & Deployment:
- The platform allows users to generate, edit, and deploy smart contracts directly through the TronIDE integration. Users can make changes to the AI-generated contracts, open them in TronIDE for further editing, and deploy them on the Tron mainnet or testnet.
By leveraging existing smart contracts from DeFi protocols and providing seamless access to TronIDE, we ensure smooth interaction with Tron’s blockchain infrastructure without the need for new contract deployments for every user.
This project bridges the gap between DeFi users and the Tron blockchain by providing an intuitive, all-encompassing solution for interacting with decentralized protocols and developing custom smart contracts. The integration with TronLink, Justlend, and Sunswap enables secure and seamless blockchain interactions, while the AI-powered smart contract generation feature gives users the flexibility to build their own contracts without needing deep technical knowledge.
Project Website: https://tron-agent.vercel.app/
Project Test Instructions:
- Access the Project Website: Visit the provided link.
- Connect TronLink Wallet: Ensure that TronLink is installed and connected to the Tron network.
- Navigate DeFi Actions: Use the sidebar to access various DeFi features:
- Send Transaction: Execute token transfers and other DeFi transactions.
- Deploy Contract: Generate a smart contract with the built-in AI tool and deploy it using TronIDE.
- Test Smart Contract Deployment:
- Select Deploy Contract.
- Generate a contract using the prompt field, open it in TronIDE, and deploy it on Shasta Testnet.
- Track Transaction: Observe transactions using TronScan to verify execution.
Project Details:
The project integrates DeFi protocols like Justlend, Sunswap, HTX DAO, and supports AI-generated smart contract creation. It features an intuitive interface, powered by TronLink, for sending transactions, deploying contracts, and interacting with the Tron blockchain. Users can edit contracts within the app and open them directly in TronIDE to make final adjustments before deployment.
Smart Contract Links:
Since this project interacts with existing DeFi protocols and focuses on DeFi intents, new smart contracts are not required.
Here are some of the contract interaction with protocols like Sun Swap and Just Lend Contracts.
However, Contracts can be built and deployed using our DApp too with the Smart contract Suite Feature.
Project Milestones:
- Week 1: Completed DeFi protocol integrations for Justlend, Sunswap, and HTX DAO.
- Week 2: Implemented AI-powered contract generation and TronIDE integration for smart contract compilation and deployment.
- Week 3: Finished frontend interface for DeFi actions, added support for staking, lending, and token swaps.
- Final Week: Deployed contracts on the Shasta Testnet and finalized user testing.
The platform will continue to evolve, with future updates bringing more protocol integrations, enhanced AI functionality, and cross-chain compatibility for interacting with other blockchain ecosystems.