Mono-repo of submodules for the BattleChain project — Cyfrin's PvP security-focused blockchain where smart contracts face open exploitation in a live arena before production deployment.
| Directory | Description |
|---|---|
battlechain-lib |
Foundry library for deploying on BattleChain and adopting Safe Harbor agreements |
battlechain-prediction |
Prediction market AMM using Gaussian-based LMSR with time-decaying liquidity |
battlechain-safe-harbor |
Safe Harbor and Attack Registry contracts for BattleChain |
battlechain-starter |
Starter template for building and deploying on BattleChain |
docs-battlechain |
Documentation site (Next.js) |
solskill |
Solidity development standards |
Clone with submodules:
git clone --recurse-submodules https://github.com/Cyfrin/battlechain-devex.gitIf already cloned, initialize submodules:
git submodule update --init --recursiveEach submodule is an independent repository. cd into any directory and follow its own README for build/test instructions.
Pull latest changes across all submodules:
git submodule update --remote --merge