{"id":25322399,"url":"https://github.com/checkernetwork/spark-rewards","last_synced_at":"2025-06-21T00:10:26.041Z","repository":{"id":254978129,"uuid":"848135132","full_name":"CheckerNetwork/spark-rewards","owner":"CheckerNetwork","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-27T07:31:15.000Z","size":967,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T08:41:20.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://spark-rewards.fly.dev/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CheckerNetwork.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-27T07:39:42.000Z","updated_at":"2025-05-27T07:31:18.000Z","dependencies_parsed_at":"2025-01-29T12:36:37.314Z","dependency_job_id":"c324bf21-7a7d-407c-bb21-cf59b5ad7552","html_url":"https://github.com/CheckerNetwork/spark-rewards","commit_stats":null,"previous_names":["filecoin-station/spark-rewards","checkernetwork/spark-rewards"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CheckerNetwork/spark-rewards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckerNetwork%2Fspark-rewards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckerNetwork%2Fspark-rewards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckerNetwork%2Fspark-rewards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckerNetwork%2Fspark-rewards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheckerNetwork","download_url":"https://codeload.github.com/CheckerNetwork/spark-rewards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckerNetwork%2Fspark-rewards/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261039155,"owners_count":23100978,"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":"2025-02-13T23:40:41.120Z","updated_at":"2025-06-21T00:10:20.999Z","avatar_url":"https://github.com/CheckerNetwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spark-rewards\n\nThis implements revision D of [Meridian: Off-chain scheduled rewards](https://spacemeridian.notion.site/Meridian-Off-chain-scheduled-rewards-f9480ef009464ecfaf02a4f752cc4d70).\n\n## Routes\n\n### `GET /scheduled-rewards`\n\nResponse:\n\n```js\n{\n  \"address\": \"scheduledRewardsInAttoFIL\",\n  // ...\n}\n```\n\n### `GET /scheduled-rewards/:address`\n\nResponse:\n\n```js\n\"scheduledRewardsInAttoFIL\"\n```\n\n### `POST /scores`\n\nRequest:\n\n```js\n{\n  \"participants\": [\"address\" /* ... */],\n  \"scores\": [\"score\" /* ... */],\n  \"signature\": {\n    \"r\": \"...\",\n    \"s\": \"...\",\n    \"v\": \"...\"\n  }\n}\n```\n\nSign over a packed keccak256 with this schema:\n\n```js\n['address[]', 'uint256[]']\n```\n\nThe response includes the resulting scheduled rewards of all affected\nparticipants (excluding the burner address):\n\n```js\n{\n  \"address\": \"scheduledRewardsInAttoFIL\",\n  // ...\n}\n```\n\n### `POST /paid`\n\nRequest:\n\n```js\n{\n  \"participants\": [\"address\" /* ... */],\n  \"rewards\": [\"amountInAttoFIL\", /* ... */],\n  \"signature\": {\n    \"r\": \"...\",\n    \"s\": \"...\",\n    \"v\": \"...\"\n  }\n}\n```\n\nSign over a packed keccak256 with this schema:\n\n```js\n['address[]', 'uint256[]']\n```\n\nThe response includes the resulting scheduled rewards of all affected\nparticipants:\n\n```js\n{\n  \"adddress\": \"scheduledRewardsInAttoFIL\",\n  // ...\n}\n```\n\n### `GET /log`\n\nThe log endpoint returns an audit trail of all scheduled rewards changes over\ntime:\n\n```js\n[\n  {\n    timestamp: \"2024-08-28T14:15:08.113Z\",\n    address: \"address\",\n    scheduledRewardsDelta: \"amountInAttoFIL\",\n    score: \"score\"\n  }, {\n    timestamp: \"2024-08-28T14:15:25.441Z\",\n    address: \"address\",\n    scheduledRewardsDelta: \"negativeAmountInAttoFIL\"\n    // In case of a payout, no `score` is logged\n  }\n  // ...\n]\n```\n\n## Development\n\n```bash\nredis-server \u0026\nnpm start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckernetwork%2Fspark-rewards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckernetwork%2Fspark-rewards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckernetwork%2Fspark-rewards/lists"}