{
    "Function": "hash",
    "File": "contracts/mocks/MockVoteStorage.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "payloadStr",
        "uint2str",
        "abi.encodePacked()",
        "hashStr"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function hash(string memory proposal) public view returns (bytes32) {\n        Vote memory vote = proposals[proposal];\n\n        // prettier-ignore\n        return hashStr(string(abi.encodePacked(\n            \"{\",\n                '\"version\":\"', vote.version, '\",',\n                '\"timestamp\":\"', uint2str(vote.timestamp), '\",',\n                '\"space\":\"', vote.space, '\",',\n                '\"type\":\"', vote.voteType, '\",',\n                payloadStr(proposal, vote.choice),\n           \"}\"\n        )));\n    }"
}