Defi Builder AI is a sophisticated platform designed for BNB blockchain developers. It leverages AI-driven tools to streamline the creation, deployment, and optimization of EVM-based decentralized applications (dApps).
Defi Builder AI integrates advanced AI capabilities to enhance BNB smart contract development. The core of the platform is built around our AI-driven smart contract generator and a suite of EVM-specific development tools.
- 🤖 AI Smart Contract Generator: Utilize fine tunedAI to generate a variety of smart contracts based on user requests, trained on Solidity smart contracts.
- 🔍 AI Auditor: Trained on over 10,000 audits from various firms, ensuring thorough and reliable contract examination.
- 🌐 AI Build Resolver: AI agent specialized to resolve compilation errors from generation.
- 🛠️ DeFi Tool Suite: Access tools for creating custom tokens, NFTs, DEXs, farming strategies, staking and launchpads.
- 🏦 Web3 Wallet Integration: DEFI BUILDER AI requires a web3 wallet connection to be fully operational.
- 🚀 Integrated Contract Deployment: Deploy generated contracts with just a few clicks. Supports custom constructors for tailored functionality.
- 🌉 Code Compiler: DEFI BUILDER AI is composed by an handsome tool that help developers test the generated contracts using Hardhat.
- 🔄 Automatic Iteration: If an error occurs, the system automatically reverts to the previous step with instructions on how to fix the error, ensuring a smooth development process.
🚀 Try it now: Defi Builder AI
Defi BUilder's AI system is a sophisticated ensemble of components, each designed to ensure the security, efficiency, and reliability of BNB smart contracts. The system comprises three main elements: the AI Generator Agent, the Builder Backend, and the AI Auditor Backend.
- Purpose: The AI Generator Agent is responsible for generating Solidity smart contracts.
- Training and Data Sources: This agent has been fine-tuned on over 300 verified smart contract primitives from cookbook.dev, enhancing its security and reliability. Additionally, it leverages a vast dataset from Hugging Face, comprising over 300,000 smart contracts, to incorporate user customizations and ensure a robust starting point for integrating user requests.
- Functionality: The agent intelligently processes user inputs and requirements to generate smart contract code that is not only functional but also adheres to best practices in smart contract development.
- Role: Once the AI Generator Agent produces a smart contract, the Builder Backend takes over.
- Compilation and Syntax Checking: Utilizing Hardhat, a popular development environment, the backend verifies the compilation of the generated contract. This step is crucial to ensure that the contract is free of syntax errors and other common coding issues.
- Error Handling: If any errors are detected during the compilation process, the contract is sent back to the Generator Agent. The errors are provided as feedback, enabling the AI to learn and improve in subsequent iterations.
- Objective: After a successful compilation, the AI Auditor Backend evaluates the smart contract for potential vulnerabilities.
- Vulnerability Assessment and Categorization: The AI Auditor is fine-tuned on a comprehensive dataset, including a public Hugging Face Q&A dataset with over 9,000 examples of potential vulnerabilities. This allows the AI to categorize vulnerabilities based on their security concerns (Low, Medium, High).
- Audit Data Sources: To enhance its auditing capabilities, the AI integrates models based on over 5,000 audits from various public reports on GitHub, sourced from more than 30 audit firms. This extensive dataset ensures a thorough and informed audit of the smart contracts.
Follow these steps to set up Defi Builder AI for development and testing:
- Node.js
- npm or Yarn
- Genezio SDK
- Git
- OpenAI API Key
- Defi Builder Backend API KEY
- Update the
.env
files in respective folders with necessary API keys and database URIs.
back-end '''sh PINECONE_API_KEY='' OPENAI_API_KEY='' X_API_KEY='' '''
front-end '''sh VITE_WALLET_CONNECT_PROJECT_ID='' '''
-
Clone the repository:
git clone https://github.com/thedefibuilder/hackathon-bnb.git
-
Navigate to the project directory and install dependencies:
cd hackathon-bnb/back-end npm install cd ../front-end npm install
To use the app, start the local development server:
cd back-end
npm run start:prod
On a new terminal while backend is running
cd front-end
npm run dev
Navigate through the platform to create, test, and deploy BNB smart contracts using our AI-assisted tools.
Contributions are welcome! Please follow the standard fork-and-pull-request workflow to contribute.
Defi Builder's AI is released under the CC BY-NC-SA License.