Skip to content

This project includes the famous Bet Hi Lo game in addition to a token and a separeted smart contract for minting tokens

Notifications You must be signed in to change notification settings

rafafortes/bethilo-token-ethereum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bet Hi Lo + Token + Minter

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.

Screenshots

Screenshot from 2023-10-30 08-37-27

Screenshot from 2023-10-30 08-38-06

Screenshot from 2023-10-30 08-38-17

Prerequisites

Node.js v18.17.0 or greater

API Key and Passphrase

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)

Installation

npm install

Compilation

./node_modules/.bin/truffle compile && npm run copy-contracts

Tests

./node_modules/.bin/truffle test

Deploy

  • ./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)

Server start up

npm start

About

This project includes the famous Bet Hi Lo game in addition to a token and a separeted smart contract for minting tokens

Resources

Stars

Watchers

Forks

Packages

No packages published