HeartbeatRing is an on-chain accountability protocol on Rootstock. This repo contains contracts, a web interface, a liquidator bot, and a subgraph.
- Habit/accountability groups with stake-backed check-ins
- DAO/team liveness tracking with clear inactivity penalties
- Community experiments with periodic on-chain participation rules
contracts/- Foundry contracts and deployment scriptsinterface/- Next.js appliquidator/- liquidation bot CLIheartbeatring/- The Graph subgraph
- Bun
1.3+ - Foundry (
forge,cast,anvil) - Rootstock RPC access
- Clone and init submodules:
git clone <your-repo-url>
cd heartbeatring
git submodule update --init --recursive- Install dependencies:
bun --cwd interface install
bun --cwd liquidator install- Create env files:
cp contracts/.env.example contracts/.env
cp interface/.env.example interface/.env.local
cp liquidator/.env.example liquidator/.env- Fill required values in each env file.
- Build/test/deploy contracts in
contracts/. - Configure
interface/.env.localwith deployed addresses. - Run the interface from
interface/. - Run the subgraph from
heartbeatring/(optional but recommended). - Run the liquidator from
liquidator/.