{
  "contractName": "IModuleRegistry",
  "abi": [
    {
      "constant": false,
      "inputs": [
        {
          "name": "_moduleFactory",
          "type": "address"
        }
      ],
      "name": "useModule",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_moduleFactory",
          "type": "address"
        }
      ],
      "name": "registerModule",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_moduleType",
          "type": "uint8"
        }
      ],
      "name": "getTagByModuleType",
      "outputs": [
        {
          "name": "",
          "type": "bytes32[]"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.4.24;\n\n/**\n * @title Interface for the polymath module registry contract\n */\ncontract IModuleRegistry {\n\n    /**\n     * @notice Called by a security token to notify the registry it is using a module\n     * @param _moduleFactory is the address of the relevant module factory\n     */\n    function useModule(address _moduleFactory) external;\n\n    /**\n     * @notice Called by moduleFactory owner to register new modules for SecurityToken to use\n     * @param _moduleFactory is the address of the module factory to be registered\n     */\n    function registerModule(address _moduleFactory) external returns(bool);\n\n    /**\n     * @notice Use to get all the tags releated to the functionality of the Module Factory.\n     * @param _moduleType Type of module\n     */\n    function getTagByModuleType(uint8 _moduleType) public view returns(bytes32[]);\n\n}\n",
  "sourcePath": "/Users/satyamagrawal/Repositories/testing-package/polymath-core/contracts/interfaces/IModuleRegistry.sol",
  "ast": {
    "absolutePath": "/Users/satyamagrawal/Repositories/testing-package/polymath-core/contracts/interfaces/IModuleRegistry.sol",
    "exportedSymbols": {
      "IModuleRegistry": [
        9977
      ]
    },
    "id": 9978,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 9956,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:15"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": "@title Interface for the polymath module registry contract",
        "fullyImplemented": false,
        "id": 9977,
        "linearizedBaseContracts": [
          9977
        ],
        "name": "IModuleRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Called by a security token to notify the registry it is using a module\n@param _moduleFactory is the address of the relevant module factory",
            "id": 9961,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "useModule",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9959,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9958,
                  "name": "_moduleFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 9961,
                  "src": "324:22:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9957,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "324:7:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "323:24:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9960,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "356:0:15"
            },
            "scope": 9977,
            "src": "305:52:15",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Called by moduleFactory owner to register new modules for SecurityToken to use\n@param _moduleFactory is the address of the module factory to be registered",
            "id": 9968,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "registerModule",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9964,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9963,
                  "name": "_moduleFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 9968,
                  "src": "580:22:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9962,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "580:7:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "579:24:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9967,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9966,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9968,
                  "src": "621:4:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9965,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "621:4:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "620:6:15"
            },
            "scope": 9977,
            "src": "556:71:15",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Use to get all the tags releated to the functionality of the Module Factory.\n@param _moduleType Type of module",
            "id": 9976,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getTagByModuleType",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9970,
                  "name": "_moduleType",
                  "nodeType": "VariableDeclaration",
                  "scope": 9976,
                  "src": "810:17:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 9969,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "810:5:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "809:19:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9975,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9974,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9976,
                  "src": "849:9:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
                    "typeString": "bytes32[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 9972,
                      "name": "bytes32",
                      "nodeType": "ElementaryTypeName",
                      "src": "849:7:15",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "id": 9973,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "849:9:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
                      "typeString": "bytes32[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "848:11:15"
            },
            "scope": 9977,
            "src": "782:78:15",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 9978,
        "src": "96:767:15"
      }
    ],
    "src": "0:864:15"
  },
  "legacyAST": {
    "absolutePath": "/Users/satyamagrawal/Repositories/testing-package/polymath-core/contracts/interfaces/IModuleRegistry.sol",
    "exportedSymbols": {
      "IModuleRegistry": [
        9977
      ]
    },
    "id": 9978,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 9956,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:15"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": "@title Interface for the polymath module registry contract",
        "fullyImplemented": false,
        "id": 9977,
        "linearizedBaseContracts": [
          9977
        ],
        "name": "IModuleRegistry",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@notice Called by a security token to notify the registry it is using a module\n@param _moduleFactory is the address of the relevant module factory",
            "id": 9961,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "useModule",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9959,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9958,
                  "name": "_moduleFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 9961,
                  "src": "324:22:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9957,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "324:7:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "323:24:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9960,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "356:0:15"
            },
            "scope": 9977,
            "src": "305:52:15",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Called by moduleFactory owner to register new modules for SecurityToken to use\n@param _moduleFactory is the address of the module factory to be registered",
            "id": 9968,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "registerModule",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9964,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9963,
                  "name": "_moduleFactory",
                  "nodeType": "VariableDeclaration",
                  "scope": 9968,
                  "src": "580:22:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 9962,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "580:7:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "579:24:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9967,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9966,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9968,
                  "src": "621:4:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 9965,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "621:4:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "620:6:15"
            },
            "scope": 9977,
            "src": "556:71:15",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": "@notice Use to get all the tags releated to the functionality of the Module Factory.\n@param _moduleType Type of module",
            "id": 9976,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getTagByModuleType",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 9971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9970,
                  "name": "_moduleType",
                  "nodeType": "VariableDeclaration",
                  "scope": 9976,
                  "src": "810:17:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 9969,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "810:5:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "809:19:15"
            },
            "payable": false,
            "returnParameters": {
              "id": 9975,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 9974,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 9976,
                  "src": "849:9:15",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
                    "typeString": "bytes32[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 9972,
                      "name": "bytes32",
                      "nodeType": "ElementaryTypeName",
                      "src": "849:7:15",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "id": 9973,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "849:9:15",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
                      "typeString": "bytes32[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "848:11:15"
            },
            "scope": 9977,
            "src": "782:78:15",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 9978,
        "src": "96:767:15"
      }
    ],
    "src": "0:864:15"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2018-08-21T09:48:12.386Z"
}