ETH Price: $2,452.42 (+3.46%)

Contract

0x0f8Dc64662a9BB57BFD36e1A5bdEb2D2Dec394B1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint179399382023-08-18 6:37:35420 days ago1692340655IN
0x0f8Dc646...2Dec394B1
0 ETH0.0015741118.34486245
Mint177833182023-07-27 8:49:11442 days ago1690447751IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016037218.68988757
Mint176691352023-07-11 8:17:47458 days ago1689063467IN
0x0f8Dc646...2Dec394B1
0 ETH0.001343715.66184424
Mint176691252023-07-11 8:15:47458 days ago1689063347IN
0x0f8Dc646...2Dec394B1
0 ETH0.0013507215.74145267
Mint176690932023-07-11 8:09:11458 days ago1689062951IN
0x0f8Dc646...2Dec394B1
0 ETH0.0013903816.20360302
Mint176690722023-07-11 8:04:59458 days ago1689062699IN
0x0f8Dc646...2Dec394B1
0 ETH0.0013819516.10543904
Mint176690622023-07-11 8:02:59458 days ago1689062579IN
0x0f8Dc646...2Dec394B1
0 ETH0.0014497416.89541128
Mint176124762023-07-03 9:13:47466 days ago1688375627IN
0x0f8Dc646...2Dec394B1
0 ETH0.0017569220.47533232
Mint176124482023-07-03 9:07:47466 days ago1688375267IN
0x0f8Dc646...2Dec394B1
0 ETH0.0015400117.94992349
Mint176124372023-07-03 9:05:35466 days ago1688375135IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016043518.69726962
Mint175257152023-06-21 4:39:23478 days ago1687322363IN
0x0f8Dc646...2Dec394B1
0 ETH0.0011248213.10878939
Mint175256922023-06-21 4:34:47478 days ago1687322087IN
0x0f8Dc646...2Dec394B1
0 ETH0.0011856913.81819894
Mint174346132023-06-08 9:09:47491 days ago1686215387IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016959919.76797752
Mint174345992023-06-08 9:06:59491 days ago1686215219IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016052518.7077713
Mint173839922023-06-01 5:49:35498 days ago1685598575IN
0x0f8Dc646...2Dec394B1
0 ETH0.0056645266.01474901
Mint173839632023-06-01 5:43:47498 days ago1685598227IN
0x0f8Dc646...2Dec394B1
0 ETH0.00531161.89479965
Mint171414022023-04-28 1:35:59532 days ago1682645759IN
0x0f8Dc646...2Dec394B1
0 ETH0.0029676934.58566877
Mint171413942023-04-28 1:34:23532 days ago1682645663IN
0x0f8Dc646...2Dec394B1
0 ETH0.0028100832.74892966
Mint170156382023-04-10 5:08:59550 days ago1681103339IN
0x0f8Dc646...2Dec394B1
0 ETH0.0017372120.24565722
Mint169673952023-04-03 8:43:11557 days ago1680511391IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016123918.79098286
Mint169673792023-04-03 8:39:59557 days ago1680511199IN
0x0f8Dc646...2Dec394B1
0 ETH0.001761720.53104446
Mint169673662023-04-03 8:37:23557 days ago1680511043IN
0x0f8Dc646...2Dec394B1
0 ETH0.0015350617.88979865
Mint168807042023-03-22 4:17:35569 days ago1679458655IN
0x0f8Dc646...2Dec394B1
0 ETH0.0009438710.99999071
Mint168179962023-03-13 8:50:59578 days ago1678697459IN
0x0f8Dc646...2Dec394B1
0 ETH0.0017223620.07254973
Mint168179782023-03-13 8:47:11578 days ago1678697231IN
0x0f8Dc646...2Dec394B1
0 ETH0.0016118118.78687117
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Sports3Pass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : Sports3Pass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import { ERC721Core } from "../core/ERC721Core.sol";

contract Sports3Pass is ERC721Core {
    constructor()
        ERC721Core("Sports3 Pass", "SPP", address(0), 0, 3333, "", "")
    {}
}

