{"id":21399298,"url":"https://github.com/streamr-dev/brubeck-rewards","last_synced_at":"2025-07-21T08:32:04.648Z","repository":{"id":46023310,"uuid":"424255088","full_name":"streamr-dev/brubeck-rewards","owner":"streamr-dev","description":"Token distribution smart contract + script","archived":false,"fork":false,"pushed_at":"2024-08-19T17:22:19.000Z","size":9436,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T06:51:38.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/streamr-dev.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,"zenodo":null}},"created_at":"2021-11-03T14:23:44.000Z","updated_at":"2024-08-19T17:22:23.000Z","dependencies_parsed_at":"2023-10-02T07:58:04.262Z","dependency_job_id":"f0e6a1bf-fe02-4584-8115-629d32c228aa","html_url":"https://github.com/streamr-dev/brubeck-rewards","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/streamr-dev/brubeck-rewards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fbrubeck-rewards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fbrubeck-rewards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fbrubeck-rewards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fbrubeck-rewards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamr-dev","download_url":"https://codeload.github.com/streamr-dev/brubeck-rewards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fbrubeck-rewards/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266267217,"owners_count":23902315,"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-22T15:14:01.793Z","updated_at":"2025-07-21T08:32:04.631Z","avatar_url":"https://github.com/streamr-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Token distribution contract\n\n[![CI tests](https://github.com/streamr-dev/brubeck-rewards/actions/workflows/ci.yaml/badge.svg)](https://github.com/streamr-dev/brubeck-rewards/actions/workflows/ci.yaml)\n\n## Smart contract\n\n1. Deploy the contract, argument = address of the token to distribute\n1. Send distributed tokens into contract\n1. Send native token into the contract (stipends to recipients so that they can transfer the token forward)\n1. Call send, arguments = (array of the intended targets' addresses, respective array of token wei amounts)\n1. Call withdrawAll to return any extra tokens and native tokens to the deployer\n\n## Usage\n\nTo run the Stream-team distribution:\n1. Send tokens to the [distributor contract](https://polygonscan.com/address/0x4f9c39FD42010c1bDFf33e8176caf66b9F5F356b#readContract)\n1. Clone this repo and/or `cd brubeck-rewards` (enter commands from repository root)\n1. Save the CSV file to `data/stream-team/2022-11-01.csv` (use today's date!)\n1. export KEY=0x1234567890123456789012345678901234567890123456789012345678901234 (find the \"distributor\" private key in 1password)\n1. `scripts/stream-team.sh`\n\n## Costs\n\nGas measurements using index.js\n```\nbatch 10, gas 179857 (18000/target)\nbatch 30, gas 486143 (16200/target)\nbatch 100, gas 1558330 (15600/target)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fbrubeck-rewards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamr-dev%2Fbrubeck-rewards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fbrubeck-rewards/lists"}