Gnosis compilation contracts.

This commit is contained in:
chriseth
2017-07-12 15:55:11 +02:00
parent 91f17a3662
commit b1c1fb6c83
33 changed files with 3303 additions and 0 deletions
@@ -0,0 +1,27 @@
pragma solidity ^0.4.11;
import "../Oracles/CentralizedOracle.sol";
/// @title Centralized oracle factory contract - Allows to create centralized oracle contracts
/// @author Stefan George - <stefan@gnosis.pm>
contract CentralizedOracleFactory {
/*
* Events
*/
event CentralizedOracleCreation(address indexed creator, CentralizedOracle centralizedOracle, bytes ipfsHash);
/*
* Public functions
*/
/// @dev Creates a new centralized oracle contract
/// @param ipfsHash Hash identifying off chain event description
/// @return Oracle contract
function createCentralizedOracle(bytes ipfsHash)
public
returns (CentralizedOracle centralizedOracle)
{
centralizedOracle = new CentralizedOracle(msg.sender, ipfsHash);
CentralizedOracleCreation(msg.sender, centralizedOracle, ipfsHash);
}
}