File 2 of 26 : ERC721Core.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { ERC721Pausable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { Counters } from "@openzeppelin/contracts/utils/Counters.sol";
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { DefaultOperatorFilterer } from "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import { CoreRoles } from "./CoreRoles.sol";
import { IERC721Core } from "./interfaces/IERC721Core.sol";
import { RoyaltyInfo } from "./RoyaltyInfo.sol";

contract ERC721Core is
    ERC721Pausable,
    IERC721Core,
    ReentrancyGuard,
    DefaultOperatorFilterer,
    RoyaltyInfo,
    CoreRoles
{
    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _totalSupply;
    uint256 private _maxSupply;
    string private _tokenURIPrefix;
    string private _tokenURISuffix;
    address private _saleAddress;

    /*------------------------------------------------
     * ERC721Core
     *----------------------------------------------*/

    modifier onlyOperatorOrSale() {
        address caller = msg.sender;
        require(
            operator() == caller || _saleAddress == caller,
            "invalid caller"
        );
        _;
    }

    event SaleAddress(
        address indexed previousAddress,
        address indexed newAddress
    );

    event TokenURI(string prefix, string suffix);

    constructor(
        string memory name,
        string memory symbol,
        address royaltyReceiver,
        uint96 royaltyFraction,
        uint256 newMaxSupply,
        string memory newTokenURIPrefix,
        string memory newTokenURISuffix
    ) ERC721(name, symbol) RoyaltyInfo(royaltyReceiver, royaltyFraction) {
        _maxSupply = newMaxSupply;
        _setTokenURI(newTokenURIPrefix, newTokenURISuffix);
    }

    function saleAddress() external view returns (address) {
        return _saleAddress;
    }

    function setSaleAddress(address newSaleAddress) external onlyAdmin {
        address previousSaleAddress = _saleAddress;
        _saleAddress = newSaleAddress;
        emit SaleAddress(previousSaleAddress, _saleAddress);
    }

    /*------------------------------------------------
     * IERC721Core
     *----------------------------------------------*/

    function mint(address to, uint256 amount)
        external
        override
        onlyOperatorOrSale
        nonReentrant
    {
        require(
            (_totalSupply.current() + amount) <= _maxSupply,
            "over max supply"
        );
        while (0 < amount) {
            _totalSupply.increment();
            _safeMint(to, _totalSupply.current());
            amount--;
        }
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply.current();
    }

    function maxSupply() external view returns (uint256) {
        return _maxSupply;
    }

    function remainSupply() external view override returns (uint256) {
        if (_maxSupply <= _totalSupply.current()) {
            return 0;
        }
        return _maxSupply - _totalSupply.current();
    }

    function supplies()
        external
        view
        override
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        uint256 total = _totalSupply.current();
        uint256 remain = 0;
        if (total < _maxSupply) {
            remain = _maxSupply - total;
        }
        return (total, _maxSupply, remain);
    }

    /*------------------------------------------------
     * ERC165
     *----------------------------------------------*/

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(RoyaltyInfo, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /*------------------------------------------------
     * ERC721
     *----------------------------------------------*/

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "not exist token");
        return
            string(
                abi.encodePacked(
                    _tokenURIPrefix,
                    tokenId.toString(),
                    _tokenURISuffix
                )
            );
    }

    function setTokenURI(
        string memory newTokenURIPrefix,
        string memory newTokenURISuffix
    ) external onlyOperator {
        _setTokenURI(newTokenURIPrefix, newTokenURISuffix);
    }

    function _setTokenURI(
        string memory newTokenURIPrefix,
        string memory newTokenURISuffix
    ) internal {
        _tokenURIPrefix = newTokenURIPrefix;
        _tokenURISuffix = newTokenURISuffix;
        emit TokenURI(_tokenURIPrefix, _tokenURISuffix);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function approve(address operator, uint256 tokenId)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        return super.isApprovedForAll(owner, operator);
    }

    /*------------------------------------------------
     * ERC2981
     *----------------------------------------------*/

    function setRoyaltyInfo(address newReceiver, uint96 newFraction)
        external
        onlyOperator
    {
        _setRoyaltyInfo(newReceiver, newFraction);
    }
}

File 3 of 26 : RoyaltyInfo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import { IERC2981 } from "@openzeppelin/contracts/interfaces/IERC2981.sol";
import { ERC165 } from "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

contract RoyaltyInfo is IERC2981, ERC165 {
    uint96 private constant FEE_DENOMINATOR = 10000;

    address private _receiver;
    uint96 private _fraction;

    event SetRoyaltyInfo(
        address indexed previousReceiver,
        address indexed newReceiver,
        uint96 previousFraction,
        uint96 newFraction
    );

    constructor(address newReceiver, uint96 newFraction) {
        _setRoyaltyInfo(newReceiver, newFraction);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address, uint256)
    {
        if (_receiver == address(0x0)) {
            return (address(this), 0);
        } else if (_fraction == 0 || salePrice == 0) {
            return (_receiver, 0);
        }
        return (_receiver, (salePrice * _fraction) / FEE_DENOMINATOR);
    }

    function _setRoyaltyInfo(address newReceiver, uint96 newFraction) internal {
        require(
            newFraction <= FEE_DENOMINATOR,
            "fraction will exceed salePrice"
        );
        address previousReceiver = _receiver;
        uint96 previousFraction = _fraction;
        _receiver = newReceiver;
        _fraction = newFraction;
        emit SetRoyaltyInfo(
            previousReceiver,
            _receiver,
            previousFraction,
            _fraction
        );
    }
}

File 4 of 26 : CoreRoles.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { AdminRole } from "./roles/AdminRole.sol";
import { OperatorRole } from "./roles/OperatorRole.sol";

contract CoreRoles is Pausable, Ownable, AdminRole, OperatorRole {
    function transferOwnership(address newOwner)
        public
        virtual
        override
        onlyAdmin
    {
        require(newOwner != address(0), "invalid address");
        _transferOwnership(newOwner);
    }

    function transferAdmin(address newAdmin) external virtual onlyAdmin {
        _transferAdmin(newAdmin);
    }

    function transferOperator(address newOperator) external virtual onlyAdmin {
        _transferOperator(newOperator);
    }

    function pause() external onlyOperator {
        _pause();
    }

    function unpause() external onlyOperator {
        _unpause();
    }
}

File 5 of 26 : IERC721Core.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

interface IERC721Core {
    function mint(address to, uint256 amount) external;

    function totalSupply() external view returns (uint256);

    function maxSupply() external view returns (uint256);

    function remainSupply() external view returns (uint256);

    function supplies()
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );
}

