CDK Dev Stack
๐ฆ A comprehensive Rust-based blockchain development stack for Polygon CDK (Chain Development Kit) networks, providing production-ready services for blockchain monitoring, indexing, testing, and Web3 infrastructure.
๐๏ธ Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CDK Dev Stack โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Events โ โ Blocks โ โ Mempool โ โ
โ โ Monitor โ โ Monitor โ โ Monitor โ โ
โ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Core Infrastructure โ โ
โ โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ PostgreSQL โ โ NATS โ โ AWS RDS โ โ โ
โ โ โ Database โ โ Messaging โ โ Cloud storage โ โ โ
โ โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Application Services โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
โ โ โ Airdrop โ โ Agentic โ โ Oracle โ โ โ
โ โ โ Backend โ โ Payment โ โ Service โ โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Development Tools โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ โ
โ โ โ TX Producer โ โ Load Tester โ โ Merkle Trie โ โ โ
โ โ โ โ โ CLI โ โ CLI โ โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ โ
โ โ โ ABI Fetcher โ โ ABI2Sol โ โ User ID โ โ โ
โ โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ Fetcher โ โ โ
โ โ โโโโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Components
๐ Monitoring Services
| Component |
Description |
Documentation |
| events-monitor |
Real-time blockchain event monitoring and indexing service with WebSocket/HTTP subscriptions |
README |
| blocks-monitor |
Block tracking and indexing service for chain state monitoring |
README |
| mempool-monitor |
Pending transaction monitoring from the mempool |
README |
๐ฐ Application Services
๐ ๏ธ Development & Testing Tools
๐ Legacy Components
Located in ./legacy/:
๐ฆ Summary of Components
| Category |
Component |
Purpose |
| Monitoring |
events-monitor |
Real-time blockchain event indexing |
| Monitoring |
blocks-monitor |
Block data tracking and storage |
| Monitoring |
mempool-monitor |
Pending transaction monitoring |
| Services |
airdrop-backend |
Token airdrop eligibility verification |
| Services |
agentic-payment-service |
AI agent payment processing |
| Services |
oracle-service |
Blockchain oracle service |
| Tools |
tx-producer |
Transaction generation library |
| Tools |
load-tester-cli |
Blockchain load testing |
| Tools |
merkle-trie-cli |
Merkle proof generation |
| Tools |
abi-fetcher |
ABI retrieval from explorers |
| Tools |
abi2sol |
ABI to Solidity conversion |
| Services |
user-id-fetcher |
User identity resolution |
๐ Quick Start
Prerequisites
- Rust stable toolchain (see
rust-toolchain)
- PostgreSQL 17+
- NATS Server 2.x
- Docker & Docker Compose
Building
# Build all workspace members
cargo build --release
# Build specific component
cargo build --release -p events-monitor
Running with Docker
cd .docker
./build.run.sh
# or for rebuild
./rebuild.run.sh
Configuration
Each service uses YAML configuration files located in their .config directories:
# Example: Events Monitor
cp events-monitor/events_monitor.config.yaml.example events-monitor/events_monitor.config.yaml
# Edit configuration...
cargo run -p events-monitor
๐ Documentation
Comprehensive documentation is available in each corresponding component/service directory in respective REAMDE.md file.