{
  "contractName": "EVMScriptRegistryConstants",
  "abi": [],
  "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058204890ec2aef3817af3e2c70de9f6fb625df2218367a4ef14237bb65e8525988790029",
  "deployedBytecode": "0x6080604052600080fd00a165627a7a723058204890ec2aef3817af3e2c70de9f6fb625df2218367a4ef14237bb65e8525988790029",
  "sourceMap": "107:292:35:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107:292:35;;;;;;;",
  "deployedSourceMap": "107:292:35:-;;;;;",
  "source": "/*\n * SPDX-License-Identitifer:    MIT\n */\n\npragma solidity ^0.4.24;\n\nimport \"./IEVMScriptExecutor.sol\";\n\n\ncontract EVMScriptRegistryConstants {\n    /* Hardcoded constants to save gas\n    bytes32 internal constant EVMSCRIPT_REGISTRY_APP_ID = apmNamehash(\"evmreg\");\n    */\n    bytes32 internal constant EVMSCRIPT_REGISTRY_APP_ID = 0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61;\n}\n\n\ninterface IEVMScriptRegistry {\n    function addScriptExecutor(IEVMScriptExecutor executor) external returns (uint id);\n    function disableScriptExecutor(uint256 executorId) external;\n\n    // TODO: this should be external\n    // See https://github.com/ethereum/solidity/issues/4832\n    function getScriptExecutor(bytes script) public view returns (IEVMScriptExecutor);\n}\n",
  "sourcePath": "@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol",
    "exportedSymbols": {
      "EVMScriptRegistryConstants": [
        6013
      ],
      "IEVMScriptRegistry": [
        6033
      ]
    },
    "id": 6034,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6008,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:35"
      },
      {
        "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol",
        "file": "./IEVMScriptExecutor.sol",
        "id": 6009,
        "nodeType": "ImportDirective",
        "scope": 6034,
        "sourceUnit": 6007,
        "src": "70:34:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6013,
        "linearizedBaseContracts": [
          6013
        ],
        "name": "EVMScriptRegistryConstants",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 6012,
            "name": "EVMSCRIPT_REGISTRY_APP_ID",
            "nodeType": "VariableDeclaration",
            "scope": 6013,
            "src": "276:120:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 6010,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "276:7:35",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864646263666435363466363432616235363237636636386239623764333734666234663861333665393431613735643839633837393938636566303362643631",
              "id": 6011,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "330:66:35",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_100295055253822236757776785641620620126240610315818972729696126418245724126561_by_1",
                "typeString": "int_const 1002...(70 digits omitted)...6561"
              },
              "value": "0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61"
            },
            "visibility": "internal"
          }
        ],
        "scope": 6034,
        "src": "107:292:35"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": null,
        "fullyImplemented": false,
        "id": 6033,
        "linearizedBaseContracts": [
          6033
        ],
        "name": "IEVMScriptRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 6020,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "addScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6016,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6015,
                  "name": "executor",
                  "nodeType": "VariableDeclaration",
                  "scope": 6020,
                  "src": "464:27:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6014,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6006,
                    "src": "464:18:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "463:29:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6019,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6018,
                  "name": "id",
                  "nodeType": "VariableDeclaration",
                  "scope": 6020,
                  "src": "511:7:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6017,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "511:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "510:9:35"
            },
            "scope": 6033,
            "src": "437:83:35",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 6025,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "disableScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6023,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6022,
                  "name": "executorId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6025,
                  "src": "556:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6021,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "556:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "555:20:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6024,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "584:0:35"
            },
            "scope": 6033,
            "src": "525:60:35",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 6032,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6028,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6027,
                  "name": "script",
                  "nodeType": "VariableDeclaration",
                  "scope": 6032,
                  "src": "715:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6026,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "715:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "714:14:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6031,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6030,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6032,
                  "src": "750:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6029,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6006,
                    "src": "750:18:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "749:20:35"
            },
            "scope": 6033,
            "src": "688:82:35",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 6034,
        "src": "402:370:35"
      }
    ],
    "src": "44:729:35"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol",
    "exportedSymbols": {
      "EVMScriptRegistryConstants": [
        6013
      ],
      "IEVMScriptRegistry": [
        6033
      ]
    },
    "id": 6034,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6008,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:35"
      },
      {
        "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol",
        "file": "./IEVMScriptExecutor.sol",
        "id": 6009,
        "nodeType": "ImportDirective",
        "scope": 6034,
        "sourceUnit": 6007,
        "src": "70:34:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6013,
        "linearizedBaseContracts": [
          6013
        ],
        "name": "EVMScriptRegistryConstants",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 6012,
            "name": "EVMSCRIPT_REGISTRY_APP_ID",
            "nodeType": "VariableDeclaration",
            "scope": 6013,
            "src": "276:120:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 6010,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "276:7:35",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864646263666435363466363432616235363237636636386239623764333734666234663861333665393431613735643839633837393938636566303362643631",
              "id": 6011,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "330:66:35",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_100295055253822236757776785641620620126240610315818972729696126418245724126561_by_1",
                "typeString": "int_const 1002...(70 digits omitted)...6561"
              },
              "value": "0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61"
            },
            "visibility": "internal"
          }
        ],
        "scope": 6034,
        "src": "107:292:35"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": null,
        "fullyImplemented": false,
        "id": 6033,
        "linearizedBaseContracts": [
          6033
        ],
        "name": "IEVMScriptRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 6020,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "addScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6016,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6015,
                  "name": "executor",
                  "nodeType": "VariableDeclaration",
                  "scope": 6020,
                  "src": "464:27:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6014,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6006,
                    "src": "464:18:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "463:29:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6019,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6018,
                  "name": "id",
                  "nodeType": "VariableDeclaration",
                  "scope": 6020,
                  "src": "511:7:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6017,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "511:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "510:9:35"
            },
            "scope": 6033,
            "src": "437:83:35",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 6025,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "disableScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6023,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6022,
                  "name": "executorId",
                  "nodeType": "VariableDeclaration",
                  "scope": 6025,
                  "src": "556:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6021,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "556:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "555:20:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6024,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "584:0:35"
            },
            "scope": 6033,
            "src": "525:60:35",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 6032,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6028,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6027,
                  "name": "script",
                  "nodeType": "VariableDeclaration",
                  "scope": 6032,
                  "src": "715:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6026,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "715:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "714:14:35"
            },
            "payable": false,
            "returnParameters": {
              "id": 6031,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6030,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6032,
                  "src": "750:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 6029,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 6006,
                    "src": "750:18:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$6006",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "749:20:35"
            },
            "scope": 6033,
            "src": "688:82:35",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 6034,
        "src": "402:370:35"
      }
    ],
    "src": "44:729:35"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2019-04-16T08:24:52.820Z"
}