← Back to home

Cauldron Codes

A frontend web app that streamlines the creation of Solidity smart contracts. By selecting desired properties, users can swiftly produce both ERC-20 token contracts and corresponding test suites.

Screenshots

Cauldron Codes screenshot 1
Cauldron Codes screenshot 2
Cauldron Codes screenshot 3

Problem Statement

This application serves as a wizard for ERC-20 token generation with a focus on simplifying the developer experience. Users can:Input custom token names and symbols.Options for additional features like minting and burning capabilities.Automatically generate a Hardhat-compatible test suite alongside the contract.The application is purely frontend, ensuring users don't need to trust a backend service with potentially proprietary token logic.THIS PROJECT IS FOR ILLUSTRATIVE PURPOSES ONLY AND THE GENERATED CODE IS UNAUDITED AND SHOULD NOT BE USED IN PRODUCTION!

Solution

Technologies Used:HTML/CSS: For the interface of the wizard.JavaScript: Drives dynamic creation of Solidity code based on user input. No frameworks were used to keep the application lightweight and dependency-free.Process:User Input: Accepts the token's name, symbol, and desired properties (like mintable and burnable) from the user.Contract Generation: Based on selections, JavaScript dynamically concatenates contract pieces to form a complete Solidity smart contract.Test Suite Generation: Besides the contract, a corresponding test suite is dynamically produced. This is essential for developers to validate the newly generated contract.Future Enhancements:Integrate with popular Solidity development tools like Hardhat.Add more ERC token standards and additional functionalities.Provide a UI for deploying the generated contract to popular Ethereum testnets.

Hackathon

ETHOnline 2023

2023

Contributors