Casino Game Smart Contract: A decentralized casino(Jackpot) smart contract built on the Solana blockchain using the Anchor framework. This project implements a jackpot system with secure random number generation using ORAO Network's VRF (Verifiable Random Function).
If some have any question, contact here: Telegram | Twitter
- Decentralized jackpot system
- Secure random number generation using ORAO Network VRF
- Built with Anchor Framework
- TypeScript client integration
- Automated testing suite
- Rust (latest stable version)
- Node.js (v16 or later)
- Yarn package manager
- Solana CLI tools
- Anchor Framework v0.30.1
- Clone the repository:
git clone https://github.com/L9T-Development/gamefi-jackpot-smart-contract
cd gamefi-jackpot-smart-contract- Install dependencies:
yarn install- Build the program:
anchor buildThe project is configured to use Solana's devnet by default. The configuration can be found in Anchor.toml. Make sure to:
- Update the program ID in
Anchor.tomlif you're deploying to a new instance - Configure your wallet path in
Anchor.toml - Set up your Helius RPC endpoint (currently configured for devnet)
Casino_Smart_Contract/
├── programs/ # Solana program directory
│ └── jackpot_smart_contract/ # Main program code
├── cli/ # Command-line interface
├── idl/ # Interface Definition Language files
├── lib/ # Library code
├── tests/ # Test files
└── Anchor.toml # Anchor configuration
Run the test suite using:
yarn script config
yarn script create -t 60 -d 100000000 -j 100
yarn script join -a 100000000 -g 2
yarn script winner -g 2
yarn script claim -g 2- @coral-xyz/anchor: ^0.30.1
- @orao-network/solana-vrf: ^0.4.0
- @solana/web3.js: ^1.68.0
- commander: ^13.0.0
- TypeScript
- Mocha
- Chai
- Prettier
This project uses ORAO Network's VRF for secure random number generation, ensuring fair and verifiable randomness in the jackpot system.
ISC License
Contributions are welcome! Please feel free to submit a Pull Request.