{"id":48174339,"url":"https://github.com/lambdasistemi/chain-follower","last_synced_at":"2026-04-04T17:36:30.249Z","repository":{"id":345600570,"uuid":"1186613536","full_name":"lambdasistemi/chain-follower","owner":"lambdasistemi","description":"Abstract chain follower types — Follower, Intersector, ProgressOrRewind","archived":false,"fork":false,"pushed_at":"2026-03-27T13:09:02.000Z","size":942,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T23:51:10.946Z","etag":null,"topics":["blockchain","chain-sync","follower","haskell"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdasistemi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-19T20:11:46.000Z","updated_at":"2026-03-27T13:08:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lambdasistemi/chain-follower","commit_stats":null,"previous_names":["lambdasistemi/chain-follower"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lambdasistemi/chain-follower","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdasistemi%2Fchain-follower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdasistemi%2Fchain-follower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdasistemi%2Fchain-follower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdasistemi%2Fchain-follower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdasistemi","download_url":"https://codeload.github.com/lambdasistemi/chain-follower/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdasistemi%2Fchain-follower/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","chain-sync","follower","haskell"],"created_at":"2026-04-04T17:36:30.121Z","updated_at":"2026-04-04T17:36:30.241Z","avatar_url":"https://github.com/lambdasistemi.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chain-follower\n\nGeneric blockchain synchronization library with rollback support, phase management, and formally verified correctness.\n\n**[Documentation](https://lambdasistemi.github.io/chain-follower/)**\n\n## What it does\n\nChain Follower sits between a chain source and your application backend. It manages block ingestion across two phases (bulk restoration and near-tip following), stores inverse operations for rollback, and guarantees that fork resolution produces the correct final state regardless of the traversal path.\n\nCore correctness properties are proved in Lean 4 and mirrored as QuickCheck properties via `ChainFollower.Laws`.\n\n## Quick start\n\n```bash\n# Run the tutorial (demonstrates full lifecycle)\nnix run github:lambdasistemi/chain-follower#tutorial\n\n# Development shell\nnix develop\n\n# Build, test, lint\njust ci\n```\n\n## Modules\n\n| Module | Purpose |\n|--------|---------|\n| `ChainFollower.Backend` | CPS backend interface: `Restoring`, `Following`, `Init` |\n| `ChainFollower.Runner` | State machine: `processBlock`, `rollbackTo` |\n| `ChainFollower.Rollbacks.*` | Swap-partition rollback store |\n| `ChainFollower.MockChain` | `BlockTree`, DFS walk, canonical path |\n| `ChainFollower.Laws` | Testable backend laws derived from Lean proofs |\n\n## Lean formalization\n\nThe `lean/` directory contains machine-checked proofs:\n\n- `swap_inverse_restores` -- swap is an involution\n- `rollback_restores` -- multi-step rollback via reversed inverse log\n- `dfs_equiv_canonical` -- DFS walk of a well-formed block tree equals the canonical path (fully proved, no sorry)\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdasistemi%2Fchain-follower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdasistemi%2Fchain-follower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdasistemi%2Fchain-follower/lists"}