Repository navigation
Home
| Name | Roll No | GitHub |
|---|---|---|
| Siddharth Lama | 2407926 | @JustSid26 |
Dr. Yogesh Javdhav
Web Development · Blockchain / Web3 · Cybersecurity
SmartContract is a full-stack smart contract validation and deployment platform built with a Rust backend and a Next.js (TypeScript/React) frontend. It allows developers to upload Solidity source (.sol) and CosmWasm binaries (.wasm) for validation through a REST API or a browser-based UI. The system provides instant feedback on contract validity, byte size, and error messages, significantly reducing the friction of auditing on-chain logic before deployment.
Smart contracts, once deployed on a blockchain, are immutable. Logical errors, malformed bytecode, or violations of platform standards (e.g., CosmWasm) result in irreversible failures — loss of funds, broken dApps, or exploitable vulnerabilities. There is currently no lightweight, developer-friendly tool that lets teams validate Solidity and CosmWasm contracts locally or via a simple web interface before committing them to a network.
- Build a Rust-based validation engine that validates both Solidity and CosmWasm smart contract artifacts.
- Expose validation logic through a clean REST API (
/api/validate). - Provide a Next.js web UI for non-CLI users to upload and validate contracts visually.
- Support both valid and intentionally invalid contract testing.
- Keep the system lightweight, fast, and runnable without external blockchain infrastructure.
-
Dual Validation — Supports Solidity (
.sol) and CosmWasm (.wasm) validation workflows -
REST API —
POST /api/validateendpoint for CLI and programmatic use - Web UI — Drag-and-drop file upload with live validation response
- Rust Backend — High-performance, memory-safe server running on port 3000
-
Detailed Feedback — Returns
valid,message, andsize_bytesper contract - Test Fixtures — Ships with valid and invalid contract samples for testing
| Page | Description |
|---|---|
| Introduction | Background, motivation, and proposed solution |
| Objectives and Scope | Goals, scope, and use cases |
| Literature Survey | Related work and existing tools |
| System Architecture | Architecture diagram and component breakdown |
| Technologies Used | Full tech stack |
| Methodology | Step-by-step system working |
| Implementation | Setup, code structure, key snippets |
| Results | Outputs and observations |
| Challenges | Problems faced and limitations |
| Future Scope | Planned improvements |
| Conclusion | Summary and learnings |
| References | Papers, docs, and links |
| Demo | Screenshots and demo links |
The platform also supports Solidity contract workflows in addition to CosmWasm validation.
Users can select the Solidity mode from the frontend validator interface and upload .sol files.
The frontend sends the selected file to the backend validation API through the same user flow.
For Solidity responses, the backend can return compiled artifacts such as ABI and bytecode.
This enables a continuous path from validation to deployment readiness inside one interface.
For Solidity and EVM-compatible deployment, wallet integration is handled through MetaMask. The UI provides a wallet connect button that requests account access from the browser wallet provider. Connected account state is retained in frontend context so deploy actions can use the active address. If no wallet is detected, the UI prevents deployment and prompts the user with a clear error. For CosmWasm workflows, Keplr wallet integration is used with explicit testnet chain configuration.
After successful validation, users can trigger deployment from the file result row in the UI.
For Solidity, deployment uses the returned bytecode and sends a transaction via eth_sendTransaction.
The app then polls transaction receipt status until a contract address is available.
When deployment succeeds, the deployed contract address is displayed in the interface.
For CosmWasm, deployment follows upload and instantiate steps through SigningCosmWasmClient.
This design keeps validation, wallet authorization, and deployment in one cohesive experience.
Deployment actions are intentionally available only for contracts that pass validation first. This gating reduces accidental deployment of malformed or unverified contract artifacts. Wallet-related failures are reported to the user to support quick recovery and retries. Using this combined flow improves developer productivity during local testing and demos.