Skip to content

A dApp game based on JQuery, and Web3. The Solidity Contract that performs the actual function of the game access an Oracle and uses events to communicate with the UI.

Notifications You must be signed in to change notification settings

xactant/flipit2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlipIt II

Example Solidity Contract and Web3 based UI DAPP. FlipIt II is a update of my FlipIt (https://gihub.com/xactant/flipit) project and simulates a coin flip. The main update is that FlipIt II uses Provable API (https://github.com/provable-things/ethereum-api) to asynchronously request random values from an oracle.

Like the original FlipIt, a player can choose heads or tails and place a bet in eth. If the player wins the toss, the player is paid 2x te amount wagered.

FlipIt Image

Contract

The contract is written in Solidity descends from usingProvable and uses the provable_newRandomDSQuery function to integrate with the random number oracle.

UI

The UI is a pure JavaScript dApp which uses Bootstrap and JQuery. Integration with the FlipIt contract is accomplished using Web3.

About

A dApp game based on JQuery, and Web3. The Solidity Contract that performs the actual function of the game access an Oracle and uses events to communicate with the UI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published