{
    "Function": "_transferFrom",
    "File": "contracts/helpers/EtherRocksHelper.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "contracts/escrow/NFTEscrow.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [
        "IEtherRocks",
        "IEtherRocks",
        "IEtherRocks",
        "IEtherRocks"
    ],
    "Internal Calls": [
        "_executeTransfer",
        "owner",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _transferFrom(\n        address _from,\n        address _to,\n        uint256 _idx\n    ) internal {\n        IEtherRocks rocks = IEtherRocks(nftAddress);\n\n        (address account,,,) = rocks.getRockInfo(_idx);\n\n        //if the owner is this address we don't need to go through {NFTEscrow}\n        if (account != address(this)) {\n            _executeTransfer(_from, _idx);\n        }\n\n        (address newOwner,,,) = rocks.getRockInfo(_idx);\n\n        require(\n            newOwner == address(this), //this should never be false\n            \"EtherRocksHelper: not_deposited\"\n        );\n\n        //remove rock from sale\n        rocks.dontSellRock(_idx);\n\n        //If _to is the owner ({NFTVault}), we aren't sending the rock\n        //since we'd have no way to get it back\n        if (_to != owner()) rocks.giftRock(_idx, _to);\n    }"
}