This project is a Bet Hi Lo game with the addition of a custom token (BHL - BetHiLo) and also a smart contract that's responsible for Minting BHL Tokens. That allows the players to claim BHL tokens if they are eligible.
Node.js v18.17.0 or greater
Make sure to create the following files in the root folder:
- .secret (this contains your seed phrase)
- .infura (this container your Infura API Key)
- .etherscan (optional, in case you want to verify the contract, add your etherscan API Key)
npm install
./node_modules/.bin/truffle compile && npm run copy-contracts
./node_modules/.bin/truffle test
- ./node_modules/.bin/truffle migrate --network ganache (if you want to deploy to ganache)
- ./node_modules/.bin/truffle migrate --network sepolia (if you want to deploy to sepolia)
- ./node_modules/.bin/truffle migrate --network networkName (if you want to deploy to another network, replace networkName by your desired network and make sure the truffle-config.js is updated with the network settings)
npm start