{"id":18492960,"url":"https://github.com/graphprotocol/thegarii","last_synced_at":"2025-06-16T13:10:35.557Z","repository":{"id":40460954,"uuid":"462950284","full_name":"graphprotocol/thegarii","owner":"graphprotocol","description":"The Graph Arweave Integration Implementation","archived":false,"fork":false,"pushed_at":"2025-01-20T22:03:53.000Z","size":1880,"stargazers_count":2,"open_issues_count":4,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T16:49:34.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/graphprotocol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-02-24T00:16:23.000Z","updated_at":"2025-01-20T22:03:57.000Z","dependencies_parsed_at":"2024-04-09T21:31:32.581Z","dependency_job_id":"3aa1005e-8240-4a34-b45a-056ea3bbf303","html_url":"https://github.com/graphprotocol/thegarii","commit_stats":null,"previous_names":["graphprotocol/thegarii"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graphprotocol/thegarii","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fthegarii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fthegarii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fthegarii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fthegarii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphprotocol","download_url":"https://codeload.github.com/graphprotocol/thegarii/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fthegarii/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260166308,"owners_count":22968635,"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":[],"created_at":"2024-11-06T13:12:02.579Z","updated_at":"2025-06-16T13:10:35.533Z","avatar_url":"https://github.com/graphprotocol.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thegarii\n\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/thegarii?style=for-the-badge\" height = \"20\" /\u003e](https://crates.io/crates/thegarii)\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-ChainSafe/thegarii-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height = \"20\" /\u003e](https://github.com/ChainSafe/thegarii)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/workflow/status/ChainSafe/thegarii/CI/main?style=for-the-badge\" height = \"20\" /\u003e](https://github.com/ChainSafe/thegarii/actions?query=branch%3Amain)\n\n\nThe polling service for Arweawve blocks\n\n## Getting Started\n\n```\n\u003e cargo install thegarii\n\u003e thegarii -h\nthegaril 0.0.3\ninfo@chainsafe.io\nenv arguments for CLI\n\nUSAGE:\n    thegarii [FLAGS] [OPTIONS]\n\nFLAGS:\n    -d, --debug      Activate debug mode\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -B, --batch-blocks \u003cbatch-blocks\u003e    how many blocks polling at one time [default: 20]\n    -b, --block-time \u003cblock-time\u003e        time cost for producing a new block in arweave [default: 20000]\n    -c, --confirms \u003cconfirms\u003e            safe blocks against to reorg in polling [default: 20]\n    -e, --endpoints \u003cendpoints\u003e...       client endpoints [default: https://arweave.net/]\n    -p, --ptr-path \u003cptr-path\u003e            block ptr file path\n    -r, --retry \u003cretry\u003e                  retry times when failed on http requests [default: 10]\n    -t, --timeout \u003ctimeout\u003e              timeout of http requests [default: 120000]\n```\n\n\n# Environments\n    \n| KEY           | DEFAULT\\_VALUE           | DESCRIPTION                                 |\n|---------------|--------------------------|---------------------------------------------|\n| ENDPOINTS     | `\"https://arweave.net\"`  | for multiple endpoints, split them with ',' |\n| BATCH\\_BLOCKS | `50`                     | how many blocks batch at one time           |\n| CONFIRMS      | `20`                     | irreversibility condition                   |\n| PTR\\_PATH     | `$APP_DATA/thegarii/ptr` | the file stores the block ptr for polling   |\n| retry         | `10`                     | retry times when failed on http requests    |\n| timeout       | `120_000`                | timeout of http requests                    |\n\n\n## Dev\n\nBuild the source code with `cargo build --release`.\n\nTo config the number of nodes to pull blocks from, define the env variable: `ENDPOINTS`, i.e. `export ENDPOINTS=http://178.62.222.154:1984,http://localhost:1984`.\nThe default node is `https://arweave.net/`.\n\nTo start estimating the total ingestion time using the following command:\n```shell\n./target/release/thegarii poll -h\n```\n\nTo compile, set env variables and run in one go, you can use:\n```shell\nENDPOINTS=http://178.62.222.154:1984,http://localhost:1984 cargo run --release -- poll -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fthegarii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphprotocol%2Fthegarii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fthegarii/lists"}