{
  "contractName": "EVMScriptRegistryConstants",
  "abi": [],
  "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058204890ec2aef3817af3e2c70de9f6fb625df2218367a4ef14237bb65e8525988790029",
  "deployedBytecode": "0x6080604052600080fd00a165627a7a723058204890ec2aef3817af3e2c70de9f6fb625df2218367a4ef14237bb65e8525988790029",
  "sourceMap": "107:292:44:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107:292:44;;;;;;;",
  "deployedSourceMap": "107:292:44:-;;;;;",
  "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": [
        11850
      ],
      "IEVMScriptRegistry": [
        11870
      ]
    },
    "id": 11871,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11845,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:44"
      },
      {
        "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol",
        "file": "./IEVMScriptExecutor.sol",
        "id": 11846,
        "nodeType": "ImportDirective",
        "scope": 11871,
        "sourceUnit": 11844,
        "src": "70:34:44",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 11850,
        "linearizedBaseContracts": [
          11850
        ],
        "name": "EVMScriptRegistryConstants",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 11849,
            "name": "EVMSCRIPT_REGISTRY_APP_ID",
            "nodeType": "VariableDeclaration",
            "scope": 11850,
            "src": "276:120:44",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 11847,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "276:7:44",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864646263666435363466363432616235363237636636386239623764333734666234663861333665393431613735643839633837393938636566303362643631",
              "id": 11848,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "330:66:44",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_100295055253822236757776785641620620126240610315818972729696126418245724126561_by_1",
                "typeString": "int_const 1002...(70 digits omitted)...6561"
              },
              "value": "0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61"
            },
            "visibility": "internal"
          }
        ],
        "scope": 11871,
        "src": "107:292:44"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": null,
        "fullyImplemented": false,
        "id": 11870,
        "linearizedBaseContracts": [
          11870
        ],
        "name": "IEVMScriptRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 11857,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "addScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11853,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11852,
                  "name": "executor",
                  "nodeType": "VariableDeclaration",
                  "scope": 11857,
                  "src": "464:27:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11851,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 11843,
                    "src": "464:18:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "463:29:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11856,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11855,
                  "name": "id",
                  "nodeType": "VariableDeclaration",
                  "scope": 11857,
                  "src": "511:7:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11854,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "511:4:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "510:9:44"
            },
            "scope": 11870,
            "src": "437:83:44",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 11862,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "disableScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11860,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11859,
                  "name": "executorId",
                  "nodeType": "VariableDeclaration",
                  "scope": 11862,
                  "src": "556:18:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11858,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "556:7:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "555:20:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11861,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "584:0:44"
            },
            "scope": 11870,
            "src": "525:60:44",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 11869,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11865,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11864,
                  "name": "script",
                  "nodeType": "VariableDeclaration",
                  "scope": 11869,
                  "src": "715:12:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 11863,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "715:5:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "714:14:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11868,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11867,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 11869,
                  "src": "750:18:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11866,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 11843,
                    "src": "750:18:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "749:20:44"
            },
            "scope": 11870,
            "src": "688:82:44",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 11871,
        "src": "402:370:44"
      }
    ],
    "src": "44:729:44"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol",
    "exportedSymbols": {
      "EVMScriptRegistryConstants": [
        11850
      ],
      "IEVMScriptRegistry": [
        11870
      ]
    },
    "id": 11871,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11845,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:44"
      },
      {
        "absolutePath": "@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol",
        "file": "./IEVMScriptExecutor.sol",
        "id": 11846,
        "nodeType": "ImportDirective",
        "scope": 11871,
        "sourceUnit": 11844,
        "src": "70:34:44",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 11850,
        "linearizedBaseContracts": [
          11850
        ],
        "name": "EVMScriptRegistryConstants",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 11849,
            "name": "EVMSCRIPT_REGISTRY_APP_ID",
            "nodeType": "VariableDeclaration",
            "scope": 11850,
            "src": "276:120:44",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 11847,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "276:7:44",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307864646263666435363466363432616235363237636636386239623764333734666234663861333665393431613735643839633837393938636566303362643631",
              "id": 11848,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "330:66:44",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_100295055253822236757776785641620620126240610315818972729696126418245724126561_by_1",
                "typeString": "int_const 1002...(70 digits omitted)...6561"
              },
              "value": "0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61"
            },
            "visibility": "internal"
          }
        ],
        "scope": 11871,
        "src": "107:292:44"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": null,
        "fullyImplemented": false,
        "id": 11870,
        "linearizedBaseContracts": [
          11870
        ],
        "name": "IEVMScriptRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 11857,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "addScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11853,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11852,
                  "name": "executor",
                  "nodeType": "VariableDeclaration",
                  "scope": 11857,
                  "src": "464:27:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11851,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 11843,
                    "src": "464:18:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "463:29:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11856,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11855,
                  "name": "id",
                  "nodeType": "VariableDeclaration",
                  "scope": 11857,
                  "src": "511:7:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11854,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "511:4:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "510:9:44"
            },
            "scope": 11870,
            "src": "437:83:44",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 11862,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "disableScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11860,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11859,
                  "name": "executorId",
                  "nodeType": "VariableDeclaration",
                  "scope": 11862,
                  "src": "556:18:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11858,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "556:7:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "555:20:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11861,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "584:0:44"
            },
            "scope": 11870,
            "src": "525:60:44",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": null,
            "id": 11869,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getScriptExecutor",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11865,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11864,
                  "name": "script",
                  "nodeType": "VariableDeclaration",
                  "scope": 11869,
                  "src": "715:12:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 11863,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "715:5:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "714:14:44"
            },
            "payable": false,
            "returnParameters": {
              "id": 11868,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11867,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 11869,
                  "src": "750:18:44",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                    "typeString": "contract IEVMScriptExecutor"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11866,
                    "name": "IEVMScriptExecutor",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 11843,
                    "src": "750:18:44",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IEVMScriptExecutor_$11843",
                      "typeString": "contract IEVMScriptExecutor"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "749:20:44"
            },
            "scope": 11870,
            "src": "688:82:44",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 11871,
        "src": "402:370:44"
      }
    ],
    "src": "44:729:44"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2019-09-04T11:02:55.766Z"
}