{
  "contractName": "FutarchyOracleFactory",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "futarchyOracleMasterCopy",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_futarchyOracleMasterCopy",
          "type": "address"
        },
        {
          "name": "_eventFactory",
          "type": "address"
        },
        {
          "name": "_marketFactory",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "creator",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "futarchyOracle",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "collateralToken",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "oracle",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "outcomeCount",
          "type": "uint8"
        },
        {
          "indexed": false,
          "name": "lowerBound",
          "type": "int256"
        },
        {
          "indexed": false,
          "name": "upperBound",
          "type": "int256"
        },
        {
          "indexed": false,
          "name": "marketMaker",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "fee",
          "type": "uint24"
        },
        {
          "indexed": false,
          "name": "tradingPeriod",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "startDate",
          "type": "uint256"
        }
      ],
      "name": "FutarchyOracleCreation",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "collateralToken",
          "type": "address"
        },
        {
          "name": "oracle",
          "type": "address"
        },
        {
          "name": "outcomeCount",
          "type": "uint8"
        },
        {
          "name": "lowerBound",
          "type": "int256"
        },
        {
          "name": "upperBound",
          "type": "int256"
        },
        {
          "name": "marketMaker",
          "type": "address"
        },
        {
          "name": "fee",
          "type": "uint24"
        },
        {
          "name": "tradingPeriod",
          "type": "uint256"
        },
        {
          "name": "startDate",
          "type": "uint256"
        }
      ],
      "name": "createFutarchyOracle",
      "outputs": [
        {
          "name": "futarchyOracle",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.6+commit.b259423e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"futarchyOracleMasterCopy\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"oracle\",\"type\":\"address\"},{\"name\":\"outcomeCount\",\"type\":\"uint8\"},{\"name\":\"lowerBound\",\"type\":\"int256\"},{\"name\":\"upperBound\",\"type\":\"int256\"},{\"name\":\"marketMaker\",\"type\":\"address\"},{\"name\":\"fee\",\"type\":\"uint24\"},{\"name\":\"tradingPeriod\",\"type\":\"uint256\"},{\"name\":\"startDate\",\"type\":\"uint256\"}],\"name\":\"createFutarchyOracle\",\"outputs\":[{\"name\":\"futarchyOracle\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_futarchyOracleMasterCopy\",\"type\":\"address\"},{\"name\":\"_eventFactory\",\"type\":\"address\"},{\"name\":\"_marketFactory\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"futarchyOracle\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"collateralToken\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"oracle\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"outcomeCount\",\"type\":\"uint8\"},{\"indexed\":false,\"name\":\"lowerBound\",\"type\":\"int256\"},{\"indexed\":false,\"name\":\"upperBound\",\"type\":\"int256\"},{\"indexed\":false,\"name\":\"marketMaker\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":false,\"name\":\"tradingPeriod\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"startDate\",\"type\":\"uint256\"}],\"name\":\"FutarchyOracleCreation\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Stefan George - <stefan@gnosis.pm>\",\"methods\":{\"constructor\":{\"details\":\"Constructor sets event factory contract\",\"params\":{\"_eventFactory\":\"Event factory contract\",\"_marketFactory\":\"Market factory contract\"}},\"createFutarchyOracle(address,address,uint8,int256,int256,address,uint24,uint256,uint256)\":{\"details\":\"Creates a new Futarchy oracle contract\",\"params\":{\"collateralToken\":\"Tokens used as collateral in exchange for outcome tokens\",\"fee\":\"Market fee\",\"lowerBound\":\"Lower bound for event outcome\",\"marketMaker\":\"Market maker contract\",\"oracle\":\"Oracle contract used to resolve the event\",\"outcomeCount\":\"Number of event outcomes\",\"startDate\":\"Start date for price logging\",\"tradingPeriod\":\"Trading period before decision can be determined\",\"upperBound\":\"Lower bound for event outcome\"},\"return\":\"Oracle contract\"}},\"title\":\"Futarchy oracle factory contract - Allows to create Futarchy oracle contracts\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracleFactory.sol\":\"FutarchyOracleFactory\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Events/CategoricalEvent.sol\":{\"keccak256\":\"0x0d618ff0e76444e82eb38603d60798a2ca697ca0262ef541ed0987503ed493da\",\"urls\":[\"bzzr://a8677480e10d1c369ab348a093598f84d85a51f400d114ece3d1d5055a09267a\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Events/Event.sol\":{\"keccak256\":\"0xdcacfa25145426b5681ad7d8bafb3c117c92a37b7a0175d72a10b42f130fb8c1\",\"urls\":[\"bzzr://bd10fbdb82f0d50866442c9e95317b3176c8ee067def27d764529973fb36420a\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Events/EventFactory.sol\":{\"keccak256\":\"0xd9c190f46a1f260cb6ca7aa455444cb79f4d0e732bbaa4485e36e7b6c344739c\",\"urls\":[\"bzzr://f84bccd78e77be6288cf97d3fc0cb4808d161f75d291b89df3f2232d394082f0\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Events/ScalarEvent.sol\":{\"keccak256\":\"0xb8113f1a3f63ec0b6ae2d1a833fbffcf2b2af9470d4d7591d8e2c2784a163b32\",\"urls\":[\"bzzr://feb468d84fdda273585ba31abbbf8cceb906df5a9142695ec30c98f000a05bd4\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/MarketMakers/MarketMaker.sol\":{\"keccak256\":\"0xa71f8ce92412033d0900d44c01f0702aefced87d860cf116c6a4d3efe86913cf\",\"urls\":[\"bzzr://63c5bf60b931bb032fcab23514a3db171b680b11d8c6c05ac8caa88752e3be41\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/Market.sol\":{\"keccak256\":\"0x7bc1ebf0ea0f4cd9b6e9bfff6c6ac9088c253bcfca4e27f31e5845799f0278d8\",\"urls\":[\"bzzr://5e3f86d96ab269d284b34563501469d539cc436d62f070dd0abda2519d5e60c0\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarket.sol\":{\"keccak256\":\"0x527abf1b0997e2d38ce3c97f7ed647b9e913424828594287e2b068f2fb41ad4c\",\"urls\":[\"bzzr://16756e1b212fd40f21de50d99c8b7a5dde0acc2b0b047af8beead831a1274bd7\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketWithPriceLogger.sol\":{\"keccak256\":\"0xac611de823e324e444a9749619091be1f81edfd67af6109581c2f8655251fb8e\",\"urls\":[\"bzzr://feb7902d610a1e499e0330780e0e9638d4372ad941e5d5896cb1730df791405a\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketWithPriceLoggerFactory.sol\":{\"keccak256\":\"0x81f233b1b25619bf83726af248a65e713660eb817098af83874cd93fddc7a4c4\",\"urls\":[\"bzzr://c37407f5fdc24b6fdcc5b7fad83b99da925ee9dcf0c4da1c8f4c7a7a4afe69a2\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracle.sol\":{\"keccak256\":\"0x1873d44361476b4aec9203cf43db48690eebf9c1bb91ebc1730bed8b8d4ea072\",\"urls\":[\"bzzr://f5563fc2b82e53157b49f06d61333cf3cd9f4a9e7cf60237f53549241d3b4d3a\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracleFactory.sol\":{\"keccak256\":\"0xb647e93887290e922084752c0e5d863e883db1c1eecf62d34bec043194f4c078\",\"urls\":[\"bzzr://68976cc2220000882d0933eb9ea704fb73cc88a13c07ab45edd3b06fa1d4629c\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol\":{\"keccak256\":\"0xf4d12f4a59c17e66dfa6791188f621a8914e2038a4e3f72d6fc9fb903ca8e18e\",\"urls\":[\"bzzr://a477ccd203e677cc904b1a4f8fcc85251c5b5e09c5c10eed27e01318584b16d1\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Tokens/OutcomeToken.sol\":{\"keccak256\":\"0x3d4c9ec14a60cf7577d366da5116e919a4331da8d6d993174f7d599f84ae74e0\",\"urls\":[\"bzzr://20f87450259a3af24ff1769faa9ab3b714d01921e9d8fa4efa75a0c277837a8a\"]},\"@gnosis.pm/util-contracts/contracts/Proxy.sol\":{\"keccak256\":\"0xeab0e83a9ec9e7f052c0455a11577061ec6d1994db08dae429abd6faaabf6555\",\"urls\":[\"bzzr://b2c1273d4ec30e2f9e768eea8c510f8493a7359b03e01923d93eea86b57ec145\"]},\"openzeppelin-solidity/contracts/drafts/SignedSafeMath.sol\":{\"keccak256\":\"0xb4b45cd5475c318722ac0f8d7e2b9e77fee6f4f36374c1110fe615d50fbc0650\",\"urls\":[\"bzzr://a90fb457269c8a03ec5b811c71acef08a2751a4d2019b0661328610f9357dae7\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x4ccf2d7b51873db1ccfd54ca2adae5eac3b184f9699911ed4490438419f1c690\",\"urls\":[\"bzzr://1604f5b6d6e916c154efd8c6720cda069e5ba32dfa0a9dedf2b42e5b02d07f89\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0x852793a3c2f86d336a683b30d688ec3dcfc57451af5a2bf5975cda3b7191a901\",\"urls\":[\"bzzr://07fb42206812a17c1f71e548cfa5cec6f9aa1ae0ca5df870718ca4aa9759d1a5\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x90e8c2521653bbb1768b05889c5760031e688d9cd361f167489b89215e201b95\",\"urls\":[\"bzzr://aa8b45b57edafc3d67bc5d916327ea16807fae33f753ca163ae0c4061b789766\"]}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b506040516060806111698339810180604052606081101561003057600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156100bf5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b6100c857600080fd5b82600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050610fcd8061019c6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80631ad42df71461003b578063bb6de2bc14610085575b600080fd5b61004361018e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61014c600480360361012081101561009c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff16906020019092919080359060200190929190803590602001909291905050506101b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16336000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c8c8c8c8c600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168d8d8d8d60405161023490610558565b808e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018960ff1660ff1681526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff1681526020018381526020018281526020019d5050505050505050505050505050604051809103906000f0801580156103f2573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167f31b2f2efb8e38b0139781fb93941176394ceb31c7433234a12da403999ca8766828c8c8c8c8c8c8c8c8c604051808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018860ff1660ff1681526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff1681526020018381526020018281526020019a505050505050505050505060405180910390a29998505050505050505050565b610a3c806105668339019056fe608060405234801561001057600080fd5b506040516101a080610a3c83398101806040526101a081101561003257600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050508c600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f657600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000821161014457600080fd5b8a73ffffffffffffffffffffffffffffffffffffffff16639df0c1768b308b6040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018260ff1660ff1681526020019350505050602060405180830381600087803b15801561020557600080fd5b505af1158015610219573d6000803e3d6000fd5b505050506040513d602081101561022f57600080fd5b8101908080519060200190929190505050600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008090505b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc8f0866040518163ffffffff1660e01b815260040160206040518083038186803b1580156102ee57600080fd5b505afa158015610302573d6000803e3d6000fd5b505050506040513d602081101561031857600080fd5b810190808051906020019092919050505060ff168160ff1610156106635760008c73ffffffffffffffffffffffffffffffffffffffff16635ea194a3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abe59ea856040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156103ca57600080fd5b505afa1580156103de573d6000803e3d6000fd5b505050506040513d60208110156103f457600080fd5b81019080805190602001909291905050508d8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050602060405180830381600087803b1580156104ab57600080fd5b505af11580156104bf573d6000803e3d6000fd5b505050506040513d60208110156104d557600080fd5b8101908080519060200190929190505050905060028773ffffffffffffffffffffffffffffffffffffffff16638e44df53838989886040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018362ffffff1662ffffff168152602001828152602001945050505050602060405180830381600087803b1580156105b757600080fd5b505af11580156105cb573d6000803e3d6000fd5b505050506040513d60208110156105e157600080fd5b810190808051906020019092919050505090806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050508080600101915050610286565b508b600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160048190555050505050505050505050505050610374806106c86000396000f3fe6080604052600436106100705760003560e01c8063b1283e771161004e578063b1283e7714610171578063c3730d03146101ec578063c65fb38014610243578063f86e31531461027257610070565b8063561cce0a146100be57806356cfb75f146100ef578063a619486e1461011a575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100b9573d6000f35b3d6000fd5b3480156100ca57600080fd5b506100d361029d565b604051808260ff1660ff16815260200191505060405180910390f35b3480156100fb57600080fd5b506101046102a2565b6040518082815260200191505060405180910390f35b34801561012657600080fd5b5061012f6102a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017d57600080fd5b506101aa6004803603602081101561019457600080fd5b81019080803590602001909291905050506102cd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f857600080fd5b50610201610309565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024f57600080fd5b5061025861032f565b604051808215151515815260200191505060405180910390f35b34801561027e57600080fd5b50610287610342565b6040518082815260200191505060405180910390f35b600181565b60055481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600281815481106102da57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900460ff1681565b6004548156fea165627a7a72305820e72d49ac417234af3f2eb3049a61a1d340e545656857db604411626b9bf0643a0029a165627a7a72305820e12f2070f60fa3f029febe27ee3fd26ef7587735b670a5c37daca2bcba9f4a9d0029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80631ad42df71461003b578063bb6de2bc14610085575b600080fd5b61004361018e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61014c600480360361012081101561009c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff16906020019092919080359060200190929190803590602001909291905050506101b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16336000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c8c8c8c8c600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168d8d8d8d60405161023490610558565b808e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018960ff1660ff1681526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff1681526020018381526020018281526020019d5050505050505050505050505050604051809103906000f0801580156103f2573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167f31b2f2efb8e38b0139781fb93941176394ceb31c7433234a12da403999ca8766828c8c8c8c8c8c8c8c8c604051808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018860ff1660ff1681526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff1681526020018381526020018281526020019a505050505050505050505060405180910390a29998505050505050505050565b610a3c806105668339019056fe608060405234801561001057600080fd5b506040516101a080610a3c83398101806040526101a081101561003257600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050508c600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f657600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000821161014457600080fd5b8a73ffffffffffffffffffffffffffffffffffffffff16639df0c1768b308b6040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018260ff1660ff1681526020019350505050602060405180830381600087803b15801561020557600080fd5b505af1158015610219573d6000803e3d6000fd5b505050506040513d602081101561022f57600080fd5b8101908080519060200190929190505050600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008090505b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc8f0866040518163ffffffff1660e01b815260040160206040518083038186803b1580156102ee57600080fd5b505afa158015610302573d6000803e3d6000fd5b505050506040513d602081101561031857600080fd5b810190808051906020019092919050505060ff168160ff1610156106635760008c73ffffffffffffffffffffffffffffffffffffffff16635ea194a3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abe59ea856040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156103ca57600080fd5b505afa1580156103de573d6000803e3d6000fd5b505050506040513d60208110156103f457600080fd5b81019080805190602001909291905050508d8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050602060405180830381600087803b1580156104ab57600080fd5b505af11580156104bf573d6000803e3d6000fd5b505050506040513d60208110156104d557600080fd5b8101908080519060200190929190505050905060028773ffffffffffffffffffffffffffffffffffffffff16638e44df53838989886040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018362ffffff1662ffffff168152602001828152602001945050505050602060405180830381600087803b1580156105b757600080fd5b505af11580156105cb573d6000803e3d6000fd5b505050506040513d60208110156105e157600080fd5b810190808051906020019092919050505090806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050508080600101915050610286565b508b600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160048190555050505050505050505050505050610374806106c86000396000f3fe6080604052600436106100705760003560e01c8063b1283e771161004e578063b1283e7714610171578063c3730d03146101ec578063c65fb38014610243578063f86e31531461027257610070565b8063561cce0a146100be57806356cfb75f146100ef578063a619486e1461011a575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100b9573d6000f35b3d6000fd5b3480156100ca57600080fd5b506100d361029d565b604051808260ff1660ff16815260200191505060405180910390f35b3480156100fb57600080fd5b506101046102a2565b6040518082815260200191505060405180910390f35b34801561012657600080fd5b5061012f6102a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017d57600080fd5b506101aa6004803603602081101561019457600080fd5b81019080803590602001909291905050506102cd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f857600080fd5b50610201610309565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024f57600080fd5b5061025861032f565b604051808215151515815260200191505060405180910390f35b34801561027e57600080fd5b50610287610342565b6040518082815260200191505060405180910390f35b600181565b60055481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600281815481106102da57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900460ff1681565b6004548156fea165627a7a72305820e72d49ac417234af3f2eb3049a61a1d340e545656857db604411626b9bf0643a0029a165627a7a72305820e12f2070f60fa3f029febe27ee3fd26ef7587735b670a5c37daca2bcba9f4a9d0029",
  "sourceMap": "202:2886:19:-;;;988:397;8:9:-1;5:2;;;30:1;27;20:12;5:2;988:397:19;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;988:397:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1194:1;1160:36;;1168:13;1160:36;;;;:77;;;;;1235:1;1200:37;;1208:14;1200:37;;;;1160:77;1152:86;;;;;;1275:25;1248:24;;:52;;;;;;;;;;;;;;;;;;1325:13;1310:12;;:28;;;;;;;;;;;;;;;;;;1364:14;1348:13;;:30;;;;;;;;;;;;;;;;;;988:397;;;202:2886;;;;;;",
  "deployedSourceMap": "202:2886:19:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;202:2886:19;;;;;;;;;;;;;;;;;;;;;;;;736:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2003:1083;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;2003:1083:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;736:46;;;;;;;;;;;;;:::o;2003:1083::-;2306:29;2436:24;;;;;;;;;;;2475:10;2499:12;;;;;;;;;;;2525:15;2554:6;2574:12;2600:10;2624;2648:13;;;;;;;;;;;2675:11;2700:3;2717:13;2744:9;2391:372;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2391:372:19;2351:414;;2816:10;2780:299;;;2840:14;2868:15;2897:6;2917:12;2943:10;2967;2991:11;3016:3;3033:13;3060:9;2780:299;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2003:1083;;;;;;;;;;;:::o;202:2886::-;;;;;;;;:::o",
  "source": "pragma solidity ^0.5.0;\nimport \"../Oracles/FutarchyOracle.sol\";\n\n\n/// @title Futarchy oracle factory contract - Allows to create Futarchy oracle contracts\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract FutarchyOracleFactory {\n\n    /*\n     *  Events\n     */\n    event FutarchyOracleCreation(\n        address indexed creator,\n        FutarchyOracle futarchyOracle,\n        ERC20 collateralToken,\n        Oracle oracle,\n        uint8 outcomeCount,\n        int lowerBound,\n        int upperBound,\n        MarketMaker marketMaker,\n        uint24 fee,\n        uint tradingPeriod,\n        uint startDate\n    );\n\n    /*\n     *  Storage\n     */\n    EventFactory eventFactory;\n    StandardMarketWithPriceLoggerFactory marketFactory;\n    FutarchyOracle public futarchyOracleMasterCopy;\n\n    /*\n     *  Public functions\n     */\n    /// @dev Constructor sets event factory contract\n    /// @param _eventFactory Event factory contract\n    /// @param _marketFactory Market factory contract\n    constructor(FutarchyOracle _futarchyOracleMasterCopy, EventFactory _eventFactory, StandardMarketWithPriceLoggerFactory _marketFactory)\n        public\n    {\n        require(address(_eventFactory) != address(0) && address(_marketFactory) != address(0));\n        futarchyOracleMasterCopy = _futarchyOracleMasterCopy;\n        eventFactory = _eventFactory;\n        marketFactory = _marketFactory;\n    }\n\n    /// @dev Creates a new Futarchy oracle contract\n    /// @param collateralToken Tokens used as collateral in exchange for outcome tokens\n    /// @param oracle Oracle contract used to resolve the event\n    /// @param outcomeCount Number of event outcomes\n    /// @param lowerBound Lower bound for event outcome\n    /// @param upperBound Lower bound for event outcome\n    /// @param marketMaker Market maker contract\n    /// @param fee Market fee\n    /// @param tradingPeriod Trading period before decision can be determined\n    /// @param startDate Start date for price logging\n    /// @return Oracle contract\n    function createFutarchyOracle(\n        ERC20 collateralToken,\n        Oracle oracle,\n        uint8 outcomeCount,\n        int lowerBound,\n        int upperBound,\n        MarketMaker marketMaker,\n        uint24 fee,\n        uint tradingPeriod,\n        uint startDate\n    )\n        public\n        returns (FutarchyOracle futarchyOracle)\n    {\n        futarchyOracle = FutarchyOracle(address(new FutarchyOracleProxy(\n            address(futarchyOracleMasterCopy),\n            msg.sender,\n            eventFactory,\n            collateralToken,\n            oracle,\n            outcomeCount,\n            lowerBound,\n            upperBound,\n            marketFactory,\n            marketMaker,\n            fee,\n            tradingPeriod,\n            startDate\n        )));\n        emit FutarchyOracleCreation(\n            msg.sender,\n            futarchyOracle,\n            collateralToken,\n            oracle,\n            outcomeCount,\n            lowerBound,\n            upperBound,\n            marketMaker,\n            fee,\n            tradingPeriod,\n            startDate\n        );\n    }\n}\n",
  "sourcePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracleFactory.sol",
  "ast": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracleFactory.sol",
    "exportedSymbols": {
      "FutarchyOracleFactory": [
        4519
      ]
    },
    "id": 4520,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4382,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:19"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracle.sol",
        "file": "../Oracles/FutarchyOracle.sol",
        "id": 4383,
        "nodeType": "ImportDirective",
        "scope": 4520,
        "sourceUnit": 4381,
        "src": "24:39:19",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          4127
        ],
        "contractKind": "contract",
        "documentation": "@title Futarchy oracle factory contract - Allows to create Futarchy oracle contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 4519,
        "linearizedBaseContracts": [
          4519
        ],
        "name": "FutarchyOracleFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 4407,
            "name": "FutarchyOracleCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 4406,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4385,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "308:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4384,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "308:7:19",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4387,
                  "indexed": false,
                  "name": "futarchyOracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "341:29:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4386,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "341:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4389,
                  "indexed": false,
                  "name": "collateralToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "380:21:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_ERC20_$7778",
                    "typeString": "contract ERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4388,
                    "name": "ERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 7778,
                    "src": "380:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ERC20_$7778",
                      "typeString": "contract ERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4391,
                  "indexed": false,
                  "name": "oracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "411:13:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Oracle_$4841",
                    "typeString": "contract Oracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4390,
                    "name": "Oracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4841,
                    "src": "411:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Oracle_$4841",
                      "typeString": "contract Oracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4393,
                  "indexed": false,
                  "name": "outcomeCount",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "434:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4392,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "434:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4395,
                  "indexed": false,
                  "name": "lowerBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "462:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4394,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "462:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4397,
                  "indexed": false,
                  "name": "upperBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "486:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4396,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "486:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4399,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "510:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4398,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "510:11:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4401,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "543:10:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 4400,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "543:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4403,
                  "indexed": false,
                  "name": "tradingPeriod",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "563:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4402,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "563:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4405,
                  "indexed": false,
                  "name": "startDate",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "591:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4404,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "591:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "298:313:19"
            },
            "src": "270:342:19"
          },
          {
            "constant": false,
            "id": 4409,
            "name": "eventFactory",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "649:25:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_EventFactory_$602",
              "typeString": "contract EventFactory"
            },
            "typeName": {
              "contractScope": null,
              "id": 4408,
              "name": "EventFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 602,
              "src": "649:12:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_EventFactory_$602",
                "typeString": "contract EventFactory"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 4411,
            "name": "marketFactory",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "680:50:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
              "typeString": "contract StandardMarketWithPriceLoggerFactory"
            },
            "typeName": {
              "contractScope": null,
              "id": 4410,
              "name": "StandardMarketWithPriceLoggerFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3622,
              "src": "680:36:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                "typeString": "contract StandardMarketWithPriceLoggerFactory"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 4413,
            "name": "futarchyOracleMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "736:46:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
              "typeString": "contract FutarchyOracle"
            },
            "typeName": {
              "contractScope": null,
              "id": 4412,
              "name": "FutarchyOracle",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 4380,
              "src": "736:14:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                "typeString": "contract FutarchyOracle"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4452,
              "nodeType": "Block",
              "src": "1142:243:19",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 4437,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          "id": 4429,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 4424,
                                "name": "_eventFactory",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4417,
                                "src": "1168:13:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_EventFactory_$602",
                                  "typeString": "contract EventFactory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_EventFactory_$602",
                                  "typeString": "contract EventFactory"
                                }
                              ],
                              "id": 4423,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1160:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4425,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1160:22:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "!=",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30",
                                "id": 4427,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "1194:1:19",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                },
                                "value": "0"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                }
                              ],
                              "id": 4426,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1186:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4428,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1186:10:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "1160:36:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "&&",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          "id": 4436,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 4431,
                                "name": "_marketFactory",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4419,
                                "src": "1208:14:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                  "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                  "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                }
                              ],
                              "id": 4430,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1200:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4432,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1200:23:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "!=",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30",
                                "id": 4434,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "1235:1:19",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                },
                                "value": "0"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                }
                              ],
                              "id": 4433,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1227:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4435,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1227:10:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "1200:37:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "1160:77:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 4422,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        7923,
                        7924
                      ],
                      "referencedDeclaration": 7923,
                      "src": "1152:7:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 4438,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1152:86:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4439,
                  "nodeType": "ExpressionStatement",
                  "src": "1152:86:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4442,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4440,
                      "name": "futarchyOracleMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4413,
                      "src": "1248:24:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4441,
                      "name": "_futarchyOracleMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4415,
                      "src": "1275:25:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "src": "1248:52:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "id": 4443,
                  "nodeType": "ExpressionStatement",
                  "src": "1248:52:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4446,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4444,
                      "name": "eventFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4409,
                      "src": "1310:12:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_EventFactory_$602",
                        "typeString": "contract EventFactory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4445,
                      "name": "_eventFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4417,
                      "src": "1325:13:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_EventFactory_$602",
                        "typeString": "contract EventFactory"
                      }
                    },
                    "src": "1310:28:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_EventFactory_$602",
                      "typeString": "contract EventFactory"
                    }
                  },
                  "id": 4447,
                  "nodeType": "ExpressionStatement",
                  "src": "1310:28:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4450,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4448,
                      "name": "marketFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4411,
                      "src": "1348:13:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                        "typeString": "contract StandardMarketWithPriceLoggerFactory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4449,
                      "name": "_marketFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4419,
                      "src": "1364:14:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                        "typeString": "contract StandardMarketWithPriceLoggerFactory"
                      }
                    },
                    "src": "1348:30:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                      "typeString": "contract StandardMarketWithPriceLoggerFactory"
                    }
                  },
                  "id": 4451,
                  "nodeType": "ExpressionStatement",
                  "src": "1348:30:19"
                }
              ]
            },
            "documentation": "@dev Constructor sets event factory contract\n @param _eventFactory Event factory contract\n @param _marketFactory Market factory contract",
            "id": 4453,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4420,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4415,
                  "name": "_futarchyOracleMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1000:40:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4414,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "1000:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4417,
                  "name": "_eventFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1042:26:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_EventFactory_$602",
                    "typeString": "contract EventFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4416,
                    "name": "EventFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 602,
                    "src": "1042:12:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_EventFactory_$602",
                      "typeString": "contract EventFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4419,
                  "name": "_marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1070:51:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4418,
                    "name": "StandardMarketWithPriceLoggerFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3622,
                    "src": "1070:36:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                      "typeString": "contract StandardMarketWithPriceLoggerFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "999:123:19"
            },
            "returnParameters": {
              "id": 4421,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1142:0:19"
            },
            "scope": 4519,
            "src": "988:397:19",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4517,
              "nodeType": "Block",
              "src": "2341:745:19",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4500,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4476,
                      "name": "futarchyOracle",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4474,
                      "src": "2351:14:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 4482,
                                      "name": "futarchyOracleMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 4413,
                                      "src": "2436:24:19",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                                        "typeString": "contract FutarchyOracle"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                                        "typeString": "contract FutarchyOracle"
                                      }
                                    ],
                                    "id": 4481,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "2428:7:19",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 4483,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "2428:33:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 4484,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 7920,
                                    "src": "2475:3:19",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 4485,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "2475:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4486,
                                  "name": "eventFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4409,
                                  "src": "2499:12:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_EventFactory_$602",
                                    "typeString": "contract EventFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4487,
                                  "name": "collateralToken",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4455,
                                  "src": "2525:15:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_ERC20_$7778",
                                    "typeString": "contract ERC20"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4488,
                                  "name": "oracle",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4457,
                                  "src": "2554:6:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Oracle_$4841",
                                    "typeString": "contract Oracle"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4489,
                                  "name": "outcomeCount",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4459,
                                  "src": "2574:12:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint8",
                                    "typeString": "uint8"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4490,
                                  "name": "lowerBound",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4461,
                                  "src": "2600:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4491,
                                  "name": "upperBound",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4463,
                                  "src": "2624:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4492,
                                  "name": "marketFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4411,
                                  "src": "2648:13:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4493,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4465,
                                  "src": "2675:11:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4494,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4467,
                                  "src": "2700:3:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4495,
                                  "name": "tradingPeriod",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4469,
                                  "src": "2717:13:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4496,
                                  "name": "startDate",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4471,
                                  "src": "2744:9:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_EventFactory_$602",
                                    "typeString": "contract EventFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_ERC20_$7778",
                                    "typeString": "contract ERC20"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Oracle_$4841",
                                    "typeString": "contract Oracle"
                                  },
                                  {
                                    "typeIdentifier": "t_uint8",
                                    "typeString": "uint8"
                                  },
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  },
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "id": 4480,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "2391:23:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$_t_contract$_EventFactory_$602_$_t_contract$_ERC20_$7778_$_t_contract$_Oracle_$4841_$_t_uint8_$_t_int256_$_t_int256_$_t_contract$_StandardMarketWithPriceLoggerFactory_$3622_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$_t_contract$_FutarchyOracleProxy_$4127_$",
                                  "typeString": "function (address,address,contract EventFactory,contract ERC20,contract Oracle,uint8,int256,int256,contract StandardMarketWithPriceLoggerFactory,contract MarketMaker,uint24,uint256,uint256) returns (contract FutarchyOracleProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 4479,
                                  "name": "FutarchyOracleProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 4127,
                                  "src": "2395:19:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                    "typeString": "contract FutarchyOracleProxy"
                                  }
                                }
                              },
                              "id": 4497,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2391:372:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                "typeString": "contract FutarchyOracleProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                "typeString": "contract FutarchyOracleProxy"
                              }
                            ],
                            "id": 4478,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "2383:7:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 4498,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2383:381:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 4477,
                        "name": "FutarchyOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4380,
                        "src": "2368:14:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_FutarchyOracle_$4380_$",
                          "typeString": "type(contract FutarchyOracle)"
                        }
                      },
                      "id": 4499,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2368:397:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "src": "2351:414:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "id": 4501,
                  "nodeType": "ExpressionStatement",
                  "src": "2351:414:19"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4503,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "2816:3:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4504,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "2816:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4505,
                        "name": "futarchyOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4474,
                        "src": "2840:14:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                          "typeString": "contract FutarchyOracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4506,
                        "name": "collateralToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4455,
                        "src": "2868:15:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ERC20_$7778",
                          "typeString": "contract ERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4507,
                        "name": "oracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4457,
                        "src": "2897:6:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Oracle_$4841",
                          "typeString": "contract Oracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4508,
                        "name": "outcomeCount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4459,
                        "src": "2917:12:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4509,
                        "name": "lowerBound",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4461,
                        "src": "2943:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4510,
                        "name": "upperBound",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4463,
                        "src": "2967:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4511,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4465,
                        "src": "2991:11:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4512,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4467,
                        "src": "3016:3:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4513,
                        "name": "tradingPeriod",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4469,
                        "src": "3033:13:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4514,
                        "name": "startDate",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4471,
                        "src": "3060:9:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                          "typeString": "contract FutarchyOracle"
                        },
                        {
                          "typeIdentifier": "t_contract$_ERC20_$7778",
                          "typeString": "contract ERC20"
                        },
                        {
                          "typeIdentifier": "t_contract$_Oracle_$4841",
                          "typeString": "contract Oracle"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 4502,
                      "name": "FutarchyOracleCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4407,
                      "src": "2780:22:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_FutarchyOracle_$4380_$_t_contract$_ERC20_$7778_$_t_contract$_Oracle_$4841_$_t_uint8_$_t_int256_$_t_int256_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (address,contract FutarchyOracle,contract ERC20,contract Oracle,uint8,int256,int256,contract MarketMaker,uint24,uint256,uint256)"
                      }
                    },
                    "id": 4515,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2780:299:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4516,
                  "nodeType": "EmitStatement",
                  "src": "2775:304:19"
                }
              ]
            },
            "documentation": "@dev Creates a new Futarchy oracle contract\n @param collateralToken Tokens used as collateral in exchange for outcome tokens\n @param oracle Oracle contract used to resolve the event\n @param outcomeCount Number of event outcomes\n @param lowerBound Lower bound for event outcome\n @param upperBound Lower bound for event outcome\n @param marketMaker Market maker contract\n @param fee Market fee\n @param tradingPeriod Trading period before decision can be determined\n @param startDate Start date for price logging\n @return Oracle contract",
            "id": 4518,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createFutarchyOracle",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4472,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4455,
                  "name": "collateralToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2042:21:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_ERC20_$7778",
                    "typeString": "contract ERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4454,
                    "name": "ERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 7778,
                    "src": "2042:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ERC20_$7778",
                      "typeString": "contract ERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4457,
                  "name": "oracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2073:13:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Oracle_$4841",
                    "typeString": "contract Oracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4456,
                    "name": "Oracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4841,
                    "src": "2073:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Oracle_$4841",
                      "typeString": "contract Oracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4459,
                  "name": "outcomeCount",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2096:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4458,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "2096:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4461,
                  "name": "lowerBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2124:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4460,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "2124:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4463,
                  "name": "upperBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2148:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4462,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "2148:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4465,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2172:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4464,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "2172:11:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4467,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2205:10:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 4466,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "2205:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4469,
                  "name": "tradingPeriod",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2225:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4468,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "2225:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4471,
                  "name": "startDate",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2253:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4470,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "2253:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2032:241:19"
            },
            "returnParameters": {
              "id": 4475,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4474,
                  "name": "futarchyOracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2306:29:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4473,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "2306:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2305:31:19"
            },
            "scope": 4519,
            "src": "2003:1083:19",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 4520,
        "src": "202:2886:19"
      }
    ],
    "src": "0:3089:19"
  },
  "legacyAST": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracleFactory.sol",
    "exportedSymbols": {
      "FutarchyOracleFactory": [
        4519
      ]
    },
    "id": 4520,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4382,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:19"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/FutarchyOracle.sol",
        "file": "../Oracles/FutarchyOracle.sol",
        "id": 4383,
        "nodeType": "ImportDirective",
        "scope": 4520,
        "sourceUnit": 4381,
        "src": "24:39:19",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          4127
        ],
        "contractKind": "contract",
        "documentation": "@title Futarchy oracle factory contract - Allows to create Futarchy oracle contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 4519,
        "linearizedBaseContracts": [
          4519
        ],
        "name": "FutarchyOracleFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 4407,
            "name": "FutarchyOracleCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 4406,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4385,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "308:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4384,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "308:7:19",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4387,
                  "indexed": false,
                  "name": "futarchyOracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "341:29:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4386,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "341:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4389,
                  "indexed": false,
                  "name": "collateralToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "380:21:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_ERC20_$7778",
                    "typeString": "contract ERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4388,
                    "name": "ERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 7778,
                    "src": "380:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ERC20_$7778",
                      "typeString": "contract ERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4391,
                  "indexed": false,
                  "name": "oracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "411:13:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Oracle_$4841",
                    "typeString": "contract Oracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4390,
                    "name": "Oracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4841,
                    "src": "411:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Oracle_$4841",
                      "typeString": "contract Oracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4393,
                  "indexed": false,
                  "name": "outcomeCount",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "434:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4392,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "434:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4395,
                  "indexed": false,
                  "name": "lowerBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "462:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4394,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "462:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4397,
                  "indexed": false,
                  "name": "upperBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "486:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4396,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "486:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4399,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "510:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4398,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "510:11:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4401,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "543:10:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 4400,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "543:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4403,
                  "indexed": false,
                  "name": "tradingPeriod",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "563:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4402,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "563:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4405,
                  "indexed": false,
                  "name": "startDate",
                  "nodeType": "VariableDeclaration",
                  "scope": 4407,
                  "src": "591:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4404,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "591:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "298:313:19"
            },
            "src": "270:342:19"
          },
          {
            "constant": false,
            "id": 4409,
            "name": "eventFactory",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "649:25:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_EventFactory_$602",
              "typeString": "contract EventFactory"
            },
            "typeName": {
              "contractScope": null,
              "id": 4408,
              "name": "EventFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 602,
              "src": "649:12:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_EventFactory_$602",
                "typeString": "contract EventFactory"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 4411,
            "name": "marketFactory",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "680:50:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
              "typeString": "contract StandardMarketWithPriceLoggerFactory"
            },
            "typeName": {
              "contractScope": null,
              "id": 4410,
              "name": "StandardMarketWithPriceLoggerFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3622,
              "src": "680:36:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                "typeString": "contract StandardMarketWithPriceLoggerFactory"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 4413,
            "name": "futarchyOracleMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 4519,
            "src": "736:46:19",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
              "typeString": "contract FutarchyOracle"
            },
            "typeName": {
              "contractScope": null,
              "id": 4412,
              "name": "FutarchyOracle",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 4380,
              "src": "736:14:19",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                "typeString": "contract FutarchyOracle"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4452,
              "nodeType": "Block",
              "src": "1142:243:19",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 4437,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          "id": 4429,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 4424,
                                "name": "_eventFactory",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4417,
                                "src": "1168:13:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_EventFactory_$602",
                                  "typeString": "contract EventFactory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_EventFactory_$602",
                                  "typeString": "contract EventFactory"
                                }
                              ],
                              "id": 4423,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1160:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4425,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1160:22:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "!=",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30",
                                "id": 4427,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "1194:1:19",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                },
                                "value": "0"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                }
                              ],
                              "id": 4426,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1186:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4428,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1186:10:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "1160:36:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "&&",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          "id": 4436,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 4431,
                                "name": "_marketFactory",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4419,
                                "src": "1208:14:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                  "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                  "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                }
                              ],
                              "id": 4430,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1200:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4432,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1200:23:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "!=",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30",
                                "id": 4434,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "1235:1:19",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                },
                                "value": "0"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                }
                              ],
                              "id": 4433,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1227:7:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": "address"
                            },
                            "id": 4435,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1227:10:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "1200:37:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "1160:77:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 4422,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        7923,
                        7924
                      ],
                      "referencedDeclaration": 7923,
                      "src": "1152:7:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 4438,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1152:86:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4439,
                  "nodeType": "ExpressionStatement",
                  "src": "1152:86:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4442,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4440,
                      "name": "futarchyOracleMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4413,
                      "src": "1248:24:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4441,
                      "name": "_futarchyOracleMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4415,
                      "src": "1275:25:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "src": "1248:52:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "id": 4443,
                  "nodeType": "ExpressionStatement",
                  "src": "1248:52:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4446,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4444,
                      "name": "eventFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4409,
                      "src": "1310:12:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_EventFactory_$602",
                        "typeString": "contract EventFactory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4445,
                      "name": "_eventFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4417,
                      "src": "1325:13:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_EventFactory_$602",
                        "typeString": "contract EventFactory"
                      }
                    },
                    "src": "1310:28:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_EventFactory_$602",
                      "typeString": "contract EventFactory"
                    }
                  },
                  "id": 4447,
                  "nodeType": "ExpressionStatement",
                  "src": "1310:28:19"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4450,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4448,
                      "name": "marketFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4411,
                      "src": "1348:13:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                        "typeString": "contract StandardMarketWithPriceLoggerFactory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4449,
                      "name": "_marketFactory",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4419,
                      "src": "1364:14:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                        "typeString": "contract StandardMarketWithPriceLoggerFactory"
                      }
                    },
                    "src": "1348:30:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                      "typeString": "contract StandardMarketWithPriceLoggerFactory"
                    }
                  },
                  "id": 4451,
                  "nodeType": "ExpressionStatement",
                  "src": "1348:30:19"
                }
              ]
            },
            "documentation": "@dev Constructor sets event factory contract\n @param _eventFactory Event factory contract\n @param _marketFactory Market factory contract",
            "id": 4453,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4420,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4415,
                  "name": "_futarchyOracleMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1000:40:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4414,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "1000:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4417,
                  "name": "_eventFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1042:26:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_EventFactory_$602",
                    "typeString": "contract EventFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4416,
                    "name": "EventFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 602,
                    "src": "1042:12:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_EventFactory_$602",
                      "typeString": "contract EventFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4419,
                  "name": "_marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 4453,
                  "src": "1070:51:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4418,
                    "name": "StandardMarketWithPriceLoggerFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3622,
                    "src": "1070:36:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                      "typeString": "contract StandardMarketWithPriceLoggerFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "999:123:19"
            },
            "returnParameters": {
              "id": 4421,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1142:0:19"
            },
            "scope": 4519,
            "src": "988:397:19",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4517,
              "nodeType": "Block",
              "src": "2341:745:19",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4500,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4476,
                      "name": "futarchyOracle",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4474,
                      "src": "2351:14:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 4482,
                                      "name": "futarchyOracleMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 4413,
                                      "src": "2436:24:19",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                                        "typeString": "contract FutarchyOracle"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                                        "typeString": "contract FutarchyOracle"
                                      }
                                    ],
                                    "id": 4481,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "2428:7:19",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 4483,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "2428:33:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 4484,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 7920,
                                    "src": "2475:3:19",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 4485,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "2475:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4486,
                                  "name": "eventFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4409,
                                  "src": "2499:12:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_EventFactory_$602",
                                    "typeString": "contract EventFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4487,
                                  "name": "collateralToken",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4455,
                                  "src": "2525:15:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_ERC20_$7778",
                                    "typeString": "contract ERC20"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4488,
                                  "name": "oracle",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4457,
                                  "src": "2554:6:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Oracle_$4841",
                                    "typeString": "contract Oracle"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4489,
                                  "name": "outcomeCount",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4459,
                                  "src": "2574:12:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint8",
                                    "typeString": "uint8"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4490,
                                  "name": "lowerBound",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4461,
                                  "src": "2600:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4491,
                                  "name": "upperBound",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4463,
                                  "src": "2624:10:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4492,
                                  "name": "marketFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4411,
                                  "src": "2648:13:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4493,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4465,
                                  "src": "2675:11:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4494,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4467,
                                  "src": "2700:3:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4495,
                                  "name": "tradingPeriod",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4469,
                                  "src": "2717:13:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 4496,
                                  "name": "startDate",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 4471,
                                  "src": "2744:9:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_EventFactory_$602",
                                    "typeString": "contract EventFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_ERC20_$7778",
                                    "typeString": "contract ERC20"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Oracle_$4841",
                                    "typeString": "contract Oracle"
                                  },
                                  {
                                    "typeIdentifier": "t_uint8",
                                    "typeString": "uint8"
                                  },
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  },
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_StandardMarketWithPriceLoggerFactory_$3622",
                                    "typeString": "contract StandardMarketWithPriceLoggerFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "id": 4480,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "2391:23:19",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$_t_contract$_EventFactory_$602_$_t_contract$_ERC20_$7778_$_t_contract$_Oracle_$4841_$_t_uint8_$_t_int256_$_t_int256_$_t_contract$_StandardMarketWithPriceLoggerFactory_$3622_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$_t_contract$_FutarchyOracleProxy_$4127_$",
                                  "typeString": "function (address,address,contract EventFactory,contract ERC20,contract Oracle,uint8,int256,int256,contract StandardMarketWithPriceLoggerFactory,contract MarketMaker,uint24,uint256,uint256) returns (contract FutarchyOracleProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 4479,
                                  "name": "FutarchyOracleProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 4127,
                                  "src": "2395:19:19",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                    "typeString": "contract FutarchyOracleProxy"
                                  }
                                }
                              },
                              "id": 4497,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2391:372:19",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                "typeString": "contract FutarchyOracleProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_FutarchyOracleProxy_$4127",
                                "typeString": "contract FutarchyOracleProxy"
                              }
                            ],
                            "id": 4478,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "2383:7:19",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 4498,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2383:381:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 4477,
                        "name": "FutarchyOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4380,
                        "src": "2368:14:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_FutarchyOracle_$4380_$",
                          "typeString": "type(contract FutarchyOracle)"
                        }
                      },
                      "id": 4499,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2368:397:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                        "typeString": "contract FutarchyOracle"
                      }
                    },
                    "src": "2351:414:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "id": 4501,
                  "nodeType": "ExpressionStatement",
                  "src": "2351:414:19"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4503,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "2816:3:19",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4504,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "2816:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4505,
                        "name": "futarchyOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4474,
                        "src": "2840:14:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                          "typeString": "contract FutarchyOracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4506,
                        "name": "collateralToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4455,
                        "src": "2868:15:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ERC20_$7778",
                          "typeString": "contract ERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4507,
                        "name": "oracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4457,
                        "src": "2897:6:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Oracle_$4841",
                          "typeString": "contract Oracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4508,
                        "name": "outcomeCount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4459,
                        "src": "2917:12:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4509,
                        "name": "lowerBound",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4461,
                        "src": "2943:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4510,
                        "name": "upperBound",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4463,
                        "src": "2967:10:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4511,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4465,
                        "src": "2991:11:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4512,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4467,
                        "src": "3016:3:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4513,
                        "name": "tradingPeriod",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4469,
                        "src": "3033:13:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4514,
                        "name": "startDate",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4471,
                        "src": "3060:9:19",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                          "typeString": "contract FutarchyOracle"
                        },
                        {
                          "typeIdentifier": "t_contract$_ERC20_$7778",
                          "typeString": "contract ERC20"
                        },
                        {
                          "typeIdentifier": "t_contract$_Oracle_$4841",
                          "typeString": "contract Oracle"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 4502,
                      "name": "FutarchyOracleCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4407,
                      "src": "2780:22:19",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_FutarchyOracle_$4380_$_t_contract$_ERC20_$7778_$_t_contract$_Oracle_$4841_$_t_uint8_$_t_int256_$_t_int256_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (address,contract FutarchyOracle,contract ERC20,contract Oracle,uint8,int256,int256,contract MarketMaker,uint24,uint256,uint256)"
                      }
                    },
                    "id": 4515,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2780:299:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4516,
                  "nodeType": "EmitStatement",
                  "src": "2775:304:19"
                }
              ]
            },
            "documentation": "@dev Creates a new Futarchy oracle contract\n @param collateralToken Tokens used as collateral in exchange for outcome tokens\n @param oracle Oracle contract used to resolve the event\n @param outcomeCount Number of event outcomes\n @param lowerBound Lower bound for event outcome\n @param upperBound Lower bound for event outcome\n @param marketMaker Market maker contract\n @param fee Market fee\n @param tradingPeriod Trading period before decision can be determined\n @param startDate Start date for price logging\n @return Oracle contract",
            "id": 4518,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createFutarchyOracle",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4472,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4455,
                  "name": "collateralToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2042:21:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_ERC20_$7778",
                    "typeString": "contract ERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4454,
                    "name": "ERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 7778,
                    "src": "2042:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ERC20_$7778",
                      "typeString": "contract ERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4457,
                  "name": "oracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2073:13:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Oracle_$4841",
                    "typeString": "contract Oracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4456,
                    "name": "Oracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4841,
                    "src": "2073:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Oracle_$4841",
                      "typeString": "contract Oracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4459,
                  "name": "outcomeCount",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2096:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 4458,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "2096:5:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4461,
                  "name": "lowerBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2124:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4460,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "2124:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4463,
                  "name": "upperBound",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2148:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 4462,
                    "name": "int",
                    "nodeType": "ElementaryTypeName",
                    "src": "2148:3:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4465,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2172:23:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4464,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "2172:11:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4467,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2205:10:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 4466,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "2205:6:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4469,
                  "name": "tradingPeriod",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2225:18:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4468,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "2225:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4471,
                  "name": "startDate",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2253:14:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4470,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "2253:4:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2032:241:19"
            },
            "returnParameters": {
              "id": 4475,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4474,
                  "name": "futarchyOracle",
                  "nodeType": "VariableDeclaration",
                  "scope": 4518,
                  "src": "2306:29:19",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                    "typeString": "contract FutarchyOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4473,
                    "name": "FutarchyOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4380,
                    "src": "2306:14:19",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_FutarchyOracle_$4380",
                      "typeString": "contract FutarchyOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2305:31:19"
            },
            "scope": 4519,
            "src": "2003:1083:19",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 4520,
        "src": "202:2886:19"
      }
    ],
    "src": "0:3089:19"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.6+commit.b259423e.Emscripten.clang"
  },
  "networks": {
    "3": {
      "events": {},
      "links": {},
      "address": "0x79dca28f03b585568d60a7fb216af8bff6dac4ac",
      "transactionHash": "0x601867ad3b49f369db7c6b4c4ddf30fdd7aff2c10a689b5e7d7a53da90ad0434"
    },
    "4": {
      "events": {},
      "links": {},
      "address": "0x5378645d1141241a6ce9b35fa9a161b6e912dc49",
      "transactionHash": "0x0a83278ff6b2c57def6060a2535bdc9f3a91d99c018c51ffccaaeb6ece09b707"
    },
    "437894314312": {
      "events": {},
      "links": {},
      "address": "0xd86c8f0327494034f60e25074420bccf560d5610",
      "transactionHash": "0x512b9393c3d284be1c2e4055983539942f1700d1d4f9bfa05af22f752e9ec489"
    }
  },
  "schemaVersion": "3.0.11",
  "updatedAt": "2019-09-20T17:46:52.205Z",
  "devdoc": {
    "author": "Stefan George - <stefan@gnosis.pm>",
    "methods": {
      "constructor": {
        "details": "Constructor sets event factory contract",
        "params": {
          "_eventFactory": "Event factory contract",
          "_marketFactory": "Market factory contract"
        }
      },
      "createFutarchyOracle(address,address,uint8,int256,int256,address,uint24,uint256,uint256)": {
        "details": "Creates a new Futarchy oracle contract",
        "params": {
          "collateralToken": "Tokens used as collateral in exchange for outcome tokens",
          "fee": "Market fee",
          "lowerBound": "Lower bound for event outcome",
          "marketMaker": "Market maker contract",
          "oracle": "Oracle contract used to resolve the event",
          "outcomeCount": "Number of event outcomes",
          "startDate": "Start date for price logging",
          "tradingPeriod": "Trading period before decision can be determined",
          "upperBound": "Lower bound for event outcome"
        },
        "return": "Oracle contract"
      }
    },
    "title": "Futarchy oracle factory contract - Allows to create Futarchy oracle contracts"
  },
  "userdoc": {
    "methods": {}
  }
}