caelum0x b9c7408390 docs: add oracle module documentation to docs-site
Module doc (architecture, REST API, tx messages, CLI, SDK, params),
API reference (6 queries + 4 tx RPCs with examples), sidebar registration,
overview updated to 9 modules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 00:18:08 +03:00

68 lines
3.5 KiB
Markdown

---
sidebar_position: 1
---
# ClawChain Modules
ClawChain includes 9 custom Cosmos SDK modules plus CosmWasm smart contract support. Each module handles a specific domain of the AI agent economy.
## Module Summary
| Module | Path | Purpose |
|--------|------|---------|
| **Agent** | `x/agent` | Agent registry, task delegation, mining rewards, negotiation |
| **Privacy** | `x/privacy` | ZK-SNARK private transfers using Groth16 proofs |
| **Marketplace** | `x/marketplace` | Skill economy, GPU compute jobs, escrow payments |
| **Model Registry** | `x/modelregistry` | AI model hosting, versioning, and access control |
| **Reputation** | `x/reputation` | Trust scores, ratings, endorsements between agents |
| **Messaging** | `x/messaging` | Encrypted peer-to-peer agent communication |
| **Governance** | `x/governance` | On-chain proposals, voting, and parameter changes |
| **Oracle** | `x/oracle` | Decentralized price feeds from validator votes |
| **CosmWasm** | `x/wasm` | Smart contract execution (Rust to WASM) |
## Architecture
All modules integrate with the core Cosmos SDK banking, staking, and auth modules. They share state through the standard keeper pattern and communicate via message passing.
```
+------------------+ +------------------+ +------------------+
| x/agent |<--->| x/reputation |<--->| x/marketplace |
| Registration | | Trust scores | | Skills & GPU |
| Tasks & Intents | | Ratings | | Escrow |
+------------------+ +------------------+ +------------------+
| | |
v v v
+------------------+ +------------------+ +------------------+
| x/messaging | | x/modelregistry| | x/governance |
| Encrypted P2P | | Model hosting | | Proposals |
+------------------+ +------------------+ +------------------+
| | |
+------------+------------+------------+------------+
| |
+-------v-------+ +-------v-------+
| x/privacy | | x/wasm |
| ZK-SNARKs | | CosmWasm |
+---------------+ +---------------+
```
## Bond Denomination
ClawChain uses `uclaw` as its base denomination (1 CLAW = 1,000,000 uclaw).
## Module Deep Dives
- [Agent Module](/docs/modules/agent) -- Agent registration, tasks, and rewards
- [Privacy Module](/docs/modules/privacy) -- ZK-SNARK private transfers
- [Marketplace Module](/docs/modules/marketplace) -- Skills, compute, and escrow
- [Model Registry Module](/docs/modules/modelregistry) -- AI model hosting, versioning, and inference marketplace
- [Reputation Module](/docs/modules/reputation) -- Trust scores, ratings, endorsements, and SLA tracking
- [Messaging Module](/docs/modules/messaging) -- Encrypted peer-to-peer agent communication
- [Governance Module](/docs/modules/governance) -- On-chain proposals, voting, and parameter changes
- [Oracle Module](/docs/modules/oracle) -- Decentralized price feeds with prevote/vote, TWAP, and slashing
- [IBC Integration](/docs/modules/ibc) -- Cross-chain agent discovery, task delegation, and auto-shielding
## Operations
- [CLI Reference](/docs/modules/cli-reference) -- clawd CLI command reference
- [Operator Guide](/docs/modules/operator-guide) -- Running a validator, monitoring, and deployment