ETH Price: $3,397.22 (+5.12%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint155901012022-09-22 16:34:23854 days ago1663864463IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0005917815.44475036
Mint155901012022-09-22 16:34:23854 days ago1663864463IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0011090428.94475036
Mint155901002022-09-22 16:34:11854 days ago1663864451IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0006092915.90186421
Mint155901002022-09-22 16:34:11854 days ago1663864451IN
0x201715Ee...F0E9A7a27
0.05 ETH0.002710915.90186421
Mint155900992022-09-22 16:33:59854 days ago1663864439IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0027711716.52683517
Mint155900992022-09-22 16:33:59854 days ago1663864439IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0027711716.52683517
Mint155900992022-09-22 16:33:59854 days ago1663864439IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0028174416.52683517
Mint155900992022-09-22 16:33:59854 days ago1663864439IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0006332416.52683517
Mint155900992022-09-22 16:33:59854 days ago1663864439IN
0x201715Ee...F0E9A7a27
0.25 ETH0.000652417.02683517
Mint155900982022-09-22 16:33:47854 days ago1663864427IN
0x201715Ee...F0E9A7a27
0.25 ETH0.00067217.53862091
Mint155900982022-09-22 16:33:47854 days ago1663864427IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0116625918.43862091
Mint155900982022-09-22 16:33:47854 days ago1663864427IN
0x201715Ee...F0E9A7a27
0.1 ETH0.0063070722
Mint155900982022-09-22 16:33:47854 days ago1663864427IN
0x201715Ee...F0E9A7a27
0.1 ETH0.0068132424
Mint155900962022-09-22 16:33:23854 days ago1663864403IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0026103515.56774803
Mint155900962022-09-22 16:33:23854 days ago1663864403IN
0x201715Ee...F0E9A7a27
0.1 ETH0.0044194515.56774803
Mint155900962022-09-22 16:33:23854 days ago1663864403IN
0x201715Ee...F0E9A7a27
0.1 ETH0.0044630315.56774803
Mint155900962022-09-22 16:33:23854 days ago1663864403IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0098903315.56774803
Mint155900962022-09-22 16:33:23854 days ago1663864403IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0101629916.06774803
Mint155900952022-09-22 16:33:11854 days ago1663864391IN
0x201715Ee...F0E9A7a27
0.5 ETH0.0191709615.79743876
Mint155900952022-09-22 16:33:11854 days ago1663864391IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0103082716.29743876
Mint155900942022-09-22 16:32:59854 days ago1663864379IN
0x201715Ee...F0E9A7a27
0.25 ETH0.0109444717.30327576
Mint155900942022-09-22 16:32:59854 days ago1663864379IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0029013617.30327576
Mint155900932022-09-22 16:32:47854 days ago1663864367IN
0x201715Ee...F0E9A7a27
0.2 ETH0.0092111917.74452136
Mint155900922022-09-22 16:32:35854 days ago1663864355IN
0x201715Ee...F0E9A7a27
0.05 ETH0.0027452316.37216846
Mint155900922022-09-22 16:32:35854 days ago1663864355IN
0x201715Ee...F0E9A7a27
0.1 ETH0.0046478116.37216846
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
168494952023-03-17 19:06:23678 days ago1679079983
0x201715Ee...F0E9A7a27
70.25 ETH
149752892022-06-16 20:25:42952 days ago1655411142
0x201715Ee...F0E9A7a27
0.65002 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwoopsMint

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : SwoopsMint.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "./SwoopsERC721.sol";
import "./OwnershipClaimable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract SwoopsMint is OwnershipClaimable, ReentrancyGuard {
    ///@dev Emitted when the token supply increased.
    event TokenSupplyIncreased(uint256 _newSupply);
    ///@dev Emitted when the price per token changes.
    event PriceChanged(uint256 _newPrice);
    ///@dev Emitted when balance of a non-native ERC20 are withdrawn from this contract.
    event ForeignTokenWithdrawn(
        address tokenAddress,
        uint256 amount,
        address destination
    );
    ///@dev Emitted when the balance is withdrawn from this contract.
    event BalanceWithdrawn(uint256 amount, address destination);
    ///@dev Emitted when the whitelist sale flag is updated.
    event WhitelistSaleActiveUpdated(bool active);
    ///@dev Emitted when the direct sale flag is updated.
    event DirectSaleActiveUpdated(bool active);

    SwoopsERC721 public swoopsNftContract;

    uint256 public maxTokenSupply = 100;
    uint256 public maxTokensPerWhitelistedWallet = 3;
    uint256 public price = 0.00001 ether;
    uint256 public whitelistDropId = 0;
    bool public isSaleActive = false;
    bool public directMintEnabled = false;
    bytes32 public root;
    mapping(address => mapping(uint256 => uint256))
        public tokensMintedPerWhitelistedWallet;

    /// @notice Constructor.
    /// @param nftContractAddress the address of the ERC721 contract that mints the tokens.
    constructor(address nftContractAddress) {
        swoopsNftContract = SwoopsERC721(nftContractAddress);

        require(
            Address.isContract(nftContractAddress) &&
                swoopsNftContract.supportsInterface(type(IERC721).interfaceId),
            "Address must point to a 721-compliant contract"
        );
    }

    /// @notice Mint a Swoops token.
    /// @dev Amount of ether sent must be at least tokensRequested * price.
    /// @param quantity The number of tokens requested.
    function mint(uint256 quantity)
        external
        payable
        nonReentrant
        canMint(quantity)
    {
        require(directMintEnabled, "Minting directly is not active");

        for (uint256 i = 0; i < quantity; i++) {
            swoopsNftContract.safeMint(msg.sender);
        }
    }

    /// @notice Mint a Swoops token according to if the sender is whitelisted.
    /// @dev Amount of ether sent must be at least tokensRequested * price and the
    ///      proof obtained from the playswoops.com mint page. NOTE: there is a
    ///      cap on the number of tokens one whitelisted sender can mint.
    /// @param quantity The number of tokens requested.
    /// @param merkleProof The proof the sender is whitelisted.
    function whitelistedMint(uint256 quantity, bytes32[] calldata merkleProof)
        external
        payable
        nonReentrant
        canMint(quantity)
    {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Incorrect proof"
        );

        tokensMintedPerWhitelistedWallet[msg.sender][whitelistDropId] =
            tokensMintedPerWhitelistedWallet[msg.sender][whitelistDropId] +
            quantity;

        require(
            tokensMintedPerWhitelistedWallet[msg.sender][whitelistDropId] <=
                maxTokensPerWhitelistedWallet,
            "Quantity of tokens requested exceeds amount of tokens you can purchase"
        );

        for (uint256 i = 0; i < quantity; i++) {
            swoopsNftContract.safeMint(msg.sender);
        }
    }

    /// @notice Set the new max token supply.
    /// @dev Only callable by the contract owner. Emits a { TokenSupplyIncreased } event.
    /// @param newMaxTokenSupply The new max token supply.
    function setMaxTokenSupply(uint256 newMaxTokenSupply) external onlyOwner {
        require(
            newMaxTokenSupply > swoopsNftContract.totalSupply(),
            "Desired token supply is less than the total supply of tokens already issued"
        );
        maxTokenSupply = newMaxTokenSupply;
        emit TokenSupplyIncreased(maxTokenSupply);
    }

    /// @notice Set the new number of max tokens mintable per drop.
    /// @dev Only callable by the contract owner.
    /// @param newMaxTokensPerDrop The new max tokens per wallet per drop.
    function setMaxTokensPerWhitelistedWalletPerDrop(
        uint256 newMaxTokensPerDrop
    ) external onlyOwner {
        maxTokensPerWhitelistedWallet = newMaxTokensPerDrop;
    }

    /// @notice Set the new price per token.
    /// @dev Only callable by the contract owner. Emits a { PriceChanged } event.
    /// @param newPrice The new token price.
    function setPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
        emit PriceChanged(price);
    }

    /// @notice Set the new merkle tree (whitelist) root.
    /// @dev Only callable by the contract owner.
    /// @param newRoot The new merkle whitelist root.
    function setMerkleRoot(bytes32 newRoot) external onlyOwner {
        root = newRoot;
    }

    /// @notice Set if the sale of tokens is active.
    /// @dev Only callable by the contract owner.
    /// @param active The new state for if token sales are active.
    function setIsSaleActive(bool active) external onlyOwner {
        isSaleActive = active;
        emit WhitelistSaleActiveUpdated(isSaleActive);
    }

    /// @notice Set if the direct 3rd party minting of tokens is active.
    /// @dev Only callable by the contract owner.
    /// @param enabled The new state for if direct minting is enabled.
    function setDirectMintEnabled(bool enabled) external onlyOwner {
        directMintEnabled = enabled;
        emit DirectSaleActiveUpdated(enabled);
    }

    /// @notice Increase the drop id.
    /// @dev Only callable by the contract owner.
    function increaseWhitelistDropId() external onlyOwner {
        whitelistDropId++;
    }

    /// @notice Retrieve the total balance of this contract.
    /// @return the total balance of this contract.
    function totalBalance() external view returns (uint256) {
        return address(this).balance;
    }

    /// @notice Withdraw funds from this contract.
    /// @dev Only callable by the contract owner. Emits a { BalanceWithdrawn } event.
    function withdrawFunds() external onlyOwner {
        uint256 balance = address(this).balance;
        emit BalanceWithdrawn(balance, msg.sender);
        payable(msg.sender).transfer(balance);
    }

    /// @notice Withdraws the balance of a given token from this contract to the
    ///         owners wallet.
    /// @dev callable only by the contract owner. Emits a { ForeignTokenWithdrawn } event.
    /// @param token Address of the ERC20 token to withdraw from this wallet.
    /// @return bool True if the transfer was successful, otherwise throws.
    function withdrawToken(address token) external onlyOwner returns (bool) {
        IERC20 foreignToken = IERC20(token);
        uint256 balance = foreignToken.balanceOf(address(this));
        emit ForeignTokenWithdrawn(token, balance, msg.sender);
        SafeERC20.safeTransfer(foreignToken, msg.sender, balance);
    }

    /// @notice Given a quantity of tokens, throw if the contract's criteria for
    ///         minting is met, or if the caller has not sent enough funds.
    /// @param quantity The quantity of tokens desired to mint.
    modifier canMint(uint256 quantity) {
        require(isSaleActive, "Sale is currently not active");
        require(
            quantity > 0,
            "Some positive number of tokens must be requested"
        );
        require(
            quantity + swoopsNftContract.totalSupply() <= maxTokenSupply,
            "Not enough tokens left to buy the requested quantity"
        );
        require(
            msg.value >= price * quantity,
            "Amount of ether sent is insufficent"
        );
        _;
    }
}

