{
    "Function": "retrieveGenerativeScript",
    "File": "smart-contracts/NextGenCore.sol",
    "Parent Contracts": [
        "smart-contracts/ERC2981.sol",
        "smart-contracts/Ownable.sol",
        "smart-contracts/ERC721Enumerable.sol",
        "smart-contracts/IERC721Enumerable.sol",
        "smart-contracts/ERC721.sol",
        "smart-contracts/IERC721Metadata.sol",
        "smart-contracts/IERC721.sol",
        "smart-contracts/ERC165.sol",
        "smart-contracts/IERC2981.sol",
        "smart-contracts/IERC165.sol",
        "smart-contracts/Context.sol"
    ],
    "High-Level Calls": [
        "Strings",
        "Strings"
    ],
    "Internal Calls": [
        "abi.encodePacked()",
        "abi.encodePacked()",
        "_requireMinted"
    ],
    "Library Calls": [
        "toHexString",
        "toString"
    ],
    "Low-Level Calls": [],
    "Code": "function retrieveGenerativeScript(uint256 tokenId) public view returns(string memory){\n        _requireMinted(tokenId);\n        string memory scripttext;\n        for (uint256 i=0; i < collectionInfo[tokenIdsToCollectionIds[tokenId]].collectionScript.length; i++) {\n            scripttext = string(abi.encodePacked(scripttext, collectionInfo[tokenIdsToCollectionIds[tokenId]].collectionScript[i])); \n        }\n        return string(abi.encodePacked(\"let hash='\",Strings.toHexString(uint256(tokenToHash[tokenId]), 32),\"';let tokenId=\",tokenId.toString(),\";let tokenData=[\",tokenData[tokenId],\"];\", scripttext));\n    }"
}