Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x1BC10f30a9d3783008B49645fF4803F276dA40c5
Balance 0 ETH
Nonce 1
Code Size 2458 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

2458 bytes
0x6080604052600436106100345760003560e01c806326749ad7146100395780634098da3514610076578063a22f9ebb1461009f575b600080fd5b34801561004557600080fd5b50610060600480360381019061005b91906103ee565b6100bb565b60405161006d9190610436565b60405180910390f35b34801561008257600080fd5b5061009d6004803603810190610098919061047d565b6100db565b005b6100b960048036038101906100b4919061070f565b610183565b005b60006020528060005260406000206000915054906101000a900460ff1681565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167ff69c4d6f3058cf88dfb7335ebd4ffb058691f86631d6e8dc35f4ab233719b9b5826040516101779190610436565b60405180910390a25050565b81518351146101c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101be906107f7565b60405180910390fd5b60005b83518110156103765760008482815181106101e8576101e7610817565b5b60200260200101519050600084838151811061020757610206610817565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016102619190610855565b602060405180830381865afa15801561027e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a29190610885565b73ffffffffffffffffffffffffffffffffffffffff16146102f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ef906108fe565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166342842e0e3386846040518463ffffffff1660e01b81526004016103359392919061092d565b600060405180830381600087803b15801561034f57600080fd5b505af1158015610363573d6000803e3d6000fd5b50505050505080806001019150506101ca565b50505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103bb82610390565b9050919050565b6103cb816103b0565b81146103d657600080fd5b50565b6000813590506103e8816103c2565b92915050565b60006020828403121561040457610403610386565b5b6000610412848285016103d9565b91505092915050565b60008115159050919050565b6104308161041b565b82525050565b600060208201905061044b6000830184610427565b92915050565b61045a8161041b565b811461046557600080fd5b50565b60008135905061047781610451565b92915050565b6000806040838503121561049457610493610386565b5b60006104a2858286016103d9565b92505060206104b385828601610468565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61050b826104c2565b810181811067ffffffffffffffff8211171561052a576105296104d3565b5b80604052505050565b600061053d61037c565b90506105498282610502565b919050565b600067ffffffffffffffff821115610569576105686104d3565b5b602082029050602081019050919050565b600080fd5b600061059261058d8461054e565b610533565b905080838252602082019050602084028301858111156105b5576105b461057a565b5b835b818110156105de57806105ca88826103d9565b8452602084019350506020810190506105b7565b5050509392505050565b600082601f8301126105fd576105fc6104bd565b5b813561060d84826020860161057f565b91505092915050565b600067ffffffffffffffff821115610631576106306104d3565b5b602082029050602081019050919050565b6000819050919050565b61065581610642565b811461066057600080fd5b50565b6000813590506106728161064c565b92915050565b600061068b61068684610616565b610533565b905080838252602082019050602084028301858111156106ae576106ad61057a565b5b835b818110156106d757806106c38882610663565b8452602084019350506020810190506106b0565b5050509392505050565b600082601f8301126106f6576106f56104bd565b5b8135610706848260208601610678565b91505092915050565b60008060006060848603121561072857610727610386565b5b600084013567ffffffffffffffff8111156107465761074561038b565b5b610752868287016105e8565b935050602084013567ffffffffffffffff8111156107735761077261038b565b5b61077f868287016106e1565b9250506040610790868287016103d9565b9150509250925092565b600082825260208201905092915050565b7f417272617973206d7573742068617665207468652073616d65206c656e677468600082015250565b60006107e160208361079a565b91506107ec826107ab565b602082019050919050565b60006020820190508181036000830152610810816107d4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61084f81610642565b82525050565b600060208201905061086a6000830184610846565b92915050565b60008151905061087f816103c2565b92915050565b60006020828403121561089b5761089a610386565b5b60006108a984828501610870565b91505092915050565b7f53656e64657220646f6573206e6f74206f776e2074686520746f6b656e000000600082015250565b60006108e8601d8361079a565b91506108f3826108b2565b602082019050919050565b60006020820190508181036000830152610917816108db565b9050919050565b610927816103b0565b82525050565b6000606082019050610942600083018661091e565b61094f602083018561091e565b61095c6040830184610846565b94935050505056fea2646970667358221220586550d34dbf1e884542ac3ffb3f2d120c20339550a6465be07f4d78b8ec57b564736f6c634300081c0033

Verified Source Code Partial Match

Compiler: v0.8.28+commit.7893614a EVM: paris Optimization: No
MultiERC721Transfer.sol 341 lines
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;


/**
 * @dev Required interface of an ERC-721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File: MultiTransferToken.sol





pragma solidity ^0.8.0;


contract MultiERC721Transfer {
    // Mapping to keep track of approved contracts
    mapping(address => bool) public approvedContracts;

    event ApprovedContract(address indexed contractAddress, bool isApproved);

    // Function to approve or revoke an ERC721 contract for transfers
    function approveContract(address _contractAddress, bool _isApproved) public {
        approvedContracts[_contractAddress] = _isApproved;
        emit ApprovedContract(_contractAddress, _isApproved);
    }

    // Function to transfer multiple ERC721 tokens to a recipient
    function safeTransferMultipleERC721Tokens(
        address[] memory _tokenContracts,
        uint256[] memory _tokenIds,
        address _to
    ) external payable{
        require(_tokenContracts.length == _tokenIds.length, "Arrays must have the same length");

        for (uint256 i = 0; i < _tokenContracts.length; i++) {
            address tokenContract = _tokenContracts[i];
            uint256 tokenId = _tokenIds[i];

            require(
                IERC721(tokenContract).ownerOf(tokenId) == msg.sender,
                "Sender does not own the token"
            );

            IERC721(tokenContract).safeTransferFrom(msg.sender, _to, tokenId);
        }
    }
}

Read Contract

approvedContracts 0x26749ad7 → bool

Write Contract 2 functions

These functions modify contract state and require a wallet transaction to execute.

approveContract 0x4098da35
address _contractAddress
bool _isApproved
safeTransferMultipleERC721Tokens 0xa22f9ebb
address[] _tokenContracts
uint256[] _tokenIds
address _to

Recent Transactions

No transactions found for this address