{"id":19498078,"url":"https://github.com/patrickalphac/puppy-raffle-smartcon","last_synced_at":"2025-04-25T22:33:02.422Z","repository":{"id":197504702,"uuid":"697578055","full_name":"PatrickAlphaC/puppy-raffle-smartcon","owner":"PatrickAlphaC","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-01T00:21:12.000Z","size":1892,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-02T00:47:36.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/PatrickAlphaC.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}},"created_at":"2023-09-28T03:08:29.000Z","updated_at":"2023-10-01T01:12:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba4df51c-84de-46f5-b0de-4030f2bd1d9f","html_url":"https://github.com/PatrickAlphaC/puppy-raffle-smartcon","commit_stats":null,"previous_names":["patrickalphac/puppy-raffle-smartcon"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fpuppy-raffle-smartcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fpuppy-raffle-smartcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fpuppy-raffle-smartcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fpuppy-raffle-smartcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickAlphaC","download_url":"https://codeload.github.com/PatrickAlphaC/puppy-raffle-smartcon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224019638,"owners_count":17242176,"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-11-10T21:49:08.159Z","updated_at":"2024-11-10T21:49:09.723Z","avatar_url":"https://github.com/PatrickAlphaC.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./images/puppy-raffle.png\" width=\"500\" alt=\"puppy-raffle\"\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n# Puppy Raffle\n\nThis project is to enter a raffle to win a cute dog NFT. The protocol should do the following:\n\n1. Call the `enterRaffle` function with the following parameters:\n   1. `address[] participants`: A list of addresses that enter. You can use this to enter yourself multiple times, or yourself and a group of your friends. \n2. Duplicate addresses are not allowed\n3. Users are allowed to get a refund of their ticket \u0026 `value` if they call the `refund` function\n4. Every X seconds, the raffle will be able to draw a winner and be minted a random puppy\n5. The owner of the protocol will set a feeAddress to take a cut of the `value`, and the rest of the funds will be sent to the winner of the puppy. \n\n\n- [Puppy Raffle](#puppy-raffle)\n- [Getting Started](#getting-started)\n  - [Requirements](#requirements)\n  - [Quickstart](#quickstart)\n    - [Optional Gitpod](#optional-gitpod)\n- [Usage](#usage)\n  - [Testing](#testing)\n    - [Test Coverage](#test-coverage)\n- [Audit Scope Details](#audit-scope-details)\n\n# Getting Started\n\n## Requirements\n\n- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n  - You'll know you did it right if you can run `git --version` and you see a response like `git version x.x.x`\n- [foundry](https://getfoundry.sh/)\n  - You'll know you did it right if you can run `forge --version` and you see a response like `forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)`\n\n## Quickstart\n\n```\ngit clone https://github.com/Cyfrin/4-puppy-raffle-audit\ncd 4-puppy-raffle-audit\nmake \n```\n\n### Optional Gitpod\n\nIf you can't or don't want to run and install locally, you can work with this repo in Gitpod. If you do this, you can skip the `clone this repo` part.\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#github.com/Cyfrin/3-passwordstore-audit)\n\n# Usage\n\n## Testing\n\n```\nforge test\n```\n\n### Test Coverage\n\n```\nforge coverage\n```\n\nand for coverage based testing: \n\n```\nforge coverage --report debug\n```\n\n# Audit Scope Details\n\n- Commit Hash: 22bbbb2c47f3f2b78c1b134590baf41383fd354f\n- In Scope:\n```\n./src/\n└── PuppyRaffle.sol\n```\n- Solc Version: 0.7.6\n- Chain(s) to deploy contract to: Ethereum","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Fpuppy-raffle-smartcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickalphac%2Fpuppy-raffle-smartcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Fpuppy-raffle-smartcon/lists"}