| Crates.io | torque |
| lib.rs | torque |
| version | 0.0.1 |
| created_at | 2025-12-28 17:34:11.251003+00 |
| updated_at | 2025-12-28 17:34:11.251003+00 |
| description | Blockchain testing framework built on distributed systems principles |
| homepage | |
| repository | https://github.com/umbgtt10/torque |
| max_upload_size | |
| id | 2009174 |
| size | 10,380 |
Blockchain testing framework built on distributed systems principles
Torque brings production-grade distributed systems testing to blockchain development. Test your contracts with:
Built in Rust with patterns from MIT's distributed systems course (6.5840).
Existing tools (Hardhat, Foundry) are slow and unreliable because they lack:
Torque solves this with:
use Torque::prelude::*;
#[Torque::test]
async fn test_uniswap_swap() {
let mut chain = Chain::fork_ethereum(BlockNumber::Latest);
chain.mock_uniswap(); // Use mock instead of real protocol
let result = chain.execute(|c| {
c.swap(USDC, WETH, amount_in)
}).await?;
assert_eq!(result.balance(WETH), expected);
}
Run tests in parallel:
# Run all tests across 8 processes
Torque test --parallel=process --workers=8
# Run specific test suite
Torque test integration/ --parallel=thread
Torque abstracts three key layers:
1. Execution Layer (How tests run)
2. Backend Layer (What blockchain to test against)
3. Storage Layer (How state is managed)
┌─────────────────────────────────────┐
│ Test Suite (Your Code) │
└──────────────┬──────────────────────┘
│
┌──────────┴──────────┐
│ Torque Framework │
│ - Isolation │
│ - Parallelism │
│ - Determinism │
└──────────┬──────────┘
│
┌─────────┴─────────┐
│ │
┌────▼────┐ ┌─────▼─────┐
│ Backend │ │ Executor │
│ - Fork │ │ - Task │
│ - Mock │ │ - Thread │
│ - Sim │ │ - Process │
└─────────┘ └───────────┘
Q1 2025: Alpha
Q2 2025: Beta
Q3 2025: v1.0
⚠️ Early Development - Not Production Ready
Torque is under active development. APIs will change. Use at your own risk.
Currently implements:
Torque applies distributed systems principles to blockchain testing:
Built by engineers who've worked on:
We know how to build reliable systems. Now we're building reliable testing tools.
Torque is open source (MIT licensed). Contributions welcome!
Areas we need help:
See CONTRIBUTING.md for details.
MIT License - see LICENSE for details
Architecture patterns inspired by:
Built with ❤️ and Rust 🦀
## GitHub Topics/Tags
**Add these to maximize discoverability:**
- `blockchain`
- `testing`
- `ethereum`
- `distributed-systems`
- `rust`
- `parallel`
- `test-framework`
- `web3`
- `smart-contracts`
- `defi`
- `hardhat-alternative`
- `foundry`
## Social Media One-Liner (Twitter/LinkedIn)
**When you announce it:**
Introducing Torque: blockchain testing framework with process isolation and parallel execution. Same tests, 10-100x faster. Built on distributed systems principles from MIT 6.5840.
Early alpha, MIT licensed, looking for feedback.
🦀 Rust | ⚡ Fast | 🔒 Isolated | 🎯 Deterministic
github.com/[you]/Torque
## My Final Recommendation
**GitHub Description (50 chars):**
Blockchain testing framework with parallel execution, process isolation, and pluggable mocks
**Why this works:**
- ✅ Clear what it does (blockchain testing)
- ✅ Key differentiators (parallel, isolated, pluggable)
- ✅ Searchable keywords (blockchain, testing, parallel)
- ✅ Professional tone (not overpromising)
**Tagline for README:**
Blockchain testing framework built on distributed systems principles