{"id":13338163,"url":"https://github.com/VopxTech/ton-coinflip","last_synced_at":"2025-03-11T08:32:33.299Z","repository":{"id":232450003,"uuid":"784382487","full_name":"VopxTech/ton-coinflip","owner":"VopxTech","description":"Smart contract -based coinflip game for TON, written in Func and React Vite.","archived":false,"fork":false,"pushed_at":"2024-07-15T18:50:45.000Z","size":1087,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-23T20:13:13.603Z","etag":null,"topics":["blueprint","func","theopennetwork","ton","web3"],"latest_commit_sha":null,"homepage":"https://coinflip.vopx.fi/","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/VopxTech.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}},"created_at":"2024-04-09T18:31:12.000Z","updated_at":"2024-07-17T02:34:37.000Z","dependencies_parsed_at":"2024-04-14T14:29:08.599Z","dependency_job_id":"28000f54-7559-4667-90b8-386c6fec511c","html_url":"https://github.com/VopxTech/ton-coinflip","commit_stats":null,"previous_names":["vopxtech/ton-coinflip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VopxTech%2Fton-coinflip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VopxTech%2Fton-coinflip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VopxTech%2Fton-coinflip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VopxTech%2Fton-coinflip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VopxTech","download_url":"https://codeload.github.com/VopxTech/ton-coinflip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243000972,"owners_count":20219780,"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":["blueprint","func","theopennetwork","ton","web3"],"created_at":"2024-07-29T19:15:36.952Z","updated_at":"2025-03-11T08:32:32.796Z","avatar_url":"https://github.com/VopxTech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TON Coinflip\n\nSmart contract -based coinflip game on TON blockchain. Written in Func and React Vite. Currently deployed on the testnet:\n\n[Play on Web](https://coinflip.vopx.fi/)\n\n[Play on Telegram](https://t.me/toncoinfliptnetbot/play)\n\n## Project structure\n\n### Frontend-UI\n\nFrontend of the project, written in React. Frontend re-uses the smart contract from the blueprint. By default, `App.tsx` has a hardcoded address of the contract, but it can be changed to any other address:\n\n```ts\nconst { balance, sendPlay } = useCoinFlipContract(\n  \"EQCuWDIPWO6fGDN7w4ZpwNtBTEjl6_shllCJnfZptcoWgV-l\" // Change this\n);\n```\n\n### Usage\n\n#### Development\n\n```bash\ncd frontend-ui\nnpm install\nnpm run dev\n```\n\n#### Build\n\n```bash\nnpm run build\n```\n\n### Blueprint\n\nRoot of the smart contract, written in Func. Subdirectories:\n\n- `contracts` - source code of all the smart contracts of the project and their dependencies.\n- `wrappers` - wrapper classes (implementing `Contract` from ton-core) for the contracts, including any [de]serialization primitives and compilation functions.\n- `tests` - tests for the contracts.\n- `scripts` - scripts used by the project, mainly the deployment scripts.\n\n#### Usage\n\n#### Build The Contract\n\n`npx blueprint build` or `yarn blueprint build`\n\n#### Test The Contract\n\n`npx blueprint test` or `yarn blueprint test`\n\n#### Deploy or run another script\n\n`npx blueprint run` or `yarn blueprint run`\n\n#### Add a new contract\n\n`npx blueprint create ContractName` or `yarn blueprint create ContractName`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVopxTech%2Fton-coinflip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVopxTech%2Fton-coinflip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVopxTech%2Fton-coinflip/lists"}