{"id":19390342,"url":"https://github.com/nucypher/train45","last_synced_at":"2026-05-16T03:43:28.605Z","repository":{"id":222548577,"uuid":"751958031","full_name":"nucypher/train45","owner":"nucypher","description":"Polygon state transfer bot 🚂","archived":false,"fork":false,"pushed_at":"2024-02-21T19:49:34.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-07T09:43:13.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nucypher.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-02-02T17:43:47.000Z","updated_at":"2024-02-15T01:43:50.000Z","dependencies_parsed_at":"2025-01-07T09:41:28.457Z","dependency_job_id":"ff9b2a0c-f1aa-4e59-a030-1fd4eba04a45","html_url":"https://github.com/nucypher/train45","commit_stats":null,"previous_names":["nucypher/train45"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2Ftrain45","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2Ftrain45/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2Ftrain45/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2Ftrain45/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nucypher","download_url":"https://codeload.github.com/nucypher/train45/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240557489,"owners_count":19820358,"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-10T10:20:25.385Z","updated_at":"2026-05-16T03:43:28.599Z","avatar_url":"https://github.com/nucypher.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# State Transfer Bot Polygon → Ethereum\n\nStateless bot monitors GraphQL endpoint for new events `MessageSent` that occurs on Polygon network. And then transfers proof to Ethereum root contract.\n\n## Installation\n\nWe use [Ape](https://docs.apeworx.io/ape/stable/index.html) as the testing and deployment framework of this project.\n\n### Configuring Pre-commit\n\nTo install pre-commit locally:\n\n```bash\npre-commit install\n```\n\n## Example of usage\n\n```bash\nexport WEB3_INFURA_PROJECT_ID=\u003cInfura project ID\u003e\nexport APE_ACCOUNTS_BOT_PASSPHRASE=\u003cPassphrase for account with alias BOT\u003e\nexport ETHERSCAN_API_KEY=\u003cAPI Key for Etherscan\u003e\n\nape run proof_bot --fx-root-tunnel 0x51825d6e893c51836dC9C0EdF3867c57CD0cACB3 --graphql-endpoint https://api.goldsky.com/api/public/project_cmgzo6cgq00lc5np2dwaycfdl/subgraphs/taco-mainnet-polygon/v2.1.14/gn --proof-generator https://proof-generator.polygon.technology/api/v1/matic/ --network ethereum:mainnet:infura --account BOT\n```\n\n\n## Docker\n\n##### Build\n\n```bash\ndocker build -f deploy/Dockerfile -t nucypher/train45:latest .\n```\n\n##### Run\n\nFirst, create the log file:\n\n```bash\ntouch /var/log/cron.log\n```\n\nThen run the bot:\n\n```bash\ndocker run             \\\n--name train45         \\\n--detach               \\\n--env-file .env        \\\n-f deploy/Dockerfile   \\\n-v /var/log/cron.log:/var/log/cron.log \\\n-v /var/log/:/var/log/ \\\n-v ~/.ape/:/root/.ape  \\\nnucypher/train45:latest\n```\n\nEnjoy the logs:\n\n```bash\ntail -f /var/log/cron.log\n```\n\n##### Stop\n\n```bash\ndocker stop train45 \u0026\u0026 docker rm train45\n```\n\n## Docker-compose\n\n##### Build\n\n```bash\ndocker-compose build\n```\n\n##### Start (all services)\n\nFirst, create the log file:\n\n```bash\ntouch /var/log/cron.log\n```\n\nThen run the bot with docker-compose\n(including log server and autoupdate service):\n\n```bash\ndocker-compose up -d\n```\n\n##### Stop (all services)\n\n```bash\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucypher%2Ftrain45","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnucypher%2Ftrain45","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucypher%2Ftrain45/lists"}