/Lottery

This is the Lottery app that implements the concept of the smart contracts. The player deposit ether in the smart contract and then manager tells the smart contract to randomly choose the winner. When the winner is chosen the summation of ether is sent to his/her wallet.

Primary LanguageSolidityMIT LicenseMIT

Lottery

This is the Lottery app that implements the concept of the smart contracts. The player deposit ether in the smart contract and then manager tells the smart contract to randomly choose the winner. When the winner is chosen the summation of ether is sent to his/her wallet.

Additional description about the project and its features.

Built With

  • Major languages (Solidity, JavaScript)

  • Frameworks / Libraries

    - Mocha
    - Ganache-cli
    - solc
    - Truffle hdwallet provider
    - web3
    - remixd
  • Technologies used

    - Blockchain
    - Remix
    - Git(version control)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • A text editor(preferably Visual Studio Code and remix)

Install

  • Git
  • Node
  • Ganache
  • Solc (Solidity compiler)
  • web3

Usage

Clone this repository

$ git@github.com:BertrandConxy.Lottery.git
$ cd Lottery

Install a libraries

$ npm install

Compile Solidity codes

$ solcjs --bin Lottery.sol

Deploy to local test network or public test network

  • Set up Web3
  • Set up Ganache (For local test network) or Goerli (For public test network)
  • Set up the Provider
  • Deploy the contract to start interacting with it

Exposed or public methods

  • Enter(payable)
  • PickWinner(for manager only)
  • getPlayers

Author

👤 Bertrand Mutangana Ishimwe

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Acknowledgement

  • Thanks to Udemy
  • Thanks to my mentors

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.