This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "./TokenERC20.sol"; | |
import "./SafeMath.sol"; | |
contract Booking { | |
uint bookingId; | |
address propertyOwner; | |
address user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Problem Statement #1 | |
Write a Roulette Contract, which will implement following features: | |
• At max, 5 players can involve in one game. | |
• Each player will choose a number in range of 0-4 | |
• One number can be selected by only one player and one player can select only one number. | |
• While choosing a number, player will put some ETH in it. (MIN: 0.5 ETH, MAX: 5ETH) | |
• As soon fifth player provides the choice of numbe, roulette will spin to find a random number. | |
(To find random number, use : previous_block_number % 5 ) | |
• Winner (as per random number calculation) will get all ETH inserted by players | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
contract MyToken { | |
/* Public variables of the token */ | |
//string public standard = 'Token 0.1'; | |
//string public name="Rose"; | |
//string public symbol="ROS"; | |
//uint8 public decimals=18; | |
uint256 public totalSupply; | |
/* This creates an array with all balances */ |