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.0; | |
contract EtherUnitConverter { | |
/* | |
* Ethereum Units Converter contract | |
* | |
* created by: D-Nice | |
* contract address: 0x52070b253406fc4F2bf71dBaF910F66c45828DBA | |
*/ |
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
// | |
// In Solidity, a mapping is like a hashmap and works with `string` like this: | |
// mapping (string => uint) a; | |
// | |
// However it doesn't support accessors where string is a key: | |
// mapping (string => uint) public a; | |
// | |
// "Internal compiler error: Accessors for mapping with dynamically-sized keys not yet implemented." | |
// | |
// An accessor returns uint when called as `a(string)`. |
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
contract DateTime { | |
/* | |
* Credit to pipermerriam for this utility contract | |
* | |
* Date and Time utilities for ethereum contracts | |
* | |
* address: 0x1a6184cd4c5bea62b0116de7962ee7315b7bcbce | |
*/ | |
function toTimestamp(uint16 year, uint8 month, uint8 day) constant returns (uint timestamp); |
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
contract ForkSplitterConduit { | |
//Tracks whether hard fork is effective on this chain. True means the fork is passed, false it hasn't. | |
bool forked = false; | |
//Identifies on which network fork this contract should do transfers. True transfers only on a hard-fork network, and false on the original network. | |
bool transferOnlyFork; | |
//Hard-fork DAO withdrawal contract | |
address constant C = 0xbf4ed7b27f1d666546e30d74d50d173d20bca754; | |
//In Constructor you set whether you want this contract to operate on hard fork or non-hard fork network | |
// Set to true for transfers to only complete on hard fork, and false for non-hard fork |
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
contract Creator { | |
function newContract(bytes data) public returns (address) { | |
address theNewContract; | |
uint s = data.length; | |
assembly { | |
calldatacopy(mload(0x40), 68, s) | |
theNewContract := create(callvalue, mload(0x40), s) | |
} |
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
/* | |
- Bytecode Verification performed was compared on second iteration - | |
This file is part of the DAO. | |
The DAO is free software: you can redistribute it and/or modify | |
it under the terms of the GNU lesser General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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
/** | |
* Base contract that all upgradeable contracts should use. | |
* | |
* Contracts implementing this interface are all called using delegatecall from | |
* a dispatcher. As a result, the _sizes and _dest variables are shared with the | |
* dispatcher contract, which allows the called contract to update these at will. | |
* | |
* _sizes is a map of function signatures to return value sizes. Due to EVM | |
* limitations, these need to be populated by the target contract, so the | |
* dispatcher knows how many bytes of data to return from called functions. |
NewerOlder