Skip to content

thedefibuilder/hackathon-bnb

Repository files navigation

🚀 AI No-Code EVM Development Suite

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).

🤖 Technical Overview

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.

✨ Features

  • 🤖 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.

🧠 Main Logic of the AI System in Defi Buider AI Suite

TechStack Scheme

🚀 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.

AI Generator Agent

  • 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.

Builder Backend

  • 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.

AI Auditor Backend

  • 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.

🚀 Getting Started

Follow these steps to set up Defi Builder AI for development and testing:

Prerequisites

  • Node.js
  • npm or Yarn
  • Genezio SDK
  • Git
  • OpenAI API Key
  • Defi Builder Backend API KEY

Environment Setup

  • 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='' '''

Installation

  1. Clone the repository:

    git clone https://github.com/thedefibuilder/hackathon-bnb.git
  2. Navigate to the project directory and install dependencies:

    cd hackathon-bnb/back-end
    npm install
    cd ../front-end
    npm install

📝 Usage

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.

🔥 Contributing

Contributions are welcome! Please follow the standard fork-and-pull-request workflow to contribute.

🧾 License

Defi Builder's AI is released under the CC BY-NC-SA License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published