{
  "contractName": "StandardMarketFactory",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "standardMarketMasterCopy",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_standardMarketMasterCopy",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "creator",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "market",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "eventContract",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "marketMaker",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "fee",
          "type": "uint24"
        }
      ],
      "name": "StandardMarketCreation",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "eventContract",
          "type": "address"
        },
        {
          "name": "marketMaker",
          "type": "address"
        },
        {
          "name": "fee",
          "type": "uint24"
        }
      ],
      "name": "createMarket",
      "outputs": [
        {
          "name": "market",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.6+commit.b259423e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"standardMarketMasterCopy\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"eventContract\",\"type\":\"address\"},{\"name\":\"marketMaker\",\"type\":\"address\"},{\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"createMarket\",\"outputs\":[{\"name\":\"market\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_standardMarketMasterCopy\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"market\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"eventContract\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"marketMaker\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"StandardMarketCreation\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Stefan George - <stefan@gnosis.pm>\",\"methods\":{\"createMarket(address,address,uint24)\":{\"details\":\"Creates a new market contract\",\"params\":{\"eventContract\":\"Event contract\",\"fee\":\"Market fee\",\"marketMaker\":\"Market maker contract\"},\"return\":\"Market contract\"}},\"title\":\"Market factory contract - Allows to create market contracts\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketFactory.sol\":\"StandardMarketFactory\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/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/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/StandardMarketFactory.sol\":{\"keccak256\":\"0x8f8f3452e190afcf74b5d8245ff8aa98d253b683e63d64aaa8e425fe36abff45\",\"urls\":[\"bzzr://defea219cbd36bd316ce07e750994069afddd9790f6585df38344d79ead2ca7f\"]},\"/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": "0x608060405234801561001057600080fd5b50604051602080610cea8339810180604052602081101561003057600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610c59806100916000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635f78e7001461003b5780637abeb6a014610085575b600080fd5b610043610138565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f66004803603606081101561009b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff16906020019092919050505061015d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338585856040516101919061038b565b808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1662ffffff16815260200195505050505050604051809103906000f08015801561028d573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167fa88e14227921dd3cab0fe30e6e4e4f8d646d8968abd25634fe49781588a8cf9482868686604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1662ffffff16815260200194505050505060405180910390a29392505050565b610895806103998339019056fe608060405234801561001057600080fd5b5060405160a080610895833981018060405260a081101561003057600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505084600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100a457600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561014f5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156101675750620f424062ffffff168162ffffff16105b61017057600080fd5b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504360028190555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc8f0866040518163ffffffff1660e01b815260040160206040518083038186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b810190808051906020019092919050505060ff166040519080825280602002602001820160405280156102cd5781602001602082028038833980820191505090505b50600690805190602001906102e3929190610372565b5080600460146101000a81548162ffffff021916908362ffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600760006101000a81548160ff0219169083600281111561036357fe5b021790555050505050506103e4565b8280548282559060005260206000209081019282156103ae579160200282015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b90565b6104a2806103f36000396000f3fe6080604052600436106100915760003560e01c8063c040e6b811610059578063c040e6b81461025e578063cb4c86b714610297578063ddca3f43146102c2578063e274fd24146102f7578063fbde47f61461034e57610091565b806302d05d3f146100df5780631f21f9af1461013657806359acb42c1461018d578063a157979c146101b8578063a619486e14610207575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100da573d6000f35b3d6000fd5b3480156100eb57600080fd5b506100f4610383565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014257600080fd5b5061014b6103a9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561019957600080fd5b506101a26103cf565b6040518082815260200191505060405180910390f35b3480156101c457600080fd5b506101f1600480360360208110156101db57600080fd5b81019080803590602001909291905050506103d5565b6040518082815260200191505060405180910390f35b34801561021357600080fd5b5061021c6103f6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026a57600080fd5b5061027361041b565b6040518082600281111561028357fe5b60ff16815260200191505060405180910390f35b3480156102a357600080fd5b506102ac61042e565b6040518082815260200191505060405180910390f35b3480156102ce57600080fd5b506102d7610434565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b34801561030357600080fd5b5061030c610449565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035a57600080fd5b5061036361046f565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b600681815481106103e257fe5b906000526020600020016000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900460ff1681565b60055481565b600460149054906101000a900462ffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620f42408156fea165627a7a72305820abf8f0eb5357fd96067807d4c02e415fd7a0917dccb27be6890e8235cf88b6fd0029a165627a7a72305820f0fa0dda20490baa5a6ccf95d77eb955448f43dd170d5346d765576c7aaf9d2b0029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80635f78e7001461003b5780637abeb6a014610085575b600080fd5b610043610138565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f66004803603606081101561009b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff16906020019092919050505061015d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338585856040516101919061038b565b808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1662ffffff16815260200195505050505050604051809103906000f08015801561028d573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167fa88e14227921dd3cab0fe30e6e4e4f8d646d8968abd25634fe49781588a8cf9482868686604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1662ffffff16815260200194505050505060405180910390a29392505050565b610895806103998339019056fe608060405234801561001057600080fd5b5060405160a080610895833981018060405260a081101561003057600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505084600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100a457600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561014f5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156101675750620f424062ffffff168162ffffff16105b61017057600080fd5b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504360028190555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637dc8f0866040518163ffffffff1660e01b815260040160206040518083038186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b810190808051906020019092919050505060ff166040519080825280602002602001820160405280156102cd5781602001602082028038833980820191505090505b50600690805190602001906102e3929190610372565b5080600460146101000a81548162ffffff021916908362ffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600760006101000a81548160ff0219169083600281111561036357fe5b021790555050505050506103e4565b8280548282559060005260206000209081019282156103ae579160200282015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b90565b6104a2806103f36000396000f3fe6080604052600436106100915760003560e01c8063c040e6b811610059578063c040e6b81461025e578063cb4c86b714610297578063ddca3f43146102c2578063e274fd24146102f7578063fbde47f61461034e57610091565b806302d05d3f146100df5780631f21f9af1461013657806359acb42c1461018d578063a157979c146101b8578063a619486e14610207575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100da573d6000f35b3d6000fd5b3480156100eb57600080fd5b506100f4610383565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014257600080fd5b5061014b6103a9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561019957600080fd5b506101a26103cf565b6040518082815260200191505060405180910390f35b3480156101c457600080fd5b506101f1600480360360208110156101db57600080fd5b81019080803590602001909291905050506103d5565b6040518082815260200191505060405180910390f35b34801561021357600080fd5b5061021c6103f6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026a57600080fd5b5061027361041b565b6040518082600281111561028357fe5b60ff16815260200191505060405180910390f35b3480156102a357600080fd5b506102ac61042e565b6040518082815260200191505060405180910390f35b3480156102ce57600080fd5b506102d7610434565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b34801561030357600080fd5b5061030c610449565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035a57600080fd5b5061036361046f565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b600681815481106103e257fe5b906000526020600020016000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900460ff1681565b60055481565b600460149054906101000a900462ffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620f42408156fea165627a7a72305820abf8f0eb5357fd96067807d4c02e415fd7a0917dccb27be6890e8235cf88b6fd0029a165627a7a72305820f0fa0dda20490baa5a6ccf95d77eb955448f43dd170d5346d765576c7aaf9d2b0029",
  "sourceMap": "184:1044:10:-;;;509:130;8:9:-1;5:2;;;30:1;27;20:12;5:2;509:130:10;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;509:130:10;;;;;;;;;;;;;;;;607:25;580:24;;:52;;;;;;;;;;;;;;;;;;509:130;184:1044;;;;;;",
  "deployedSourceMap": "184:1044:10:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;184:1044:10;;;;;;;;;;;;;;;;;;;;;;;;416:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;843:383;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;843:383:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;416:46;;;;;;;;;;;;;:::o;843:383::-;955:21;1056:24;;;;;;;;;;;1083:10;1095:13;1110:11;1123:3;1024:103;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1024:103:10;992:137;;1167:10;1144:75;;;1179:6;1187:13;1202:11;1215:3;1144:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;843:383;;;;;:::o;184:1044::-;;;;;;;;:::o",
  "source": "pragma solidity ^0.5.0;\nimport \"../Markets/StandardMarket.sol\";\n\n\n/// @title Market factory contract - Allows to create market contracts\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract StandardMarketFactory {\n\n    /*\n     *  Events\n     */\n    event StandardMarketCreation(address indexed creator, Market market, Event eventContract, MarketMaker marketMaker, uint24 fee);\n\n    /*\n     *  Storage\n     */\n    StandardMarket public standardMarketMasterCopy;\n\n    /*\n     *  Public functions\n     */\n    constructor(StandardMarket _standardMarketMasterCopy) public {\n        standardMarketMasterCopy = _standardMarketMasterCopy;\n    }\n\n    /// @dev Creates a new market contract\n    /// @param eventContract Event contract\n    /// @param marketMaker Market maker contract\n    /// @param fee Market fee\n    /// @return Market contract\n    function createMarket(Event eventContract, MarketMaker marketMaker, uint24 fee)\n        public\n        returns (StandardMarket market)\n    {\n        market = StandardMarket(address(new StandardMarketProxy(address(standardMarketMasterCopy), msg.sender, eventContract, marketMaker, fee)));\n        emit StandardMarketCreation(msg.sender, market, eventContract, marketMaker, fee);\n    }\n}\n",
  "sourcePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketFactory.sol",
  "ast": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketFactory.sol",
    "exportedSymbols": {
      "StandardMarketFactory": [
        3266
      ]
    },
    "id": 3267,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3201,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:10"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarket.sol",
        "file": "../Markets/StandardMarket.sol",
        "id": 3202,
        "nodeType": "ImportDirective",
        "scope": 3267,
        "sourceUnit": 3200,
        "src": "24:39:10",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          2389
        ],
        "contractKind": "contract",
        "documentation": "@title Market factory contract - Allows to create market contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 3266,
        "linearizedBaseContracts": [
          3266
        ],
        "name": "StandardMarketFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 3214,
            "name": "StandardMarketCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 3213,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3204,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "281:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3203,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "281:7:10",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3206,
                  "indexed": false,
                  "name": "market",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "306:13:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Market_$2296",
                    "typeString": "contract Market"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3205,
                    "name": "Market",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2296,
                    "src": "306:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Market_$2296",
                      "typeString": "contract Market"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3208,
                  "indexed": false,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "321:19:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3207,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "321:5:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3210,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "342:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3209,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "342:11:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3212,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "367:10:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 3211,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "367:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "280:98:10"
            },
            "src": "252:127:10"
          },
          {
            "constant": false,
            "id": 3216,
            "name": "standardMarketMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 3266,
            "src": "416:46:10",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_StandardMarket_$3199",
              "typeString": "contract StandardMarket"
            },
            "typeName": {
              "contractScope": null,
              "id": 3215,
              "name": "StandardMarket",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3199,
              "src": "416:14:10",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_StandardMarket_$3199",
                "typeString": "contract StandardMarket"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 3225,
              "nodeType": "Block",
              "src": "570:69:10",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3223,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3221,
                      "name": "standardMarketMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3216,
                      "src": "580:24:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 3222,
                      "name": "_standardMarketMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3218,
                      "src": "607:25:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "src": "580:52:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "id": 3224,
                  "nodeType": "ExpressionStatement",
                  "src": "580:52:10"
                }
              ]
            },
            "documentation": null,
            "id": 3226,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3219,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3218,
                  "name": "_standardMarketMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 3226,
                  "src": "521:40:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarket_$3199",
                    "typeString": "contract StandardMarket"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3217,
                    "name": "StandardMarket",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3199,
                    "src": "521:14:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "520:42:10"
            },
            "returnParameters": {
              "id": 3220,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "570:0:10"
            },
            "scope": 3266,
            "src": "509:130:10",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 3264,
              "nodeType": "Block",
              "src": "982:244:10",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3253,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3237,
                      "name": "market",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3235,
                      "src": "992:6:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 3243,
                                      "name": "standardMarketMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 3216,
                                      "src": "1056:24:10",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                                        "typeString": "contract StandardMarket"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                                        "typeString": "contract StandardMarket"
                                      }
                                    ],
                                    "id": 3242,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "1048:7:10",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 3244,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "1048:33:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3245,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 7920,
                                    "src": "1083:3:10",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 3246,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "1083:10:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3247,
                                  "name": "eventContract",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3228,
                                  "src": "1095:13:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3248,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3230,
                                  "src": "1110:11:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3249,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3232,
                                  "src": "1123:3:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                ],
                                "id": 3241,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "1024:23:10",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$_t_contract$_Event_$392_$_t_contract$_MarketMaker_$1606_$_t_uint24_$returns$_t_contract$_StandardMarketProxy_$2389_$",
                                  "typeString": "function (address,address,contract Event,contract MarketMaker,uint24) returns (contract StandardMarketProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 3240,
                                  "name": "StandardMarketProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 2389,
                                  "src": "1028:19:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                    "typeString": "contract StandardMarketProxy"
                                  }
                                }
                              },
                              "id": 3250,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1024:103:10",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                "typeString": "contract StandardMarketProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                "typeString": "contract StandardMarketProxy"
                              }
                            ],
                            "id": 3239,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "1016:7:10",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3251,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1016:112:10",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 3238,
                        "name": "StandardMarket",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3199,
                        "src": "1001:14:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_StandardMarket_$3199_$",
                          "typeString": "type(contract StandardMarket)"
                        }
                      },
                      "id": 3252,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1001:128:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "src": "992:137:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "id": 3254,
                  "nodeType": "ExpressionStatement",
                  "src": "992:137:10"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3256,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "1167:3:10",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 3257,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1167:10:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3258,
                        "name": "market",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3235,
                        "src": "1179:6:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_StandardMarket_$3199",
                          "typeString": "contract StandardMarket"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3259,
                        "name": "eventContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3228,
                        "src": "1187:13:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3260,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3230,
                        "src": "1202:11:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3261,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3232,
                        "src": "1215:3:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_StandardMarket_$3199",
                          "typeString": "contract StandardMarket"
                        },
                        {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      ],
                      "id": 3255,
                      "name": "StandardMarketCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3214,
                      "src": "1144:22:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_Market_$2296_$_t_contract$_Event_$392_$_t_contract$_MarketMaker_$1606_$_t_uint24_$returns$__$",
                        "typeString": "function (address,contract Market,contract Event,contract MarketMaker,uint24)"
                      }
                    },
                    "id": 3262,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1144:75:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3263,
                  "nodeType": "EmitStatement",
                  "src": "1139:80:10"
                }
              ]
            },
            "documentation": "@dev Creates a new market contract\n @param eventContract Event contract\n @param marketMaker Market maker contract\n @param fee Market fee\n @return Market contract",
            "id": 3265,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createMarket",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3233,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3228,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "865:19:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3227,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "865:5:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3230,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "886:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3229,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "886:11:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3232,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "911:10:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 3231,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "911:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "864:58:10"
            },
            "returnParameters": {
              "id": 3236,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3235,
                  "name": "market",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "955:21:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarket_$3199",
                    "typeString": "contract StandardMarket"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3234,
                    "name": "StandardMarket",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3199,
                    "src": "955:14:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "954:23:10"
            },
            "scope": 3266,
            "src": "843:383:10",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 3267,
        "src": "184:1044:10"
      }
    ],
    "src": "0:1229:10"
  },
  "legacyAST": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarketFactory.sol",
    "exportedSymbols": {
      "StandardMarketFactory": [
        3266
      ]
    },
    "id": 3267,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3201,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:10"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/StandardMarket.sol",
        "file": "../Markets/StandardMarket.sol",
        "id": 3202,
        "nodeType": "ImportDirective",
        "scope": 3267,
        "sourceUnit": 3200,
        "src": "24:39:10",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          2389
        ],
        "contractKind": "contract",
        "documentation": "@title Market factory contract - Allows to create market contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 3266,
        "linearizedBaseContracts": [
          3266
        ],
        "name": "StandardMarketFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 3214,
            "name": "StandardMarketCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 3213,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3204,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "281:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3203,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "281:7:10",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3206,
                  "indexed": false,
                  "name": "market",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "306:13:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Market_$2296",
                    "typeString": "contract Market"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3205,
                    "name": "Market",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2296,
                    "src": "306:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Market_$2296",
                      "typeString": "contract Market"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3208,
                  "indexed": false,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "321:19:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3207,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "321:5:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3210,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "342:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3209,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "342:11:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3212,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 3214,
                  "src": "367:10:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 3211,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "367:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "280:98:10"
            },
            "src": "252:127:10"
          },
          {
            "constant": false,
            "id": 3216,
            "name": "standardMarketMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 3266,
            "src": "416:46:10",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_StandardMarket_$3199",
              "typeString": "contract StandardMarket"
            },
            "typeName": {
              "contractScope": null,
              "id": 3215,
              "name": "StandardMarket",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3199,
              "src": "416:14:10",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_StandardMarket_$3199",
                "typeString": "contract StandardMarket"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 3225,
              "nodeType": "Block",
              "src": "570:69:10",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3223,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3221,
                      "name": "standardMarketMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3216,
                      "src": "580:24:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 3222,
                      "name": "_standardMarketMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3218,
                      "src": "607:25:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "src": "580:52:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "id": 3224,
                  "nodeType": "ExpressionStatement",
                  "src": "580:52:10"
                }
              ]
            },
            "documentation": null,
            "id": 3226,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3219,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3218,
                  "name": "_standardMarketMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 3226,
                  "src": "521:40:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarket_$3199",
                    "typeString": "contract StandardMarket"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3217,
                    "name": "StandardMarket",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3199,
                    "src": "521:14:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "520:42:10"
            },
            "returnParameters": {
              "id": 3220,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "570:0:10"
            },
            "scope": 3266,
            "src": "509:130:10",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 3264,
              "nodeType": "Block",
              "src": "982:244:10",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3253,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3237,
                      "name": "market",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3235,
                      "src": "992:6:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 3243,
                                      "name": "standardMarketMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 3216,
                                      "src": "1056:24:10",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                                        "typeString": "contract StandardMarket"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                                        "typeString": "contract StandardMarket"
                                      }
                                    ],
                                    "id": 3242,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "1048:7:10",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 3244,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "1048:33:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3245,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 7920,
                                    "src": "1083:3:10",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 3246,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "1083:10:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3247,
                                  "name": "eventContract",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3228,
                                  "src": "1095:13:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3248,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3230,
                                  "src": "1110:11:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 3249,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 3232,
                                  "src": "1123:3:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                ],
                                "id": 3241,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "1024:23:10",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$_t_contract$_Event_$392_$_t_contract$_MarketMaker_$1606_$_t_uint24_$returns$_t_contract$_StandardMarketProxy_$2389_$",
                                  "typeString": "function (address,address,contract Event,contract MarketMaker,uint24) returns (contract StandardMarketProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 3240,
                                  "name": "StandardMarketProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 2389,
                                  "src": "1028:19:10",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                    "typeString": "contract StandardMarketProxy"
                                  }
                                }
                              },
                              "id": 3250,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1024:103:10",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                "typeString": "contract StandardMarketProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_StandardMarketProxy_$2389",
                                "typeString": "contract StandardMarketProxy"
                              }
                            ],
                            "id": 3239,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "1016:7:10",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3251,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1016:112:10",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 3238,
                        "name": "StandardMarket",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3199,
                        "src": "1001:14:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_StandardMarket_$3199_$",
                          "typeString": "type(contract StandardMarket)"
                        }
                      },
                      "id": 3252,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1001:128:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_StandardMarket_$3199",
                        "typeString": "contract StandardMarket"
                      }
                    },
                    "src": "992:137:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "id": 3254,
                  "nodeType": "ExpressionStatement",
                  "src": "992:137:10"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3256,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "1167:3:10",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 3257,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1167:10:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3258,
                        "name": "market",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3235,
                        "src": "1179:6:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_StandardMarket_$3199",
                          "typeString": "contract StandardMarket"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3259,
                        "name": "eventContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3228,
                        "src": "1187:13:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3260,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3230,
                        "src": "1202:11:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3261,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3232,
                        "src": "1215:3:10",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_StandardMarket_$3199",
                          "typeString": "contract StandardMarket"
                        },
                        {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      ],
                      "id": 3255,
                      "name": "StandardMarketCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3214,
                      "src": "1144:22:10",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_Market_$2296_$_t_contract$_Event_$392_$_t_contract$_MarketMaker_$1606_$_t_uint24_$returns$__$",
                        "typeString": "function (address,contract Market,contract Event,contract MarketMaker,uint24)"
                      }
                    },
                    "id": 3262,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1144:75:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3263,
                  "nodeType": "EmitStatement",
                  "src": "1139:80:10"
                }
              ]
            },
            "documentation": "@dev Creates a new market contract\n @param eventContract Event contract\n @param marketMaker Market maker contract\n @param fee Market fee\n @return Market contract",
            "id": 3265,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createMarket",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3233,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3228,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "865:19:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3227,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "865:5:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3230,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "886:23:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3229,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "886:11:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3232,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "911:10:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 3231,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "911:6:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "864:58:10"
            },
            "returnParameters": {
              "id": 3236,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3235,
                  "name": "market",
                  "nodeType": "VariableDeclaration",
                  "scope": 3265,
                  "src": "955:21:10",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarket_$3199",
                    "typeString": "contract StandardMarket"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3234,
                    "name": "StandardMarket",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3199,
                    "src": "955:14:10",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarket_$3199",
                      "typeString": "contract StandardMarket"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "954:23:10"
            },
            "scope": 3266,
            "src": "843:383:10",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 3267,
        "src": "184:1044:10"
      }
    ],
    "src": "0:1229:10"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.6+commit.b259423e.Emscripten.clang"
  },
  "networks": {
    "1": {
      "events": {},
      "links": {},
      "address": "0x87443cf156a34459d86737c055beb80071f537cc",
      "transactionHash": "0x1c5c2044833dbfb36af5e7dbde0820538cb20eb4d353362965c003af29dbb955"
    },
    "3": {
      "events": {},
      "links": {},
      "address": "0x09ab70447f3227288a9cdc3943a0e4d58c1e64e0",
      "transactionHash": "0x72def640c22aa0b2c889319a1994a5fb9fba07b36221fc0be0b443b6b65db629"
    },
    "4": {
      "events": {},
      "links": {},
      "address": "0xf7bb4c73a0e194c9e11fe5a82f429a67e1788533",
      "transactionHash": "0x55c72db1b219f5e2fcf3865293cca5a2065407f92ab5176aac85c4884593ccdc"
    },
    "42": {
      "events": {},
      "links": {},
      "address": "0x47421ed942a57e772dac036b937b7a64d5b11a03",
      "transactionHash": "0x524ab23da4553330a03b207c2583109d39548cfed7685469beeea07378715c6b"
    },
    "437894314312": {
      "events": {},
      "links": {},
      "address": "0xfc628dd79137395f3c9744e33b1c5de554d94882",
      "transactionHash": "0xd2b2d046c36114caad0f35e8122188ff2274363834216cee28be14e7df63589a"
    }
  },
  "schemaVersion": "3.0.11",
  "updatedAt": "2019-09-20T17:46:52.177Z",
  "devdoc": {
    "author": "Stefan George - <stefan@gnosis.pm>",
    "methods": {
      "createMarket(address,address,uint24)": {
        "details": "Creates a new market contract",
        "params": {
          "eventContract": "Event contract",
          "fee": "Market fee",
          "marketMaker": "Market maker contract"
        },
        "return": "Market contract"
      }
    },
    "title": "Market factory contract - Allows to create market contracts"
  },
  "userdoc": {
    "methods": {}
  }
}