{
  "contractName": "AppProxyFactory",
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "name": "proxy",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "isUpgradeable",
          "type": "bool"
        },
        {
          "indexed": false,
          "name": "appId",
          "type": "bytes32"
        }
      ],
      "name": "NewAppProxy",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_kernel",
          "type": "address"
        },
        {
          "name": "_appId",
          "type": "bytes32"
        }
      ],
      "name": "newAppProxy",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_kernel",
          "type": "address"
        },
        {
          "name": "_appId",
          "type": "bytes32"
        },
        {
          "name": "_initializePayload",
          "type": "bytes"
        }
      ],
      "name": "newAppProxy",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_kernel",
          "type": "address"
        },
        {
          "name": "_appId",
          "type": "bytes32"
        },
        {
          "name": "_initializePayload",
          "type": "bytes"
        }
      ],
      "name": "newAppProxyPinned",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_kernel",
          "type": "address"
        },
        {
          "name": "_appId",
          "type": "bytes32"
        }
      ],
      "name": "newAppProxyPinned",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x608060405234801561001057600080fd5b50611292806100206000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663d162f8b08114610066578063e156a8f314610105578063ede658b014610136578063ff289fc5146101ac575b600080fd5b34801561007257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506101dd9650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561011157600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff600435166024356102fc565b34801561014257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506103209650505050505050565b3480156101b857600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff6004351660243561043f565b6000808484846101eb61045c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015610299573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526000602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b604080516000808252602082019092526103199084908490610320565b9392505050565b60008084848461032e61046c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b8381101561038c578181015183820152602001610374565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f0801580156103dc573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526001602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b6040805160008082526020820190925261031990849084906101dd565b6040516106fd8061047d83390190565b6040516106ed80610b7a833901905600608060405234801561001057600080fd5b506040516106fd3803806106fd8339810160409081528151602083015191830151909201828282600061004b8464010000000061017a810204565b61005d836401000000006101a2810204565b61006f836401000000006101d9810204565b90506000825111156101185761008d816401000000006102a9810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b50505050610145610137836101d9640100000000026401000000009004565b6401000000006102d6810204565b6101676101596401000000006102fb810204565b6401000000006102a9810204565b151561017257600080fd5b505050610354565b61019f6000805160206106bd8339815191528264010000000061032661032682021704565b50565b61019f7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b8264010000000061032661032682021704565b60006101ec64010000000061032a810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561027757600080fd5b505af115801561028b573d6000803e3d6000fd5b505050506040513d60208110156102a157600080fd5b505192915050565b600080600160a060020a03831615156102c557600091506102d0565b823b90506000811191505b50919050565b61019f6000805160206106dd8339815191528264010000000061032661032682021704565b60006103216000805160206106dd83398151915264010000000061031e61035082021704565b905090565b9055565b60006103216000805160206106bd83398151915264010000000061031e61035082021704565b5490565b61035a806103636000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e3565b9050610126816000368080601f016020809104026020016040519081016040528093929190818152602001838380828437506101f2945050505050565b505050005b34801561013757600080fd5b50610140610233565b60408051918252519081900360200190f35b34801561015e57600080fd5b50610167610238565b604080519115158252519081900360200190f35b34801561018757600080fd5b506101906101e3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b50610140610263565b3480156101da57600080fd5b5061019061028e565b60006101ed6102b9565b905090565b60006101fd836102e4565b151561020857600080fd5b612710905060008083516020850186855a03f43d604051816000823e82801561022f578282f35b8282fd5b600190565b60006101ed7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea61031e565b60006101ed7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b61031e565b60006101ed7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b61031e565b60006101ed7fdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e61031e565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561030d5760009150610318565b823b90506000811191505b50919050565b5490565b5490565b9055565b90555600a165627a7a7230582011dde276c5373896f3034af8449357ad9bb5fbfcfd199a85aeef252b0a933c3b00294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137bdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e608060405234801561001057600080fd5b506040516106ed3803806106ed8339810160409081528151602083015191830151909201828282600061004b84640100000000610124810204565b61005d8364010000000061014c810204565b61006f83640100000000610183810204565b90506000825111156101185761008d81640100000000610253810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b505050505050506102b3565b6101496000805160206106cd833981519152826401000000006103d761028082021704565b50565b6101497fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b826401000000006103d761028082021704565b6000610196640100000000610284810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b505050506040513d602081101561024b57600080fd5b505192915050565b600080600160a060020a038316151561026f576000915061027a565b823b90506000811191505b50919050565b9055565b60006102aa6000805160206106cd8339815191526401000000006103cf6102af82021704565b905090565b5490565b61040b806102c26000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e3565b9050610126816000368080601f016020809104026020016040519081016040528093929190818152602001838380828437506101fa945050505050565b505050005b34801561013757600080fd5b5061014061023b565b60408051918252519081900360200190f35b34801561015e57600080fd5b50610167610240565b604080519115158252519081900360200190f35b34801561018757600080fd5b506101906101e3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b5061014061026b565b3480156101da57600080fd5b50610190610296565b60006101f56101f061026b565b6102c1565b905090565b600061020583610395565b151561021057600080fd5b612710905060008083516020850186855a03f43d604051816000823e828015610237578282f35b8282fd5b600290565b60006101f57f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6103cf565b60006101f57fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6103cf565b60006101f57f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b6103cf565b60006102cb610296565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b15801561036357600080fd5b505af1158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505192915050565b60008073ffffffffffffffffffffffffffffffffffffffff831615156103be57600091506103c9565b823b90506000811191505b50919050565b5490565b5490565b9055565b90555600a165627a7a7230582037fda6007dae017dcd94ca2548a6ac816a59129ff8c0a1770a132538939f53c200294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137ba165627a7a7230582073c80e3ee9c0676e36242a187c6a19791c0193a0cea6ad9624208df43f6f664b0029",
  "deployedBytecode": "0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663d162f8b08114610066578063e156a8f314610105578063ede658b014610136578063ff289fc5146101ac575b600080fd5b34801561007257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506101dd9650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561011157600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff600435166024356102fc565b34801561014257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506103209650505050505050565b3480156101b857600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff6004351660243561043f565b6000808484846101eb61045c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015610299573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526000602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b604080516000808252602082019092526103199084908490610320565b9392505050565b60008084848461032e61046c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b8381101561038c578181015183820152602001610374565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f0801580156103dc573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526001602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b6040805160008082526020820190925261031990849084906101dd565b6040516106fd8061047d83390190565b6040516106ed80610b7a833901905600608060405234801561001057600080fd5b506040516106fd3803806106fd8339810160409081528151602083015191830151909201828282600061004b8464010000000061017a810204565b61005d836401000000006101a2810204565b61006f836401000000006101d9810204565b90506000825111156101185761008d816401000000006102a9810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b50505050610145610137836101d9640100000000026401000000009004565b6401000000006102d6810204565b6101676101596401000000006102fb810204565b6401000000006102a9810204565b151561017257600080fd5b505050610354565b61019f6000805160206106bd8339815191528264010000000061032661032682021704565b50565b61019f7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b8264010000000061032661032682021704565b60006101ec64010000000061032a810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561027757600080fd5b505af115801561028b573d6000803e3d6000fd5b505050506040513d60208110156102a157600080fd5b505192915050565b600080600160a060020a03831615156102c557600091506102d0565b823b90506000811191505b50919050565b61019f6000805160206106dd8339815191528264010000000061032661032682021704565b60006103216000805160206106dd83398151915264010000000061031e61035082021704565b905090565b9055565b60006103216000805160206106bd83398151915264010000000061031e61035082021704565b5490565b61035a806103636000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e3565b9050610126816000368080601f016020809104026020016040519081016040528093929190818152602001838380828437506101f2945050505050565b505050005b34801561013757600080fd5b50610140610233565b60408051918252519081900360200190f35b34801561015e57600080fd5b50610167610238565b604080519115158252519081900360200190f35b34801561018757600080fd5b506101906101e3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b50610140610263565b3480156101da57600080fd5b5061019061028e565b60006101ed6102b9565b905090565b60006101fd836102e4565b151561020857600080fd5b612710905060008083516020850186855a03f43d604051816000823e82801561022f578282f35b8282fd5b600190565b60006101ed7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea61031e565b60006101ed7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b61031e565b60006101ed7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b61031e565b60006101ed7fdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e61031e565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561030d5760009150610318565b823b90506000811191505b50919050565b5490565b5490565b9055565b90555600a165627a7a7230582011dde276c5373896f3034af8449357ad9bb5fbfcfd199a85aeef252b0a933c3b00294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137bdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e608060405234801561001057600080fd5b506040516106ed3803806106ed8339810160409081528151602083015191830151909201828282600061004b84640100000000610124810204565b61005d8364010000000061014c810204565b61006f83640100000000610183810204565b90506000825111156101185761008d81640100000000610253810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b505050505050506102b3565b6101496000805160206106cd833981519152826401000000006103d761028082021704565b50565b6101497fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b826401000000006103d761028082021704565b6000610196640100000000610284810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b505050506040513d602081101561024b57600080fd5b505192915050565b600080600160a060020a038316151561026f576000915061027a565b823b90506000811191505b50919050565b9055565b60006102aa6000805160206106cd8339815191526401000000006103cf6102af82021704565b905090565b5490565b61040b806102c26000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e3565b9050610126816000368080601f016020809104026020016040519081016040528093929190818152602001838380828437506101fa945050505050565b505050005b34801561013757600080fd5b5061014061023b565b60408051918252519081900360200190f35b34801561015e57600080fd5b50610167610240565b604080519115158252519081900360200190f35b34801561018757600080fd5b506101906101e3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b5061014061026b565b3480156101da57600080fd5b50610190610296565b60006101f56101f061026b565b6102c1565b905090565b600061020583610395565b151561021057600080fd5b612710905060008083516020850186855a03f43d604051816000823e828015610237578282f35b8282fd5b600290565b60006101f57f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6103cf565b60006101f57fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6103cf565b60006101f57f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b6103cf565b60006102cb610296565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b15801561036357600080fd5b505af1158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505192915050565b60008073ffffffffffffffffffffffffffffffffffffffff831615156103be57600091506103c9565b823b90506000811191505b50919050565b5490565b5490565b9055565b90555600a165627a7a7230582037fda6007dae017dcd94ca2548a6ac816a59129ff8c0a1770a132538939f53c200294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137ba165627a7a7230582073c80e3ee9c0676e36242a187c6a19791c0193a0cea6ad9624208df43f6f664b0029",
  "sourceMap": "106:2063:48:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106:2063:48;;;;;;;",
  "deployedSourceMap": "106:2063:48:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1875:292;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1875:292:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1875:292:48;;-1:-1:-1;1875:292:48;;-1:-1:-1;;;;;;;1875:292:48;;;;;;;;;;;;;;;;;;;;433:157;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;433:157:48;;;;;;;;;866:300;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;866:300:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;866:300:48;;-1:-1:-1;866:300:48;;-1:-1:-1;;;;;;;866:300:48;1384:164;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1384:164:48;;;;;;;;;1875:292;1977:14;2003:20;2045:7;2054:6;2062:18;2026:55;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2026:55:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;2096:42:48;;;;;;;;2124:5;2096:42;;;;;;;;;;;;2003:78;;-1:-1:-1;2096:42:48;;;;;;;;;;2155:5;1875:292;-1:-1:-1;;;;1875:292:48:o;433:157::-;570:12;;;503:19;570:12;;;;;;;;;541:42;;553:7;;562:6;;541:11;:42::i;:::-;534:49;433:157;-1:-1:-1;;;433:157:48:o;866:300::-;962:19;993:25;1045:7;1054:6;1062:18;1021:60;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1021:60:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;1096:41:48;;;;;;;;1124:4;1096:41;;;;;;;;;;;;993:88;;-1:-1:-1;1096:41:48;;;;;;;;;;1154:5;866:300;-1:-1:-1;;;;866:300:48:o;1384:164::-;1528:12;;;1460:14;1528:12;;;;;;;;;1493:48;;1511:7;;1520:6;;1493:17;:48::i;106:2063::-;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o",
  "source": "pragma solidity 0.4.24;\n\nimport \"../apps/AppProxyUpgradeable.sol\";\nimport \"../apps/AppProxyPinned.sol\";\n\n\ncontract AppProxyFactory {\n    event NewAppProxy(address proxy, bool isUpgradeable, bytes32 appId);\n\n    /**\n    * @notice Create a new upgradeable app instance on `_kernel` with identifier `_appId`\n    * @param _kernel App's Kernel reference\n    * @param _appId Identifier for app\n    * @return AppProxyUpgradeable\n    */\n    function newAppProxy(IKernel _kernel, bytes32 _appId) public returns (AppProxyUpgradeable) {\n        return newAppProxy(_kernel, _appId, new bytes(0));\n    }\n\n    /**\n    * @notice Create a new upgradeable app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n    * @param _kernel App's Kernel reference\n    * @param _appId Identifier for app\n    * @return AppProxyUpgradeable\n    */\n    function newAppProxy(IKernel _kernel, bytes32 _appId, bytes _initializePayload) public returns (AppProxyUpgradeable) {\n        AppProxyUpgradeable proxy = new AppProxyUpgradeable(_kernel, _appId, _initializePayload);\n        emit NewAppProxy(address(proxy), true, _appId);\n        return proxy;\n    }\n\n    /**\n    * @notice Create a new pinned app instance on `_kernel` with identifier `_appId`\n    * @param _kernel App's Kernel reference\n    * @param _appId Identifier for app\n    * @return AppProxyPinned\n    */\n    function newAppProxyPinned(IKernel _kernel, bytes32 _appId) public returns (AppProxyPinned) {\n        return newAppProxyPinned(_kernel, _appId, new bytes(0));\n    }\n\n    /**\n    * @notice Create a new pinned app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n    * @param _kernel App's Kernel reference\n    * @param _appId Identifier for app\n    * @param _initializePayload Proxy initialization payload\n    * @return AppProxyPinned\n    */\n    function newAppProxyPinned(IKernel _kernel, bytes32 _appId, bytes _initializePayload) public returns (AppProxyPinned) {\n        AppProxyPinned proxy = new AppProxyPinned(_kernel, _appId, _initializePayload);\n        emit NewAppProxy(address(proxy), false, _appId);\n        return proxy;\n    }\n}\n",
  "sourcePath": "@aragon/os/contracts/factory/AppProxyFactory.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/factory/AppProxyFactory.sol",
    "exportedSymbols": {
      "AppProxyFactory": [
        12239
      ]
    },
    "id": 12240,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 12128,
        "literals": [
          "solidity",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:48"
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyUpgradeable.sol",
        "file": "../apps/AppProxyUpgradeable.sol",
        "id": 12129,
        "nodeType": "ImportDirective",
        "scope": 12240,
        "sourceUnit": 10304,
        "src": "25:41:48",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyPinned.sol",
        "file": "../apps/AppProxyPinned.sol",
        "id": 12130,
        "nodeType": "ImportDirective",
        "scope": 12240,
        "sourceUnit": 10264,
        "src": "67:36:48",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          10263,
          10303
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 12239,
        "linearizedBaseContracts": [
          12239
        ],
        "name": "AppProxyFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 12138,
            "name": "NewAppProxy",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 12137,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12132,
                  "indexed": false,
                  "name": "proxy",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "155:13:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 12131,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "155:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12134,
                  "indexed": false,
                  "name": "isUpgradeable",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "170:18:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 12133,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "170:4:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12136,
                  "indexed": false,
                  "name": "appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "190:13:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12135,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "190:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "154:50:48"
            },
            "src": "137:68:48"
          },
          {
            "body": {
              "id": 12156,
              "nodeType": "Block",
              "src": "524:66:48",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12148,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12140,
                        "src": "553:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12149,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12142,
                        "src": "562:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 12152,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "580:1:48",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            },
                            "value": "0"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            }
                          ],
                          "id": 12151,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "570:9:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 12150,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "574:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 12153,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "570:12:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12147,
                      "name": "newAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        12157,
                        12188
                      ],
                      "referencedDeclaration": 12188,
                      "src": "541:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$10303_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      }
                    },
                    "id": 12154,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "541:42:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 12146,
                  "id": 12155,
                  "nodeType": "Return",
                  "src": "534:49:48"
                }
              ]
            },
            "documentation": "@notice Create a new upgradeable app instance on `_kernel` with identifier `_appId`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyUpgradeable",
            "id": 12157,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12143,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12140,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "454:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12139,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "454:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12142,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "471:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12141,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "471:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "453:33:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12146,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12145,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "503:19:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12144,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10303,
                    "src": "503:19:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "502:21:48"
            },
            "scope": 12239,
            "src": "433:157:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12187,
              "nodeType": "Block",
              "src": "983:183:48",
              "statements": [
                {
                  "assignments": [
                    12169
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 12169,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 12188,
                      "src": "993:25:48",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                        "typeString": "contract AppProxyUpgradeable"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12168,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10303,
                        "src": "993:19:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 12176,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12172,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12159,
                        "src": "1045:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12173,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12161,
                        "src": "1054:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12174,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12163,
                        "src": "1062:18:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12171,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1021:23:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$10303_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12170,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10303,
                        "src": "1025:19:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      }
                    },
                    "id": 12175,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1021:60:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "993:88:48"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 12179,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 12169,
                            "src": "1116:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          ],
                          "id": 12178,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1108:7:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 12180,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1108:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "74727565",
                        "id": 12181,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1124:4:48",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "true"
                      },
                      {
                        "argumentTypes": null,
                        "id": 12182,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12161,
                        "src": "1130:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 12177,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12138,
                      "src": "1096:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 12183,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1096:41:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 12184,
                  "nodeType": "EmitStatement",
                  "src": "1091:46:48"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 12185,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 12169,
                    "src": "1154:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 12167,
                  "id": 12186,
                  "nodeType": "Return",
                  "src": "1147:12:48"
                }
              ]
            },
            "documentation": "@notice Create a new upgradeable app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyUpgradeable",
            "id": 12188,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12159,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "887:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12158,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "887:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12161,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "904:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12160,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "904:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12163,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "920:24:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 12162,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "920:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "886:59:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12167,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12166,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "962:19:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12165,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10303,
                    "src": "962:19:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "961:21:48"
            },
            "scope": 12239,
            "src": "866:300:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12206,
              "nodeType": "Block",
              "src": "1476:72:48",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12198,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12190,
                        "src": "1511:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12199,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12192,
                        "src": "1520:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 12202,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1538:1:48",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            },
                            "value": "0"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            }
                          ],
                          "id": 12201,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "1528:9:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 12200,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "1532:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 12203,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1528:12:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12197,
                      "name": "newAppProxyPinned",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        12207,
                        12238
                      ],
                      "referencedDeclaration": 12238,
                      "src": "1493:17:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$10263_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      }
                    },
                    "id": 12204,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1493:48:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 12196,
                  "id": 12205,
                  "nodeType": "Return",
                  "src": "1486:55:48"
                }
              ]
            },
            "documentation": "@notice Create a new pinned app instance on `_kernel` with identifier `_appId`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyPinned",
            "id": 12207,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12193,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12190,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1411:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12189,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "1411:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12192,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1428:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12191,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1428:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1410:33:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12196,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12195,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1460:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12194,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10263,
                    "src": "1460:14:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1459:16:48"
            },
            "scope": 12239,
            "src": "1384:164:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12237,
              "nodeType": "Block",
              "src": "1993:174:48",
              "statements": [
                {
                  "assignments": [
                    12219
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 12219,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 12238,
                      "src": "2003:20:48",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                        "typeString": "contract AppProxyPinned"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12218,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10263,
                        "src": "2003:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                          "typeString": "contract AppProxyPinned"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 12226,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12222,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12209,
                        "src": "2045:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12223,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12211,
                        "src": "2054:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12224,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12213,
                        "src": "2062:18:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12221,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "2026:18:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$10263_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12220,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10263,
                        "src": "2030:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                          "typeString": "contract AppProxyPinned"
                        }
                      }
                    },
                    "id": 12225,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2026:55:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2003:78:48"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 12229,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 12219,
                            "src": "2116:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                              "typeString": "contract AppProxyPinned"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                              "typeString": "contract AppProxyPinned"
                            }
                          ],
                          "id": 12228,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "2108:7:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 12230,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2108:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "66616c7365",
                        "id": 12231,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2124:5:48",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "false"
                      },
                      {
                        "argumentTypes": null,
                        "id": 12232,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12211,
                        "src": "2131:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 12227,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12138,
                      "src": "2096:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 12233,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2096:42:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 12234,
                  "nodeType": "EmitStatement",
                  "src": "2091:47:48"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 12235,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 12219,
                    "src": "2155:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 12217,
                  "id": 12236,
                  "nodeType": "Return",
                  "src": "2148:12:48"
                }
              ]
            },
            "documentation": "@notice Create a new pinned app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@param _initializePayload Proxy initialization payload\n@return AppProxyPinned",
            "id": 12238,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12214,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12209,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1902:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12208,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "1902:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12211,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1919:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12210,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1919:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12213,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1935:24:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 12212,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1935:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1901:59:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12217,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12216,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1977:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12215,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10263,
                    "src": "1977:14:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1976:16:48"
            },
            "scope": 12239,
            "src": "1875:292:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 12240,
        "src": "106:2063:48"
      }
    ],
    "src": "0:2170:48"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/factory/AppProxyFactory.sol",
    "exportedSymbols": {
      "AppProxyFactory": [
        12239
      ]
    },
    "id": 12240,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 12128,
        "literals": [
          "solidity",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:48"
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyUpgradeable.sol",
        "file": "../apps/AppProxyUpgradeable.sol",
        "id": 12129,
        "nodeType": "ImportDirective",
        "scope": 12240,
        "sourceUnit": 10304,
        "src": "25:41:48",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyPinned.sol",
        "file": "../apps/AppProxyPinned.sol",
        "id": 12130,
        "nodeType": "ImportDirective",
        "scope": 12240,
        "sourceUnit": 10264,
        "src": "67:36:48",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          10263,
          10303
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 12239,
        "linearizedBaseContracts": [
          12239
        ],
        "name": "AppProxyFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 12138,
            "name": "NewAppProxy",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 12137,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12132,
                  "indexed": false,
                  "name": "proxy",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "155:13:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 12131,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "155:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12134,
                  "indexed": false,
                  "name": "isUpgradeable",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "170:18:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 12133,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "170:4:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12136,
                  "indexed": false,
                  "name": "appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12138,
                  "src": "190:13:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12135,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "190:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "154:50:48"
            },
            "src": "137:68:48"
          },
          {
            "body": {
              "id": 12156,
              "nodeType": "Block",
              "src": "524:66:48",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12148,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12140,
                        "src": "553:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12149,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12142,
                        "src": "562:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 12152,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "580:1:48",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            },
                            "value": "0"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            }
                          ],
                          "id": 12151,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "570:9:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 12150,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "574:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 12153,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "570:12:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12147,
                      "name": "newAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        12157,
                        12188
                      ],
                      "referencedDeclaration": 12188,
                      "src": "541:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$10303_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      }
                    },
                    "id": 12154,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "541:42:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 12146,
                  "id": 12155,
                  "nodeType": "Return",
                  "src": "534:49:48"
                }
              ]
            },
            "documentation": "@notice Create a new upgradeable app instance on `_kernel` with identifier `_appId`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyUpgradeable",
            "id": 12157,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12143,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12140,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "454:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12139,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "454:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12142,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "471:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12141,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "471:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "453:33:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12146,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12145,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12157,
                  "src": "503:19:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12144,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10303,
                    "src": "503:19:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "502:21:48"
            },
            "scope": 12239,
            "src": "433:157:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12187,
              "nodeType": "Block",
              "src": "983:183:48",
              "statements": [
                {
                  "assignments": [
                    12169
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 12169,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 12188,
                      "src": "993:25:48",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                        "typeString": "contract AppProxyUpgradeable"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12168,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10303,
                        "src": "993:19:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 12176,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12172,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12159,
                        "src": "1045:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12173,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12161,
                        "src": "1054:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12174,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12163,
                        "src": "1062:18:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12171,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1021:23:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$10303_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12170,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10303,
                        "src": "1025:19:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      }
                    },
                    "id": 12175,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1021:60:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "993:88:48"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 12179,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 12169,
                            "src": "1116:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          ],
                          "id": 12178,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1108:7:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 12180,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1108:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "74727565",
                        "id": 12181,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1124:4:48",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "true"
                      },
                      {
                        "argumentTypes": null,
                        "id": 12182,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12161,
                        "src": "1130:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 12177,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12138,
                      "src": "1096:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 12183,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1096:41:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 12184,
                  "nodeType": "EmitStatement",
                  "src": "1091:46:48"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 12185,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 12169,
                    "src": "1154:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 12167,
                  "id": 12186,
                  "nodeType": "Return",
                  "src": "1147:12:48"
                }
              ]
            },
            "documentation": "@notice Create a new upgradeable app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyUpgradeable",
            "id": 12188,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12159,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "887:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12158,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "887:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12161,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "904:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12160,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "904:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12163,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "920:24:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 12162,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "920:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "886:59:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12167,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12166,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12188,
                  "src": "962:19:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12165,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10303,
                    "src": "962:19:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$10303",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "961:21:48"
            },
            "scope": 12239,
            "src": "866:300:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12206,
              "nodeType": "Block",
              "src": "1476:72:48",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12198,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12190,
                        "src": "1511:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12199,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12192,
                        "src": "1520:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 12202,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1538:1:48",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            },
                            "value": "0"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            }
                          ],
                          "id": 12201,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "1528:9:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 12200,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "1532:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 12203,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1528:12:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12197,
                      "name": "newAppProxyPinned",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        12207,
                        12238
                      ],
                      "referencedDeclaration": 12238,
                      "src": "1493:17:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$10263_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      }
                    },
                    "id": 12204,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1493:48:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 12196,
                  "id": 12205,
                  "nodeType": "Return",
                  "src": "1486:55:48"
                }
              ]
            },
            "documentation": "@notice Create a new pinned app instance on `_kernel` with identifier `_appId`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@return AppProxyPinned",
            "id": 12207,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12193,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12190,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1411:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12189,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "1411:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12192,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1428:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12191,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1428:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1410:33:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12196,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12195,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12207,
                  "src": "1460:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12194,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10263,
                    "src": "1460:14:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1459:16:48"
            },
            "scope": 12239,
            "src": "1384:164:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 12237,
              "nodeType": "Block",
              "src": "1993:174:48",
              "statements": [
                {
                  "assignments": [
                    12219
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 12219,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 12238,
                      "src": "2003:20:48",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                        "typeString": "contract AppProxyPinned"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12218,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10263,
                        "src": "2003:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                          "typeString": "contract AppProxyPinned"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 12226,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 12222,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12209,
                        "src": "2045:7:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12223,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12211,
                        "src": "2054:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 12224,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12213,
                        "src": "2062:18:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$12600",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 12221,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "2026:18:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$12600_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$10263_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 12220,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 10263,
                        "src": "2030:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                          "typeString": "contract AppProxyPinned"
                        }
                      }
                    },
                    "id": 12225,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2026:55:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2003:78:48"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 12229,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 12219,
                            "src": "2116:5:48",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                              "typeString": "contract AppProxyPinned"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                              "typeString": "contract AppProxyPinned"
                            }
                          ],
                          "id": 12228,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "2108:7:48",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 12230,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2108:14:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "66616c7365",
                        "id": 12231,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2124:5:48",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "false"
                      },
                      {
                        "argumentTypes": null,
                        "id": 12232,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 12211,
                        "src": "2131:6:48",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 12227,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 12138,
                      "src": "2096:11:48",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 12233,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2096:42:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 12234,
                  "nodeType": "EmitStatement",
                  "src": "2091:47:48"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 12235,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 12219,
                    "src": "2155:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 12217,
                  "id": 12236,
                  "nodeType": "Return",
                  "src": "2148:12:48"
                }
              ]
            },
            "documentation": "@notice Create a new pinned app instance on `_kernel` with identifier `_appId` and initialization payload `_initializePayload`\n@param _kernel App's Kernel reference\n@param _appId Identifier for app\n@param _initializePayload Proxy initialization payload\n@return AppProxyPinned",
            "id": 12238,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 12214,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12209,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1902:15:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$12600",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12208,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12600,
                    "src": "1902:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$12600",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12211,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1919:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 12210,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1919:7:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 12213,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1935:24:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 12212,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1935:5:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1901:59:48"
            },
            "payable": false,
            "returnParameters": {
              "id": 12217,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 12216,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 12238,
                  "src": "1977:14:48",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 12215,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10263,
                    "src": "1977:14:48",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$10263",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1976:16:48"
            },
            "scope": 12239,
            "src": "1875:292:48",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 12240,
        "src": "106:2063:48"
      }
    ],
    "src": "0:2170:48"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2019-09-04T11:02:55.769Z"
}