Automatically synced with your v0.app deployments
This project explores an AI-driven escrow flow for freelancers built on GenLayer Intelligent Contracts.
High-level flow:
- Client posts a job (brief, budget, deadline)
- Freelancer submits a delivery URL
- Anyone can trigger a judgment step
- GenLayer validators evaluate the submission against the brief using external data
- Contract state updates based on validator consensus:
- APPROVED → delivery accepted
- REVISION → feedback returned
- FAILED → delivery rejected
The GenLayer Intelligent Contract source is included in this repository:
contracts/ai_escrow.py
The contract is written in Python and runs inside GenVM via GenLayer Studio.
Write methods
-
post_job(brief: str, budget: u256, deadline: str) -> u256
Creates a new job and returns ajob_id. -
submit_delivery(job_id: u256, url: str)
Submits a delivery URL for a given job. -
judge(job_id: u256) -> str
Triggers non-deterministic evaluation using external data and validator consensus.
Read methods
get_status(job_id: u256) -> strget_feedback(job_id: u256) -> strget_submission_url(job_id: u256) -> strget_brief(job_id: u256) -> str
- Docker 26+
- Node.js 18+
npm i -g genlayer
genlayer init
genlayer upYour project is live at:
https://vercel.com/onchaindcs-projects/v0-gen-layer-freelance-d-app
Continue building your app on:
https://v0.app/chat/mW3yEeOWUfZ
- Create and modify your project using v0.app
- Deploy your chats from the v0 interface
- Changes are automatically pushed to this repository
- Vercel deploys the latest version from this repository