Skip to content

papyrusglobal/roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casino roulette game on smart contract and ERC20 token

Provably fair roulette game implemented as an Papyrus smart contract.

Random value is taken from 3 hashes of blocks following the the block where the bet was made. Such a value is uniformly distributed, that was tested with eth-collect-data code.

Frontend is minimal here (I am not a frontend developer, thus not included here) and works with the Ethereum blockchain using Metamask browser extension.

The roulette contract is ERC20 token. Tokens are mined when the contract cannot return win to the player, so she can cash them later, when the contract earns enough ether for the payment.

To deploy, flatten the contract (if you want to use remix):

    npm run -s flatten contracts/Roulette.sol >Roulette.flattened.sol

About

Casino roulette smart contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published