{"id":13525334,"url":"https://github.com/temokoki/IC_Wheel_of_Fortune","last_synced_at":"2025-04-01T04:31:50.277Z","repository":{"id":224819953,"uuid":"760954693","full_name":"temokoki/IC_Wheel_of_Fortune","owner":"temokoki","description":"Simple wheel of fortune game with Internet Identity authentication integration and ICP coin transferring functionality via Ledger canister","archived":false,"fork":false,"pushed_at":"2024-02-23T01:03:30.000Z","size":411,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T09:33:44.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/temokoki.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}},"created_at":"2024-02-21T00:54:42.000Z","updated_at":"2024-09-17T10:08:27.000Z","dependencies_parsed_at":"2024-02-27T22:49:06.379Z","dependency_job_id":null,"html_url":"https://github.com/temokoki/IC_Wheel_of_Fortune","commit_stats":null,"previous_names":["temokoki/ic_wheel_of_fortune"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temokoki%2FIC_Wheel_of_Fortune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temokoki%2FIC_Wheel_of_Fortune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temokoki%2FIC_Wheel_of_Fortune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temokoki%2FIC_Wheel_of_Fortune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temokoki","download_url":"https://codeload.github.com/temokoki/IC_Wheel_of_Fortune/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586087,"owners_count":20801025,"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-08-01T06:01:17.778Z","updated_at":"2025-04-01T04:31:49.953Z","avatar_url":"https://github.com/temokoki.png","language":"JavaScript","funding_links":[],"categories":["Game Development"],"sub_categories":["Protocols"],"readme":"# IC_Wheel_of_Fortune\n\nSimple wheel of fortune game with Internet Identity authentication integration and ICP coin transferring functionality via Ledger canister.\n\u003cbr\u003ePlayers are charged 0.1 ICP to participate in game. The  winner is chosen randomly and gets 100% of betted amount of ICP - 0.0001ICP (IC ledger's standard fee)\n\u003cbr\u003eBackend is written in Motoko, frontend is built using React/JSX.\n\u003cbr\u003eGame demo canister: [https://vu6th-iyaaa-aaaan-qlw2a-cai.icp0.io](https://vu6th-iyaaa-aaaan-qlw2a-cai.icp0.io)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"screenshot.png\" /\u003e\u003c/p\u003e\n\n## Prerequisites \n\nThis example requires an installation of [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/index.mdx) and [Node.js](https://nodejs.org/en/download/)\n\n## Running the project locally\n\n- To test project locally, open terminal window and navigate into the folder containing project's files\n- Use the following commands:\n\n```bash\n# Installs necessary node modules\nnpm install\n\n# Starts the local replica in background\ndfx start --background --clean\n\n# Creates new identity for minting account and exports its ID as \"MINTER_ACCOUNT_ID\" variable\ndfx identity new minter --storage-mode=plaintext\ndfx identity use minter\nexport MINTER_ACCOUNT_ID=$(dfx ledger account-id)\n\n# Exports default identity's account ID as \"DEFAULT_ACCOUNT_ID\" variable\ndfx identity use default\nexport DEFAULT_ACCOUNT_ID=$(dfx ledger account-id)\n\n# Deploys ledger canister with archiving options enabled\ndfx deploy --specified-id ryjl3-tyaaa-aaaaa-aaaba-cai icp_ledger --argument \"\n  (variant {\n    Init = record {\n      minting_account = \\\"$MINTER_ACCOUNT_ID\\\";\n      initial_values = vec {\n        record {\n          \\\"$DEFAULT_ACCOUNT_ID\\\";\n          record {\n            e8s = 100_000_000_000 : nat64;\n          };\n        };\n      };\n      send_whitelist = vec {};\n      transfer_fee = opt record {\n        e8s = 10_000 : nat64;\n      };\n      token_symbol = opt \\\"LICP\\\";\n      token_name = opt \\\"Local ICP\\\";\n    }\n  })\n\"\n\n# Deploys canisters to the replica and generates candid interface\ndfx deploy\n\n# Starts a development server at  http://localhost:8080 proxying API requests to the replica at port 4943\nnpm start\n\n# For local testing, you should login in game with multiple identity and transfer some LICP to their accounts to be able to participate in game)\n# Transfers 10 LICP to specified account address\ndfx canister call icp_ledger send_dfx '(record{to=\"paste_your_deposit_address_here\"; memo=0; fee=record{e8s=10_000}; amount=record{e8s=10_00_000_000};})'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemokoki%2FIC_Wheel_of_Fortune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemokoki%2FIC_Wheel_of_Fortune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemokoki%2FIC_Wheel_of_Fortune/lists"}