Skip to content

Commit 0b2a8bf

Browse files
committed
Agora: Verifiable Off-chain compute
1 parent 9aa8c65 commit 0b2a8bf

File tree

1 file changed

+171
-0
lines changed

1 file changed

+171
-0
lines changed

applications/Agora.md

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# Agora
2+
3+
- **Team Name:** Agora
4+
- **Payment Details:**
5+
- **DOT:** 1QvwVTx1G4ZhPjE68zEkZDjcLFkJwTMkgKk8FYWWKmsGjcc
6+
- **Payment (USDC) :** 1QvwVTx1G4ZhPjE68zEkZDjcLFkJwTMkgKk8FYWWKmsGjcc
7+
- **[Level](https://grants.web3.foundation/docs/Introduction/levels):** 2
8+
9+
## Project Overview :page_facing_up:
10+
11+
### Overview
12+
13+
- **Tagline:** Verifiable Off‑Chain Computation via Commit‑Reveal and XCM.
14+
- **Brief Description:** Agora is a Polkadot parachain template extended with a verifiable computation marketplace. It enables parachains to outsource off‑chain jobs (API fetches, computations) to a network of staked workers. Results are verified on‑chain using a crypto‑economic commit‑reveal game. Cross‑parachain requests and result delivery use XCM.
15+
- **Integration:** Agora integrates into the Polkadot ecosystem as a parachain that provides a service (verifiable computation) to other parachains via XCM. It leverages Substrate for the chain logic and Polkadot's shared security.
16+
- **Interest:** The team is interested in creating this project to solve the problem of trustless off-chain computation and data fetching, enabling a decentralized oracle and computation network within the Polkadot ecosystem without relying on trusted execution environments (TEEs) or centralized providers.
17+
18+
### Project Details
19+
20+
**Mockups/Designs:**
21+
22+
**Video Demo:**
23+
- [Watch Agora Demo Video](https://www.youtube.com/watch?v=3V9ne5yBJFs&t=2s)
24+
- [Watch Agora Walkthrough](https://app.supademo.com/demo/cm6xuj2sr01o8pegv3s411vap)
25+
26+
- App Workflow: `https://drive.google.com/file/d/17Fb2KbcJln9lEmsJ8lFXYMeEEVOkCHt_/view?usp=drive_link`
27+
- Dashboard: `https://drive.google.com/file/d/16tMUbN2GPYmBoMoPvyiPBAIZ66G6gCDt/view?usp=drive_link`
28+
- Job submission UI: `https://drive.google.com/file/d/1eOcAyvX3cI-6YfwLqkAY1xymzIUTWI2V/view?usp=drive_link`
29+
30+
**Architecture:**
31+
- **Runtime:** FRAME-based Substrate runtime including `agora` pallet.
32+
- **Agora Pallet:** Handles job lifecycle (submit -> commit -> reveal -> finalize), staking, rewards/slashing, and XCM handling.
33+
- **Off-Chain Worker (OCW):** Handles execution of jobs (API fetches, computation) and submits commits/reveals.
34+
- **XCM:** Uses `Transact` for cross-chain job submission and HRMP for result delivery.
35+
36+
**Technology Stack:**
37+
- **Blockchain:** Rust, Substrate, Polkadot SDK.
38+
- **Frontend:** React, Vite, TailwindCSS, Polkadot JS API.
39+
- **Scripts:** Node.js, JavaScript.
40+
41+
**Core Components:**
42+
- `pallets/agora`: The core logic for the computation marketplace.
43+
- `node`: The collator binary.
44+
- `ui`: The React-based dashboard for interacting with the marketplace.
45+
46+
**PoC/MVP:**
47+
- The current repository serves as the MVP, featuring a working local testnet (Zombienet) with XCM enabled, a functional `agora` pallet with commit-reveal mechanism, and a basic UI.
48+
49+
## How We Help DOT
50+
- Direct DOT Staking Lockup: Each worker must stake minimum 100 DOT to participate. With 500 active workers (realistic for mature network), this permanently locks 50,000+ DOT in staking contracts, reducing circulating supply and creating sustained demand pressure.
51+
52+
- Continuous Bounty Circulation: All job bounties are denominated in DOT for cross-parachain compatibility. With 5,000 jobs/day at average 10 DOT bounty, this creates 50,000 DOT/day (1.5M DOT/month) in continuous circulation through the system, generating constant buying pressure.
53+
54+
- Continuous Bounty Circulation: All job bounties are denominated in DOT for cross-parachain compatibility. With 5,000 jobs/day at average 10 DOT bounty, this creates 50,000 DOT/day (1.5M DOT/month) in continuous circulation through the system, generating constant buying pressure.
55+
56+
- Economic Slashing & Supply Reduction: Dishonest workers face 10% stake slashing, permanently removing DOT from circulation. This deflationary mechanism reduces supply while incentivizing larger stakes for reputation protection.
57+
58+
- Transaction Fee Accumulation: Every cross-parachain job requires DOT for XCM execution fees, and all on-chain operations (commit, reveal, finalize) consume DOT. These fees can be burned or sent to treasury, creating deflationary pressure.
59+
60+
- DOT as Computation Currency: DOT gains real-world utility beyond governance-becoming the universal currency for decentralized computation. This utility premium makes DOT more attractive as a long-term hold, driving price appreciation.
61+
62+
- Positive Feedback Loop: More integrations → More DOT locked → Higher price → More attractive for workers → Better service → More integrations. This self-reinforcing cycle creates sustained upward price pressure.
63+
64+
## Need for This
65+
66+
- Enables Previously Impossible Use Cases: Real-time sports betting dApps, decentralized weather insurance, cross-chain NFT verification-all now economically viable. Each new use case brings new users to the Polkadot ecosystem.
67+
68+
- Pay-Per-Use Economic Model: Developers pay only for what they use instead of expensive subscription models. Makes previously unaffordable use cases viable (real-time data feeds, weather insurance, ML inference), unlocking new dApp categories and bringing in new users.
69+
70+
- Eliminates Single Points of Failure: Replaces centralized oracles with a distributed network of workers using majority consensus. DeFi protocols get higher uptime and protection from oracle manipulation, reducing risk for end users.
71+
72+
- Dramatically Lowers Development Costs: Parachain teams integrate computation/oracle services in days instead of months. Saves significant development costs per parachain, enabling faster time-to-market and more resources for core features.
73+
74+
- Democratizes Worker Participation: Anyone with a modest stake and standard server can earn passive income as a worker node operator. No expensive specialized hardware required-removes barriers that limit participation in TEE-based systems.
75+
76+
- Transparent & Verifiable: All data sources and consensus decisions are visible on-chain. End users can verify oracle data themselves, building trust that centralized solutions cannot match. Transparency drives adoption in DeFi where trust is critical.
77+
78+
- XCM-Native Integration: Parachains integrate via simple XCM calls-no complex bridges, wrapping, or trust assumptions. Reduces integration time from weeks to hours, enabling rapid ecosystem expansion and seamless cross-parachain collaboration.
79+
80+
- XCM-Native Integration: Parachains integrate via simple XCM calls-no complex bridges, wrapping, or trust assumptions. Reduces integration time from weeks to hours, enabling rapid ecosystem expansion and seamless cross-parachain collaboration.
81+
82+
83+
### Ecosystem Fit
84+
85+
- **Fit:** Agora fits as a utility parachain providing decentralized computation and oracle services to other parachains.
86+
- **Target Audience:** Parachain developers needing off-chain data/compute, DeFi protocols requiring oracles, and users wanting to run worker nodes.
87+
- **Needs Met:** Trustless access to off-chain data and computation without centralized intermediaries.
88+
- **Differentiation:** Unlike TEE-based solutions (e.g., Phala), Agora uses crypto-economic verification (commit-reveal), which avoids hardware dependencies. Unlike centralized oracles, it is decentralized and permissionless.
89+
90+
## Team :busts_in_silhouette:
91+
92+
### Team members
93+
94+
- Suyash D Nahar
95+
- Nikhil Kottoli
96+
97+
### Contact
98+
99+
- **Contact Name:** Suyash D Nahar
100+
- **Contact Email:** [email protected]
101+
- **Contact Name:** Nikhil Kottoli
102+
- **Contact Email:** [email protected]
103+
104+
### Team Code Repos
105+
106+
- https://github.com/suyash101101/Agora
107+
108+
### Team LinkedIn Profiles
109+
110+
- https://www.linkedin.com/in/suyash101/
111+
- https://www.linkedin.com/in/nikhil-kottoli-92552128a/
112+
113+
## Development Status :open_book:
114+
115+
- **Code:** [https://github.com/suyash101101/Agora](https://github.com/suyash101101/Agora)
116+
- **Demo Video:** [Watch Agora Demo Video](https://www.youtube.com/watch?v=3V9ne5yBJFs&t=2s)
117+
- **Walkthrough:** [Watch Agora Walkthrough](https://app.supademo.com/demo/cm6xuj2sr01o8pegv3s411vap)
118+
119+
## Development Roadmap :nut_and_bolt:
120+
121+
### Overview
122+
123+
- **Total Estimated Duration:** 4 months
124+
- **FTE:** 2
125+
- **Total Costs:** 30,000 USD
126+
- **DOT %:** 50%
127+
128+
### Milestone 1 - Core Functionality & Local Testnet
129+
130+
- **Estimated duration:** 2 months
131+
- **FTE:** 2
132+
- **Costs:** 15,000 USD
133+
134+
| Number | Deliverable | Specification |
135+
| -----: | ----------- | ------------- |
136+
| **0a.** | License | MIT-0 / Apache 2.0 |
137+
| **0b.** | Documentation | Inline docs for `agora` pallet and a guide on running the local Zombienet setup. |
138+
| 1. | Code Revamp | Revise the hackathon implementation and resolve minor defects within the `agora` pallet. |
139+
| 2. | Ecosystem Survey | Reach Out to parachains and ask them for desired additional features. |
140+
| 3. | Professional UI | Improve and make a professional React-based UI dashboard. |
141+
| 4. | Deployment | Deploy Agora as a parathread on a public Polkadot test network and exposing a stable public RPC endpoint. |
142+
143+
### Milestone 2 - OCW & Automation
144+
145+
- **Estimated Duration:** 2 months
146+
- **FTE:** 2
147+
- **Costs:** 15,000 USD
148+
149+
| Number | Deliverable | Specification |
150+
| -----: | ----------- | ------------- |
151+
| **0a.** | Dockerfile | Dockerize the application |
152+
| **0b.** | Docker Compose | A Compose configuration for running the parachain and its dependencies |
153+
| **0c.** | Docker Documentation | Document the full Docker workflow, including build, run, logs, and network setup for local and CI environments. |
154+
| **0d.** | Docker Testing Guide |Provide a test guide for validating the Dockerized parachain, including integration and networking checks. |
155+
| 0e. | Article | Blog post explaining the architecture and use cases. |
156+
| 1. | OCW | Improve and make robust Off-Chain Worker (OCW) logic for automatic job execution and verification. |
157+
| 2. | Agora Client Pallet | Build a minimal Agora Client pallet that other parachains can plug into their runtime to send XCM job requests and receive results with no additional integration work. |
158+
| 3. | Reputation & Security | Rework the reputation and slashing logic to compound penalties for dishonest workers and increase slashing rates |
159+
| 4. | Tests | unit tests for all modules and End-to-end integration test that simulates a full local job_commit, reveal, finalize then consensus, rewards, and slashing across multiple workers |
160+
161+
## Future Plans
162+
163+
- Mainnet deployment as a parachain.
164+
- Expansion of job types (e.g., more complex ML inference).
165+
- Integration with more parachains.
166+
167+
## Additional Information :heavy_plus_sign:
168+
169+
170+
- This project was 1st place in "Build Resilient Apps with Polkadot Cloud" Hackathon.
171+
https://devpost.com/software/agora-bkfo60

0 commit comments

Comments
 (0)