I hereby claim:
- I am khofesh on github.
- I am fahmiahmad (https://keybase.io/fahmiahmad) on keybase.
- I have a public key ASDu7dItkCcQcu_Fz1Omwq52JhOXPjE1G9knaRUM42tNMQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.8.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
*/ | |
contract Storage { |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.8.0; | |
/** | |
* @title Owner | |
* @dev Set & change owner | |
*/ | |
contract Owner { |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.8.0; | |
/** | |
* @title Ballot | |
* @dev Implements voting process along with vote delegation | |
*/ | |
contract Ballot { | |
pragma solidity ^0.8.4; | |
contract MyContracts { | |
string public myString = "Hello World!"; | |
} |
pragma solidity ^0.8.4; | |
contract WorkingWithVariables { | |
uint256 public myUint; | |
bool public myBool; | |
uint8 public myUint8; | |
address public myAddress; | |
string public myString = "Ethereum is cool!"; | |
function setMyUint(uint256 _myUint) public { |
pragma solidity ^0.8.4; | |
contract SendMoney { | |
uint public balanceReceived; | |
uint public lockedUntil; | |
function receiveMoney() public payable { | |
balanceReceived += msg.value; | |
lockedUntil = block.timestamp + 1 minutes; | |
} |
pragma solidity ^0.8.4; | |
contract StartingStopping { | |
address public owner; | |
bool public paused; | |
constructor() { | |
owner = msg.sender; | |
} | |
pragma solidity ^0.8.4; | |
contract SimpleMappingExample { | |
mapping(uint => bool) public myMapping; | |
mapping(address => bool) public myAddressMapping; | |
mapping (uint => mapping(uint => bool)) uintUintBoolMapping; | |
function setValue(uint _index) public { | |
myMapping[_index] = true; | |
} |
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
contract MappingsStructExample { | |
struct Payment { | |
uint amount; | |
uint timestamp; | |
} | |