Skip to content

T3KRAJ/FlipCoin-on-Harmony-Testnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Project Overview:

“Coin Flip” is a betting game in the Solidity language using the Harmony testnet and Harmony VRF (Verifiable Random Function). A user can bet on the particular outcome (0 for heads and 1 for tails) of coin flip. The program accepts bet choice and bet amount from user. Winners will get double the price of bet amount. Until the current bet is concluded, bettor cannot place another bet. Initially users will get 100 points in their balance. On successful placement of bet, bet amount will be deducted from their balance.

Note: The project will run only if connected to harmony networks.

Steps to deploy the project:

  • Clone or download this project as zip.
  • Upload the file in https://remix.ethereum.org/
  • Save and then compile the file.
  • Select Injected Web3 environment from deploy tab. It will open metamask
  • Select an account with harmony test faucet (The network should be harmony testnet).
  • Deploy the contract.

Harmony Testnet explorer:

https://explorer.pops.one/

Contract Address:

0x452eC21A99933f1B763ad437E249747Eb3668De0 (ETH)
one1g5hvyx5ejvl3ka366sm7yjt506ekdr0qdauvd2 (ONE)

Deployer Address:

0x76d428D0Cdbeab50eCAAAC3683Ce346019012B29 (ETH)
one1wm2z35xdh644pm924smg8n35vqvsz2efjphlmq (ONE)

About

A betting game using harmony vrf.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published