File 2 of 26 : SwoopsERC721.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./OwnershipClaimable.sol";

contract SwoopsERC721 is
    ERC721Royalty,
    ERC721Enumerable,
    ERC721Burnable,
    Pausable,
    OwnershipClaimable
{
    /// @dev Emitted when the default royalty is updated.
    event RoyaltyChanged(uint96 feeInBasisPoints);
    /// @dev Emitted when the baseUri is updated.
    event BaseUriUpdated(string newBaseUri);

    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    address public _mintingContract;
    string private _uri;

    /// @notice Constructor.
    /// @param baseURI The baseuri to be used as the locator for the NFT metadata.
    constructor(string memory baseURI) ERC721("Swoops", "SWOOPS") {
        require(bytes(baseURI).length > 0, "baseuri can't be an empty string");
        _uri = baseURI;
    }

    /// @notice Retrieve the baseuri used as the locator for the NFT metadata.
    /// @return baseuri of the ERC721.
    function _baseURI() internal view override returns (string memory) {
        return _uri;
    }

    /// @notice Set the single baseURI for all tokens to use.
    /// @dev only callable by the contract owner. Emits a { BaseUriUpdated } event.
    /// @param uri The uri to be used as the base for all tokens.
    function setBaseUri(string memory uri) external onlyOwner {
        require(bytes(uri).length > 0, "baseuri can't be an empty string");
        _uri = uri;
        emit BaseUriUpdated(uri);
    }

    /// @notice Pause all EIP-721 contract operations.
    /// @dev Only callable by the contract owner.  Emits a { Paused } event.
    function pause() external onlyOwner {
        _pause();
    }

    /// @notice Unpause the EIP-721 contract operations.
    /// @dev Only callable by the contract owner.   Emits an { Unpaused } event.
    function unpause() external onlyOwner {
        _unpause();
    }

    /// @notice Mint a Swoops token, giving ownership to the supplied address.
    /// @dev Only callable by the contract owner. Emits the 721-standard { Transfer } event.
    /// @param to The address where the newly created token should be sent.
    function safeMint(address to) external onlyOwnerOrMintingContract {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(to, tokenId);
    }

    /// @notice Set the contract that is allowed to call this contract directly to mint.
    /// @dev Only callable by the contract owner.
    /// @param contractAddress The new address of the contract that is allowed to invoke this EIP-721.
    function setMintingContract(address contractAddress) external onlyOwner {
        require(Address.isContract(contractAddress), "address must point to a contract");
        _mintingContract = contractAddress;
    }

    /// @notice Set the default royalty amount for transactions exchanging tokens for currency. NOTE: defining
    ///         a royalty does not enforce the royalty. This is a standard that marketplaces are meant to
    ///         respect.
    /// @dev Only callable by the contract owner. Emits a { RoyaltyChanged } event.
    /// @param receiver The address of the wallet that should have the royalties paid out to it.
    /// @param feeNumerator The fee in basis points that should be collected on transactions.
    function setRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyOwner
    {
        super._setDefaultRoyalty(receiver, feeNumerator);
        emit RoyaltyChanged(feeNumerator);
    }

    /// @notice Modifier. Throws if the caller is not the contract owner or
    ///         the assigned minting contract.
    modifier onlyOwnerOrMintingContract() {
        require(
            msg.sender == _mintingContract || msg.sender == owner(),
            "Not minting contract or owner"
        );
        _;
    }

    // The following functions are overrides required by Solidity.

    /// @notice Destroys the given tokenId. The tokenId must exist.
    /// @dev This override is required by Solidity.
    /// @param tokenId the tokenId to destroy
    function _burn(uint256 tokenId) internal override(ERC721, ERC721Royalty) {
        super._burn(tokenId);
    }

    /// @dev Hook that is called before any token transfer. This includes minting and burning.
    ///     This override is required by Solidity.
    /// @param from the address the token currently belongs to (including the zero address during mint).
    /// @param to the address the token should be transferred to.
    /// @param tokenId the tokenId to transfer.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) whenNotPaused {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// Verify that this contract supports a give interfaceId.
    /// @dev The supportsInterface function from EIP-165.
    ///     This override is required by Solidity.
    /// @param interfaceId the tokenId for which a URI is requested.
    /// @return boolean true if the current contract implements the supplied interfaceId.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721Royalty, ERC721, ERC721Enumerable)
        returns (bool)
    {
        return
            interfaceId == type(ERC721Royalty).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 3 of 26 : OwnershipClaimable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract OwnershipClaimable is Ownable {
    address private _nominatedOwner;
    error NotSupported(string reason);

    /// @dev Overriding renounceOwnership() to prevent the ability to renounce ownership
    ///      of this contract. Callable only by the contract owner but throws when called.
    function renounceOwnership() 
        public 
        override
        onlyOwner 
    {   
        revert NotSupported("Ownership cannot be renounced");
    }

    /// @dev Overriding transferOwnership() to mandate that contract ownership is transferred 
    ///      via the two step process: nominateNewOwner then claimOwnershipNomination. Callable 
    ///      only by the contract owner but throws when called.
    function transferOwnership(address newOwner)
        public 
        override
        onlyOwner 
    {   
        revert NotSupported("Use nominateNewOwner and claimOwnershipNomination instead");
    }

    /// @notice Nominate a new owner for this contract who can then claim ownership,
    /// @dev Callable only by the contract owner.
    /// @param newOwner the address of the new owner.
    function nominateNewOwner(address newOwner) 
        public 
        virtual 
        onlyOwner 
    {
        _nominatedOwner = newOwner;
    }

    /// @notice Claim the nomination to take ownership of this contract. It is required
    ///         that the caller must have been nominated for this to succeed. Emits a
    ///         {OwnershipTransferred} event.
    /// @dev Callable only by the contract owner.
    function claimOwnershipNomination() 
        public
        virtual 
    {
        require(
            msg.sender == _nominatedOwner,
            "Caller is not the nominated owner"
        );
        _transferOwnership(_nominatedOwner);
        delete _nominatedOwner;
    }

    /// @notice Get the owner that has been nominated.
    /// @return address The address of the nominated owner.
    function nominatedOwner() 
        public 
        view 
        virtual returns (address) 
    {
        return _nominatedOwner;
    }
}

File 4 of 26 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 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 6 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 26 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 26 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 10 of 26 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

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

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        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 11 of 26 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 12 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 13 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 overriden 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        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: transfer caller is not 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: transfer caller is not 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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 a {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 a {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 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 {
                    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 14 of 26 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

File 17 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 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);
}

File 19 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 20 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

File 21 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 22 of 26 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./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 payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 23 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 24 of 26 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 25 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 26 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"nftContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"reason","type":"string"}],"name":"NotSupported","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"BalanceWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"DirectSaleActiveUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"ForeignTokenWithdrawn","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":"uint256","name":"_newPrice","type":"uint256"}],"name":"PriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"TokenSupplyIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"WhitelistSaleActiveUpdated","type":"event"},{"inputs":[],"name":"claimOwnershipNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"directMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseWhitelistDropId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerWhitelistedWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setDirectMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setIsSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTokenSupply","type":"uint256"}],"name":"setMaxTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTokensPerDrop","type":"uint256"}],"name":"setMaxTokensPerWhitelistedWalletPerDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swoopsNftContract","outputs":[{"internalType":"contract SwoopsERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensMintedPerWhitelistedWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistDropId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6080604052606460045560036005556509184e72a00060065560006007556008805461ffff191690553480156200003557600080fd5b5060405162001b2838038062001b288339810160408190526200005891620001e6565b620000633362000187565b6001600255600380546001600160a01b0319166001600160a01b0383161790556200009a81620001d7602090811b6200119d17901c565b80156200011857506003546040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015620000f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000118919062000218565b620001805760405162461bcd60e51b815260206004820152602e60248201527f41646472657373206d75737420706f696e7420746f2061203732312d636f6d7060448201526d1b1a585b9d0818dbdb9d1c9858dd60921b606482015260840160405180910390fd5b506200023c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03163b151590565b600060208284031215620001f957600080fd5b81516001600160a01b03811681146200021157600080fd5b9392505050565b6000602082840312156200022b57600080fd5b815180151581146200021157600080fd5b6118dc806200024c6000396000f3fe60806040526004361061019c5760003560e01c80638da5cb5b116100ec578063cb06663e1161008a578063e73c152411610064578063e73c152414610457578063ebf0c7171461046c578063f2fde38b14610482578063ff95253d146104a257600080fd5b8063cb06663e1461040c578063d2d65ff514610422578063dd45265d1461044257600080fd5b8063a0712d68116100c6578063a0712d681461038e578063ad7a672f146103a1578063b07ed982146103b4578063beef38f1146103d457600080fd5b80638da5cb5b1461033a57806391b7f5ed14610358578063a035b1fe1461037857600080fd5b8063564566a8116101595780636f995047116101335780636f995047146102d2578063715018a6146102e55780637cb64759146102fa578063894760691461031a57600080fd5b8063564566a81461028257806368375d951461029c57806369f3111f146102b257600080fd5b80631627540c146101a157806318d8db33146101c357806324600fc3146101e357806336ffc2aa146101f857806350f7c2041461022c57806353a47bb714610250575b600080fd5b3480156101ad57600080fd5b506101c16101bc36600461154e565b6104c2565b005b3480156101cf57600080fd5b506101c16101de366004611569565b610517565b3480156101ef57600080fd5b506101c1610546565b34801561020457600080fd5b5060085461021790610100900460ff1681565b60405190151581526020015b60405180910390f35b34801561023857600080fd5b5061024260045481565b604051908152602001610223565b34801561025c57600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b34801561028e57600080fd5b506008546102179060ff1681565b3480156102a857600080fd5b5061024260055481565b3480156102be57600080fd5b5060035461026a906001600160a01b031681565b6101c16102e0366004611582565b6105db565b3480156102f157600080fd5b506101c1610984565b34801561030657600080fd5b506101c1610315366004611569565b6109f7565b34801561032657600080fd5b5061021761033536600461154e565b610a26565b34801561034657600080fd5b506000546001600160a01b031661026a565b34801561036457600080fd5b506101c1610373366004611569565b610b1c565b34801561038457600080fd5b5061024260065481565b6101c161039c366004611569565b610b82565b3480156103ad57600080fd5b5047610242565b3480156103c057600080fd5b506101c16103cf366004611569565b610df6565b3480156103e057600080fd5b506102426103ef366004611601565b600a60209081526000928352604080842090915290825290205481565b34801561041857600080fd5b5061024260075481565b34801561042e57600080fd5b506101c161043d36600461163c565b610f54565b34801561044e57600080fd5b506101c1610fc5565b34801561046357600080fd5b506101c1611050565b34801561047857600080fd5b5061024260095481565b34801561048e57600080fd5b506101c161049d36600461154e565b611091565b3480156104ae57600080fd5b506101c16104bd36600461163c565b61112a565b6000546001600160a01b031633146104f55760405162461bcd60e51b81526004016104ec90611659565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105415760405162461bcd60e51b81526004016104ec90611659565b600555565b6000546001600160a01b031633146105705760405162461bcd60e51b81526004016104ec90611659565b6040805147808252336020830152917f6c19c8ec04b7b3d80e53ce0210e4aa9ecef1012b336eed7a149009749bbb50b9910160405180910390a1604051339082156108fc029083906000818181858888f193505050501580156105d7573d6000803e3d6000fd5b5050565b600280540361062c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ec565b60028055600854839060ff166106845760405162461bcd60e51b815260206004820152601c60248201527f53616c652069732063757272656e746c79206e6f74206163746976650000000060448201526064016104ec565b600081116106a45760405162461bcd60e51b81526004016104ec9061168e565b600454600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071e91906116de565b610728908361170d565b11156107465760405162461bcd60e51b81526004016104ec90611725565b806006546107549190611779565b3410156107735760405162461bcd60e51b81526004016104ec90611798565b6107e8838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506009546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206111ac565b6108265760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10383937b7b360891b60448201526064016104ec565b336000908152600a60209081526040808320600754845290915290205461084e90859061170d565b336000908152600a60209081526040808320600780548552925280832093909355600554905482529190205411156108fd5760405162461bcd60e51b815260206004820152604660248201527f5175616e74697479206f6620746f6b656e73207265717565737465642065786360448201527f6565647320616d6f756e74206f6620746f6b656e7320796f752063616e20707560648201526572636861736560d01b608482015260a4016104ec565b60005b84811015610978576003546040516340d097c360e01b81523360048201526001600160a01b03909116906340d097c390602401600060405180830381600087803b15801561094d57600080fd5b505af1158015610961573d6000803e3d6000fd5b505050508080610970906117db565b915050610900565b50506001600255505050565b6000546001600160a01b031633146109ae5760405162461bcd60e51b81526004016104ec90611659565b60405163329e2f1560e01b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e63656400000060448201526064016104ec565b6000546001600160a01b03163314610a215760405162461bcd60e51b81526004016104ec90611659565b600955565b600080546001600160a01b03163314610a515760405162461bcd60e51b81526004016104ec90611659565b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe91906116de565b604080516001600160a01b038716815260208101839052338183015290519192507f9668539994ba422176ad7052947f25173e9ea428fec385aa4398716a125fddb1919081900360600190a1610b158233836111c4565b5050919050565b6000546001600160a01b03163314610b465760405162461bcd60e51b81526004016104ec90611659565b60068190556040518181527fa6dc15bdb68da224c66db4b3838d9a2b205138e8cff6774e57d0af91e196d622906020015b60405180910390a150565b6002805403610bd35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ec565b60028055600854819060ff16610c2b5760405162461bcd60e51b815260206004820152601c60248201527f53616c652069732063757272656e746c79206e6f74206163746976650000000060448201526064016104ec565b60008111610c4b5760405162461bcd60e51b81526004016104ec9061168e565b600454600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ca1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc591906116de565b610ccf908361170d565b1115610ced5760405162461bcd60e51b81526004016104ec90611725565b80600654610cfb9190611779565b341015610d1a5760405162461bcd60e51b81526004016104ec90611798565b600854610100900460ff16610d715760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e67206469726563746c79206973206e6f7420616374697665000060448201526064016104ec565b60005b82811015610dec576003546040516340d097c360e01b81523360048201526001600160a01b03909116906340d097c390602401600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b505050508080610de4906117db565b915050610d74565b5050600160025550565b6000546001600160a01b03163314610e205760405162461bcd60e51b81526004016104ec90611659565b600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9791906116de565b8111610f1f5760405162461bcd60e51b815260206004820152604b60248201527f4465736972656420746f6b656e20737570706c79206973206c6573732074686160448201527f6e2074686520746f74616c20737570706c79206f6620746f6b656e7320616c7260648201526a1958591e481a5cdcdd595960aa1b608482015260a4016104ec565b60048190556040518181527f8ca5f6a2b266e61db716275acb23e2503ebc21c17363dc76f59fde928c2f6d1d90602001610b77565b6000546001600160a01b03163314610f7e5760405162461bcd60e51b81526004016104ec90611659565b6008805460ff191682151590811790915560405160ff909116151581527f57b98b1d32b26bf86d88b3e0e71eac44a4f65e225781c8c62728b63f11bfd54c90602001610b77565b6001546001600160a01b031633146110295760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f7420746865206e6f6d696e61746564206f776e656044820152603960f91b60648201526084016104ec565b60015461103e906001600160a01b031661121b565b600180546001600160a01b0319169055565b6000546001600160a01b0316331461107a5760405162461bcd60e51b81526004016104ec90611659565b6007805490600061108a836117db565b9190505550565b6000546001600160a01b031633146110bb5760405162461bcd60e51b81526004016104ec90611659565b60405163329e2f1560e01b815260206004820152603960248201527f557365206e6f6d696e6174654e65774f776e657220616e6420636c61696d4f7760448201527f6e6572736869704e6f6d696e6174696f6e20696e73746561640000000000000060648201526084016104ec565b6000546001600160a01b031633146111545760405162461bcd60e51b81526004016104ec90611659565b600880548215156101000261ff00199091161790556040517f4f03a3bb672c073c0c4ddd313bc0c8af55da46a3c71e21f798d951ff33dfc90e90610b7790831515815260200190565b6001600160a01b03163b151590565b6000826111b9858461126b565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112169084906112df565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156112d757600085828151811061128d5761128d6117f4565b602002602001015190508083116112b357600083815260208290526040902092506112c4565b600081815260208490526040902092505b50806112cf816117db565b915050611270565b509392505050565b6000611334826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113b19092919063ffffffff16565b8051909150156112165780806020019051810190611352919061180a565b6112165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104ec565b60606113c084846000856113c8565b949350505050565b6060824710156114295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104ec565b6001600160a01b0385163b6114805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104ec565b600080866001600160a01b0316858760405161149c9190611857565b60006040518083038185875af1925050503d80600081146114d9576040519150601f19603f3d011682016040523d82523d6000602084013e6114de565b606091505b50915091506114ee8282866114f9565b979650505050505050565b606083156115085750816111bd565b8251156115185782518084602001fd5b8160405162461bcd60e51b81526004016104ec9190611873565b80356001600160a01b038116811461154957600080fd5b919050565b60006020828403121561156057600080fd5b6111bd82611532565b60006020828403121561157b57600080fd5b5035919050565b60008060006040848603121561159757600080fd5b83359250602084013567ffffffffffffffff808211156115b657600080fd5b818601915086601f8301126115ca57600080fd5b8135818111156115d957600080fd5b8760208260051b85010111156115ee57600080fd5b6020830194508093505050509250925092565b6000806040838503121561161457600080fd5b61161d83611532565b946020939093013593505050565b801515811461163957600080fd5b50565b60006020828403121561164e57600080fd5b81356111bd8161162b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526030908201527f536f6d6520706f736974697665206e756d626572206f6620746f6b656e73206d60408201526f1d5cdd081899481c995c5d595cdd195960821b606082015260800190565b6000602082840312156116f057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611720576117206116f7565b500190565b60208082526034908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206275792074686040820152736520726571756573746564207175616e7469747960601b606082015260800190565b6000816000190483118215151615611793576117936116f7565b500290565b60208082526023908201527f416d6f756e74206f662065746865722073656e7420697320696e737566666963604082015262195b9d60ea1b606082015260800190565b6000600182016117ed576117ed6116f7565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561181c57600080fd5b81516111bd8161162b565b60005b8381101561184257818101518382015260200161182a565b83811115611851576000848401525b50505050565b60008251611869818460208701611827565b9190910192915050565b6020815260008251806020840152611892816040850160208701611827565b601f01601f1916919091016040019291505056fea2646970667358221220a1c2e9ef35be890c7213c166288df59aeed02f386eccf15aeb7e1fc667bd582d64736f6c634300080d0033000000000000000000000000c211506d58861857c3158af449e832cc5e1e7e7b

Deployed Bytecode

0x60806040526004361061019c5760003560e01c80638da5cb5b116100ec578063cb06663e1161008a578063e73c152411610064578063e73c152414610457578063ebf0c7171461046c578063f2fde38b14610482578063ff95253d146104a257600080fd5b8063cb06663e1461040c578063d2d65ff514610422578063dd45265d1461044257600080fd5b8063a0712d68116100c6578063a0712d681461038e578063ad7a672f146103a1578063b07ed982146103b4578063beef38f1146103d457600080fd5b80638da5cb5b1461033a57806391b7f5ed14610358578063a035b1fe1461037857600080fd5b8063564566a8116101595780636f995047116101335780636f995047146102d2578063715018a6146102e55780637cb64759146102fa578063894760691461031a57600080fd5b8063564566a81461028257806368375d951461029c57806369f3111f146102b257600080fd5b80631627540c146101a157806318d8db33146101c357806324600fc3146101e357806336ffc2aa146101f857806350f7c2041461022c57806353a47bb714610250575b600080fd5b3480156101ad57600080fd5b506101c16101bc36600461154e565b6104c2565b005b3480156101cf57600080fd5b506101c16101de366004611569565b610517565b3480156101ef57600080fd5b506101c1610546565b34801561020457600080fd5b5060085461021790610100900460ff1681565b60405190151581526020015b60405180910390f35b34801561023857600080fd5b5061024260045481565b604051908152602001610223565b34801561025c57600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b34801561028e57600080fd5b506008546102179060ff1681565b3480156102a857600080fd5b5061024260055481565b3480156102be57600080fd5b5060035461026a906001600160a01b031681565b6101c16102e0366004611582565b6105db565b3480156102f157600080fd5b506101c1610984565b34801561030657600080fd5b506101c1610315366004611569565b6109f7565b34801561032657600080fd5b5061021761033536600461154e565b610a26565b34801561034657600080fd5b506000546001600160a01b031661026a565b34801561036457600080fd5b506101c1610373366004611569565b610b1c565b34801561038457600080fd5b5061024260065481565b6101c161039c366004611569565b610b82565b3480156103ad57600080fd5b5047610242565b3480156103c057600080fd5b506101c16103cf366004611569565b610df6565b3480156103e057600080fd5b506102426103ef366004611601565b600a60209081526000928352604080842090915290825290205481565b34801561041857600080fd5b5061024260075481565b34801561042e57600080fd5b506101c161043d36600461163c565b610f54565b34801561044e57600080fd5b506101c1610fc5565b34801561046357600080fd5b506101c1611050565b34801561047857600080fd5b5061024260095481565b34801561048e57600080fd5b506101c161049d36600461154e565b611091565b3480156104ae57600080fd5b506101c16104bd36600461163c565b61112a565b6000546001600160a01b031633146104f55760405162461bcd60e51b81526004016104ec90611659565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105415760405162461bcd60e51b81526004016104ec90611659565b600555565b6000546001600160a01b031633146105705760405162461bcd60e51b81526004016104ec90611659565b6040805147808252336020830152917f6c19c8ec04b7b3d80e53ce0210e4aa9ecef1012b336eed7a149009749bbb50b9910160405180910390a1604051339082156108fc029083906000818181858888f193505050501580156105d7573d6000803e3d6000fd5b5050565b600280540361062c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ec565b60028055600854839060ff166106845760405162461bcd60e51b815260206004820152601c60248201527f53616c652069732063757272656e746c79206e6f74206163746976650000000060448201526064016104ec565b600081116106a45760405162461bcd60e51b81526004016104ec9061168e565b600454600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071e91906116de565b610728908361170d565b11156107465760405162461bcd60e51b81526004016104ec90611725565b806006546107549190611779565b3410156107735760405162461bcd60e51b81526004016104ec90611798565b6107e8838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506009546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206111ac565b6108265760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10383937b7b360891b60448201526064016104ec565b336000908152600a60209081526040808320600754845290915290205461084e90859061170d565b336000908152600a60209081526040808320600780548552925280832093909355600554905482529190205411156108fd5760405162461bcd60e51b815260206004820152604660248201527f5175616e74697479206f6620746f6b656e73207265717565737465642065786360448201527f6565647320616d6f756e74206f6620746f6b656e7320796f752063616e20707560648201526572636861736560d01b608482015260a4016104ec565b60005b84811015610978576003546040516340d097c360e01b81523360048201526001600160a01b03909116906340d097c390602401600060405180830381600087803b15801561094d57600080fd5b505af1158015610961573d6000803e3d6000fd5b505050508080610970906117db565b915050610900565b50506001600255505050565b6000546001600160a01b031633146109ae5760405162461bcd60e51b81526004016104ec90611659565b60405163329e2f1560e01b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e63656400000060448201526064016104ec565b6000546001600160a01b03163314610a215760405162461bcd60e51b81526004016104ec90611659565b600955565b600080546001600160a01b03163314610a515760405162461bcd60e51b81526004016104ec90611659565b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe91906116de565b604080516001600160a01b038716815260208101839052338183015290519192507f9668539994ba422176ad7052947f25173e9ea428fec385aa4398716a125fddb1919081900360600190a1610b158233836111c4565b5050919050565b6000546001600160a01b03163314610b465760405162461bcd60e51b81526004016104ec90611659565b60068190556040518181527fa6dc15bdb68da224c66db4b3838d9a2b205138e8cff6774e57d0af91e196d622906020015b60405180910390a150565b6002805403610bd35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ec565b60028055600854819060ff16610c2b5760405162461bcd60e51b815260206004820152601c60248201527f53616c652069732063757272656e746c79206e6f74206163746976650000000060448201526064016104ec565b60008111610c4b5760405162461bcd60e51b81526004016104ec9061168e565b600454600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ca1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc591906116de565b610ccf908361170d565b1115610ced5760405162461bcd60e51b81526004016104ec90611725565b80600654610cfb9190611779565b341015610d1a5760405162461bcd60e51b81526004016104ec90611798565b600854610100900460ff16610d715760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e67206469726563746c79206973206e6f7420616374697665000060448201526064016104ec565b60005b82811015610dec576003546040516340d097c360e01b81523360048201526001600160a01b03909116906340d097c390602401600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b505050508080610de4906117db565b915050610d74565b5050600160025550565b6000546001600160a01b03163314610e205760405162461bcd60e51b81526004016104ec90611659565b600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9791906116de565b8111610f1f5760405162461bcd60e51b815260206004820152604b60248201527f4465736972656420746f6b656e20737570706c79206973206c6573732074686160448201527f6e2074686520746f74616c20737570706c79206f6620746f6b656e7320616c7260648201526a1958591e481a5cdcdd595960aa1b608482015260a4016104ec565b60048190556040518181527f8ca5f6a2b266e61db716275acb23e2503ebc21c17363dc76f59fde928c2f6d1d90602001610b77565b6000546001600160a01b03163314610f7e5760405162461bcd60e51b81526004016104ec90611659565b6008805460ff191682151590811790915560405160ff909116151581527f57b98b1d32b26bf86d88b3e0e71eac44a4f65e225781c8c62728b63f11bfd54c90602001610b77565b6001546001600160a01b031633146110295760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f7420746865206e6f6d696e61746564206f776e656044820152603960f91b60648201526084016104ec565b60015461103e906001600160a01b031661121b565b600180546001600160a01b0319169055565b6000546001600160a01b0316331461107a5760405162461bcd60e51b81526004016104ec90611659565b6007805490600061108a836117db565b9190505550565b6000546001600160a01b031633146110bb5760405162461bcd60e51b81526004016104ec90611659565b60405163329e2f1560e01b815260206004820152603960248201527f557365206e6f6d696e6174654e65774f776e657220616e6420636c61696d4f7760448201527f6e6572736869704e6f6d696e6174696f6e20696e73746561640000000000000060648201526084016104ec565b6000546001600160a01b031633146111545760405162461bcd60e51b81526004016104ec90611659565b600880548215156101000261ff00199091161790556040517f4f03a3bb672c073c0c4ddd313bc0c8af55da46a3c71e21f798d951ff33dfc90e90610b7790831515815260200190565b6001600160a01b03163b151590565b6000826111b9858461126b565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112169084906112df565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156112d757600085828151811061128d5761128d6117f4565b602002602001015190508083116112b357600083815260208290526040902092506112c4565b600081815260208490526040902092505b50806112cf816117db565b915050611270565b509392505050565b6000611334826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113b19092919063ffffffff16565b8051909150156112165780806020019051810190611352919061180a565b6112165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104ec565b60606113c084846000856113c8565b949350505050565b6060824710156114295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104ec565b6001600160a01b0385163b6114805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104ec565b600080866001600160a01b0316858760405161149c9190611857565b60006040518083038185875af1925050503d80600081146114d9576040519150601f19603f3d011682016040523d82523d6000602084013e6114de565b606091505b50915091506114ee8282866114f9565b979650505050505050565b606083156115085750816111bd565b8251156115185782518084602001fd5b8160405162461bcd60e51b81526004016104ec9190611873565b80356001600160a01b038116811461154957600080fd5b919050565b60006020828403121561156057600080fd5b6111bd82611532565b60006020828403121561157b57600080fd5b5035919050565b60008060006040848603121561159757600080fd5b83359250602084013567ffffffffffffffff808211156115b657600080fd5b818601915086601f8301126115ca57600080fd5b8135818111156115d957600080fd5b8760208260051b85010111156115ee57600080fd5b6020830194508093505050509250925092565b6000806040838503121561161457600080fd5b61161d83611532565b946020939093013593505050565b801515811461163957600080fd5b50565b60006020828403121561164e57600080fd5b81356111bd8161162b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526030908201527f536f6d6520706f736974697665206e756d626572206f6620746f6b656e73206d60408201526f1d5cdd081899481c995c5d595cdd195960821b606082015260800190565b6000602082840312156116f057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611720576117206116f7565b500190565b60208082526034908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206275792074686040820152736520726571756573746564207175616e7469747960601b606082015260800190565b6000816000190483118215151615611793576117936116f7565b500290565b60208082526023908201527f416d6f756e74206f662065746865722073656e7420697320696e737566666963604082015262195b9d60ea1b606082015260800190565b6000600182016117ed576117ed6116f7565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561181c57600080fd5b81516111bd8161162b565b60005b8381101561184257818101518382015260200161182a565b83811115611851576000848401525b50505050565b60008251611869818460208701611827565b9190910192915050565b6020815260008251806020840152611892816040850160208701611827565b601f01601f1916919091016040019291505056fea2646970667358221220a1c2e9ef35be890c7213c166288df59aeed02f386eccf15aeb7e1fc667bd582d64736f6c634300080d0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c211506d58861857c3158af449e832cc5e1e7e7b

-----Decoded View---------------
Arg [0] : nftContractAddress (address): 0xC211506d58861857c3158Af449e832CC5E1e7E7B

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c211506d58861857c3158af449e832cc5e1e7e7b


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  ]
[ 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.