{"id":23107757,"url":"https://github.com/kleros/gtcr-action-bot","last_synced_at":"2025-05-06T00:50:36.184Z","repository":{"id":38426994,"uuid":"255709997","full_name":"kleros/gtcr-action-bot","owner":"kleros","description":"A bot to watch Generalized TCR contracts and call functions on behalf of users","archived":false,"fork":false,"pushed_at":"2025-02-05T17:12:51.000Z","size":924,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T01:11:08.349Z","etag":null,"topics":["backend","curated-list","curated-lists-v1"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kleros.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2020-04-14T19:47:59.000Z","updated_at":"2025-02-05T17:05:42.000Z","dependencies_parsed_at":"2025-02-05T18:24:55.286Z","dependency_job_id":"6d5a0988-4a54-4760-8834-5a3a3bf57295","html_url":"https://github.com/kleros/gtcr-action-bot","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fgtcr-action-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fgtcr-action-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fgtcr-action-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fgtcr-action-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleros","download_url":"https://codeload.github.com/kleros/gtcr-action-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601674,"owners_count":21774657,"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":["backend","curated-list","curated-lists-v1"],"created_at":"2024-12-17T01:16:02.485Z","updated_at":"2025-05-06T00:50:36.018Z","avatar_url":"https://github.com/kleros.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cb style=\"font-size: 32px;\"\u003eGeneralizedTCR Action Bot\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://standardjs.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/code_style-standard-brightgreen.svg\" alt=\"JavaScript Style Guide\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://conventionalcommits.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg\" alt=\"Conventional Commits\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://commitizen.github.io/cz-cli/\"\u003e\u003cimg src=\"https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\" alt=\"Commitizen Friendly\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis bot watches a GTCR Factory contract and all GTCR contracts spawned from it. It is a convenience tool and does primarily two things:\n\n- Detects submissions that passed the challenge period and executes them for the user.\n- Detects pending crowdfunding rewards that were not withdrawn, and withdraws them for the user.\n\n## Prerequisites\n\nWe recommend using [volta](https://volta.sh/)\n\n- Tested on NodeJS version 14.\n\n## Get Started\n\n1.  Clone this repo.\n2.  Duplicate `.env.example`, rename it to `.env` and fill in the environment variables.\n3.  Run `yarn` to install dependencies and then `yarn start` to run the service\n\n## Production\n\n1. Create a `.env` file with the name of the network you wish to use. Example `.env.xdai`.\n2. Look into `package.json` for the appropriate script (e.g. start:xdai). Create one if it does not yet exist.\n3. Use PM2 like so: `pm2 start yarn --interpreter bash --name gtcr-action-bot-\u003cnetwork\u003e -- start:\u003cnetwork\u003e`, replacing `network` with the network name.\n\nExample for xDai:\n`pm2 start yarn --interpreter bash --name gab-xdai -- start:xdai`\n\n## Contributing\n\nSee CONTRIBUTING.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fgtcr-action-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleros%2Fgtcr-action-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fgtcr-action-bot/lists"}