StarkLotto is a decentralized lottery game built on Starknet, designed to offer secure and efficient transactions on the blockchain. It leverages Cairo technology and a modular architecture in TypeScript for a fluid and innovative experience.
🌐 Testnet Version:
👉 https://starklotto-eta.vercel.app/
- Decentralized lottery with smart contracts on Cairo.
- User interface developed with TypeScript and modern web technologies.
- Integration with Starknet wallets.
- Transparency and verifiability in the generation of winning numbers.
Before you begin, make sure you have the following requirements installed:
- Starknet-devnet - v0.4.0
- Scarb - v2.11.4
- Snforge - v0.41.0
- Cairo - v2.11.4
- Rpc - v0.8.0
Follow these steps to set up and run the project:
git clone https://github.com/FutureMindsTeam/starklotto.git
cd starklotto📌 Note: If you wish to contribute, please create a branch off of Dev before committing changes.
git checkout -b feature/your-branch DevInstall the project dependencies with:
yarn installyarn chainyarn deployyarn startNext, open your browser and visit: http://localhost:3000
Compile the contracts written in Cairo:
cd contracts
scarb buildIf you want to contribute, follow these steps:
- Fork the repository.
- Create a branch off of
Dev:
git checkout -b feature/new-feature Dev- Make your changes and commit:
git commit -m "Description of change"- Push your changes to your fork:
git push origin feature/new-feature- Open a Pull Request to the
Devbranch.
If you have questions or want to contribute, you can contact us at:
- Discord: FutureMinds Community
- X: @futureminds_7
- Telegram Group: Starklotto Contributors This repo prefer yarn as package manager.
Commands:
| Command | Description |
|---|---|
| format:check | (Read only) Batch checks for format inconsistencies for the nextjs and snfoundry codebase |
| next:check-types | Compile typscript project |
| next:lint | Runs next lint |
| prepare | Install husky's git hooks |
| usage | Show this text |
| Command | Description |
|---|---|
| compile | Compiles contracts. |
| test | Runs snfoundry tests |
| chain | Starts the local blockchain network. |
| deploy | Deploys contract to the configured network discarding previous deployments. |
| deploy:no-reset | Deploys contract to the configured network without discarding previous deployments. |
| verify | Verify Smart Contracts with Walnut |
| Command | Description |
|---|---|
| start | Starts the frontend server |
| test:nextjs | Runs the nextjs tests |
| vercel | Deploys app to vercel |
| vercel:yolo | Force deploy app to vercel (ignoring errors) |