Skip to content

catherinee24/Lottery-Dapp

Repository files navigation

Lottery Dapp ⛓

Badge showing project license type Badge showing the react version Badge showing the solidity version Badge showing the hardhat version Badge showing the prettier plugin solidity version Author

hello, for this lottery project I wanted to work with ERC20 and ERC721 tokens, first of all we will have a main smart contract that will allow people to buy our own token (ERC20) to buy the lottery tickets (ERC721). We have a factory that will allow each user to manage their own lottery tickets as they wish.

It is a complex but very complete project if you want to increase your skills in the design of smart contracts.

To test the project you only need to have your Metamask wallet with fake BNB that you can find here.

Installing / Getting started

# Clone this project
$ git clone https://https://github.com/catherinee24/Lottery-Dapp

# Access
$ cd Lottery-Dapp

# Install dependencies
$ npm install

Commands

  • $ truffle compile : Upon first run, all contracts will be compiled. Upon subsequent runs, Truffle will compile only the contracts that have been changed since the last compile.
  • $ truffle migrate : This will run all migrations located within our project's migrations directory.
  • $ truffle test : Run all tests located within our project's test directory.

Technologies / Built With

Prettier definition

Prettier offers support for multiple languages and frameworks. What offers is to take your code and "re-format" it based on the defined settings thus maintaining a consistent style. Making it much more readable and without worrying about how you write it initially.

Link to install prettier: Prettier

Link to install a prettier plugin for automatically formatting your Solidity code: Prettier Plugin

License

This project is under license from MIT. For more details, see the LICENSE file.

Contributing

Contributions are always welcome! Open a PR or an issue!




Made with ❤️ by catellaTech.