{"id":18893967,"url":"https://github.com/bard/gs-index","last_synced_at":"2026-02-27T05:30:15.325Z","repository":{"id":212666362,"uuid":"732025272","full_name":"bard/gs-index","owner":"bard","description":"Composable command-line blockchain indexer for Gitcoin's Grants Stack","archived":false,"fork":false,"pushed_at":"2023-12-15T23:10:56.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T03:28:55.105Z","etag":null,"topics":["blockchain","eventsourcing"],"latest_commit_sha":null,"homepage":"https://bard.github.io/gitcoin-hackathon-2023-presentation/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-12-15T13:02:13.000Z","updated_at":"2023-12-18T16:23:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb3fdfb7-7caf-4cc5-9126-6b5ab124ba31","html_url":"https://github.com/bard/gs-index","commit_stats":null,"previous_names":["bard/gs-index"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Fgs-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Fgs-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Fgs-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Fgs-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bard","download_url":"https://codeload.github.com/bard/gs-index/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869219,"owners_count":19710485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","eventsourcing"],"created_at":"2024-11-08T08:17:04.607Z","updated_at":"2026-02-27T05:30:15.278Z","avatar_url":"https://github.com/bard.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gs-index\n\nCommand-line indexer for [Allo (v1)](https://github.com/gitcoinco/grants-stack-allo-contracts-v1) events. Built for Gitcoin's December 2023 hackathon ([presentation](https://bard.github.io/gitcoin-hackathon-2023-presentation/)). Companion to [gs-log](https://github.com/bard/gs-log).\n\n## Features\n\n- accepts events as JSON on stdin for easy composition: file, network, direct pipe from [gs-log](https://github.com/bard/gs-log), etc\n- outputs SQL (Postgres dialect)\n\n## Download\n\nDownload the binary for your platform from [Releases](https://github.com/bard/gs-index/releases).\n\n## Examples\n\nIndex historical data into a local database:\n\n```sh\n$ cat event_log.ndjson | gs-index | psql mydb\n```\n\nIndex historical plus live data into a local database:\n\n```sh\n$ gs-log --chains 58008:origin..ongoing | gs-index | psql mydb\n```\n\nIndex historical plus live data and keep a log to easily resume in case of interruption:\n\n```sh\n$ gs-log --chains 58008:origin..ongoing | \\\n  tee -a event_ndjson.log | \\\n  gs-index | \\\n  psql mydb\n# ... later ...\n$ cat event_ndjson | \\\n  gs-log --resume | \\\n  tee -a event_ndjson.log | \\\n  gs-index | \\\n  psql mydb\n```\n\n## Development\n\nRunning tests in watch mode:\n\n```sh\n# start db for integration tesnts\n$ docker-compose up -d\n$ cargo watch --watch src --ignore snapshots --clear -x test\n```\n\n## Status\n\nWork in progress. Event support:\n\n- [x] ProjectCreated\n- [x] MetadataUpdated\n- [x] OwnerAdded\n- [x] OwnerRemoved\n- [x] RoundCreated\n- [x] NewProjectApplication\n- [ ] MatchAmountUpdated\n- [ ] RoundMetaPtrUpdated\n- [ ] ApplicationMetaPtrUpdated\n- [ ] ProjectsMetaPtrUpdated\n- [ ] ApplicationStatusesUpdated\n- [ ] VotingContractCreatedV1\n- [ ] VotingContractCreated\n- [ ] Voted\n- [ ] PayoutContractCreated\n- [ ] ApplicationInReviewUpdated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbard%2Fgs-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbard%2Fgs-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbard%2Fgs-index/lists"}