Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sg-milad/lottery-contract-hardhat
simple lottery contract with solidity and hardhat
https://github.com/sg-milad/lottery-contract-hardhat
chai hardhat solidity typescrypt viem
Last synced: 3 months ago
JSON representation
simple lottery contract with solidity and hardhat
- Host: GitHub
- URL: https://github.com/sg-milad/lottery-contract-hardhat
- Owner: sg-milad
- Created: 2024-03-28T06:35:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-17T08:59:00.000Z (7 months ago)
- Last Synced: 2024-10-01T02:22:16.461Z (3 months ago)
- Topics: chai, hardhat, solidity, typescrypt, viem
- Language: TypeScript
- Homepage:
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This is a simple lottery contract with solidity. don't use this on production because it has a Vulnerability
## Sample Hardhat Project
Try running some of the following tasks:
```shell
npx hardhat compile
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts
```## to do
- get a random number from [chainlink](https://chain.link/)
- add more test### done
- refactor test ✔️
- add another contract to start and end the lottery ✔️