{
    "Function": "slitherConstructorVariables",
    "File": "contracts/models/DAO.sol",
    "Parent Contracts": [
        "contracts/services/ReentryProtection.sol",
        "contracts/models/EternalModel.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "contract DAO is EternalModel, ReentryProtection {\n  struct Instance {\n    address uuid;\n    address[] summoners;\n    bool summoned;\n    string name;\n    uint256 maxVotingLambda;\n    uint256 numberOfSummoners;\n    Ecosystem.Instance ecosystem;\n  }\n\n  event Serialized(address indexed uuid);\n\n  /**\n   * @dev deserializes Instance struct\n   * @param _uuid - address of the unique user ID\n   * @return record Instance\n   */\n  function deserialize(address _uuid, Ecosystem.Instance memory _ecosystem)\n    external\n    view\n    returns (Instance memory record)\n  {\n    record.uuid = _uuid;\n    record.ecosystem = _ecosystem;\n\n    if (_exists(_uuid)) {\n      record.maxVotingLambda = getUint(keccak256(abi.encode(_uuid, 'maxVotingLambda')));\n      record.name = getString(keccak256(abi.encode(_uuid, 'name')));\n      record.numberOfSummoners = getUint(keccak256(abi.encode(_uuid, 'numberOfSummoners')));\n      record.summoned = getBool(keccak256(abi.encode(_uuid, 'summoned')));\n    }\n\n    return record;\n  }\n\n  /**\n   * @dev checks if @param _uuid exists\n   * @param _uuid - address of the unique user ID\n   * @return recordExists bool\n   */\n  function exists(address _uuid, Ecosystem.Instance memory) external view returns (bool) {\n    return _exists(_uuid);\n  }\n\n  function getSummoner(Instance memory _dao, uint256 _index) external view returns (address) {\n    return getAddress(keccak256(abi.encode(_dao.uuid, 'summoners', _index)));\n  }\n\n  /**\n   * @dev checks if @param _uuid where _uuid is msg.sender - is a Summoner\n   * @param _dao DAO.Instance\n   * @param _summonerAddress address\n   * @return bool\n   */\n  function isSummoner(Instance memory _dao, address _summonerAddress) external view returns (bool) {\n    return getBool(keccak256(abi.encode(_dao.uuid, 'summoner', _summonerAddress)));\n  }\n\n  /**\n   * @dev serializes Instance struct\n   * @param _record Instance\n   */\n  function serialize(Instance memory _record) external preventReentry {\n    require(\n      msg.sender == _record.uuid || msg.sender == _record.ecosystem.configuratorAddress,\n      'ElasticDAO: Unauthorized'\n    );\n\n    setUint(keccak256(abi.encode(_record.uuid, 'maxVotingLambda')), _record.maxVotingLambda);\n    setString(keccak256(abi.encode(_record.uuid, 'name')), _record.name);\n    setBool(keccak256(abi.encode(_record.uuid, 'summoned')), _record.summoned);\n\n    if (_record.summoners.length > 0) {\n      _record.numberOfSummoners = _record.summoners.length;\n      setUint(keccak256(abi.encode(_record.uuid, 'numberOfSummoners')), _record.numberOfSummoners);\n      for (uint256 i = 0; i < _record.numberOfSummoners; i += 1) {\n        setBool(keccak256(abi.encode(_record.uuid, 'summoner', _record.summoners[i])), true);\n        setAddress(keccak256(abi.encode(_record.uuid, 'summoners', i)), _record.summoners[i]);\n      }\n    }\n\n    setBool(keccak256(abi.encode(_record.uuid, 'exists')), true);\n\n    emit Serialized(_record.uuid);\n  }\n\n  function _exists(address _uuid) internal view returns (bool) {\n    return getBool(keccak256(abi.encode(_uuid, 'exists')));\n  }\n}"
}