Skip to content
Siddharth Lama edited this page Apr 21, 2026 · 7 revisions

Demo

Live Demo Walkthrough

1. Starting the System

Backend:

cd backend
cargo run
# → Server running at http://0.0.0.0:3000

Frontend (new terminal):

cd frontend
npm run dev -- -p 3001
# → http://localhost:3001

2. CLI Demo — Valid Contract

cd contracts/counter_contract
curl -F "file=@artifacts/counter_contract.wasm" http://localhost:3000/api/validate

Result:

{"valid":true,"message":"WASM contract passed CosmWasm validation","size_bytes":134639}

3. CLI Demo — Invalid Contract

curl -F "file=@artifacts/invalid.wasm" http://localhost:3000/api/validate

Result:

{"valid":false,"message":"<error>","size_bytes":<n>}

Architecture Diagram Reference

SmartContract

Solidity Support, Wallet Connection, and Deployment

Solidity Contract Support

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.

Wallet Connection Workflow

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.

Contract Deployment Flow

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.

Operational Notes

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.

Clone this wiki locally