{
  "contractName": "CampaignFactory",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "campaignMasterCopy",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_campaignMasterCopy",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "creator",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "campaign",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "eventContract",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "marketFactory",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "marketMaker",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "fee",
          "type": "uint24"
        },
        {
          "indexed": false,
          "name": "funding",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "deadline",
          "type": "uint256"
        }
      ],
      "name": "CampaignCreation",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "eventContract",
          "type": "address"
        },
        {
          "name": "marketFactory",
          "type": "address"
        },
        {
          "name": "marketMaker",
          "type": "address"
        },
        {
          "name": "fee",
          "type": "uint24"
        },
        {
          "name": "funding",
          "type": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256"
        }
      ],
      "name": "createCampaign",
      "outputs": [
        {
          "name": "campaign",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.6+commit.b259423e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"campaignMasterCopy\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"eventContract\",\"type\":\"address\"},{\"name\":\"marketFactory\",\"type\":\"address\"},{\"name\":\"marketMaker\",\"type\":\"address\"},{\"name\":\"fee\",\"type\":\"uint24\"},{\"name\":\"funding\",\"type\":\"uint256\"},{\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"createCampaign\",\"outputs\":[{\"name\":\"campaign\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_campaignMasterCopy\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"campaign\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"eventContract\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"marketFactory\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"marketMaker\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":false,\"name\":\"funding\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"CampaignCreation\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Stefan George - <stefan@gnosis.pm>\",\"methods\":{\"createCampaign(address,address,address,uint24,uint256,uint256)\":{\"details\":\"Creates a new campaign contract\",\"params\":{\"deadline\":\"Campaign deadline\",\"eventContract\":\"Event contract\",\"fee\":\"Market fee\",\"funding\":\"Initial funding for market\",\"marketFactory\":\"Market factory contract\",\"marketMaker\":\"Market maker contract\"},\"return\":\"Market contract\"}},\"title\":\"Campaign factory contract - Allows to create campaign contracts\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/CampaignFactory.sol\":\"CampaignFactory\"},\"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/Campaign.sol\":{\"keccak256\":\"0x747255f6e5d034164f791a042af53af9c4813d1ca0cae938cad5dff89a4d0329\",\"urls\":[\"bzzr://787c31a9d223fc6dc7d94b366babc16311fbf62b3737a3a2f47d46e30444fe7f\"]},\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/CampaignFactory.sol\":{\"keccak256\":\"0xc62272168cde4a9a5999e8f27c0aa76b7b0f67107fdb16f9e3db70e0daa02824\",\"urls\":[\"bzzr://5004a464122eb243df4cb8df59b55a3d0f156e542b90bf5a953ea54ba94f52de\"]},\"/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": "0x608060405234801561001057600080fd5b50604051602080610d2d8339810180604052602081101561003057600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610c9c806100916000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063425811711461003b5780637d1ef56914610085575b600080fd5b61004361016c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61012a600480360360c081101561009b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff1690602001909291908035906020019092919080359060200190929190505050610191565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787878787876040516101c790610416565b808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff168152602001838152602001828152602001975050505050505050604051809103906000f0801580156102d1573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167f7a9fd19b658538a67209802dd9011d6e3ce04586fe93c87096d2bc40ed85086682898989898989604051808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff16815260200183815260200182815260200197505050505050505060405180910390a29695505050505050565b61084d806104248339019056fe608060405234801561001057600080fd5b5060405160e08061084d833981018060405260e081101561003057600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505086600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100b857600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156101635750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b801561019c5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b80156101b45750620f424062ffffff168362ffffff16105b80156101c05750600082115b80156101cb57508042105b6101d457600080fd5b85600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600460146101000a81548162ffffff021916908362ffffff160217905550816005819055508060068190555050505050505050610573806102da6000396000f3fe6080604052600436106100a75760003560e01c8063a619486e11610064578063a619486e146102b5578063c040e6b81461030c578063cb4c86b714610345578063ddca3f4314610370578063e274fd24146103a5578063fbde47f6146103fc576100a7565b806306ae7095146100f55780631f21f9af1461014c5780632129e25a146101a357806329dcb0cf146101ce57806342e94c90146101f957806380f556051461025e575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100f0573d6000f35b3d6000fd5b34801561010157600080fd5b5061010a610431565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561015857600080fd5b50610161610457565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101af57600080fd5b506101b861047d565b6040518082815260200191505060405180910390f35b3480156101da57600080fd5b506101e3610483565b6040518082815260200191505060405180910390f35b34801561020557600080fd5b506102486004803603602081101561021c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610489565b6040518082815260200191505060405180910390f35b34801561026a57600080fd5b506102736104a1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102c157600080fd5b506102ca6104c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561031857600080fd5b506103216104ec565b6040518082600481111561033157fe5b60ff16815260200191505060405180910390f35b34801561035157600080fd5b5061035a6104ff565b6040518082815260200191505060405180910390f35b34801561037c57600080fd5b50610385610505565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b3480156103b157600080fd5b506103ba61051a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561040857600080fd5b50610411610540565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60065481565b60086020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900460ff1681565b60055481565b600460149054906101000a900462ffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620f42408156fea165627a7a723058205dbeb163496208d117a70c09096a520cefef917bb9fb82a74139135d7fe78f6f0029a165627a7a7230582033913d76a104cfe53bd981e157cdb163270c6b593f3e54395dcb69e7d5afc8360029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063425811711461003b5780637d1ef56914610085575b600080fd5b61004361016c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61012a600480360360c081101561009b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803562ffffff1690602001909291908035906020019092919080359060200190929190505050610191565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787878787876040516101c790610416565b808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff168152602001838152602001828152602001975050505050505050604051809103906000f0801580156102d1573d6000803e3d6000fd5b5090503373ffffffffffffffffffffffffffffffffffffffff167f7a9fd19b658538a67209802dd9011d6e3ce04586fe93c87096d2bc40ed85086682898989898989604051808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018462ffffff1662ffffff16815260200183815260200182815260200197505050505050505060405180910390a29695505050505050565b61084d806104248339019056fe608060405234801561001057600080fd5b5060405160e08061084d833981018060405260e081101561003057600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505086600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100b857600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156101635750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b801561019c5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b80156101b45750620f424062ffffff168362ffffff16105b80156101c05750600082115b80156101cb57508042105b6101d457600080fd5b85600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600460146101000a81548162ffffff021916908362ffffff160217905550816005819055508060068190555050505050505050610573806102da6000396000f3fe6080604052600436106100a75760003560e01c8063a619486e11610064578063a619486e146102b5578063c040e6b81461030c578063cb4c86b714610345578063ddca3f4314610370578063e274fd24146103a5578063fbde47f6146103fc576100a7565b806306ae7095146100f55780631f21f9af1461014c5780632129e25a146101a357806329dcb0cf146101ce57806342e94c90146101f957806380f556051461025e575b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050366000803760008036600084600019f43d6000803e80600081146100f0573d6000f35b3d6000fd5b34801561010157600080fd5b5061010a610431565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561015857600080fd5b50610161610457565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101af57600080fd5b506101b861047d565b6040518082815260200191505060405180910390f35b3480156101da57600080fd5b506101e3610483565b6040518082815260200191505060405180910390f35b34801561020557600080fd5b506102486004803603602081101561021c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610489565b6040518082815260200191505060405180910390f35b34801561026a57600080fd5b506102736104a1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102c157600080fd5b506102ca6104c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561031857600080fd5b506103216104ec565b6040518082600481111561033157fe5b60ff16815260200191505060405180910390f35b34801561035157600080fd5b5061035a6104ff565b6040518082815260200191505060405180910390f35b34801561037c57600080fd5b50610385610505565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b3480156103b157600080fd5b506103ba61051a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561040857600080fd5b50610411610540565b604051808262ffffff1662ffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60065481565b60086020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900460ff1681565b60055481565b600460149054906101000a900462ffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620f42408156fea165627a7a723058205dbeb163496208d117a70c09096a520cefef917bb9fb82a74139135d7fe78f6f0029a165627a7a7230582033913d76a104cfe53bd981e157cdb163270c6b593f3e54395dcb69e7d5afc8360029",
  "sourceMap": "182:1392:7:-;;;553:118;8:9:-1;5:2;;;30:1;27;20:12;5:2;553:118:7;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;553:118:7;;;;;;;;;;;;;;;;645:19;624:18;;:40;;;;;;;;;;;;;;;;;;553:118;182:1392;;;;;;",
  "deployedSourceMap": "182:1392:7:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;182:1392:7;;;;;;;;;;;;;;;;;;;;;;;;472:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1022:550;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;1022:550:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;472:34;;;;;;;;;;;;;:::o;1022:550::-;1256:17;1356:18;;;;;;;;;;;1377:13;1392;1407:11;1420:3;1425:7;1434:8;1317:126;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1317:126:7;1289:156;;1477:10;1460:105;;;1489:8;1499:13;1514;1529:11;1542:3;1547:7;1556:8;1460:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1022:550;;;;;;;;:::o;182:1392::-;;;;;;;;:::o",
  "source": "pragma solidity ^0.5.0;\nimport \"../Markets/Campaign.sol\";\n\n\n/// @title Campaign factory contract - Allows to create campaign contracts\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract CampaignFactory {\n\n    /*\n     *  Events\n     */\n    event CampaignCreation(address indexed creator, Campaign campaign, Event eventContract, StandardMarketFactory marketFactory, MarketMaker marketMaker, uint24 fee, uint funding, uint deadline);\n\n    /*\n     *  Storage\n     */\n    Campaign public campaignMasterCopy;\n\n    /*\n     *  Public functions\n     */\n    constructor(Campaign _campaignMasterCopy)\n        public\n    {\n        campaignMasterCopy = _campaignMasterCopy;\n    }\n\n    /// @dev Creates a new campaign contract\n    /// @param eventContract Event contract\n    /// @param marketFactory Market factory contract\n    /// @param marketMaker Market maker contract\n    /// @param fee Market fee\n    /// @param funding Initial funding for market\n    /// @param deadline Campaign deadline\n    /// @return Market contract\n    function createCampaign(\n        Event eventContract,\n        StandardMarketFactory marketFactory,\n        MarketMaker marketMaker,\n        uint24 fee,\n        uint funding,\n        uint deadline\n    )\n        public\n        returns (Campaign campaign)\n    {\n        campaign = Campaign(address(new CampaignProxy(\n            address(campaignMasterCopy), eventContract, marketFactory, marketMaker, fee, funding, deadline)));\n        emit CampaignCreation(msg.sender, campaign, eventContract, marketFactory, marketMaker, fee, funding, deadline);\n    }\n}\n",
  "sourcePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/CampaignFactory.sol",
  "ast": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/CampaignFactory.sol",
    "exportedSymbols": {
      "CampaignFactory": [
        2148
      ]
    },
    "id": 2149,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2067,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:7"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/Campaign.sol",
        "file": "../Markets/Campaign.sol",
        "id": 2068,
        "nodeType": "ImportDirective",
        "scope": 2149,
        "sourceUnit": 2066,
        "src": "24:33:7",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          1787
        ],
        "contractKind": "contract",
        "documentation": "@title Campaign factory contract - Allows to create campaign contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 2148,
        "linearizedBaseContracts": [
          2148
        ],
        "name": "CampaignFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 2086,
            "name": "CampaignCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2085,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2070,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "267:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2069,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "267:7:7",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2072,
                  "indexed": false,
                  "name": "campaign",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "292:17:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2071,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "292:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2074,
                  "indexed": false,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "311:19:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2073,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "311:5:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2076,
                  "indexed": false,
                  "name": "marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "332:35:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                    "typeString": "contract StandardMarketFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2075,
                    "name": "StandardMarketFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3266,
                    "src": "332:21:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                      "typeString": "contract StandardMarketFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2078,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "369:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2077,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "369:11:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2080,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "394:10:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 2079,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "394:6:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2082,
                  "indexed": false,
                  "name": "funding",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "406:12:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2081,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "406:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2084,
                  "indexed": false,
                  "name": "deadline",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "420:13:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2083,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "420:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "266:168:7"
            },
            "src": "244:191:7"
          },
          {
            "constant": false,
            "id": 2088,
            "name": "campaignMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 2148,
            "src": "472:34:7",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Campaign_$2065",
              "typeString": "contract Campaign"
            },
            "typeName": {
              "contractScope": null,
              "id": 2087,
              "name": "Campaign",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 2065,
              "src": "472:8:7",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Campaign_$2065",
                "typeString": "contract Campaign"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2097,
              "nodeType": "Block",
              "src": "614:57:7",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2095,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2093,
                      "name": "campaignMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2088,
                      "src": "624:18:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2094,
                      "name": "_campaignMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2090,
                      "src": "645:19:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "src": "624:40:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "id": 2096,
                  "nodeType": "ExpressionStatement",
                  "src": "624:40:7"
                }
              ]
            },
            "documentation": null,
            "id": 2098,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2091,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2090,
                  "name": "_campaignMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 2098,
                  "src": "565:28:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2089,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "565:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "564:30:7"
            },
            "returnParameters": {
              "id": 2092,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "614:0:7"
            },
            "scope": 2148,
            "src": "553:118:7",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2146,
              "nodeType": "Block",
              "src": "1279:293:7",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2132,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2115,
                      "name": "campaign",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2113,
                      "src": "1289:8:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2121,
                                      "name": "campaignMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2088,
                                      "src": "1356:18:7",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_Campaign_$2065",
                                        "typeString": "contract Campaign"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_Campaign_$2065",
                                        "typeString": "contract Campaign"
                                      }
                                    ],
                                    "id": 2120,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "1348:7:7",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 2122,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "1348:27:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2123,
                                  "name": "eventContract",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2100,
                                  "src": "1377:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2124,
                                  "name": "marketFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2102,
                                  "src": "1392:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                                    "typeString": "contract StandardMarketFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2125,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2104,
                                  "src": "1407:11:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2126,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2106,
                                  "src": "1420:3:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2127,
                                  "name": "funding",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2108,
                                  "src": "1425:7:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2128,
                                  "name": "deadline",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2110,
                                  "src": "1434:8:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                                    "typeString": "contract StandardMarketFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "id": 2119,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "1317:17:7",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_contract$_Event_$392_$_t_contract$_StandardMarketFactory_$3266_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$_t_contract$_CampaignProxy_$1787_$",
                                  "typeString": "function (address,contract Event,contract StandardMarketFactory,contract MarketMaker,uint24,uint256,uint256) returns (contract CampaignProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 2118,
                                  "name": "CampaignProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 1787,
                                  "src": "1321:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                    "typeString": "contract CampaignProxy"
                                  }
                                }
                              },
                              "id": 2129,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1317:126:7",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                "typeString": "contract CampaignProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                "typeString": "contract CampaignProxy"
                              }
                            ],
                            "id": 2117,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "1309:7:7",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 2130,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1309:135:7",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 2116,
                        "name": "Campaign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2065,
                        "src": "1300:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_Campaign_$2065_$",
                          "typeString": "type(contract Campaign)"
                        }
                      },
                      "id": 2131,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1300:145:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "src": "1289:156:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "id": 2133,
                  "nodeType": "ExpressionStatement",
                  "src": "1289:156:7"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2135,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "1477:3:7",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2136,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1477:10:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2137,
                        "name": "campaign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2113,
                        "src": "1489:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Campaign_$2065",
                          "typeString": "contract Campaign"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2138,
                        "name": "eventContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2100,
                        "src": "1499:13:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2139,
                        "name": "marketFactory",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2102,
                        "src": "1514:13:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                          "typeString": "contract StandardMarketFactory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2140,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2104,
                        "src": "1529:11:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2141,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2106,
                        "src": "1542:3:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2142,
                        "name": "funding",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2108,
                        "src": "1547:7:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2143,
                        "name": "deadline",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2110,
                        "src": "1556:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_Campaign_$2065",
                          "typeString": "contract Campaign"
                        },
                        {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        },
                        {
                          "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                          "typeString": "contract StandardMarketFactory"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2134,
                      "name": "CampaignCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2086,
                      "src": "1460:16:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_Campaign_$2065_$_t_contract$_Event_$392_$_t_contract$_StandardMarketFactory_$3266_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (address,contract Campaign,contract Event,contract StandardMarketFactory,contract MarketMaker,uint24,uint256,uint256)"
                      }
                    },
                    "id": 2144,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1460:105:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2145,
                  "nodeType": "EmitStatement",
                  "src": "1455:110:7"
                }
              ]
            },
            "documentation": "@dev Creates a new campaign contract\n @param eventContract Event contract\n @param marketFactory Market factory contract\n @param marketMaker Market maker contract\n @param fee Market fee\n @param funding Initial funding for market\n @param deadline Campaign deadline\n @return Market contract",
            "id": 2147,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createCampaign",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2111,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2100,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1055:19:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2099,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "1055:5:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2102,
                  "name": "marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1084:35:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                    "typeString": "contract StandardMarketFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2101,
                    "name": "StandardMarketFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3266,
                    "src": "1084:21:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                      "typeString": "contract StandardMarketFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2104,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1129:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2103,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "1129:11:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2106,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1162:10:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 2105,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "1162:6:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2108,
                  "name": "funding",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1182:12:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2107,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1182:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2110,
                  "name": "deadline",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1204:13:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2109,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1204:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1045:178:7"
            },
            "returnParameters": {
              "id": 2114,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2113,
                  "name": "campaign",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1256:17:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2112,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "1256:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1255:19:7"
            },
            "scope": 2148,
            "src": "1022:550:7",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 2149,
        "src": "182:1392:7"
      }
    ],
    "src": "0:1575:7"
  },
  "legacyAST": {
    "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/CampaignFactory.sol",
    "exportedSymbols": {
      "CampaignFactory": [
        2148
      ]
    },
    "id": 2149,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2067,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:7"
      },
      {
        "absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Markets/Campaign.sol",
        "file": "../Markets/Campaign.sol",
        "id": 2068,
        "nodeType": "ImportDirective",
        "scope": 2149,
        "sourceUnit": 2066,
        "src": "24:33:7",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          1787
        ],
        "contractKind": "contract",
        "documentation": "@title Campaign factory contract - Allows to create campaign contracts\n @author Stefan George - <stefan@gnosis.pm>",
        "fullyImplemented": true,
        "id": 2148,
        "linearizedBaseContracts": [
          2148
        ],
        "name": "CampaignFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 2086,
            "name": "CampaignCreation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2085,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2070,
                  "indexed": true,
                  "name": "creator",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "267:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2069,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "267:7:7",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2072,
                  "indexed": false,
                  "name": "campaign",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "292:17:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2071,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "292:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2074,
                  "indexed": false,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "311:19:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2073,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "311:5:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2076,
                  "indexed": false,
                  "name": "marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "332:35:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                    "typeString": "contract StandardMarketFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2075,
                    "name": "StandardMarketFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3266,
                    "src": "332:21:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                      "typeString": "contract StandardMarketFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2078,
                  "indexed": false,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "369:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2077,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "369:11:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2080,
                  "indexed": false,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "394:10:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 2079,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "394:6:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2082,
                  "indexed": false,
                  "name": "funding",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "406:12:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2081,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "406:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2084,
                  "indexed": false,
                  "name": "deadline",
                  "nodeType": "VariableDeclaration",
                  "scope": 2086,
                  "src": "420:13:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2083,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "420:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "266:168:7"
            },
            "src": "244:191:7"
          },
          {
            "constant": false,
            "id": 2088,
            "name": "campaignMasterCopy",
            "nodeType": "VariableDeclaration",
            "scope": 2148,
            "src": "472:34:7",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Campaign_$2065",
              "typeString": "contract Campaign"
            },
            "typeName": {
              "contractScope": null,
              "id": 2087,
              "name": "Campaign",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 2065,
              "src": "472:8:7",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Campaign_$2065",
                "typeString": "contract Campaign"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2097,
              "nodeType": "Block",
              "src": "614:57:7",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2095,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2093,
                      "name": "campaignMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2088,
                      "src": "624:18:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2094,
                      "name": "_campaignMasterCopy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2090,
                      "src": "645:19:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "src": "624:40:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "id": 2096,
                  "nodeType": "ExpressionStatement",
                  "src": "624:40:7"
                }
              ]
            },
            "documentation": null,
            "id": 2098,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2091,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2090,
                  "name": "_campaignMasterCopy",
                  "nodeType": "VariableDeclaration",
                  "scope": 2098,
                  "src": "565:28:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2089,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "565:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "564:30:7"
            },
            "returnParameters": {
              "id": 2092,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "614:0:7"
            },
            "scope": 2148,
            "src": "553:118:7",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2146,
              "nodeType": "Block",
              "src": "1279:293:7",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2132,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2115,
                      "name": "campaign",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2113,
                      "src": "1289:8:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2121,
                                      "name": "campaignMasterCopy",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2088,
                                      "src": "1356:18:7",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_Campaign_$2065",
                                        "typeString": "contract Campaign"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_contract$_Campaign_$2065",
                                        "typeString": "contract Campaign"
                                      }
                                    ],
                                    "id": 2120,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "1348:7:7",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": "address"
                                  },
                                  "id": 2122,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "1348:27:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2123,
                                  "name": "eventContract",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2100,
                                  "src": "1377:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2124,
                                  "name": "marketFactory",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2102,
                                  "src": "1392:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                                    "typeString": "contract StandardMarketFactory"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2125,
                                  "name": "marketMaker",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2104,
                                  "src": "1407:11:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2126,
                                  "name": "fee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2106,
                                  "src": "1420:3:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2127,
                                  "name": "funding",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2108,
                                  "src": "1425:7:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2128,
                                  "name": "deadline",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2110,
                                  "src": "1434:8:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_Event_$392",
                                    "typeString": "contract Event"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                                    "typeString": "contract StandardMarketFactory"
                                  },
                                  {
                                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                                    "typeString": "contract MarketMaker"
                                  },
                                  {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "id": 2119,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "NewExpression",
                                "src": "1317:17:7",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_contract$_Event_$392_$_t_contract$_StandardMarketFactory_$3266_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$_t_contract$_CampaignProxy_$1787_$",
                                  "typeString": "function (address,contract Event,contract StandardMarketFactory,contract MarketMaker,uint24,uint256,uint256) returns (contract CampaignProxy)"
                                },
                                "typeName": {
                                  "contractScope": null,
                                  "id": 2118,
                                  "name": "CampaignProxy",
                                  "nodeType": "UserDefinedTypeName",
                                  "referencedDeclaration": 1787,
                                  "src": "1321:13:7",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                    "typeString": "contract CampaignProxy"
                                  }
                                }
                              },
                              "id": 2129,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1317:126:7",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                "typeString": "contract CampaignProxy"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_CampaignProxy_$1787",
                                "typeString": "contract CampaignProxy"
                              }
                            ],
                            "id": 2117,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "1309:7:7",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 2130,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1309:135:7",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 2116,
                        "name": "Campaign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2065,
                        "src": "1300:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_Campaign_$2065_$",
                          "typeString": "type(contract Campaign)"
                        }
                      },
                      "id": 2131,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1300:145:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Campaign_$2065",
                        "typeString": "contract Campaign"
                      }
                    },
                    "src": "1289:156:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "id": 2133,
                  "nodeType": "ExpressionStatement",
                  "src": "1289:156:7"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2135,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7920,
                          "src": "1477:3:7",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2136,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1477:10:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2137,
                        "name": "campaign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2113,
                        "src": "1489:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Campaign_$2065",
                          "typeString": "contract Campaign"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2138,
                        "name": "eventContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2100,
                        "src": "1499:13:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2139,
                        "name": "marketFactory",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2102,
                        "src": "1514:13:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                          "typeString": "contract StandardMarketFactory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2140,
                        "name": "marketMaker",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2104,
                        "src": "1529:11:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2141,
                        "name": "fee",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2106,
                        "src": "1542:3:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2142,
                        "name": "funding",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2108,
                        "src": "1547:7:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2143,
                        "name": "deadline",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2110,
                        "src": "1556:8:7",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_contract$_Campaign_$2065",
                          "typeString": "contract Campaign"
                        },
                        {
                          "typeIdentifier": "t_contract$_Event_$392",
                          "typeString": "contract Event"
                        },
                        {
                          "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                          "typeString": "contract StandardMarketFactory"
                        },
                        {
                          "typeIdentifier": "t_contract$_MarketMaker_$1606",
                          "typeString": "contract MarketMaker"
                        },
                        {
                          "typeIdentifier": "t_uint24",
                          "typeString": "uint24"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2134,
                      "name": "CampaignCreation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2086,
                      "src": "1460:16:7",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_contract$_Campaign_$2065_$_t_contract$_Event_$392_$_t_contract$_StandardMarketFactory_$3266_$_t_contract$_MarketMaker_$1606_$_t_uint24_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (address,contract Campaign,contract Event,contract StandardMarketFactory,contract MarketMaker,uint24,uint256,uint256)"
                      }
                    },
                    "id": 2144,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1460:105:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2145,
                  "nodeType": "EmitStatement",
                  "src": "1455:110:7"
                }
              ]
            },
            "documentation": "@dev Creates a new campaign contract\n @param eventContract Event contract\n @param marketFactory Market factory contract\n @param marketMaker Market maker contract\n @param fee Market fee\n @param funding Initial funding for market\n @param deadline Campaign deadline\n @return Market contract",
            "id": 2147,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createCampaign",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2111,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2100,
                  "name": "eventContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1055:19:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Event_$392",
                    "typeString": "contract Event"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2099,
                    "name": "Event",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 392,
                    "src": "1055:5:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Event_$392",
                      "typeString": "contract Event"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2102,
                  "name": "marketFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1084:35:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                    "typeString": "contract StandardMarketFactory"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2101,
                    "name": "StandardMarketFactory",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3266,
                    "src": "1084:21:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_StandardMarketFactory_$3266",
                      "typeString": "contract StandardMarketFactory"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2104,
                  "name": "marketMaker",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1129:23:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_MarketMaker_$1606",
                    "typeString": "contract MarketMaker"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2103,
                    "name": "MarketMaker",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1606,
                    "src": "1129:11:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_MarketMaker_$1606",
                      "typeString": "contract MarketMaker"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2106,
                  "name": "fee",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1162:10:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 2105,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "1162:6:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2108,
                  "name": "funding",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1182:12:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2107,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1182:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2110,
                  "name": "deadline",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1204:13:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2109,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "1204:4:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1045:178:7"
            },
            "returnParameters": {
              "id": 2114,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2113,
                  "name": "campaign",
                  "nodeType": "VariableDeclaration",
                  "scope": 2147,
                  "src": "1256:17:7",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Campaign_$2065",
                    "typeString": "contract Campaign"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2112,
                    "name": "Campaign",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2065,
                    "src": "1256:8:7",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Campaign_$2065",
                      "typeString": "contract Campaign"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1255:19:7"
            },
            "scope": 2148,
            "src": "1022:550:7",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 2149,
        "src": "182:1392:7"
      }
    ],
    "src": "0:1575:7"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.6+commit.b259423e.Emscripten.clang"
  },
  "networks": {
    "3": {
      "events": {},
      "links": {},
      "address": "0xb743129df46a7b375a6310ee067c8d069a38d797",
      "transactionHash": "0xf7ba8a9b4c441da6a70af6e5e05e48c39f8683c423e918b3801c09abcfceb4e2"
    },
    "4": {
      "events": {},
      "links": {},
      "address": "0x41245e9202e708b293aa3b67874cf1374714ede2",
      "transactionHash": "0xeb302fdecc0c551cc0591d7a1037705fe5cfbd41784fb832309fb8b636fc039e"
    },
    "42": {
      "events": {},
      "links": {},
      "address": "0xb20b804bf7a379ade00c5aaa920a0170f5ef570f",
      "transactionHash": "0x37d70f32048e4cb2f31060b2c40898259094f56b26c2a139dd9c54988a09fedb"
    },
    "437894314312": {
      "events": {},
      "links": {},
      "address": "0x21a59654176f2689d12e828b77a783072cd26680",
      "transactionHash": "0x6e3a78d5a27dd88a78832c9388d449ca7b97f4bbe3f4071e2dede10768afca48"
    }
  },
  "schemaVersion": "3.0.11",
  "updatedAt": "2019-09-20T17:46:52.145Z",
  "devdoc": {
    "author": "Stefan George - <stefan@gnosis.pm>",
    "methods": {
      "createCampaign(address,address,address,uint24,uint256,uint256)": {
        "details": "Creates a new campaign contract",
        "params": {
          "deadline": "Campaign deadline",
          "eventContract": "Event contract",
          "fee": "Market fee",
          "funding": "Initial funding for market",
          "marketFactory": "Market factory contract",
          "marketMaker": "Market maker contract"
        },
        "return": "Market contract"
      }
    },
    "title": "Campaign factory contract - Allows to create campaign contracts"
  },
  "userdoc": {
    "methods": {}
  }
}