mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f598b1515f
Fix whitespace
28 lines
849 B
Solidity
28 lines
849 B
Solidity
pragma solidity >=0.0;
|
|
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 majorityOracle Oracle contract
|
|
function createMajorityOracle(Oracle[] memory oracles)
|
|
public
|
|
returns (MajorityOracle majorityOracle)
|
|
{
|
|
majorityOracle = new MajorityOracle(oracles);
|
|
emit MajorityOracleCreation(msg.sender, majorityOracle, oracles);
|
|
}
|
|
}
|