{
  "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": "0x608060405234801561001057600080fd5b5061128a806100206000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663d162f8b08114610066578063e156a8f314610105578063ede658b014610136578063ff289fc5146101ac575b600080fd5b34801561007257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506101dd9650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561011157600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff600435166024356102fc565b34801561014257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506103209650505050505050565b3480156101b857600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff6004351660243561043f565b6000808484846101eb61045c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015610299573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526000602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b604080516000808252602082019092526103199084908490610320565b9392505050565b60008084848461032e61046c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b8381101561038c578181015183820152602001610374565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f0801580156103dc573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526001602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b6040805160008082526020820190925261031990849084906101dd565b6040516106f98061047d83390190565b6040516106e980610b76833901905600608060405234801561001057600080fd5b506040516106f93803806106f98339810160409081528151602083015191830151909201828282600061004b8464010000000061017a810204565b61005d836401000000006101a2810204565b61006f836401000000006101d9810204565b90506000825111156101185761008d816401000000006102a9810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b50505050610145610137836101d9640100000000026401000000009004565b6401000000006102d6810204565b6101676101596401000000006102fb810204565b6401000000006102a9810204565b151561017257600080fd5b505050610354565b61019f6000805160206106b98339815191528264010000000061032261032682021704565b50565b61019f7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b8264010000000061032261032682021704565b60006101ec64010000000061032a810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561027757600080fd5b505af115801561028b573d6000803e3d6000fd5b505050506040513d60208110156102a157600080fd5b505192915050565b600080600160a060020a03831615156102c557600091506102d0565b823b90506000811191505b50919050565b61019f6000805160206106d98339815191528264010000000061032261032682021704565b60006103216000805160206106d98339815191526401000000006102b561035082021704565b905090565b9055565b60006103216000805160206106b98339815191526401000000006102b561035082021704565b5490565b610356806103636000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b60006127105a10156100e357600034118015610086575036155b151561009157600080fd5b6100996101e3565b15156100a457600080fd5b6040805133815234602082015281517f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1929181900390910190a1610128565b6100eb610213565b9050610128816000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061021d945050505050565b50005b34801561013757600080fd5b5061014061025e565b60408051918252519081900360200190f35b34801561015e57600080fd5b506101676101e3565b604080519115158252519081900360200190f35b34801561018757600080fd5b50610190610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b50610140610263565b3480156101da57600080fd5b5061019061028e565b600061020e7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6102b5565b905090565b600061020e6102b9565b6000610228836102e4565b151561023357600080fd5b612710905060008083516020850186855a03f43d604051816000823e82801561025a578282f35b8282fd5b600190565b600061020e7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6102b5565b600061020e7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b5b5490565b600061020e7fdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e6102b5565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561030d5760009150610318565b823b90506000811191505b50919050565b5490565b9055565b90555600a165627a7a72305820d982a52c5bd49aa9e1df810f20c8d7d24493905c11a0cbeb492595f21aa4295d00294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137bdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e608060405234801561001057600080fd5b506040516106e93803806106e98339810160409081528151602083015191830151909201828282600061004b84640100000000610124810204565b61005d8364010000000061014c810204565b61006f83640100000000610183810204565b90506000825111156101185761008d81640100000000610253810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b505050505050506102b3565b6101496000805160206106c9833981519152826401000000006103d361028082021704565b50565b6101497fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b826401000000006103d361028082021704565b6000610196640100000000610284810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b505050506040513d602081101561024b57600080fd5b505192915050565b600080600160a060020a038316151561026f576000915061027a565b823b90506000811191505b50919050565b9055565b60006102aa6000805160206106c98339815191526401000000006102bd6102af82021704565b905090565b5490565b610407806102c26000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b60006127105a10156100e357600034118015610086575036155b151561009157600080fd5b6100996101e3565b15156100a457600080fd5b6040805133815234602082015281517f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1929181900390910190a1610128565b6100eb610213565b9050610128816000368080601f01602080910402602001604051908101604052809392919081815260200183838082843750610225945050505050565b50005b34801561013757600080fd5b50610140610266565b60408051918252519081900360200190f35b34801561015e57600080fd5b506101676101e3565b604080519115158252519081900360200190f35b34801561018757600080fd5b50610190610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b5061014061026b565b3480156101da57600080fd5b50610190610296565b600061020e7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6102bd565b905090565b600061020e61022061026b565b6102c1565b600061023083610395565b151561023b57600080fd5b612710905060008083516020850186855a03f43d604051816000823e828015610262578282f35b8282fd5b600290565b600061020e7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6102bd565b600061020e7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b5b5490565b60006102cb610296565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b15801561036357600080fd5b505af1158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505192915050565b60008073ffffffffffffffffffffffffffffffffffffffff831615156103be57600091506103c9565b823b90506000811191505b50919050565b5490565b9055565b90555600a165627a7a723058204db86581bb401888ae598d3cb198b3dae6713fc1c378090628079c0e6dc7624400294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137ba165627a7a72305820f7c53ad9322053bdbfdd4a4e0b7b4e15a793ab95588c88c670503fa72b49aff20029",
  "deployedBytecode": "0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663d162f8b08114610066578063e156a8f314610105578063ede658b014610136578063ff289fc5146101ac575b600080fd5b34801561007257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506101dd9650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561011157600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff600435166024356102fc565b34801561014257600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526100dc94823573ffffffffffffffffffffffffffffffffffffffff169460248035953695946064949201919081908401838280828437509497506103209650505050505050565b3480156101b857600080fd5b506100dc73ffffffffffffffffffffffffffffffffffffffff6004351660243561043f565b6000808484846101eb61045c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015610299573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526000602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b604080516000808252602082019092526103199084908490610320565b9392505050565b60008084848461032e61046c565b73ffffffffffffffffffffffffffffffffffffffff8416815260208082018490526060604083018181528451918401919091528351909160808401919085019080838360005b8381101561038c578181015183820152602001610374565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f0801580156103dc573d6000803e3d6000fd5b506040805173ffffffffffffffffffffffffffffffffffffffff831681526001602082015280820187905290519192507fd880e726dced8808d727f02dd0e6fdd3a945b24bfee77e13367bcbe61ddbaf47919081900360600190a1949350505050565b6040805160008082526020820190925261031990849084906101dd565b6040516106f98061047d83390190565b6040516106e980610b76833901905600608060405234801561001057600080fd5b506040516106f93803806106f98339810160409081528151602083015191830151909201828282600061004b8464010000000061017a810204565b61005d836401000000006101a2810204565b61006f836401000000006101d9810204565b90506000825111156101185761008d816401000000006102a9810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b50505050610145610137836101d9640100000000026401000000009004565b6401000000006102d6810204565b6101676101596401000000006102fb810204565b6401000000006102a9810204565b151561017257600080fd5b505050610354565b61019f6000805160206106b98339815191528264010000000061032261032682021704565b50565b61019f7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b8264010000000061032261032682021704565b60006101ec64010000000061032a810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561027757600080fd5b505af115801561028b573d6000803e3d6000fd5b505050506040513d60208110156102a157600080fd5b505192915050565b600080600160a060020a03831615156102c557600091506102d0565b823b90506000811191505b50919050565b61019f6000805160206106d98339815191528264010000000061032261032682021704565b60006103216000805160206106d98339815191526401000000006102b561035082021704565b905090565b9055565b60006103216000805160206106b98339815191526401000000006102b561035082021704565b5490565b610356806103636000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b60006127105a10156100e357600034118015610086575036155b151561009157600080fd5b6100996101e3565b15156100a457600080fd5b6040805133815234602082015281517f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1929181900390910190a1610128565b6100eb610213565b9050610128816000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061021d945050505050565b50005b34801561013757600080fd5b5061014061025e565b60408051918252519081900360200190f35b34801561015e57600080fd5b506101676101e3565b604080519115158252519081900360200190f35b34801561018757600080fd5b50610190610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b50610140610263565b3480156101da57600080fd5b5061019061028e565b600061020e7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6102b5565b905090565b600061020e6102b9565b6000610228836102e4565b151561023357600080fd5b612710905060008083516020850186855a03f43d604051816000823e82801561025a578282f35b8282fd5b600190565b600061020e7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6102b5565b600061020e7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b5b5490565b600061020e7fdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e6102b5565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561030d5760009150610318565b823b90506000811191505b50919050565b5490565b9055565b90555600a165627a7a72305820d982a52c5bd49aa9e1df810f20c8d7d24493905c11a0cbeb492595f21aa4295d00294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137bdee64df20d65e53d7f51cb6ab6d921a0a6a638a91e942e1d8d02df28e31c038e608060405234801561001057600080fd5b506040516106e93803806106e98339810160409081528151602083015191830151909201828282600061004b84640100000000610124810204565b61005d8364010000000061014c810204565b61006f83640100000000610183810204565b90506000825111156101185761008d81640100000000610253810204565b151561009857600080fd5b80600160a060020a03168260405180828051906020019080838360005b838110156100cd5781810151838201526020016100b5565b50505050905090810190601f1680156100fa5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af4915050151561011857600080fd5b505050505050506102b3565b6101496000805160206106c9833981519152826401000000006103d361028082021704565b50565b6101497fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b826401000000006103d361028082021704565b6000610196640100000000610284810204565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f6004820152602481018590529051600160a060020a03929092169163be00bbd8916044808201926020929091908290030181600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b505050506040513d602081101561024b57600080fd5b505192915050565b600080600160a060020a038316151561026f576000915061027a565b823b90506000811191505b50919050565b9055565b60006102aa6000805160206106c98339815191526401000000006102bd6102af82021704565b905090565b5490565b610407806102c26000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b57806348a0c8dd146101525780635c60da1b1461017b57806380afdea8146101b9578063d4aae0c4146101ce575b60006127105a10156100e357600034118015610086575036155b151561009157600080fd5b6100996101e3565b15156100a457600080fd5b6040805133815234602082015281517f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1929181900390910190a1610128565b6100eb610213565b9050610128816000368080601f01602080910402602001604051908101604052809392919081815260200183838082843750610225945050505050565b50005b34801561013757600080fd5b50610140610266565b60408051918252519081900360200190f35b34801561015e57600080fd5b506101676101e3565b604080519115158252519081900360200190f35b34801561018757600080fd5b50610190610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c557600080fd5b5061014061026b565b3480156101da57600080fd5b50610190610296565b600061020e7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6102bd565b905090565b600061020e61022061026b565b6102c1565b600061023083610395565b151561023b57600080fd5b612710905060008083516020850186855a03f43d604051816000823e828015610262578282f35b8282fd5b600290565b600061020e7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6102bd565b600061020e7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b5b5490565b60006102cb610296565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527ff1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b15801561036357600080fd5b505af1158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505192915050565b60008073ffffffffffffffffffffffffffffffffffffffff831615156103be57600091506103c9565b823b90506000811191505b50919050565b5490565b9055565b90555600a165627a7a723058204db86581bb401888ae598d3cb198b3dae6713fc1c378090628079c0e6dc7624400294172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137ba165627a7a72305820f7c53ad9322053bdbfdd4a4e0b7b4e15a793ab95588c88c670503fa72b49aff20029",
  "sourceMap": "106:2063:39:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106:2063:39;;;;;;;",
  "deployedSourceMap": "106:2063:39:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1875:292;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1875:292:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1875:292:39;;-1:-1:-1;1875:292:39;;-1:-1:-1;;;;;;;1875:292:39;;;;;;;;;;;;;;;;;;;;433:157;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;433:157:39;;;;;;;;;866:300;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;866:300:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;866:300:39;;-1:-1:-1;866:300:39;;-1:-1:-1;;;;;;;866:300:39;1384:164;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1384:164:39;;;;;;;;;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:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;2096:42:39;;;;;;;;2124:5;2096:42;;;;;;;;;;;;2003:78;;-1:-1:-1;2096:42:39;;;;;;;;;;2155:5;1875:292;-1:-1:-1;;;;1875:292:39: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:39: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:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;1096:41:39;;;;;;;;1124:4;1096:41;;;;;;;;;;;;993:88;;-1:-1:-1;1096:41:39;;;;;;;;;;1154:5;866:300;-1:-1:-1;;;;866:300:39: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": [
        6402
      ]
    },
    "id": 6403,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6291,
        "literals": [
          "solidity",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:39"
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyUpgradeable.sol",
        "file": "../apps/AppProxyUpgradeable.sol",
        "id": 6292,
        "nodeType": "ImportDirective",
        "scope": 6403,
        "sourceUnit": 4499,
        "src": "25:41:39",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyPinned.sol",
        "file": "../apps/AppProxyPinned.sol",
        "id": 6293,
        "nodeType": "ImportDirective",
        "scope": 6403,
        "sourceUnit": 4459,
        "src": "67:36:39",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          4458,
          4498
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6402,
        "linearizedBaseContracts": [
          6402
        ],
        "name": "AppProxyFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 6301,
            "name": "NewAppProxy",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 6300,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6295,
                  "indexed": false,
                  "name": "proxy",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "155:13:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6294,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "155:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6297,
                  "indexed": false,
                  "name": "isUpgradeable",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "170:18:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 6296,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "170:4:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6299,
                  "indexed": false,
                  "name": "appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "190:13:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6298,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "190:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "154:50:39"
            },
            "src": "137:68:39"
          },
          {
            "body": {
              "id": 6319,
              "nodeType": "Block",
              "src": "524:66:39",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6311,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6303,
                        "src": "553:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6312,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6305,
                        "src": "562:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 6315,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "580:1:39",
                            "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": 6314,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "570:9:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 6313,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "574:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 6316,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "570:12:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6310,
                      "name": "newAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        6320,
                        6351
                      ],
                      "referencedDeclaration": 6351,
                      "src": "541:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$4498_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      }
                    },
                    "id": 6317,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "541:42:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 6309,
                  "id": 6318,
                  "nodeType": "Return",
                  "src": "534:49:39"
                }
              ]
            },
            "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": 6320,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6306,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6303,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "454:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6302,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "454:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6305,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "471:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6304,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "471:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "453:33:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6309,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6308,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "503:19:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6307,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4498,
                    "src": "503:19:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "502:21:39"
            },
            "scope": 6402,
            "src": "433:157:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6350,
              "nodeType": "Block",
              "src": "983:183:39",
              "statements": [
                {
                  "assignments": [
                    6332
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6332,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 6351,
                      "src": "993:25:39",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                        "typeString": "contract AppProxyUpgradeable"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6331,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4498,
                        "src": "993:19:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6339,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6335,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6322,
                        "src": "1045:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6336,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6324,
                        "src": "1054:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6337,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6326,
                        "src": "1062:18:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6334,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1021:23:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$4498_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6333,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4498,
                        "src": "1025:19:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      }
                    },
                    "id": 6338,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1021:60:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "993:88:39"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6342,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6332,
                            "src": "1116:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          ],
                          "id": 6341,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1108:7:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 6343,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1108:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "74727565",
                        "id": 6344,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1124:4:39",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "true"
                      },
                      {
                        "argumentTypes": null,
                        "id": 6345,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6324,
                        "src": "1130:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 6340,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6301,
                      "src": "1096:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 6346,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1096:41:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6347,
                  "nodeType": "EmitStatement",
                  "src": "1091:46:39"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6348,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6332,
                    "src": "1154:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 6330,
                  "id": 6349,
                  "nodeType": "Return",
                  "src": "1147:12:39"
                }
              ]
            },
            "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": 6351,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6327,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6322,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "887:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6321,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "887:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6324,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "904:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6323,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "904:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6326,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "920:24:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6325,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "920:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "886:59:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6330,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6329,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "962:19:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6328,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4498,
                    "src": "962:19:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "961:21:39"
            },
            "scope": 6402,
            "src": "866:300:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6369,
              "nodeType": "Block",
              "src": "1476:72:39",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6361,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6353,
                        "src": "1511:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6362,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6355,
                        "src": "1520:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 6365,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1538:1:39",
                            "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": 6364,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "1528:9:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 6363,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "1532:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 6366,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1528:12:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6360,
                      "name": "newAppProxyPinned",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        6370,
                        6401
                      ],
                      "referencedDeclaration": 6401,
                      "src": "1493:17:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$4458_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      }
                    },
                    "id": 6367,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1493:48:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 6359,
                  "id": 6368,
                  "nodeType": "Return",
                  "src": "1486:55:39"
                }
              ]
            },
            "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": 6370,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6356,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6353,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1411:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6352,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "1411:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6355,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1428:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6354,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1428:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1410:33:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6359,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6358,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1460:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6357,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4458,
                    "src": "1460:14:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1459:16:39"
            },
            "scope": 6402,
            "src": "1384:164:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6400,
              "nodeType": "Block",
              "src": "1993:174:39",
              "statements": [
                {
                  "assignments": [
                    6382
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6382,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 6401,
                      "src": "2003:20:39",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                        "typeString": "contract AppProxyPinned"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6381,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4458,
                        "src": "2003:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                          "typeString": "contract AppProxyPinned"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6389,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6385,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6372,
                        "src": "2045:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6386,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6374,
                        "src": "2054:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6387,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6376,
                        "src": "2062:18:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6384,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "2026:18:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$4458_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6383,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4458,
                        "src": "2030:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                          "typeString": "contract AppProxyPinned"
                        }
                      }
                    },
                    "id": 6388,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2026:55:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2003:78:39"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6392,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6382,
                            "src": "2116:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                              "typeString": "contract AppProxyPinned"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                              "typeString": "contract AppProxyPinned"
                            }
                          ],
                          "id": 6391,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "2108:7:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 6393,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2108:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "66616c7365",
                        "id": 6394,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2124:5:39",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "false"
                      },
                      {
                        "argumentTypes": null,
                        "id": 6395,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6374,
                        "src": "2131:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 6390,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6301,
                      "src": "2096:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 6396,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2096:42:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6397,
                  "nodeType": "EmitStatement",
                  "src": "2091:47:39"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6398,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6382,
                    "src": "2155:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 6380,
                  "id": 6399,
                  "nodeType": "Return",
                  "src": "2148:12:39"
                }
              ]
            },
            "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": 6401,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6377,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6372,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1902:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6371,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "1902:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6374,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1919:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6373,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1919:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6376,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1935:24:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6375,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1935:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1901:59:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6380,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6379,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1977:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6378,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4458,
                    "src": "1977:14:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1976:16:39"
            },
            "scope": 6402,
            "src": "1875:292:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 6403,
        "src": "106:2063:39"
      }
    ],
    "src": "0:2170:39"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/factory/AppProxyFactory.sol",
    "exportedSymbols": {
      "AppProxyFactory": [
        6402
      ]
    },
    "id": 6403,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6291,
        "literals": [
          "solidity",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:39"
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyUpgradeable.sol",
        "file": "../apps/AppProxyUpgradeable.sol",
        "id": 6292,
        "nodeType": "ImportDirective",
        "scope": 6403,
        "sourceUnit": 4499,
        "src": "25:41:39",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/apps/AppProxyPinned.sol",
        "file": "../apps/AppProxyPinned.sol",
        "id": 6293,
        "nodeType": "ImportDirective",
        "scope": 6403,
        "sourceUnit": 4459,
        "src": "67:36:39",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [
          4458,
          4498
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6402,
        "linearizedBaseContracts": [
          6402
        ],
        "name": "AppProxyFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 6301,
            "name": "NewAppProxy",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 6300,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6295,
                  "indexed": false,
                  "name": "proxy",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "155:13:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6294,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "155:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6297,
                  "indexed": false,
                  "name": "isUpgradeable",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "170:18:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 6296,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "170:4:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6299,
                  "indexed": false,
                  "name": "appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6301,
                  "src": "190:13:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6298,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "190:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "154:50:39"
            },
            "src": "137:68:39"
          },
          {
            "body": {
              "id": 6319,
              "nodeType": "Block",
              "src": "524:66:39",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6311,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6303,
                        "src": "553:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6312,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6305,
                        "src": "562:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 6315,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "580:1:39",
                            "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": 6314,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "570:9:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 6313,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "574:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 6316,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "570:12:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6310,
                      "name": "newAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        6320,
                        6351
                      ],
                      "referencedDeclaration": 6351,
                      "src": "541:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$4498_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      }
                    },
                    "id": 6317,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "541:42:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 6309,
                  "id": 6318,
                  "nodeType": "Return",
                  "src": "534:49:39"
                }
              ]
            },
            "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": 6320,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6306,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6303,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "454:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6302,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "454:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6305,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "471:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6304,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "471:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "453:33:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6309,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6308,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6320,
                  "src": "503:19:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6307,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4498,
                    "src": "503:19:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "502:21:39"
            },
            "scope": 6402,
            "src": "433:157:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6350,
              "nodeType": "Block",
              "src": "983:183:39",
              "statements": [
                {
                  "assignments": [
                    6332
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6332,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 6351,
                      "src": "993:25:39",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                        "typeString": "contract AppProxyUpgradeable"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6331,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4498,
                        "src": "993:19:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6339,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6335,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6322,
                        "src": "1045:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6336,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6324,
                        "src": "1054:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6337,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6326,
                        "src": "1062:18:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6334,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1021:23:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyUpgradeable_$4498_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyUpgradeable)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6333,
                        "name": "AppProxyUpgradeable",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4498,
                        "src": "1025:19:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                          "typeString": "contract AppProxyUpgradeable"
                        }
                      }
                    },
                    "id": 6338,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1021:60:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "993:88:39"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6342,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6332,
                            "src": "1116:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                              "typeString": "contract AppProxyUpgradeable"
                            }
                          ],
                          "id": 6341,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1108:7:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 6343,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1108:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "74727565",
                        "id": 6344,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1124:4:39",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "true"
                      },
                      {
                        "argumentTypes": null,
                        "id": 6345,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6324,
                        "src": "1130:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 6340,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6301,
                      "src": "1096:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 6346,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1096:41:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6347,
                  "nodeType": "EmitStatement",
                  "src": "1091:46:39"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6348,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6332,
                    "src": "1154:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "functionReturnParameters": 6330,
                  "id": 6349,
                  "nodeType": "Return",
                  "src": "1147:12:39"
                }
              ]
            },
            "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": 6351,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxy",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6327,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6322,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "887:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6321,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "887:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6324,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "904:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6323,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "904:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6326,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "920:24:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6325,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "920:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "886:59:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6330,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6329,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6351,
                  "src": "962:19:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                    "typeString": "contract AppProxyUpgradeable"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6328,
                    "name": "AppProxyUpgradeable",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4498,
                    "src": "962:19:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyUpgradeable_$4498",
                      "typeString": "contract AppProxyUpgradeable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "961:21:39"
            },
            "scope": 6402,
            "src": "866:300:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6369,
              "nodeType": "Block",
              "src": "1476:72:39",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6361,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6353,
                        "src": "1511:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6362,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6355,
                        "src": "1520:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30",
                            "id": 6365,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1538:1:39",
                            "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": 6364,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "NewExpression",
                          "src": "1528:9:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                            "typeString": "function (uint256) pure returns (bytes memory)"
                          },
                          "typeName": {
                            "id": 6363,
                            "name": "bytes",
                            "nodeType": "ElementaryTypeName",
                            "src": "1532:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_storage_ptr",
                              "typeString": "bytes"
                            }
                          }
                        },
                        "id": 6366,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1528:12:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6360,
                      "name": "newAppProxyPinned",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        6370,
                        6401
                      ],
                      "referencedDeclaration": 6401,
                      "src": "1493:17:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$4458_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      }
                    },
                    "id": 6367,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1493:48:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 6359,
                  "id": 6368,
                  "nodeType": "Return",
                  "src": "1486:55:39"
                }
              ]
            },
            "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": 6370,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6356,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6353,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1411:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6352,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "1411:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6355,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1428:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6354,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1428:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1410:33:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6359,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6358,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6370,
                  "src": "1460:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6357,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4458,
                    "src": "1460:14:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1459:16:39"
            },
            "scope": 6402,
            "src": "1384:164:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 6400,
              "nodeType": "Block",
              "src": "1993:174:39",
              "statements": [
                {
                  "assignments": [
                    6382
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6382,
                      "name": "proxy",
                      "nodeType": "VariableDeclaration",
                      "scope": 6401,
                      "src": "2003:20:39",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                        "typeString": "contract AppProxyPinned"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6381,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4458,
                        "src": "2003:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                          "typeString": "contract AppProxyPinned"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6389,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6385,
                        "name": "_kernel",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6372,
                        "src": "2045:7:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6386,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6374,
                        "src": "2054:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6387,
                        "name": "_initializePayload",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6376,
                        "src": "2062:18:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IKernel_$6763",
                          "typeString": "contract IKernel"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 6384,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "2026:18:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IKernel_$6763_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_contract$_AppProxyPinned_$4458_$",
                        "typeString": "function (contract IKernel,bytes32,bytes memory) returns (contract AppProxyPinned)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 6383,
                        "name": "AppProxyPinned",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 4458,
                        "src": "2030:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                          "typeString": "contract AppProxyPinned"
                        }
                      }
                    },
                    "id": 6388,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2026:55:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2003:78:39"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6392,
                            "name": "proxy",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6382,
                            "src": "2116:5:39",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                              "typeString": "contract AppProxyPinned"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                              "typeString": "contract AppProxyPinned"
                            }
                          ],
                          "id": 6391,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "2108:7:39",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 6393,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2108:14:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "66616c7365",
                        "id": 6394,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2124:5:39",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "false"
                      },
                      {
                        "argumentTypes": null,
                        "id": 6395,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6374,
                        "src": "2131:6:39",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 6390,
                      "name": "NewAppProxy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6301,
                      "src": "2096:11:39",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_bytes32_$returns$__$",
                        "typeString": "function (address,bool,bytes32)"
                      }
                    },
                    "id": 6396,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2096:42:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6397,
                  "nodeType": "EmitStatement",
                  "src": "2091:47:39"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6398,
                    "name": "proxy",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6382,
                    "src": "2155:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "functionReturnParameters": 6380,
                  "id": 6399,
                  "nodeType": "Return",
                  "src": "2148:12:39"
                }
              ]
            },
            "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": 6401,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "newAppProxyPinned",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6377,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6372,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1902:15:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$6763",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6371,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6763,
                    "src": "1902:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$6763",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6374,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1919:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 6373,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1919:7:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6376,
                  "name": "_initializePayload",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1935:24:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6375,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1935:5:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1901:59:39"
            },
            "payable": false,
            "returnParameters": {
              "id": 6380,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6379,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6401,
                  "src": "1977:14:39",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                    "typeString": "contract AppProxyPinned"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6378,
                    "name": "AppProxyPinned",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 4458,
                    "src": "1977:14:39",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_AppProxyPinned_$4458",
                      "typeString": "contract AppProxyPinned"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1976:16:39"
            },
            "scope": 6402,
            "src": "1875:292:39",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 6403,
        "src": "106:2063:39"
      }
    ],
    "src": "0:2170:39"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2019-04-16T08:24:52.821Z"
}