{
  "contractName": "AppStorage",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "kernel",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "appId",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x608060405234801561001057600080fd5b5061018b806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806380afdea814610051578063d4aae0c414610084575b600080fd5b34801561005d57600080fd5b506100666100db565b60405180826000191660001916815260200191505060405180910390f35b34801561009057600080fd5b50610099610112565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600061010d7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b60010260001916610149565b905090565b60006101447f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b60010260001916610154565b905090565b600081549050919050565b6000815490509190505600a165627a7a723058201eeeacd6cc7fdae2ae802aebee240ae489613371e1f535b8ea47b730469701ff0029",
  "deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806380afdea814610051578063d4aae0c414610084575b600080fd5b34801561005d57600080fd5b506100666100db565b60405180826000191660001916815260200191505060405180910390f35b34801561009057600080fd5b50610099610112565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600061010d7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b60010260001916610149565b905090565b60006101447f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b60010260001916610154565b905090565b600081549050919050565b6000815490509190505600a165627a7a723058201eeeacd6cc7fdae2ae802aebee240ae489613371e1f535b8ea47b730469701ff0029",
  "sourceMap": "148:982:17:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;148:982:17;;;;;;;",
  "deployedSourceMap": "148:982:17:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;796:106;;8:9:-1;5:2;;;30:1;27;20:12;5:2;796:106:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;674:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;674:116:17;;;;;;;;;;;;;;;;;;;;;;;;;;;796:106;834:7;860:35;601:66;860:15;;:33;;;;:35::i;:::-;853:42;;796:106;:::o;674:116::-;713:7;747:35;485:66;747:15;;:33;;;;:35::i;:::-;732:51;;674:116;:::o;379:134:31:-;447:12;496:8;490:15;482:23;;480:27;;;:::o;239:134::-;307:12;356:8;350:15;342:23;;340:27;;;:::o",
  "source": "/*\n * SPDX-License-Identitifer:    MIT\n */\n\npragma solidity ^0.4.24;\n\nimport \"../common/UnstructuredStorage.sol\";\nimport \"../kernel/IKernel.sol\";\n\n\ncontract AppStorage {\n    using UnstructuredStorage for bytes32;\n\n    /* Hardcoded constants to save gas\n    bytes32 internal constant KERNEL_POSITION = keccak256(\"aragonOS.appStorage.kernel\");\n    bytes32 internal constant APP_ID_POSITION = keccak256(\"aragonOS.appStorage.appId\");\n    */\n    bytes32 internal constant KERNEL_POSITION = 0x4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b;\n    bytes32 internal constant APP_ID_POSITION = 0xd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b;\n\n    function kernel() public view returns (IKernel) {\n        return IKernel(KERNEL_POSITION.getStorageAddress());\n    }\n\n    function appId() public view returns (bytes32) {\n        return APP_ID_POSITION.getStorageBytes32();\n    }\n\n    function setKernel(IKernel _kernel) internal {\n        KERNEL_POSITION.setStorageAddress(address(_kernel));\n    }\n\n    function setAppId(bytes32 _appId) internal {\n        APP_ID_POSITION.setStorageBytes32(_appId);\n    }\n}\n",
  "sourcePath": "@aragon/os/contracts/apps/AppStorage.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/apps/AppStorage.sol",
    "exportedSymbols": {
      "AppStorage": [
        8347
      ]
    },
    "id": 8348,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 8287,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:17"
      },
      {
        "absolutePath": "@aragon/os/contracts/common/UnstructuredStorage.sol",
        "file": "../common/UnstructuredStorage.sol",
        "id": 8288,
        "nodeType": "ImportDirective",
        "scope": 8348,
        "sourceUnit": 8976,
        "src": "70:43:17",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/kernel/IKernel.sol",
        "file": "../kernel/IKernel.sol",
        "id": 8289,
        "nodeType": "ImportDirective",
        "scope": 8348,
        "sourceUnit": 10249,
        "src": "114:31:17",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 8347,
        "linearizedBaseContracts": [
          8347
        ],
        "name": "AppStorage",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 8292,
            "libraryName": {
              "contractScope": null,
              "id": 8290,
              "name": "UnstructuredStorage",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 8975,
              "src": "180:19:17",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_UnstructuredStorage_$8975",
                "typeString": "library UnstructuredStorage"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "174:38:17",
            "typeName": {
              "id": 8291,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "204:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            }
          },
          {
            "constant": true,
            "id": 8295,
            "name": "KERNEL_POSITION",
            "nodeType": "VariableDeclaration",
            "scope": 8347,
            "src": "441:110:17",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8293,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "441:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307834313732663066376432323839313533303732623061366361333639353965306362653265666333616665353066633831363336636161393633333831333762",
              "id": 8294,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "485:66:17",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_29603418823659377402517424791837662213071105721787245324259490738465228198779_by_1",
                "typeString": "int_const 2960...(69 digits omitted)...8779"
              },
              "value": "0x4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b"
            },
            "visibility": "internal"
          },
          {
            "constant": true,
            "id": 8298,
            "name": "APP_ID_POSITION",
            "nodeType": "VariableDeclaration",
            "scope": 8347,
            "src": "557:110:17",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8296,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "557:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864363235343936323137616136613334353365656362396333343839646335613533653663363762343434333239656132623263626339666635343736333962",
              "id": 8297,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "601:66:17",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_96860829410266183739968109275744835355652829419177135718944944339455505294235_by_1",
                "typeString": "int_const 9686...(69 digits omitted)...4235"
              },
              "value": "0xd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b"
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8309,
              "nodeType": "Block",
              "src": "722:68:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "argumentTypes": null,
                            "id": 8304,
                            "name": "KERNEL_POSITION",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8295,
                            "src": "747:15:17",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "id": 8305,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "getStorageAddress",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 8920,
                          "src": "747:33:17",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$bound_to$_t_bytes32_$",
                            "typeString": "function (bytes32) view returns (address)"
                          }
                        },
                        "id": 8306,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "747:35:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8303,
                      "name": "IKernel",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10248,
                      "src": "739:7:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_IKernel_$10248_$",
                        "typeString": "type(contract IKernel)"
                      }
                    },
                    "id": 8307,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "739:44:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "functionReturnParameters": 8302,
                  "id": 8308,
                  "nodeType": "Return",
                  "src": "732:51:17"
                }
              ]
            },
            "documentation": null,
            "id": 8310,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "kernel",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8299,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "689:2:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8302,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8301,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 8310,
                  "src": "713:7:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$10248",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 8300,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10248,
                    "src": "713:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "712:9:17"
            },
            "scope": 8347,
            "src": "674:116:17",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 8319,
              "nodeType": "Block",
              "src": "843:59:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8315,
                        "name": "APP_ID_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8298,
                        "src": "860:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8316,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getStorageBytes32",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8929,
                      "src": "860:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32) view returns (bytes32)"
                      }
                    },
                    "id": 8317,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "860:35:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 8314,
                  "id": 8318,
                  "nodeType": "Return",
                  "src": "853:42:17"
                }
              ]
            },
            "documentation": null,
            "id": 8320,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "appId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8311,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "810:2:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8314,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8313,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 8320,
                  "src": "834:7:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 8312,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "834:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "833:9:17"
            },
            "scope": 8347,
            "src": "796:106:17",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 8333,
              "nodeType": "Block",
              "src": "953:68:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 8329,
                            "name": "_kernel",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8322,
                            "src": "1005:7:17",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IKernel_$10248",
                              "typeString": "contract IKernel"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_IKernel_$10248",
                              "typeString": "contract IKernel"
                            }
                          ],
                          "id": 8328,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "997:7:17",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 8330,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "997:16:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8325,
                        "name": "KERNEL_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8295,
                        "src": "963:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8327,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "setStorageAddress",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8956,
                      "src": "963:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$returns$__$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,address)"
                      }
                    },
                    "id": 8331,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "963:51:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8332,
                  "nodeType": "ExpressionStatement",
                  "src": "963:51:17"
                }
              ]
            },
            "documentation": null,
            "id": 8334,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setKernel",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8323,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8322,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 8334,
                  "src": "927:15:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$10248",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 8321,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10248,
                    "src": "927:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "926:17:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8324,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "953:0:17"
            },
            "scope": 8347,
            "src": "908:113:17",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8345,
              "nodeType": "Block",
              "src": "1070:58:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8342,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8336,
                        "src": "1114:6:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8339,
                        "name": "APP_ID_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8298,
                        "src": "1080:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8341,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "setStorageBytes32",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8965,
                      "src": "1080:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,bytes32)"
                      }
                    },
                    "id": 8343,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1080:41:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8344,
                  "nodeType": "ExpressionStatement",
                  "src": "1080:41:17"
                }
              ]
            },
            "documentation": null,
            "id": 8346,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setAppId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8337,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8336,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 8346,
                  "src": "1045:14:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 8335,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1045:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1044:16:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8338,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1070:0:17"
            },
            "scope": 8347,
            "src": "1027:101:17",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 8348,
        "src": "148:982:17"
      }
    ],
    "src": "44:1087:17"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/apps/AppStorage.sol",
    "exportedSymbols": {
      "AppStorage": [
        8347
      ]
    },
    "id": 8348,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 8287,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:17"
      },
      {
        "absolutePath": "@aragon/os/contracts/common/UnstructuredStorage.sol",
        "file": "../common/UnstructuredStorage.sol",
        "id": 8288,
        "nodeType": "ImportDirective",
        "scope": 8348,
        "sourceUnit": 8976,
        "src": "70:43:17",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/kernel/IKernel.sol",
        "file": "../kernel/IKernel.sol",
        "id": 8289,
        "nodeType": "ImportDirective",
        "scope": 8348,
        "sourceUnit": 10249,
        "src": "114:31:17",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 8347,
        "linearizedBaseContracts": [
          8347
        ],
        "name": "AppStorage",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 8292,
            "libraryName": {
              "contractScope": null,
              "id": 8290,
              "name": "UnstructuredStorage",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 8975,
              "src": "180:19:17",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_UnstructuredStorage_$8975",
                "typeString": "library UnstructuredStorage"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "174:38:17",
            "typeName": {
              "id": 8291,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "204:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            }
          },
          {
            "constant": true,
            "id": 8295,
            "name": "KERNEL_POSITION",
            "nodeType": "VariableDeclaration",
            "scope": 8347,
            "src": "441:110:17",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8293,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "441:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307834313732663066376432323839313533303732623061366361333639353965306362653265666333616665353066633831363336636161393633333831333762",
              "id": 8294,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "485:66:17",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_29603418823659377402517424791837662213071105721787245324259490738465228198779_by_1",
                "typeString": "int_const 2960...(69 digits omitted)...8779"
              },
              "value": "0x4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b"
            },
            "visibility": "internal"
          },
          {
            "constant": true,
            "id": 8298,
            "name": "APP_ID_POSITION",
            "nodeType": "VariableDeclaration",
            "scope": 8347,
            "src": "557:110:17",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8296,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "557:7:17",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864363235343936323137616136613334353365656362396333343839646335613533653663363762343434333239656132623263626339666635343736333962",
              "id": 8297,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "601:66:17",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_96860829410266183739968109275744835355652829419177135718944944339455505294235_by_1",
                "typeString": "int_const 9686...(69 digits omitted)...4235"
              },
              "value": "0xd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b"
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8309,
              "nodeType": "Block",
              "src": "722:68:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "argumentTypes": null,
                            "id": 8304,
                            "name": "KERNEL_POSITION",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8295,
                            "src": "747:15:17",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          "id": 8305,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "getStorageAddress",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 8920,
                          "src": "747:33:17",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$bound_to$_t_bytes32_$",
                            "typeString": "function (bytes32) view returns (address)"
                          }
                        },
                        "id": 8306,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "747:35:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8303,
                      "name": "IKernel",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10248,
                      "src": "739:7:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_IKernel_$10248_$",
                        "typeString": "type(contract IKernel)"
                      }
                    },
                    "id": 8307,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "739:44:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "functionReturnParameters": 8302,
                  "id": 8308,
                  "nodeType": "Return",
                  "src": "732:51:17"
                }
              ]
            },
            "documentation": null,
            "id": 8310,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "kernel",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8299,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "689:2:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8302,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8301,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 8310,
                  "src": "713:7:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$10248",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 8300,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10248,
                    "src": "713:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "712:9:17"
            },
            "scope": 8347,
            "src": "674:116:17",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 8319,
              "nodeType": "Block",
              "src": "843:59:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8315,
                        "name": "APP_ID_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8298,
                        "src": "860:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8316,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getStorageBytes32",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8929,
                      "src": "860:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32) view returns (bytes32)"
                      }
                    },
                    "id": 8317,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "860:35:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 8314,
                  "id": 8318,
                  "nodeType": "Return",
                  "src": "853:42:17"
                }
              ]
            },
            "documentation": null,
            "id": 8320,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "appId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8311,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "810:2:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8314,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8313,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 8320,
                  "src": "834:7:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 8312,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "834:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "833:9:17"
            },
            "scope": 8347,
            "src": "796:106:17",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 8333,
              "nodeType": "Block",
              "src": "953:68:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 8329,
                            "name": "_kernel",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8322,
                            "src": "1005:7:17",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IKernel_$10248",
                              "typeString": "contract IKernel"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_IKernel_$10248",
                              "typeString": "contract IKernel"
                            }
                          ],
                          "id": 8328,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "997:7:17",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 8330,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "997:16:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8325,
                        "name": "KERNEL_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8295,
                        "src": "963:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8327,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "setStorageAddress",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8956,
                      "src": "963:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$returns$__$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,address)"
                      }
                    },
                    "id": 8331,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "963:51:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8332,
                  "nodeType": "ExpressionStatement",
                  "src": "963:51:17"
                }
              ]
            },
            "documentation": null,
            "id": 8334,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setKernel",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8323,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8322,
                  "name": "_kernel",
                  "nodeType": "VariableDeclaration",
                  "scope": 8334,
                  "src": "927:15:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IKernel_$10248",
                    "typeString": "contract IKernel"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 8321,
                    "name": "IKernel",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 10248,
                    "src": "927:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IKernel_$10248",
                      "typeString": "contract IKernel"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "926:17:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8324,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "953:0:17"
            },
            "scope": 8347,
            "src": "908:113:17",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8345,
              "nodeType": "Block",
              "src": "1070:58:17",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8342,
                        "name": "_appId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8336,
                        "src": "1114:6:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 8339,
                        "name": "APP_ID_POSITION",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8298,
                        "src": "1080:15:17",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "id": 8341,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "setStorageBytes32",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 8965,
                      "src": "1080:33:17",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$bound_to$_t_bytes32_$",
                        "typeString": "function (bytes32,bytes32)"
                      }
                    },
                    "id": 8343,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1080:41:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8344,
                  "nodeType": "ExpressionStatement",
                  "src": "1080:41:17"
                }
              ]
            },
            "documentation": null,
            "id": 8346,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setAppId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8337,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8336,
                  "name": "_appId",
                  "nodeType": "VariableDeclaration",
                  "scope": 8346,
                  "src": "1045:14:17",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 8335,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1045:7:17",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1044:16:17"
            },
            "payable": false,
            "returnParameters": {
              "id": 8338,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1070:0:17"
            },
            "scope": 8347,
            "src": "1027:101:17",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 8348,
        "src": "148:982:17"
      }
    ],
    "src": "44:1087:17"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.1",
  "updatedAt": "2019-03-29T09:45:33.502Z",
  "devdoc": {
    "methods": {}
  },
  "userdoc": {
    "methods": {}
  }
}