Lotto Lunes is a decentralized lottery built on the Lunes blockchain using smart contracts and NFTs.
The goal of Lotto Lunes is to offer a transparent, reliable and immutable lottery taking advantage of blockchain technology benefits.
Participants can buy NFT tickets that give the right to compete in drawings held every 6 days. Tickets are non-fungible tokens (NFTs) programmatically generated with unique values and numbers.
The draw is performed by a smart contract that selects 6 random numbers and automatically identifies the winning tickets according to a prize category system. Prizes are distributed automatically to the winners' wallets by the smart contract.
The front-end was built in React and connects to the Lunes blockchain for ticket purchase and results lookup.
- Lunes Blockchain
- Smart Contracts in Ink!
- React for Front-end
- OpenBrush for NFTs
Instructions for project setup and execution:
- Clone this repository
- Install dependencies...
- Configure your Lunes wallet...
- Rust
- Cargo
- Lunes Node (ou um nó Substrate compatível)
Para compilar o contrato, execute o seguinte comando na raiz do projeto:
cargo install cargo-contract --locked --version ^4
cargo contract build --release
cargo test -- --nocapture --test-threads=1 --skip
This project is licensed under the MIT License.
This README covers the most important points about the project and serves as a quick reference for understanding and running the application.