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.18; | |
contract TicketSales { | |
struct Ticket { | |
address ticketHolder; | |
bool used; | |
} | |
enum State { Open, Closed } |
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.18; | |
contract Endowment { | |
address public beneficiary; | |
address public owner; | |
uint public lastRedeem; | |
uint constant public period = 1 minutes; | |
uint public installmentAmount; | |
function Endowment(address _beneficiary, uint _installmentAmount) payable { |
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
0x9aaf197F25d207ecE17DfBeb20780095f7623A23 |
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
0xae653250B4220835050B75D3bC91433246903A95 |
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; | |
import "github.com/szerintedmi/solidity-itMapsLib/itMapsLib.sol"; | |
contract GasTest { | |
using itMaps for itMaps.itMapUintUint; | |
using itMaps for itMaps.itMapUintAddress; | |
using itMaps for itMaps.itMapAddressUint; | |
using itMaps for itMaps.itMapUintBool; | |
using GasTestLib for GasTestLib.Game; |
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; | |
library itMaps { | |
/*********************** | |
* Iterable maps: | |
* itmapUintUint for uint=>uint maps | |
* itmapAddressUint for address=>uint maps | |
* itmapUintAddress for uint=>address maps | |
* Use: | |
* import "./itmaps.sol" |
NewerOlder