{"id":21471436,"url":"https://github.com/FroganBee/raffle_site","last_synced_at":"2025-12-31T00:18:41.783Z","repository":{"id":250944809,"uuid":"806990082","full_name":"max-tonny8/raffle_site","owner":"max-tonny8","description":"This project is raffle site.","archived":false,"fork":false,"pushed_at":"2024-05-28T09:28:55.000Z","size":1330,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T16:16:32.284Z","etag":null,"topics":["blockchain","dapp","hardhat","metamask-wallet","nextjs","react","solidity","typescript","vercel","wagmi"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-tonny8.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T09:27:45.000Z","updated_at":"2024-08-09T15:10:39.000Z","dependencies_parsed_at":"2024-07-31T01:05:55.828Z","dependency_job_id":null,"html_url":"https://github.com/max-tonny8/raffle_site","commit_stats":null,"previous_names":["tonny0831/raffle_site","max-tonny8/raffle_site"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-tonny8%2Fraffle_site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-tonny8%2Fraffle_site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-tonny8%2Fraffle_site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-tonny8%2Fraffle_site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-tonny8","download_url":"https://codeload.github.com/max-tonny8/raffle_site/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988961,"owners_count":20379649,"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":["blockchain","dapp","hardhat","metamask-wallet","nextjs","react","solidity","typescript","vercel","wagmi"],"created_at":"2024-11-23T09:34:38.995Z","updated_at":"2025-12-31T00:18:41.746Z","avatar_url":"https://github.com/max-tonny8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rafflebot.xyz\nThis repo contains the source code for [rafflebot.xyz](https://rafflebot.xyz), a smart contract based daily raffle platform.  Rafflebot is secured by [WorldID](https://id.worldcoin.org), which ensures that participants can only enter each raffle once.  Deployed to the [Goerli testnet](https://goerli.etherscan.io/address/0x411A84893aEd4fD5495e210A9f11FA009757fb98).\n\n[![A screenshot of rafflebot.xyz](./site.png)](https://rafflebot.xyz)\n\n## Tech Stack\nBuilt with the following technologies:\n\n* [WorldID](https://id.worldcoin.org): Privacy preserving, proof-of-personhood protocol\n* [Hardhat](https://hardhat.org/): Smart contract development and testing\n* [wagmi.sh](https://wagmi.sh/): React hooks for Ethereum\n* [ConnectKit](https://docs.family.co/connectkit): React components for connecting wallets\n* [Next.js](https://nextjs.org/): Static site builds and routing\n* [Tailwind](https://tailwindcss.com/): Adaptive CSS page styling\n* [Vercel](https://vercel.com/): Web hosting and automatic deployments\n\n### TODOs\nRafflebot is currently in MVP stage.  There are a number of features to be added before the app could be considered complete:\n1. Fully integrate with WorldID at the smart contract level.  The current implementation could be gamed by a malicious user, which would violate the one-person, one-entry rule\n2. Morph the smart contract into a NFT dispenser, giving the raffle winner a token for their prize\n    - It might also be worth considering an integration with [POAP](https://poap.xyz/), in lieu of custom NFTs\n3. Notify winners using [Push Protocol](https://push.org/), in case they are not chain-savvy\n4. Make the raffle reusable and user-contributable, allowing users to add their own tokens/NFTs/etc. to a shared pot\n5. Add a full suite of tests covering all smart contract functions\n\n## Installation\n\n### Prereqs\nTo build your own copy of rafflebot, you will first need:\n* [Infura API key(s)](https://infura.io/) for your chosen networks\n* [Etherscan API key](https://etherscan.io/apis) for contract verification\n* Deployer wallet private key with some [(test) ETH](https://faucet.paradigm.xyz/)\n\nClone the repo locally with the following commands:\n```\ngit clone https://github.com/maxpetretta/rafflebot.xyz\ncd rafflebot.xyz/hardhat\nnpm install\n```\n\nPlace all of the above secrets in the [.env file](./hardhat/.env.example)\n\n### Smart Contract\nYou can deploy the contract with the included script file, use these commands:\n```\nnpx hardhat run scripts/deploy.js --network \u003cNETWORK_NAME\u003e\nnpx hardhat verify --network \u003cNETWORK_NAME\u003e \u003cCONTRACT_ADDRESS\u003e\n```\n\nIf running locally, you may skip the `verify` step.  A local testnet can be started with `npx hardhat node`.\n\n### Frontend\nThe website UI needs the contract to exist before it will function correctly.  After you've completed the above, you should update the contract details in [contract.ts](./react/lib/contract.ts).  Make sure the address and [ABI](./react/lib/abi/Rafflebot.json) are in-sync with the live deployment.  To start the frontend, run:\n```\ncd ../react\nnpm install\nnpm run dev\nopen http://localhost:3000\n```\n\n## Tests\nAs mentioned above, Rafflebot is currently a MVP.  Basic scaffolding for contract tests can be found in [tests.ts](./hardhat/test/tests.ts).  Before a mainnet deployment, a comprehensive suite of tests should be written.\n\nRunning tests is done by:\n```\ncd ./hardhat\nnpx hardhat test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFroganBee%2Fraffle_site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFroganBee%2Fraffle_site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFroganBee%2Fraffle_site/lists"}