This project aims to create a decentralized casino game on the blockchain. It leverages the power of smart contracts to ensure fair play, transparency, and security. The game features casino games, where players can bet on the outcome of a roll.
- Manages the creation, distribution, and transfer of in-game currency or betting tokens.
- Handles the core logic of the game, including random number generation, betting logic, and payout calculations.
- Manages user accounts, including registration, login, and account balances.
- Handles the secure deposit and withdrawal of cryptocurrency within the game, ensuring transactions are secure and transparent.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js and npm installed
- Truffle installed
- Ganache for local blockchain testing
- Clone the repository
- Install dependencies:
npm install
- Compile the contracts:
truffle compile
- Migrate the contracts to your local blockchain:
truffle migrate
To interact with the game, you can use the provided scripts or directly interact with the contracts using Truffle console or a web interface.
Contributions are welcome! Please read the contributing guidelines for details on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.
$ forge build
$ forge test
$ forge fmt
$ forge snapshot
$ anvil
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help