Submission for coinflip dyeus challenge using solidity and harmony vrf. Consider 1 and 0 as Heads or Tails while giving input.
Deployment address: 0xf19bbd288716e70B4774117448A0120d05947FcB
For transactions, refer to the images below.
After successful compilation of contract, go to deploy and run transaction => select environment as injected Web3, make sure to add Harmony Testnet in metamask and use it for deployment of contract.
Make sure to confirm the transaction popup on metamask.
After deployment go to deployed contracts, here we can function that are available to us for playing the game. Enter 1 for heads or 0 for tails in placeBet function along with bet amount, and confirm the transaction.
After placing the bet, call the function reward bet. It will show the result of the bet. In this case we case see the "event": "Win", which means that we won also we can verify this by checking the balancing of the wallet.
Wallet balance in this case should be 130, as default balance is 100 and we won the bet of amount 30.