project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Caramel

Our tool automates the deployment of Rust smart contracts across blockchain networks by translating them into multiple languages using AI, streamlining development and enhancing scalability.

Caramel

Created At

Scaling Ethereum 2024

Project Description

Our project, developed for the Scaling ETHGlobal Hackathon, introduces an innovative development tool that automates the process of deploying smart contracts across various blockchain networks. Utilizing a powerful AI backend, our tool takes a smart contract written in Rust and automatically translates it into multiple programming languages. This capability allows developers to seamlessly deploy their smart contracts to different blockchain ecosystems without the need for manual code translation. Our solution not only enhances the scalability of smart contracts but also significantly reduces development time and effort, fostering greater innovation and efficiency in blockchain application development.

How it's Made

For our project, we developed a CLI (Command Line Interface) application aimed at attracting new users by simplifying the deployment of smart contracts across various blockchain networks. Here’s how we pieced everything together:

Frontend Visualization: We utilized Firebase's Realtime Database to store and retrieve user data dynamically, which is crucial for visualizing operations on the frontend. This real-time interaction helps users see the process unfold as their smart contracts are prepared for deployment.

AI Translation: To convert the Rust smart contracts into different programming languages, we integrated the Google Gemini API. This AI-driven process ensures accurate and efficient translations, tailoring the contracts to be compatible with multiple blockchain environments.

  • Deployment Mechanisms: Using JavaScript and TypeScript, we scripted the backend to handle the translated contracts and deploy them directly from the terminal to blockchain networks such as Gnosis, Ethereum, and Neon EVM.

Integration and Workflow:

  • Users start by entering their credentials, managed securely via wallet technologies. Once authenticated, their details and contract preferences are captured and stored in Firebase.
  • The contract file provided by the user is then processed through our AI backend, which translates it into the appropriate language based on the target blockchain network.
  • The final step involves deploying these contracts to the specified networks directly via our CLI tool, making the process straightforward and accessible even for users with minimal blockchain experience.

Notable Hacks:

  • One hacky but effective aspect of our project was the use of Firebase for both user authentication and real-time data handling. This not only streamlined the user experience but also allowed us to keep the infrastructure relatively simple without a traditional backend server.
  • We also developed a custom caching mechanism in the CLI to store previous translations and deployments, reducing the processing time for repeat contracts and improving efficiency.

Overall, this tool is designed to be immensely beneficial for basic users, removing the complexities traditionally associated with deploying smart contracts and enabling a wider adoption of blockchain technology.

background image mobile

Join the mailing list

Get the latest news and updates