blob: dbbccc4c597f74124f271253c0b75877dbcad85e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
pragma solidity ^0.4.11;
import "../Oracles/MajorityOracle.sol";
/// @title Majority oracle factory contract - Allows to create majority oracle contracts
/// @author Stefan George - <stefan@gnosis.pm>
contract MajorityOracleFactory {
/*
* Events
*/
event MajorityOracleCreation(address indexed creator, MajorityOracle majorityOracle, Oracle[] oracles);
/*
* Public functions
*/
/// @dev Creates a new majority oracle contract
/// @param oracles List of oracles taking part in the majority vote
/// @return Oracle contract
function createMajorityOracle(Oracle[] memory oracles)
public
returns (MajorityOracle majorityOracle)
{
majorityOracle = new MajorityOracle(oracles);
emit MajorityOracleCreation(msg.sender, majorityOracle, oracles);
}
}
|