{"id":45397526,"url":"https://github.com/notrustverify/chainreaction","last_synced_at":"2026-02-21T19:37:29.004Z","repository":{"id":336855283,"uuid":"1151240917","full_name":"notrustverify/chainreaction","owner":"notrustverify","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-14T08:35:44.000Z","size":1447,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T16:55:31.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://game.notrustverify.ch/","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/notrustverify.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-06T08:13:41.000Z","updated_at":"2026-02-14T08:35:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/notrustverify/chainreaction","commit_stats":null,"previous_names":["notrustverify/chainreaction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notrustverify/chainreaction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notrustverify%2Fchainreaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notrustverify%2Fchainreaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notrustverify%2Fchainreaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notrustverify%2Fchainreaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notrustverify","download_url":"https://codeload.github.com/notrustverify/chainreaction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notrustverify%2Fchainreaction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29691045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-21T19:37:28.465Z","updated_at":"2026-02-21T19:37:28.987Z","avatar_url":"https://github.com/notrustverify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chain Reaction\n\nA last-player-wins game on the [Alephium](https://alephium.org) blockchain.\n\n## How it works\n\n1. **Someone starts a chain** by choosing a token (ALPH or any supported token), setting an entry price, a countdown duration, and a price increase percentage.\n2. **Players join** by paying the current entry price, which increases with each new player (e.g. +10% per join). Every join resets the countdown timer.\n3. **The timer shrinks** — each new player slightly reduces the remaining duration, ratcheting up the pressure.\n4. **When the countdown expires**, the last player to have joined wins the entire pot. Anyone can trigger the payout.\n\nAnyone can also **boost the pot** by adding extra tokens at any time, making the prize more attractive without resetting the timer.\n\n## Smart contract\n\nThe game runs entirely on-chain via a single Ralph contract (`ChainReaction`). Key mechanics:\n\n- **Entry price escalation**: each join costs `currentEntry + (currentEntry * multiplierBps / 10000)`, where `multiplierBps` is set by the chain starter (e.g. 1000 = 10%)\n- **Duration decrease**: the countdown shrinks by a fixed amount per player, down to a configurable minimum — the more players, the faster the clock runs out\n- **Multi-token support**: chains can use ALPH or any Alephium token\n- **No admin keys**: the contract has no owner and no special privileges — anyone can start a chain, join, boost the pot, or trigger the payout\n\n## Project structure\n\n- `app/` — Next.js frontend (React, Tailwind CSS, `@alephium/web3-react`)\n- `contracts/` — Ralph smart contract and deployment scripts\n\n## Local development\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) and [Yarn](https://yarnpkg.com/)\n- A running Alephium devnet — see the [Getting Started docs](https://docs.alephium.org/full-node/getting-started#devnet)\n\n### Setup\n\n```bash\nyarn install\nyarn compile\nyarn deploy\nyarn dev\n```\n\n### Wallet\n\nDownload an [Alephium wallet](https://alephium.org/#wallets) and connect it to your devnet.\n\n## Deployment\n\nThe app is configured for static export and can be deployed to GitHub Pages. Environment variables:\n\n- `NEXT_PUBLIC_NETWORK` — `devnet`, `testnet`, or `mainnet`\n- `NEXT_PUBLIC_NODE_URL` — Alephium full node URL\n\n\n## Url parameters \n\ntheme  : forces the use of a custom theme  \ntokens : comma-separated list of token IDs that are allowed when creating a game\n\nexemple : \nhttps://game.notrustverify.ch/game?address=23hX2w3VFzwzNs1TTCbJiYHuhqKjRpyp5dWe5PJ64MNBR\u0026theme=elexium\u0026tokens=cad22f7c98f13fe249c25199c61190a9fb4341f8af9b1c17fcff4cd4b2c3d200\n\n\n## Built by\n\n[No Trust Verify](https://notrustverify.ch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotrustverify%2Fchainreaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotrustverify%2Fchainreaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotrustverify%2Fchainreaction/lists"}