File 6 of 26 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 26 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 9 of 26 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 10 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 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 ERC721 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * 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 caller.
     *
     * 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 11 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 12 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 13 of 26 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 14 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * 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[EIP 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 15 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 16 of 26 : AdminRole.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

contract AdminRole {
    address private _admin;

    event AdminTransferred(
        address indexed previousAdmin,
        address indexed newAdmin
    );

    constructor() {
        _transferAdmin(msg.sender);
    }

    modifier onlyAdmin() {
        require(admin() == msg.sender, "caller is not the admin");
        _;
    }

    function admin() public view virtual returns (address) {
        return _admin;
    }

    function _transferAdmin(address newAdmin) internal virtual {
        require(newAdmin != address(0), "invalid address");
        require(newAdmin != _admin, "not change admin");
        address oldAdmin = _admin;
        _admin = newAdmin;
        emit AdminTransferred(oldAdmin, _admin);
    }
}

File 17 of 26 : OperatorRole.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

contract OperatorRole {
    address private _operator;

    event OperatorTransferred(
        address indexed previousOperator,
        address indexed newOperator
    );

    constructor() {
        _transferOperator(msg.sender);
    }

    modifier onlyOperator() {
        require(operator() == msg.sender, "caller is not the operator");
        _;
    }

    function operator() public view virtual returns (address) {
        return _operator;
    }

    function _transferOperator(address newOperator) internal virtual {
        require(newOperator != address(0), "invalid address");
        require(newOperator != _operator, "not change operator");
        address oldOperator = _operator;
        _operator = newOperator;
        emit OperatorTransferred(oldOperator, _operator);
    }
}

File 18 of 26 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 19 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 20 of 26 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

File 21 of 26 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 22 of 26 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 23 of 26 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 24 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 25 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 26 of 26 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SaleAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousReceiver","type":"address"},{"indexed":true,"internalType":"address","name":"newReceiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"previousFraction","type":"uint96"},{"indexed":false,"internalType":"uint96","name":"newFraction","type":"uint96"}],"name":"SetRoyaltyInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"prefix","type":"string"},{"indexed":false,"internalType":"string","name":"suffix","type":"string"}],"name":"TokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newReceiver","type":"address"},{"internalType":"uint96","name":"newFraction","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSaleAddress","type":"address"}],"name":"setSaleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURIPrefix","type":"string"},{"internalType":"string","name":"newTokenURISuffix","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600c81526020016b53706f72747333205061737360a01b8152506040518060400160405280600381526020016205350560ec1b815250600080610d0560405180602001604052806000815250604051806020016040528060008152508484733cc6cdda760b79bafa08df41ecfa224f810dceb660018a8a8160009081620000a591906200067c565b506001620000b482826200067c565b50506006805460ff191690555060016007556daaeb6d7670e522a718067333cd4e3b156200020b5780156200015957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013a57600080fd5b505af11580156200014f573d6000803e3d6000fd5b505050506200020b565b6001600160a01b03821615620001aa5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200011f565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001f157600080fd5b505af115801562000206573d6000803e3d6000fd5b505050505b506200021a905082826200025c565b50620002289050336200033b565b62000233336200038d565b6200023e336200047c565b600d8390556200024f828262000578565b50505050505050620007ff565b6127106001600160601b0382161115620002bd5760405162461bcd60e51b815260206004820152601e60248201527f6672616374696f6e2077696c6c206578636565642073616c655072696365000060448201526064015b60405180910390fd5b600880546001600160601b03838116600160a01b9081026001600160a01b03878116828117968790556040805185880487168082529590980490951660208801529481169592949116179184917f377771b065820b92da881172b82977e2307a6fec324ffc92fe26bbbae0ad42f8910160405180910390a350505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116620003d75760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606401620002b4565b600a546001600160a01b03908116908216036200042a5760405162461bcd60e51b815260206004820152601060248201526f3737ba1031b430b733b29030b236b4b760811b6044820152606401620002b4565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec690600090a35050565b6001600160a01b038116620004c65760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606401620002b4565b600b546001600160a01b0390811690821603620005265760405162461bcd60e51b815260206004820152601360248201527f6e6f74206368616e6765206f70657261746f72000000000000000000000000006044820152606401620002b4565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a35050565b600e6200058683826200067c565b50600f6200059582826200067c565b507f34096664059c7d0b551b98d4585f6566d0a87a93bb8f5a23b1e5fdace3e32673600e600f604051620005cb929190620007cd565b60405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200060257607f821691505b6020821081036200062357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200067757600081815260208120601f850160051c81016020861015620006525750805b601f850160051c820191505b8181101562000673578281556001016200065e565b5050505b505050565b81516001600160401b03811115620006985762000698620005d7565b620006b081620006a98454620005ed565b8462000629565b602080601f831160018114620006e85760008415620006cf5750858301515b600019600386901b1c1916600185901b17855562000673565b600085815260208120601f198616915b828110156200071957888601518255948401946001909101908401620006f8565b5085821015620007385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081546200075781620005ed565b8085526020600183811680156200077757600181146200079257620007c2565b60ff1985168884015283151560051b880183019550620007c2565b866000528260002060005b85811015620007ba5781548a82018601529083019084016200079d565b890184019650505b505050505092915050565b604081526000620007e2604083018562000748565b8281036020840152620007f6818562000748565b95945050505050565b612531806200080f6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063b88d4fde116100ad578063e985e9c51161007c578063e985e9c514610449578063f2fde38b1461045c578063f851a4401461046f578063f8fb491f14610480578063fffe088d1461049357600080fd5b8063b88d4fde14610408578063c87b56dd1461041b578063d48ede991461042e578063d5abeb011461044157600080fd5b80638da5cb5b116100e95780638da5cb5b146103b95780638efa8874146103ca57806395d89b41146103ed578063a22cb465146103f557600080fd5b806370a0823114610383578063715018a61461039657806375829def1461039e5780638456cb59146103b157600080fd5b80632a55205a1161019d57806341f434341161016c57806341f434341461032c57806342842e0e14610341578063570ca735146103545780635c975abb146103655780636352211e1461037057600080fd5b80632a55205a146102d75780633f4ba83a146103095780633f5a31521461031157806340c10f191461031957600080fd5b8063095ea7b3116101d9578063095ea7b31461028857806318160ddd1461029b57806323b872dd146102b157806329605e77146102c457600080fd5b806301ffc9a71461020b57806302fa7c471461023357806306fdde0314610248578063081812fc1461025d575b600080fd5b61021e610219366004611c49565b6104a4565b60405190151581526020015b60405180910390f35b610246610241366004611c82565b6104cf565b005b61025061051f565b60405161022a9190611d15565b61027061026b366004611d28565b6105b1565b6040516001600160a01b03909116815260200161022a565b610246610296366004611d41565b6105d8565b6102a36105f1565b60405190815260200161022a565b6102466102bf366004611d6b565b610601565b6102466102d2366004611da7565b61062c565b6102ea6102e5366004611dc2565b610671565b604080516001600160a01b03909316835260208301919091520161022a565b61024661070a565b6102a361074d565b610246610327366004611d41565b610776565b6102706daaeb6d7670e522a718067333cd4e81565b61024661034f366004611d6b565b6108d9565b600b546001600160a01b0316610270565b60065460ff1661021e565b61027061037e366004611d28565b6108fe565b6102a3610391366004611da7565b61095e565b6102466109e4565b6102466103ac366004611da7565b6109f6565b610246610a38565b6009546001600160a01b0316610270565b6103d2610a79565b6040805193845260208401929092529082015260600161022a565b610250610ab5565b610246610403366004611df2565b610ac4565b610246610416366004611eaa565b610ad8565b610250610429366004611d28565b610b05565b61024661043c366004611f46565b610b93565b600d546102a3565b61021e610457366004611faa565b610bd6565b61024661046a366004611da7565b610c09565b600a546001600160a01b0316610270565b61024661048e366004611da7565b610c71565b6010546001600160a01b0316610270565b60006001600160e01b031982166380ac58cd60e01b14806104c957506104c982610cfc565b92915050565b336104e2600b546001600160a01b031690565b6001600160a01b0316146105115760405162461bcd60e51b815260040161050890611fdd565b60405180910390fd5b61051b8282610d21565b5050565b60606000805461052e90612014565b80601f016020809104026020016040519081016040528092919081815260200182805461055a90612014565b80156105a75780601f1061057c576101008083540402835291602001916105a7565b820191906000526020600020905b81548152906001019060200180831161058a57829003601f168201915b5050505050905090565b60006105bc82610dfa565b506000908152600460205260409020546001600160a01b031690565b816105e281610e59565b6105ec8383610f12565b505050565b60006105fc600c5490565b905090565b826001600160a01b038116331461061b5761061b33610e59565b610626848484611022565b50505050565b3361063f600a546001600160a01b031690565b6001600160a01b0316146106655760405162461bcd60e51b81526004016105089061204e565b61066e81611053565b50565b60085460009081906001600160a01b031661069157503090506000610703565b600854600160a01b90046001600160601b031615806106ae575082155b156106c85750506008546001600160a01b03166000610703565b6008546001600160a01b03811690612710906106f490600160a01b90046001600160601b03168661209b565b6106fe91906120c8565b915091505b9250929050565b3361071d600b546001600160a01b031690565b6001600160a01b0316146107435760405162461bcd60e51b815260040161050890611fdd565b61074b61111f565b565b6000610758600c5490565b600d54116107665750600090565b600c54600d546105fc91906120dc565b338061078a600b546001600160a01b031690565b6001600160a01b031614806107ac57506010546001600160a01b038281169116145b6107e95760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610508565b60026007540361083b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610508565b6002600755600d548261084d600c5490565b61085791906120ef565b11156108975760405162461bcd60e51b815260206004820152600f60248201526e6f766572206d617820737570706c7960881b6044820152606401610508565b81156108cf576108ab600c80546001019055565b6108bd836108b8600c5490565b611171565b816108c781612102565b925050610897565b5050600160075550565b826001600160a01b03811633146108f3576108f333610e59565b61062684848461118b565b6000818152600260205260408120546001600160a01b0316806104c95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610508565b60006001600160a01b0382166109c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610508565b506001600160a01b031660009081526003602052604090205490565b6109ec6111a6565b61074b6000611200565b33610a09600a546001600160a01b031690565b6001600160a01b031614610a2f5760405162461bcd60e51b81526004016105089061204e565b61066e81611252565b33610a4b600b546001600160a01b031690565b6001600160a01b031614610a715760405162461bcd60e51b815260040161050890611fdd565b61074b61131b565b600080600080610a88600c5490565b90506000600d54821015610aa75781600d54610aa491906120dc565b90505b600d54919591945092509050565b60606001805461052e90612014565b81610ace81610e59565b6105ec8383611358565b836001600160a01b0381163314610af257610af233610e59565b610afe85858585611363565b5050505050565b6000818152600260205260409020546060906001600160a01b0316610b5e5760405162461bcd60e51b815260206004820152600f60248201526e3737ba1032bc34b9ba103a37b5b2b760891b6044820152606401610508565b600e610b6983611395565b600f604051602001610b7d9392919061218c565b6040516020818303038152906040529050919050565b33610ba6600b546001600160a01b031690565b6001600160a01b031614610bcc5760405162461bcd60e51b815260040161050890611fdd565b61051b828261149e565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff165b9392505050565b33610c1c600a546001600160a01b031690565b6001600160a01b031614610c425760405162461bcd60e51b81526004016105089061204e565b6001600160a01b038116610c685760405162461bcd60e51b8152600401610508906121bf565b61066e81611200565b33610c84600a546001600160a01b031690565b6001600160a01b031614610caa5760405162461bcd60e51b81526004016105089061204e565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f390d2170996051a898885b38ca13748db8b80b90f248541f45d50c2193a6a8ce90600090a35050565b60006001600160e01b0319821663152a902d60e11b14806104c957506104c9826114f7565b6127106001600160601b0382161115610d7c5760405162461bcd60e51b815260206004820152601e60248201527f6672616374696f6e2077696c6c206578636565642073616c65507269636500006044820152606401610508565b600880546001600160601b03838116600160a01b9081026001600160a01b03878116828117968790556040805185880487168082529590980490951660208801529481169592949116179184917f377771b065820b92da881172b82977e2307a6fec324ffc92fe26bbbae0ad42f8910160405180910390a350505050565b6000818152600260205260409020546001600160a01b031661066e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610508565b6daaeb6d7670e522a718067333cd4e3b1561066e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eea91906121e8565b61066e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610508565b6000610f1d826108fe565b9050806001600160a01b0316836001600160a01b031603610f8a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610508565b336001600160a01b0382161480610fa65750610fa68133610bd6565b6110185760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610508565b6105ec8383611547565b61102c33826115b5565b6110485760405162461bcd60e51b815260040161050890612205565b6105ec838383611613565b6001600160a01b0381166110795760405162461bcd60e51b8152600401610508906121bf565b600b546001600160a01b03908116908216036110cd5760405162461bcd60e51b81526020600482015260136024820152723737ba1031b430b733b29037b832b930ba37b960691b6044820152606401610508565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a35050565b6111276117ba565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61051b828260405180602001604052806000815250611803565b6105ec83838360405180602001604052806000815250610ad8565b6009546001600160a01b0316331461074b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610508565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166112785760405162461bcd60e51b8152600401610508906121bf565b600a546001600160a01b03908116908216036112c95760405162461bcd60e51b815260206004820152601060248201526f3737ba1031b430b733b29030b236b4b760811b6044820152606401610508565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec690600090a35050565b611323611836565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111543390565b61051b33838361187c565b61136d33836115b5565b6113895760405162461bcd60e51b815260040161050890612205565b6106268484848461194a565b6060816000036113bc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113e657806113d081612253565b91506113df9050600a836120c8565b91506113c0565b60008167ffffffffffffffff81111561140157611401611e1e565b6040519080825280601f01601f19166020018201604052801561142b576020820181803683370190505b5090505b8415611496576114406001836120dc565b915061144d600a8661226c565b6114589060306120ef565b60f81b81838151811061146d5761146d612280565b60200101906001600160f81b031916908160001a90535061148f600a866120c8565b945061142f565b949350505050565b600e6114aa83826122e4565b50600f6114b782826122e4565b507f34096664059c7d0b551b98d4585f6566d0a87a93bb8f5a23b1e5fdace3e32673600e600f6040516114eb929190612421565b60405180910390a15050565b60006001600160e01b031982166380ac58cd60e01b148061152857506001600160e01b03198216635b5e139f60e01b145b806104c957506301ffc9a760e01b6001600160e01b03198316146104c9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157c826108fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806115c1836108fe565b9050806001600160a01b0316846001600160a01b031614806115e857506115e88185610bd6565b806114965750836001600160a01b0316611601846105b1565b6001600160a01b031614949350505050565b826001600160a01b0316611626826108fe565b6001600160a01b03161461168a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610508565b6001600160a01b0382166116ec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610508565b6116f783838361197d565b611702600082611547565b6001600160a01b038316600090815260036020526040812080546001929061172b9084906120dc565b90915550506001600160a01b03821660009081526003602052604081208054600192906117599084906120ef565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff1661074b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610508565b61180d83836119e4565b61181a6000848484611b32565b6105ec5760405162461bcd60e51b81526004016105089061244f565b60065460ff161561074b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610508565b816001600160a01b0316836001600160a01b0316036118dd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610508565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611955848484611613565b61196184848484611b32565b6106265760405162461bcd60e51b81526004016105089061244f565b60065460ff16156105ec5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610508565b6001600160a01b038216611a3a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610508565b6000818152600260205260409020546001600160a01b031615611a9f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610508565b611aab6000838361197d565b6001600160a01b0382166000908152600360205260408120805460019290611ad49084906120ef565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611c2857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b769033908990889088906004016124a1565b6020604051808303816000875af1925050508015611bb1575060408051601f3d908101601f19168201909252611bae918101906124de565b60015b611c0e573d808015611bdf576040519150601f19603f3d011682016040523d82523d6000602084013e611be4565b606091505b508051600003611c065760405162461bcd60e51b81526004016105089061244f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611496565b506001949350505050565b6001600160e01b03198116811461066e57600080fd5b600060208284031215611c5b57600080fd5b8135610c0281611c33565b80356001600160a01b0381168114611c7d57600080fd5b919050565b60008060408385031215611c9557600080fd5b611c9e83611c66565b915060208301356001600160601b0381168114611cba57600080fd5b809150509250929050565b60005b83811015611ce0578181015183820152602001611cc8565b50506000910152565b60008151808452611d01816020860160208601611cc5565b601f01601f19169290920160200192915050565b602081526000610c026020830184611ce9565b600060208284031215611d3a57600080fd5b5035919050565b60008060408385031215611d5457600080fd5b611d5d83611c66565b946020939093013593505050565b600080600060608486031215611d8057600080fd5b611d8984611c66565b9250611d9760208501611c66565b9150604084013590509250925092565b600060208284031215611db957600080fd5b610c0282611c66565b60008060408385031215611dd557600080fd5b50508035926020909101359150565b801515811461066e57600080fd5b60008060408385031215611e0557600080fd5b611e0e83611c66565b91506020830135611cba81611de4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e4f57611e4f611e1e565b604051601f8501601f19908116603f01168101908282118183101715611e7757611e77611e1e565b81604052809350858152868686011115611e9057600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215611ec057600080fd5b611ec985611c66565b9350611ed760208601611c66565b925060408501359150606085013567ffffffffffffffff811115611efa57600080fd5b8501601f81018713611f0b57600080fd5b611f1a87823560208401611e34565b91505092959194509250565b600082601f830112611f3757600080fd5b610c0283833560208501611e34565b60008060408385031215611f5957600080fd5b823567ffffffffffffffff80821115611f7157600080fd5b611f7d86838701611f26565b93506020850135915080821115611f9357600080fd5b50611fa085828601611f26565b9150509250929050565b60008060408385031215611fbd57600080fd5b611fc683611c66565b9150611fd460208401611c66565b90509250929050565b6020808252601a908201527f63616c6c6572206973206e6f7420746865206f70657261746f72000000000000604082015260600190565b600181811c9082168061202857607f821691505b60208210810361204857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f63616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104c9576104c9612085565b634e487b7160e01b600052601260045260246000fd5b6000826120d7576120d76120b2565b500490565b818103818111156104c9576104c9612085565b808201808211156104c9576104c9612085565b60008161211157612111612085565b506000190190565b6000815461212681612014565b6001828116801561213e576001811461215357612182565b60ff1984168752821515830287019450612182565b8560005260208060002060005b858110156121795781548a820152908401908201612160565b50505082870194505b5050505092915050565b60006121988286612119565b84516121a8818360208901611cc5565b6121b481830186612119565b979650505050505050565b6020808252600f908201526e696e76616c6964206164647265737360881b604082015260600190565b6000602082840312156121fa57600080fd5b8151610c0281611de4565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60006001820161226557612265612085565b5060010190565b60008261227b5761227b6120b2565b500690565b634e487b7160e01b600052603260045260246000fd5b601f8211156105ec57600081815260208120601f850160051c810160208610156122bd5750805b601f850160051c820191505b818110156122dc578281556001016122c9565b505050505050565b815167ffffffffffffffff8111156122fe576122fe611e1e565b6123128161230c8454612014565b84612296565b602080601f831160018114612347576000841561232f5750858301515b600019600386901b1c1916600185901b1785556122dc565b600085815260208120601f198616915b8281101561237657888601518255948401946001909101908401612357565b50858210156123945787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081546123b181612014565b8085526020600183811680156123ce57600181146123e857612416565b60ff1985168884015283151560051b880183019550612416565b866000528260002060005b8581101561240e5781548a82018601529083019084016123f3565b890184019650505b505050505092915050565b60408152600061243460408301856123a4565b828103602084015261244681856123a4565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124d490830184611ce9565b9695505050505050565b6000602082840312156124f057600080fd5b8151610c0281611c3356fea26469706673582212203460a3a2040e9ab605f8997867fa8905c8cc8ed758645226915ddab0ff60ea5464736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063b88d4fde116100ad578063e985e9c51161007c578063e985e9c514610449578063f2fde38b1461045c578063f851a4401461046f578063f8fb491f14610480578063fffe088d1461049357600080fd5b8063b88d4fde14610408578063c87b56dd1461041b578063d48ede991461042e578063d5abeb011461044157600080fd5b80638da5cb5b116100e95780638da5cb5b146103b95780638efa8874146103ca57806395d89b41146103ed578063a22cb465146103f557600080fd5b806370a0823114610383578063715018a61461039657806375829def1461039e5780638456cb59146103b157600080fd5b80632a55205a1161019d57806341f434341161016c57806341f434341461032c57806342842e0e14610341578063570ca735146103545780635c975abb146103655780636352211e1461037057600080fd5b80632a55205a146102d75780633f4ba83a146103095780633f5a31521461031157806340c10f191461031957600080fd5b8063095ea7b3116101d9578063095ea7b31461028857806318160ddd1461029b57806323b872dd146102b157806329605e77146102c457600080fd5b806301ffc9a71461020b57806302fa7c471461023357806306fdde0314610248578063081812fc1461025d575b600080fd5b61021e610219366004611c49565b6104a4565b60405190151581526020015b60405180910390f35b610246610241366004611c82565b6104cf565b005b61025061051f565b60405161022a9190611d15565b61027061026b366004611d28565b6105b1565b6040516001600160a01b03909116815260200161022a565b610246610296366004611d41565b6105d8565b6102a36105f1565b60405190815260200161022a565b6102466102bf366004611d6b565b610601565b6102466102d2366004611da7565b61062c565b6102ea6102e5366004611dc2565b610671565b604080516001600160a01b03909316835260208301919091520161022a565b61024661070a565b6102a361074d565b610246610327366004611d41565b610776565b6102706daaeb6d7670e522a718067333cd4e81565b61024661034f366004611d6b565b6108d9565b600b546001600160a01b0316610270565b60065460ff1661021e565b61027061037e366004611d28565b6108fe565b6102a3610391366004611da7565b61095e565b6102466109e4565b6102466103ac366004611da7565b6109f6565b610246610a38565b6009546001600160a01b0316610270565b6103d2610a79565b6040805193845260208401929092529082015260600161022a565b610250610ab5565b610246610403366004611df2565b610ac4565b610246610416366004611eaa565b610ad8565b610250610429366004611d28565b610b05565b61024661043c366004611f46565b610b93565b600d546102a3565b61021e610457366004611faa565b610bd6565b61024661046a366004611da7565b610c09565b600a546001600160a01b0316610270565b61024661048e366004611da7565b610c71565b6010546001600160a01b0316610270565b60006001600160e01b031982166380ac58cd60e01b14806104c957506104c982610cfc565b92915050565b336104e2600b546001600160a01b031690565b6001600160a01b0316146105115760405162461bcd60e51b815260040161050890611fdd565b60405180910390fd5b61051b8282610d21565b5050565b60606000805461052e90612014565b80601f016020809104026020016040519081016040528092919081815260200182805461055a90612014565b80156105a75780601f1061057c576101008083540402835291602001916105a7565b820191906000526020600020905b81548152906001019060200180831161058a57829003601f168201915b5050505050905090565b60006105bc82610dfa565b506000908152600460205260409020546001600160a01b031690565b816105e281610e59565b6105ec8383610f12565b505050565b60006105fc600c5490565b905090565b826001600160a01b038116331461061b5761061b33610e59565b610626848484611022565b50505050565b3361063f600a546001600160a01b031690565b6001600160a01b0316146106655760405162461bcd60e51b81526004016105089061204e565b61066e81611053565b50565b60085460009081906001600160a01b031661069157503090506000610703565b600854600160a01b90046001600160601b031615806106ae575082155b156106c85750506008546001600160a01b03166000610703565b6008546001600160a01b03811690612710906106f490600160a01b90046001600160601b03168661209b565b6106fe91906120c8565b915091505b9250929050565b3361071d600b546001600160a01b031690565b6001600160a01b0316146107435760405162461bcd60e51b815260040161050890611fdd565b61074b61111f565b565b6000610758600c5490565b600d54116107665750600090565b600c54600d546105fc91906120dc565b338061078a600b546001600160a01b031690565b6001600160a01b031614806107ac57506010546001600160a01b038281169116145b6107e95760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610508565b60026007540361083b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610508565b6002600755600d548261084d600c5490565b61085791906120ef565b11156108975760405162461bcd60e51b815260206004820152600f60248201526e6f766572206d617820737570706c7960881b6044820152606401610508565b81156108cf576108ab600c80546001019055565b6108bd836108b8600c5490565b611171565b816108c781612102565b925050610897565b5050600160075550565b826001600160a01b03811633146108f3576108f333610e59565b61062684848461118b565b6000818152600260205260408120546001600160a01b0316806104c95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610508565b60006001600160a01b0382166109c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610508565b506001600160a01b031660009081526003602052604090205490565b6109ec6111a6565b61074b6000611200565b33610a09600a546001600160a01b031690565b6001600160a01b031614610a2f5760405162461bcd60e51b81526004016105089061204e565b61066e81611252565b33610a4b600b546001600160a01b031690565b6001600160a01b031614610a715760405162461bcd60e51b815260040161050890611fdd565b61074b61131b565b600080600080610a88600c5490565b90506000600d54821015610aa75781600d54610aa491906120dc565b90505b600d54919591945092509050565b60606001805461052e90612014565b81610ace81610e59565b6105ec8383611358565b836001600160a01b0381163314610af257610af233610e59565b610afe85858585611363565b5050505050565b6000818152600260205260409020546060906001600160a01b0316610b5e5760405162461bcd60e51b815260206004820152600f60248201526e3737ba1032bc34b9ba103a37b5b2b760891b6044820152606401610508565b600e610b6983611395565b600f604051602001610b7d9392919061218c565b6040516020818303038152906040529050919050565b33610ba6600b546001600160a01b031690565b6001600160a01b031614610bcc5760405162461bcd60e51b815260040161050890611fdd565b61051b828261149e565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff165b9392505050565b33610c1c600a546001600160a01b031690565b6001600160a01b031614610c425760405162461bcd60e51b81526004016105089061204e565b6001600160a01b038116610c685760405162461bcd60e51b8152600401610508906121bf565b61066e81611200565b33610c84600a546001600160a01b031690565b6001600160a01b031614610caa5760405162461bcd60e51b81526004016105089061204e565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f390d2170996051a898885b38ca13748db8b80b90f248541f45d50c2193a6a8ce90600090a35050565b60006001600160e01b0319821663152a902d60e11b14806104c957506104c9826114f7565b6127106001600160601b0382161115610d7c5760405162461bcd60e51b815260206004820152601e60248201527f6672616374696f6e2077696c6c206578636565642073616c65507269636500006044820152606401610508565b600880546001600160601b03838116600160a01b9081026001600160a01b03878116828117968790556040805185880487168082529590980490951660208801529481169592949116179184917f377771b065820b92da881172b82977e2307a6fec324ffc92fe26bbbae0ad42f8910160405180910390a350505050565b6000818152600260205260409020546001600160a01b031661066e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610508565b6daaeb6d7670e522a718067333cd4e3b1561066e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eea91906121e8565b61066e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610508565b6000610f1d826108fe565b9050806001600160a01b0316836001600160a01b031603610f8a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610508565b336001600160a01b0382161480610fa65750610fa68133610bd6565b6110185760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610508565b6105ec8383611547565b61102c33826115b5565b6110485760405162461bcd60e51b815260040161050890612205565b6105ec838383611613565b6001600160a01b0381166110795760405162461bcd60e51b8152600401610508906121bf565b600b546001600160a01b03908116908216036110cd5760405162461bcd60e51b81526020600482015260136024820152723737ba1031b430b733b29037b832b930ba37b960691b6044820152606401610508565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a35050565b6111276117ba565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61051b828260405180602001604052806000815250611803565b6105ec83838360405180602001604052806000815250610ad8565b6009546001600160a01b0316331461074b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610508565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166112785760405162461bcd60e51b8152600401610508906121bf565b600a546001600160a01b03908116908216036112c95760405162461bcd60e51b815260206004820152601060248201526f3737ba1031b430b733b29030b236b4b760811b6044820152606401610508565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec690600090a35050565b611323611836565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111543390565b61051b33838361187c565b61136d33836115b5565b6113895760405162461bcd60e51b815260040161050890612205565b6106268484848461194a565b6060816000036113bc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113e657806113d081612253565b91506113df9050600a836120c8565b91506113c0565b60008167ffffffffffffffff81111561140157611401611e1e565b6040519080825280601f01601f19166020018201604052801561142b576020820181803683370190505b5090505b8415611496576114406001836120dc565b915061144d600a8661226c565b6114589060306120ef565b60f81b81838151811061146d5761146d612280565b60200101906001600160f81b031916908160001a90535061148f600a866120c8565b945061142f565b949350505050565b600e6114aa83826122e4565b50600f6114b782826122e4565b507f34096664059c7d0b551b98d4585f6566d0a87a93bb8f5a23b1e5fdace3e32673600e600f6040516114eb929190612421565b60405180910390a15050565b60006001600160e01b031982166380ac58cd60e01b148061152857506001600160e01b03198216635b5e139f60e01b145b806104c957506301ffc9a760e01b6001600160e01b03198316146104c9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157c826108fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806115c1836108fe565b9050806001600160a01b0316846001600160a01b031614806115e857506115e88185610bd6565b806114965750836001600160a01b0316611601846105b1565b6001600160a01b031614949350505050565b826001600160a01b0316611626826108fe565b6001600160a01b03161461168a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610508565b6001600160a01b0382166116ec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610508565b6116f783838361197d565b611702600082611547565b6001600160a01b038316600090815260036020526040812080546001929061172b9084906120dc565b90915550506001600160a01b03821660009081526003602052604081208054600192906117599084906120ef565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff1661074b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610508565b61180d83836119e4565b61181a6000848484611b32565b6105ec5760405162461bcd60e51b81526004016105089061244f565b60065460ff161561074b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610508565b816001600160a01b0316836001600160a01b0316036118dd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610508565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611955848484611613565b61196184848484611b32565b6106265760405162461bcd60e51b81526004016105089061244f565b60065460ff16156105ec5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610508565b6001600160a01b038216611a3a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610508565b6000818152600260205260409020546001600160a01b031615611a9f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610508565b611aab6000838361197d565b6001600160a01b0382166000908152600360205260408120805460019290611ad49084906120ef565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611c2857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b769033908990889088906004016124a1565b6020604051808303816000875af1925050508015611bb1575060408051601f3d908101601f19168201909252611bae918101906124de565b60015b611c0e573d808015611bdf576040519150601f19603f3d011682016040523d82523d6000602084013e611be4565b606091505b508051600003611c065760405162461bcd60e51b81526004016105089061244f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611496565b506001949350505050565b6001600160e01b03198116811461066e57600080fd5b600060208284031215611c5b57600080fd5b8135610c0281611c33565b80356001600160a01b0381168114611c7d57600080fd5b919050565b60008060408385031215611c9557600080fd5b611c9e83611c66565b915060208301356001600160601b0381168114611cba57600080fd5b809150509250929050565b60005b83811015611ce0578181015183820152602001611cc8565b50506000910152565b60008151808452611d01816020860160208601611cc5565b601f01601f19169290920160200192915050565b602081526000610c026020830184611ce9565b600060208284031215611d3a57600080fd5b5035919050565b60008060408385031215611d5457600080fd5b611d5d83611c66565b946020939093013593505050565b600080600060608486031215611d8057600080fd5b611d8984611c66565b9250611d9760208501611c66565b9150604084013590509250925092565b600060208284031215611db957600080fd5b610c0282611c66565b60008060408385031215611dd557600080fd5b50508035926020909101359150565b801515811461066e57600080fd5b60008060408385031215611e0557600080fd5b611e0e83611c66565b91506020830135611cba81611de4565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e4f57611e4f611e1e565b604051601f8501601f19908116603f01168101908282118183101715611e7757611e77611e1e565b81604052809350858152868686011115611e9057600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215611ec057600080fd5b611ec985611c66565b9350611ed760208601611c66565b925060408501359150606085013567ffffffffffffffff811115611efa57600080fd5b8501601f81018713611f0b57600080fd5b611f1a87823560208401611e34565b91505092959194509250565b600082601f830112611f3757600080fd5b610c0283833560208501611e34565b60008060408385031215611f5957600080fd5b823567ffffffffffffffff80821115611f7157600080fd5b611f7d86838701611f26565b93506020850135915080821115611f9357600080fd5b50611fa085828601611f26565b9150509250929050565b60008060408385031215611fbd57600080fd5b611fc683611c66565b9150611fd460208401611c66565b90509250929050565b6020808252601a908201527f63616c6c6572206973206e6f7420746865206f70657261746f72000000000000604082015260600190565b600181811c9082168061202857607f821691505b60208210810361204857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f63616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104c9576104c9612085565b634e487b7160e01b600052601260045260246000fd5b6000826120d7576120d76120b2565b500490565b818103818111156104c9576104c9612085565b808201808211156104c9576104c9612085565b60008161211157612111612085565b506000190190565b6000815461212681612014565b6001828116801561213e576001811461215357612182565b60ff1984168752821515830287019450612182565b8560005260208060002060005b858110156121795781548a820152908401908201612160565b50505082870194505b5050505092915050565b60006121988286612119565b84516121a8818360208901611cc5565b6121b481830186612119565b979650505050505050565b6020808252600f908201526e696e76616c6964206164647265737360881b604082015260600190565b6000602082840312156121fa57600080fd5b8151610c0281611de4565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60006001820161226557612265612085565b5060010190565b60008261227b5761227b6120b2565b500690565b634e487b7160e01b600052603260045260246000fd5b601f8211156105ec57600081815260208120601f850160051c810160208610156122bd5750805b601f850160051c820191505b818110156122dc578281556001016122c9565b505050505050565b815167ffffffffffffffff8111156122fe576122fe611e1e565b6123128161230c8454612014565b84612296565b602080601f831160018114612347576000841561232f5750858301515b600019600386901b1c1916600185901b1785556122dc565b600085815260208120601f198616915b8281101561237657888601518255948401946001909101908401612357565b50858210156123945787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081546123b181612014565b8085526020600183811680156123ce57600181146123e857612416565b60ff1985168884015283151560051b880183019550612416565b866000528260002060005b8581101561240e5781548a82018601529083019084016123f3565b890184019650505b505050505092915050565b60408152600061243460408301856123a4565b828103602084015261244681856123a4565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124d490830184611ce9565b9695505050505050565b6000602082840312156124f057600080fd5b8151610c0281611c3356fea26469706673582212203460a3a2040e9ab605f8997867fa8905c8cc8ed758645226915ddab0ff60ea5464736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.