ETH Price: $3,195.65 (+1.30%)
Gas: 2 Gwei

Contract

0x8e720F90014fA4De02627f4A4e217B7e3942d5e8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...197886152024-05-03 9:11:5972 days ago1714727519IN
Million Dollar Token Page: ⊡ Token
0 ETH0.000329157.11521938
Set Approval For...194214582024-03-12 20:42:47123 days ago1710276167IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0014299858.90519545
Transfer From192453432024-02-17 4:55:47148 days ago1708145747IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0006626514.30939803
Transfer From192453432024-02-17 4:55:47148 days ago1708145747IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0007313514.30974508
Transfer From192453432024-02-17 4:55:47148 days ago1708145747IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0007331814.3455236
Transfer From192453432024-02-17 4:55:47148 days ago1708145747IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0009760714.31009214
Set Approval For...191939142024-02-09 23:42:35155 days ago1707522155IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0020376644.11668805
Set Approval For...191428122024-02-02 19:31:59162 days ago1706902319IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0008535218.47926685
Mint Token Group191386872024-02-02 5:37:59163 days ago1706852279IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0458059114.41345362
Set Mint Price191361942024-02-01 21:14:47163 days ago1706822087IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0006368326.6671773
Withdraw189155982024-01-01 22:38:11194 days ago1704148691IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0003771812.3552384
Mint Token Group189155942024-01-01 22:37:23194 days ago1704148643IN
Million Dollar Token Page: ⊡ Token
0.49 ETH0.0165325712.52782796
Withdraw189155802024-01-01 22:34:35194 days ago1704148475IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0004710115.42904257
Mint Token Group189155762024-01-01 22:33:35194 days ago1704148415IN
Million Dollar Token Page: ⊡ Token
0.09 ETH0.0046221816.06731882
Mint Token Group189155752024-01-01 22:33:23194 days ago1704148403IN
Million Dollar Token Page: ⊡ Token
0.09 ETH0.0046706316.64681546
Mint Token Group189155622024-01-01 22:30:35194 days ago1704148235IN
Million Dollar Token Page: ⊡ Token
0.09 ETH0.0034195112.10139652
Mint Token Group189155602024-01-01 22:30:11194 days ago1704148211IN
Million Dollar Token Page: ⊡ Token
0.09 ETH0.0031713711.22325932
Safe Transfer Gr...189155392024-01-01 22:25:59194 days ago1704147959IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0019515110.60082516
Mint Token Group189155192024-01-01 22:21:59194 days ago1704147719IN
Million Dollar Token Page: ⊡ Token
0.09 ETH0.0031118611.01753983
Set Mint Price188430322023-12-22 18:01:23204 days ago1703268083IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0020419144.54331305
Mint Token Group188418012023-12-22 13:52:35204 days ago1703253155IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0062836437.3748273
Mint Token Group188383132023-12-22 2:07:59205 days ago1703210879IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0047399928.19125194
Mint Token Group188379052023-12-22 0:45:35205 days ago1703205935IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0042233325.10172396
Mint Token Group188339692023-12-21 11:33:59206 days ago1703158439IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0055545133.03563842
Set Single Mint ...188293542023-12-20 20:00:35206 days ago1703102435IN
Million Dollar Token Page: ⊡ Token
0 ETH0.0017544960.98336617
View all transactions

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
189155982024-01-01 22:38:11194 days ago1704148691
Million Dollar Token Page: ⊡ Token
0.49 ETH
189155802024-01-01 22:34:35194 days ago1704148475
Million Dollar Token Page: ⊡ Token
0.45 ETH
188293472023-12-20 19:58:59206 days ago1703102339
Million Dollar Token Page: ⊡ Token
0.23 ETH
157471122022-10-14 15:01:59638 days ago1665759719
Million Dollar Token Page: ⊡ Token
0.25 ETH
156493672022-09-30 23:14:35652 days ago1664579675
Million Dollar Token Page: ⊡ Token
0.93 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MillionDollarTokenPageV2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : MillionDollarTokenPage-v2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./Bits.sol";
import "./ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

interface IERC721CollectionMetadata {
    /* Read more at https://docs.tokenpage.xyz/IERC721CollectionMetadata */
    function contractURI() external returns (string memory);
}

interface MillionDollarTokenPageV1 {
    function ownerOf(uint256 tokenId) external view returns (address);
    function tokenContentURI(uint256 tokenId) external view returns (string memory);
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

contract MillionDollarTokenPageV2 is ERC721, IERC2981, Pausable, Ownable, IERC721Receiver, IERC721Enumerable, IERC721CollectionMetadata {
    using Address for address;
    using Bits for uint256;

    uint256 private mintedTokenCount;
    mapping(uint256 => string) private tokenContentURIs;

    uint16 public constant COLUMN_COUNT = 100;
    uint16 public constant ROW_COUNT = 100;
    uint16 public constant SUPPLY_LIMIT = COLUMN_COUNT * ROW_COUNT;

    uint16 public royaltyBasisPoints;
    uint16 public totalMintLimit;
    uint16 public singleMintLimit;
    uint16 public ownershipMintLimit;
    uint256 public mintPrice;
    bool public isSaleActive;
    bool public isCenterSaleActive;

    string public collectionURI;
    string public metadataBaseURI;
    string public defaultContentBaseURI;
    bool public isMetadataFinalized;

    // Read about migration at https://MillionDollarTokenPage.com/migration
    MillionDollarTokenPageV1 public original;
    bool public canAddTokenIdsToMigrate;
    uint256 private tokenIdsToMigrateCount;
    uint256[(SUPPLY_LIMIT / 256) + 1] private tokenIdsToMigrateBitmap;
    uint256[(SUPPLY_LIMIT / 256) + 1] private tokenIdsMigratedBitmap;

    event TokenContentURIChanged(uint256 indexed tokenId);
    event TokenMigrated(uint256 indexed tokenId);

    constructor(uint16 _totalMintLimit, uint16 _singleMintLimit, uint16 _ownershipMintLimit, uint256 _mintPrice, string memory _metadataBaseURI, string memory _defaultContentBaseURI, string memory _collectionURI, uint16 _royaltyBasisPoints, address _original) ERC721("MillionDollarTokenPage", "\u22A1") Ownable() Pausable() {
        isSaleActive = false;
        isCenterSaleActive = false;
        canAddTokenIdsToMigrate = true;
        metadataBaseURI = _metadataBaseURI;
        defaultContentBaseURI = _defaultContentBaseURI;
        collectionURI = _collectionURI;
        totalMintLimit = _totalMintLimit;
        singleMintLimit = _singleMintLimit;
        ownershipMintLimit = _ownershipMintLimit;
        mintPrice = _mintPrice;
        royaltyBasisPoints = _royaltyBasisPoints;
        original = MillionDollarTokenPageV1(_original);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721Receiver).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            interfaceId == type(IERC2981).interfaceId ||
            interfaceId == type(IERC721CollectionMetadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function royaltyInfo(uint256, uint256 salePrice) external view override returns (address, uint256) {
        return (address(this), salePrice * royaltyBasisPoints / 10000);
    }

    function contractURI() external view override returns (string memory) {
        return collectionURI;
    }

    // Utils

    modifier onlyValidToken(uint256 tokenId) {
        require(tokenId > 0 && tokenId <= SUPPLY_LIMIT, "MDTP: invalid tokenId");
        _;
    }

    modifier onlyValidTokenGroup(uint256 tokenId, uint8 width, uint8 height) {
        require(width > 0, "MDTP: width must be > 0");
        require(height > 0, "MDTP: height must be > 0");
        _;
    }

    modifier onlyTokenOwner(uint256 tokenId) {
        require(ownerOf(tokenId) == _msgSender(), "MDTP: caller is not token owner");
        _;
    }

    function isInMiddle(uint256 tokenId) internal pure returns (bool) {
        uint256 x = tokenId % COLUMN_COUNT;
        uint256 y = tokenId / ROW_COUNT;
        return x >= 38 && x <= 62 && y >= 40 && y <= 59;
    }

    // Admin

    function setIsSaleActive(bool newIsSaleActive) external onlyOwner {
        isSaleActive = newIsSaleActive;
    }

    function setIsCenterSaleActive(bool newIsCenterSaleActive) external onlyOwner {
        isCenterSaleActive = newIsCenterSaleActive;
    }

    function setTotalMintLimit(uint16 newTotalMintLimit) external onlyOwner {
        totalMintLimit = newTotalMintLimit;
    }

    function setSingleMintLimit(uint16 newSingleMintLimit) external onlyOwner {
        singleMintLimit = newSingleMintLimit;
    }

    function setOwnershipMintLimit(uint16 newOwnershipMintLimit) external onlyOwner {
        ownershipMintLimit = newOwnershipMintLimit;
    }

    function setMintPrice(uint256 newMintPrice) external onlyOwner {
        mintPrice = newMintPrice;
    }

    function setCollectionURI(string calldata newCollectionURI) external onlyOwner {
        collectionURI = newCollectionURI;
    }

    function setMetadataBaseURI(string calldata newMetadataBaseURI) external onlyOwner {
        require(!isMetadataFinalized, 'MDTP: metadata is now final');
        metadataBaseURI = newMetadataBaseURI;
    }

    function setDefaultContentBaseURI(string calldata newDefaultContentBaseURI) external onlyOwner {
        defaultContentBaseURI = newDefaultContentBaseURI;
    }

    function setMetadataFinalized() external onlyOwner {
        require(!isMetadataFinalized, 'MDTP: metadata is now final');
        isMetadataFinalized = true;
    }

    function setRoyaltyBasisPoints(uint16 newRoyaltyBasisPoints) external onlyOwner {
        require(newRoyaltyBasisPoints >= 0, "MDTP: royaltyBasisPoints must be >= 0");
        require(newRoyaltyBasisPoints < 5000, "MDTP: royaltyBasisPoints must be < 5000 (50%)");
        royaltyBasisPoints = newRoyaltyBasisPoints;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(owner()).transfer(balance);
    }

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

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

    // Metadata URIs

    function tokenURI(uint256 tokenId) public view override onlyValidToken(tokenId) returns (string memory) {
        return string(abi.encodePacked(metadataBaseURI, Strings.toString(tokenId), ".json"));
    }

    // Content URIs

    // NOTE(krishan711): contract URIs should point to a JSON file that contains:
    // name: string -> the high level title for your content. This should be <250 chars.
    // description: string -> a description of your content. This should be <2500 chars.
    // image: string -> a URI pointing to and image for your item in the grid. This should be at least 300x300 and will be cropped if not square.
    // url: optional[string] -> a URI pointing to the location you want visitors of your content to go to.
    // groupId: optional[string] -> a unique identifier you can use to group multiple grid items together by giving them all the same groupId.

    function tokenContentURI(uint256 tokenId) external view onlyValidToken(tokenId) returns (string memory) {
        if (isTokenSetForMigration(tokenId)) {
            return original.tokenContentURI(tokenId);
        }
        string memory _tokenContentURI = tokenContentURIs[tokenId];
        if (bytes(_tokenContentURI).length > 0) {
            return _tokenContentURI;
        }
        address owner = _owners[tokenId];
        if (owner != address(0)) {
            return tokenURI(tokenId);
        }
        return string(abi.encodePacked(defaultContentBaseURI, Strings.toString(tokenId), ".json"));
    }

    function setTokenContentURI(uint256 tokenId, string memory contentURI) external {
        _setTokenContentURI(tokenId, contentURI);
    }

    function setTokenGroupContentURIs(uint256 tokenId, uint8 width, uint8 height, string[] memory contentURIs) external {
        require(width * height == contentURIs.length, "MDTP: length of contentURIs incorrect");
        for (uint8 y = 0; y < height; y++) {
            for (uint8 x = 0; x < width; x++) {
                uint16 index = (width * y) + x;
                uint256 innerTokenId = tokenId + (ROW_COUNT * y) + x;
                _setTokenContentURI(innerTokenId, contentURIs[index]);
            }
        }
    }

    function _setTokenContentURI(uint256 tokenId, string memory contentURI) internal onlyTokenOwner(tokenId) whenNotPaused {
        tokenContentURIs[tokenId] = contentURI;
        emit TokenContentURIChanged(tokenId);
    }

    // Minting

    function ownerMintTokenGroupTo(address receiver, uint256 tokenId, uint8 width, uint8 height) external onlyOwner {
        _safeMint(receiver, tokenId, width, height, true, "");
    }

    function mintToken(uint256 tokenId) external payable {
        require(msg.value >= mintPrice, "MDTP: insufficient payment");
        _safeMint(_msgSender(), tokenId, 1, 1);
    }

    function mintTokenTo(address receiver, uint256 tokenId) external payable {
        require(msg.value >= mintPrice, "MDTP: insufficient payment");
        _safeMint(receiver, tokenId, 1, 1);
    }

    function mintTokenGroup(uint256 tokenId, uint8 width, uint8 height) external payable {
        require(msg.value >= (mintPrice * width * height), "MDTP: insufficient payment");
        _safeMint(_msgSender(), tokenId, width, height);
    }

    function mintTokenGroupTo(address receiver, uint256 tokenId, uint8 width, uint8 height) external payable {
        require(msg.value >= (mintPrice * width * height), "MDTP: insufficient payment");
        _safeMint(receiver, tokenId, width, height);
    }

    function _safeMint(address receiver, uint256 tokenId, uint8 width, uint8 height) internal {
        _safeMint(receiver, tokenId, width, height, false, "");
    }

    function _safeMint(address receiver, uint256 tokenId, uint8 width, uint8 height, bool shouldIgnoreLimits, bytes memory _data) internal onlyValidTokenGroup(tokenId, width, height) {
        require(receiver != address(0), "MDTP: invalid address");
        require(tokenId > 0, "MDTP: invalid tokenId");
        require(tokenId + (ROW_COUNT * (height - 1)) + (width - 1) <= SUPPLY_LIMIT, "MDTP: invalid tokenId");
        uint256 quantity = (width * height);
        require(quantity > 0, "MDTP: insufficient quantity");
        if (!shouldIgnoreLimits) {
            require(isSaleActive, "MDTP: sale not active");
            require(balanceOf(receiver) + quantity <= ownershipMintLimit, "MDTP: over ownershipMintLimit");
            require(quantity <= singleMintLimit, "MDTP: over singleMintLimit");
            require(mintedCount() + quantity <= totalMintLimit, "MDTP: over totalMintLimit");
        }

        _beforeTokenTransfers(address(0), receiver, tokenId, width, height);
        for (uint8 y = 0; y < height; y++) {
            for (uint8 x = 0; x < width; x++) {
                uint256 innerTokenId = tokenId + (ROW_COUNT * y) + x;
                require(!_exists(innerTokenId), "MDTP: token already minted");
                require(isCenterSaleActive || !isInMiddle(innerTokenId), "MDTP: minting center not active");
                _owners[innerTokenId] = receiver;
                require(_checkOnERC721Received(address(0), receiver, innerTokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
                emit Transfer(address(0), receiver, innerTokenId);
            }
        }
        _balances[receiver] += quantity;
    }

    function mintedCount() public view returns (uint256) {
        return mintedTokenCount + tokenIdsToMigrateCount;
    }

    // Transfers

    function transferGroupFrom(address sender, address receiver, uint256 tokenId, uint8 width, uint8 height) public {
        for (uint8 y = 0; y < height; y++) {
            for (uint8 x = 0; x < width; x++) {
                uint256 innerTokenId = tokenId + (ROW_COUNT * y) + x;
                transferFrom(sender, receiver, innerTokenId);
            }
        }
    }

    function safeTransferGroupFrom(address sender, address receiver, uint256 tokenId, uint8 width, uint8 height) public {
        for (uint8 y = 0; y < height; y++) {
            for (uint8 x = 0; x < width; x++) {
                uint256 innerTokenId = tokenId + (ROW_COUNT * y) + x;
                safeTransferFrom(sender, receiver, innerTokenId);
            }
        }
    }

    function _beforeTokenTransfer(address sender, address receiver, uint256 tokenId) internal override {
        super._beforeTokenTransfer(sender, receiver, tokenId);
        _beforeTokenTransfers(sender, receiver, tokenId, 1, 1);
    }

    function _beforeTokenTransfers(address sender, address receiver, uint256, uint8 width, uint8 height) internal whenNotPaused {
        if (sender != receiver) {
            if (sender == address(0)) {
                mintedTokenCount += width * height;
            }
        }
    }

    // Enumerable

    function totalSupply() external pure override(IERC721Enumerable) returns (uint256) {
        return SUPPLY_LIMIT;
    }

    function tokenOfOwnerByIndex(address owner, uint256 index) external view override(IERC721Enumerable) returns (uint256) {
        require(index < balanceOf(owner), "MDTP: owner index out of bounds");
        uint256 tokenIndex;
        for (uint256 tokenId = 1; tokenId <= SUPPLY_LIMIT; tokenId++) {
            if (_owners[tokenId] == owner) {
                if (tokenIndex == index) {
                    return tokenId;
                }
                tokenIndex++;
            }
        }
        revert('MDTP: unable to get token of owner by index');
    }

    function tokenByIndex(uint256 index) external pure override(IERC721Enumerable) returns (uint256) {
        require(index < SUPPLY_LIMIT, "MDTP: invalid index");
        return index + 1;
    }

    // Migration

    function isTokenMigrated(uint256 tokenId) public view returns (bool) {
        return tokenIdsMigratedBitmap[tokenId / 256].isBitSet(uint8(tokenId % 256));
    }

    function isTokenSetForMigration(uint256 tokenId) public view returns (bool) {
        return tokenIdsToMigrateCount >= 0 && tokenIdsToMigrateBitmap[tokenId / 256].isBitSet(uint8(tokenId % 256));
    }

    function ownerOf(uint256 tokenId) public view override(ERC721, IERC721) returns (address) {
        if (isTokenSetForMigration(tokenId)) {
            return address(original);
        }
        address owner = _owners[tokenId];
        require(owner != address(0), "MDTP: owner query for nonexistent token");
        return owner;
    }

    function _exists(uint256 tokenId) internal view override(ERC721) returns (bool) {
        if (isTokenSetForMigration(tokenId)) {
            return true;
        }
        return _owners[tokenId] != address(0);
    }

    function proxiedOwnerOf(uint256 tokenId) external view returns (address) {
        if (isTokenSetForMigration(tokenId)) {
            return original.ownerOf(tokenId);
        }
        return ownerOf(tokenId);
    }

    function completeMigration() external onlyOwner {
        canAddTokenIdsToMigrate = false;
    }

    function addTokensToMigrate(uint256[] calldata _tokenIdsToMigrate) external onlyOwner {
        require(canAddTokenIdsToMigrate, "MDTP: migration has already happened!");
        for (uint16 tokenIdIndex = 0; tokenIdIndex < _tokenIdsToMigrate.length; tokenIdIndex++) {
            uint256 tokenId = _tokenIdsToMigrate[tokenIdIndex];
            require(tokenId > 0 && tokenId <= SUPPLY_LIMIT, "MDTP: invalid tokenId");
            require(_owners[tokenId] == address(0), "MDTP: cannot migrate an owned token");
            require(!isTokenSetForMigration(tokenId), "MDTP: token already set for migration");
            tokenIdsToMigrateBitmap[tokenId / 256] = tokenIdsToMigrateBitmap[tokenId / 256].setBit(uint8(tokenId % 256));
        }
        _balances[address(original)] += _tokenIdsToMigrate.length;
        tokenIdsToMigrateCount += _tokenIdsToMigrate.length;
    }

    // NOTE(krishan711): this requires the owner to have approved this contract to manage v1 tokens
    function migrateTokens(uint256 tokenId, uint8 width, uint8 height) external whenNotPaused {
        for (uint8 y = 0; y < height; y++) {
            for (uint8 x = 0; x < width; x++) {
                uint256 innerTokenId = tokenId + (ROW_COUNT * y) + x;
                original.safeTransferFrom(_msgSender(), address(this), innerTokenId);
            }
        }
    }

    function onERC721Received(address, address from, uint256 tokenId, bytes calldata) external override whenNotPaused returns (bytes4) {
        require(_msgSender() == address(original), "MDTP: cannot accept token from unknown contract");
        require(original.ownerOf(tokenId) == address(this), "MDTP: token not yet owned by this contract");
        require(ownerOf(tokenId) == address(original), "MDTP: cannot accept token not set for migration");
        _transfer(address(original), from, tokenId);
        tokenIdsToMigrateBitmap[tokenId / 256] = tokenIdsToMigrateBitmap[tokenId / 256].clearBit(uint8(tokenId % 256));
        tokenIdsMigratedBitmap[tokenId / 256] = tokenIdsMigratedBitmap[tokenId / 256].setBit(uint8(tokenId % 256));
        tokenIdsToMigrateCount -= 1;
        mintedTokenCount += 1;
        emit TokenMigrated(tokenId);
        return this.onERC721Received.selector;
    }

}

File 2 of 16 : Bits.sol
// SPDX-License-Identifier: MIT
// https://github.com/ethereum/solidity-examples/blob/master/docs/bits/Bits.md
pragma solidity ^0.8.7;

library Bits {
    uint constant internal ONE = uint(1);

    function setBit(uint self, uint8 index) internal pure returns (uint) {
        return self | ONE << index;
    }

    function clearBit(uint self, uint8 index) internal pure returns (uint) {
        return self & ~(ONE << index);
    }

    function isBitSet(uint self, uint8 index) internal pure returns (bool) {
        return self >> index & 1 == 1;
    }
}

File 3 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/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}.
 * NOTE(Krishan711): this is a copy of the version in the library with the exception that the _owners and _balances are declared internal
 */
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) internal _owners;

    // Mapping owner address to token count
    mapping(address => uint256) internal _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 = 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 = 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);
    }

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

    /**
     * @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(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        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);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(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
    ) internal 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 {}
}

File 4 of 16 : 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 5 of 16 : 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 6 of 16 : 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 7 of 16 : 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 8 of 16 : 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 9 of 16 : 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 10 of 16 : 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 11 of 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"_totalMintLimit","type":"uint16"},{"internalType":"uint16","name":"_singleMintLimit","type":"uint16"},{"internalType":"uint16","name":"_ownershipMintLimit","type":"uint16"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_metadataBaseURI","type":"string"},{"internalType":"string","name":"_defaultContentBaseURI","type":"string"},{"internalType":"string","name":"_collectionURI","type":"string"},{"internalType":"uint16","name":"_royaltyBasisPoints","type":"uint16"},{"internalType":"address","name":"_original","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenContentURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"COLUMN_COUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROW_COUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIdsToMigrate","type":"uint256[]"}],"name":"addTokensToMigrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canAddTokenIdsToMigrate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"completeMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultContentBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCenterSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenSetForMigration","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"migrateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"mintTokenGroup","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"mintTokenGroupTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintTokenTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"original","outputs":[{"internalType":"contract MillionDollarTokenPageV1","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"ownerMintTokenGroupTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownershipMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"proxiedOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBasisPoints","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"safeTransferGroupFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newCollectionURI","type":"string"}],"name":"setCollectionURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDefaultContentBaseURI","type":"string"}],"name":"setDefaultContentBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newIsCenterSaleActive","type":"bool"}],"name":"setIsCenterSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newIsSaleActive","type":"bool"}],"name":"setIsSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadataBaseURI","type":"string"}],"name":"setMetadataBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMetadataFinalized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newOwnershipMintLimit","type":"uint16"}],"name":"setOwnershipMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newRoyaltyBasisPoints","type":"uint16"}],"name":"setRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newSingleMintLimit","type":"uint16"}],"name":"setSingleMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"contentURI","type":"string"}],"name":"setTokenContentURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"},{"internalType":"string[]","name":"contentURIs","type":"string[]"}],"name":"setTokenGroupContentURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newTotalMintLimit","type":"uint16"}],"name":"setTotalMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"singleMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenContentURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"name":"transferGroupFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620050c2380380620050c28339810160408190526200003491620003a1565b604080518082018252601681527f4d696c6c696f6e446f6c6c6172546f6b656e5061676500000000000000000000602080830191825283518085019094526003845262e28aa160e81b908401528151919291620000949160009162000214565b508051620000aa90600190602084019062000214565b50506006805460ff1916905550620000c233620001ba565b600b805461ffff19169055600f805460ff60a81b1916600160a81b1790558451620000f590600d90602088019062000214565b5083516200010b90600e90602087019062000214565b5082516200012190600c90602086019062000214565b5060098054600a9790975565ffffffff0000199096166201000061ffff9a8b160261ffff60201b191617640100000000988a16989098029790971767ffff00000000ffff191666010000000000009689169690960261ffff19169590951794909616939093179091555050600f8054610100600160a81b0319166101006001600160a01b039093169290920291909117905550620004ee565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000222906200049b565b90600052602060002090601f01602090048101928262000246576000855562000291565b82601f106200026157805160ff191683800117855562000291565b8280016001018555821562000291579182015b828111156200029157825182559160200191906001019062000274565b506200029f929150620002a3565b5090565b5b808211156200029f5760008155600101620002a4565b80516001600160a01b0381168114620002d257600080fd5b919050565b600082601f830112620002e957600080fd5b81516001600160401b0380821115620003065762000306620004d8565b604051601f8301601f19908116603f01168101908282118183101715620003315762000331620004d8565b816040528381526020925086838588010111156200034e57600080fd5b600091505b8382101562000372578582018301518183018401529082019062000353565b83821115620003845760008385830101525b9695505050505050565b805161ffff81168114620002d257600080fd5b60008060008060008060008060006101208a8c031215620003c157600080fd5b620003cc8a6200038e565b9850620003dc60208b016200038e565b9750620003ec60408b016200038e565b60608b015160808c015191985096506001600160401b03808211156200041157600080fd5b6200041f8d838e01620002d7565b965060a08c01519150808211156200043657600080fd5b620004448d838e01620002d7565b955060c08c01519150808211156200045b57600080fd5b506200046a8c828d01620002d7565b9350506200047b60e08b016200038e565b91506200048c6101008b01620002ba565b90509295985092959850929598565b600181811c90821680620004b057607f821691505b60208210811415620004d257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614bc480620004fe6000396000f3fe6080604052600436106104655760003560e01c8063676c7e5e11610243578063b88d4fde11610143578063e8a3d485116100bb578063f2fde38b1161008a578063f994589a1161006f578063f994589a14610c71578063fb94bd8a14610c92578063fd3ec9f514610cb257600080fd5b8063f2fde38b14610c31578063f4a0a52814610c5157600080fd5b8063e8a3d48514610b93578063e8d44caf14610ba8578063e985e9c514610bc8578063eb3391a914610c1157600080fd5b8063c742856611610112578063cf721b15116100f7578063cf721b1514610b5e578063d2d65ff514610b73578063e04a8eaf1461080357600080fd5b8063c742856614610b1b578063c87b56dd14610b3e57600080fd5b8063b88d4fde14610aae578063be52a67514610ace578063c01f2f7614610aee578063c634d03214610b0857600080fd5b806390a34ac3116101d6578063a22cb465116101a5578063a5dee0021161018a578063a5dee00214610a4a578063a82106ee14610a6f578063b46a816514610a8f57600080fd5b8063a22cb46514610a15578063a5097ebf14610a3557600080fd5b806390a34ac3146109b657806395d89b41146109cb5780639f3d1a2a146109e0578063a1ae82e5146109f557600080fd5b806376dd1f861161021257806376dd1f861461093d5780638456cb591461095e5780638d50645a146109735780638da5cb5b1461099357600080fd5b8063676c7e5e146108d25780636817c76c146108f257806370a0823114610908578063715018a61461092857600080fd5b80633906f560116103695780634886f62c116102e1578063564566a8116102b05780635c975abb116102955780635c975abb146108875780636352211e1461089f578063669a1f69146108bf57600080fd5b8063564566a81461084d5780635935e01a1461086757600080fd5b80634886f62c146107ee5780634a0218d6146108035780634f6ccce71461081857806351cc5d661461083857600080fd5b80633f4ba83a1161033857806342842e0e1161031d57806342842e0e1461079657806345e832df146107b657806346c715fa146107c957600080fd5b80633f4ba83a1461076657806342260b5d1461077b57600080fd5b80633906f560146106e95780633bd4803c146107115780633be9a9e1146107315780633ccfd60b1461075157600080fd5b80631f5e7978116103fc5780632935279f116103cb5780632a55205a116103b05780632a55205a1461066a5780632c0a6055146106a95780632f745c59146106c957600080fd5b80632935279f1461062a5780632a1b707a1461064a57600080fd5b80631f5e7978146105b75780632222cda0146105ca57806323b872dd146105ea5780632639f4601461060a57600080fd5b8063095ea7b311610438578063095ea7b31461051b5780630c0a9d261461053b578063150b7a021461055b57806318160ddd1461059457600080fd5b80630170163a1461046a57806301ffc9a71461048c57806306fdde03146104c1578063081812fc146104e3575b600080fd5b34801561047657600080fd5b5061048a61048536600461458d565b610cd2565b005b34801561049857600080fd5b506104ac6104a736600461449a565b610d4d565b60405190151581526020015b60405180910390f35b3480156104cd57600080fd5b506104d6610e14565b6040516104b891906148b0565b3480156104ef57600080fd5b506105036104fe3660046145b1565b610ea6565b6040516001600160a01b0390911681526020016104b8565b34801561052757600080fd5b5061048a61053636600461438f565b610f2e565b34801561054757600080fd5b506104d66105563660046145b1565b611060565b34801561056757600080fd5b5061057b610576366004614205565b611287565b6040516001600160e01b031990911681526020016104b8565b3480156105a057600080fd5b506105a961163f565b6040519081526020016104b8565b61048a6105c5366004614633565b611655565b3480156105d657600080fd5b5061048a6105e53660046142f8565b6116cf565b3480156105f657600080fd5b5061048a6106053660046141c4565b61175a565b34801561061657600080fd5b5061048a6106253660046144d4565b6117e1565b34801561063657600080fd5b506104ac6106453660046145b1565b61183b565b34801561065657600080fd5b506104ac6106653660046145b1565b61187a565b34801561067657600080fd5b5061068a610685366004614611565b611899565b604080516001600160a01b0390931683526020830191909152016104b8565b3480156106b557600080fd5b506105036106c43660046145b1565b6118cb565b3480156106d557600080fd5b506105a96106e436600461438f565b611964565b3480156106f557600080fd5b506106fe611a99565b60405161ffff90911681526020016104b8565b34801561071d57600080fd5b5061048a61072c3660046142f8565b611aa7565b34801561073d57600080fd5b5061048a61074c36600461440a565b611b2a565b34801561075d57600080fd5b5061048a611e33565b34801561077257600080fd5b5061048a611ec4565b34801561078757600080fd5b506009546106fe9061ffff1681565b3480156107a257600080fd5b5061048a6107b13660046141c4565b611f1c565b61048a6107c43660046143bb565b611f37565b3480156107d557600080fd5b50600f546105039061010090046001600160a01b031681565b3480156107fa57600080fd5b5061048a611fb7565b34801561080f57600080fd5b506106fe606481565b34801561082457600080fd5b506105a96108333660046145b1565b61202f565b34801561084457600080fd5b506104d6612099565b34801561085957600080fd5b50600b546104ac9060ff1681565b34801561087357600080fd5b5061048a61088236600461466f565b612127565b34801561089357600080fd5b5060065460ff166104ac565b3480156108ab57600080fd5b506105036108ba3660046145b1565b61226d565b61048a6108cd36600461438f565b61231e565b3480156108de57600080fd5b5061048a6108ed36600461458d565b61237d565b3480156108fe57600080fd5b506105a9600a5481565b34801561091457600080fd5b506105a9610923366004614151565b61245e565b34801561093457600080fd5b5061048a6124f8565b34801561094957600080fd5b506009546106fe9062010000900461ffff1681565b34801561096a57600080fd5b5061048a612550565b34801561097f57600080fd5b5061048a61098e3660046145ca565b6125a6565b34801561099f57600080fd5b5060065461010090046001600160a01b0316610503565b3480156109c257600080fd5b5061048a6125b0565b3480156109d757600080fd5b506104d6612660565b3480156109ec57600080fd5b506104d661266f565b348015610a0157600080fd5b5061048a610a1036600461458d565b61267c565b348015610a2157600080fd5b5061048a610a3036600461435a565b6126ea565b348015610a4157600080fd5b506104d66126f5565b348015610a5657600080fd5b506009546106fe906601000000000000900461ffff1681565b348015610a7b57600080fd5b5061048a610a8a36600461447f565b612702565b348015610a9b57600080fd5b50600b546104ac90610100900460ff1681565b348015610aba57600080fd5b5061048a610ac9366004614278565b61276a565b348015610ada57600080fd5b5061048a610ae93660046143bb565b6127f2565b348015610afa57600080fd5b50600f546104ac9060ff1681565b61048a610b163660046145b1565b61285e565b348015610b2757600080fd5b506009546106fe90640100000000900461ffff1681565b348015610b4a57600080fd5b506104d6610b593660046145b1565b6128c0565b348015610b6a57600080fd5b506105a9612958565b348015610b7f57600080fd5b5061048a610b8e36600461447f565b61296f565b348015610b9f57600080fd5b506104d66129d0565b348015610bb457600080fd5b5061048a610bc336600461458d565b6129df565b348015610bd457600080fd5b506104ac610be336600461418b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c1d57600080fd5b5061048a610c2c3660046144d4565b612a51565b348015610c3d57600080fd5b5061048a610c4c366004614151565b612aab565b348015610c5d57600080fd5b5061048a610c6c3660046145b1565b612b7e565b348015610c7d57600080fd5b50600f546104ac90600160a81b900460ff1681565b348015610c9e57600080fd5b5061048a610cad3660046144d4565b612bd1565b348015610cbe57600080fd5b5061048a610ccd366004614633565b612c7e565b6006546001600160a01b03610100909104163314610d255760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f83398151915260448201526064015b60405180910390fd5b6009805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b60006001600160e01b03198216630a85bd0160e11b1480610d9757506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610dcb57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610dff57506001600160e01b031982167fe8a3d48500000000000000000000000000000000000000000000000000000000145b80610e0e5750610e0e82612dbb565b92915050565b606060008054610e2390614a45565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4f90614a45565b8015610e9c5780601f10610e7157610100808354040283529160200191610e9c565b820191906000526020600020905b815481529060010190602001808311610e7f57829003601f168201915b5050505050905090565b6000610eb182612e56565b610f125760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d1c565b506000908152600460205260409020546001600160a01b031690565b6000610f398261226d565b9050806001600160a01b0316836001600160a01b03161415610fc35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b336001600160a01b0382161480610fdf5750610fdf8133610be3565b6110515760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d1c565b61105b8383612e8c565b505050565b606081600081118015611081575061107960648061496d565b61ffff168111155b6110c55760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b6110ce8361187a565b1561117757600f546040517f0c0a9d26000000000000000000000000000000000000000000000000000000008152600481018590526101009091046001600160a01b031690630c0a9d269060240160006040518083038186803b15801561113457600080fd5b505afa158015611148573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111709190810190614516565b9150611281565b6000838152600860205260408120805461119090614a45565b80601f01602080910402602001604051908101604052809291908181526020018280546111bc90614a45565b80156112095780601f106111de57610100808354040283529160200191611209565b820191906000526020600020905b8154815290600101906020018083116111ec57829003601f168201915b50505050509050600081511115611221579150611281565b6000848152600260205260409020546001600160a01b0316801561125157611248856128c0565b93505050611281565b600e61125c86612f07565b60405160200161126d9291906147aa565b604051602081830303815290604052935050505b50919050565b600061129560065460ff1690565b156112d55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b600f5461010090046001600160a01b0316336001600160a01b0316146113635760405162461bcd60e51b815260206004820152602f60248201527f4d4454503a2063616e6e6f742061636365707420746f6b656e2066726f6d207560448201527f6e6b6e6f776e20636f6e747261637400000000000000000000000000000000006064820152608401610d1c565b600f546040516331a9108f60e11b815260048101869052309161010090046001600160a01b031690636352211e9060240160206040518083038186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e4919061416e565b6001600160a01b0316146114605760405162461bcd60e51b815260206004820152602a60248201527f4d4454503a20746f6b656e206e6f7420796574206f776e65642062792074686960448201527f7320636f6e7472616374000000000000000000000000000000000000000000006064820152608401610d1c565b600f5461010090046001600160a01b031661147a8561226d565b6001600160a01b0316146114f65760405162461bcd60e51b815260206004820152602f60248201527f4d4454503a2063616e6e6f742061636365707420746f6b656e206e6f7420736560448201527f7420666f72206d6967726174696f6e00000000000000000000000000000000006064820152608401610d1c565b600f546115129061010090046001600160a01b03168686613041565b61155061152161010086614ad7565b601161152f61010088614959565b6028811061153f5761153f614b17565b015490600160ff919091161b191690565b601161155e61010087614959565b6028811061156e5761156e614b17565b01556115ad61157f61010086614ad7565b603961158d61010088614959565b6028811061159d5761159d614b17565b015490600160ff919091161b1790565b60396115bb61010087614959565b602881106115cb576115cb614b17565b01819055506001601060008282546115e391906149df565b925050819055506001600760008282546115fd919061491c565b909155505060405184907fcb81cc0672f8611568f0de539e3a44de3e2f070f6726e417c97b906bf0c8d16190600090a250630a85bd0160e11b95945050505050565b600061164c60648061496d565b61ffff16905090565b8060ff168260ff16600a5461166a9190614997565b6116749190614997565b3410156116c35760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b61105b33848484613226565b60005b8160ff168160ff1610156117525760005b8360ff168160ff16101561173f5760008160ff168360ff166064611707919061496d565b6117159061ffff168861491c565b61171f919061491c565b905061172c888883611f1c565b508061173781614ab7565b9150506116e3565b508061174a81614ab7565b9150506116d2565b505050505050565b6117643382613244565b6117d65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d1c565b61105b838383613041565b6006546001600160a01b0361010090910416331461182f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b61105b600c8383613f77565b6000610e0e61184c61010084614ad7565b603961185a61010086614959565b6028811061186a5761186a614b17565b01549060ff161c60019081161490565b6000610e0e61188b61010084614ad7565b601161185a61010086614959565b60095460009081903090612710906118b59061ffff1686614997565b6118bf9190614959565b915091505b9250929050565b60006118d68261187a565b1561195b57600f546040516331a9108f60e11b8152600481018490526101009091046001600160a01b031690636352211e9060240160206040518083038186803b15801561192357600080fd5b505afa158015611937573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0e919061416e565b610e0e8261226d565b600061196f8361245e565b82106119bd5760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a206f776e657220696e646578206f7574206f6620626f756e6473006044820152606401610d1c565b600060015b6119cd60648061496d565b61ffff168111611a2a576000818152600260205260409020546001600160a01b0386811691161415611a185783821415611a0a579150610e0e9050565b81611a1481614a9c565b9250505b80611a2281614a9c565b9150506119c2565b5060405162461bcd60e51b815260206004820152602b60248201527f4d4454503a20756e61626c6520746f2067657420746f6b656e206f66206f776e60448201527f657220627920696e6465780000000000000000000000000000000000000000006064820152608401610d1c565b611aa460648061496d565b81565b60005b8160ff168160ff1610156117525760005b8360ff168160ff161015611b175760008160ff168360ff166064611adf919061496d565b611aed9061ffff168861491c565b611af7919061491c565b9050611b0488888361175a565b5080611b0f81614ab7565b915050611abb565b5080611b2281614ab7565b915050611aaa565b6006546001600160a01b03610100909104163314611b785760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f54600160a81b900460ff16611bf75760405162461bcd60e51b815260206004820152602560248201527f4d4454503a206d6967726174696f6e2068617320616c7265616479206861707060448201527f656e6564210000000000000000000000000000000000000000000000000000006064820152608401610d1c565b60005b61ffff8116821115611de057600083838361ffff16818110611c1e57611c1e614b17565b905060200201359050600081118015611c455750611c3d60648061496d565b61ffff168111155b611c895760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b6000818152600260205260409020546001600160a01b031615611d145760405162461bcd60e51b815260206004820152602360248201527f4d4454503a2063616e6e6f74206d69677261746520616e206f776e656420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b611d1d8161187a565b15611d905760405162461bcd60e51b815260206004820152602560248201527f4d4454503a20746f6b656e20616c72656164792073657420666f72206d69677260448201527f6174696f6e0000000000000000000000000000000000000000000000000000006064820152608401610d1c565b611dad611d9f61010083614ad7565b601161158d61010085614959565b6011611dbb61010084614959565b60288110611dcb57611dcb614b17565b01555080611dd881614a7a565b915050611bfa565b50600f5461010090046001600160a01b031660009081526003602052604081208054839290611e1090849061491c565b909155505060108054829190600090611e2a90849061491c565b90915550505050565b6006546001600160a01b03610100909104163314611e815760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600654604051479161010090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611ec0573d6000803e3d6000fd5b5050565b6006546001600160a01b03610100909104163314611f125760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a61332a565b565b61105b8383836040518060200160405280600081525061276a565b8060ff168260ff16600a54611f4c9190614997565b611f569190614997565b341015611fa55760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b611fb184848484613226565b50505050565b6006546001600160a01b036101009091041633146120055760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055565b600061203c60648061496d565b61ffff16821061208e5760405162461bcd60e51b815260206004820152601360248201527f4d4454503a20696e76616c696420696e646578000000000000000000000000006044820152606401610d1c565b610e0e82600161491c565b600e80546120a690614a45565b80601f01602080910402602001604051908101604052809291908181526020018280546120d290614a45565b801561211f5780601f106120f45761010080835404028352916020019161211f565b820191906000526020600020905b81548152906001019060200180831161210257829003601f168201915b505050505081565b805161213383856149b6565b60ff16146121a95760405162461bcd60e51b815260206004820152602560248201527f4d4454503a206c656e677468206f6620636f6e74656e745552497320696e636f60448201527f72726563740000000000000000000000000000000000000000000000000000006064820152608401610d1c565b60005b8260ff168160ff1610156122665760005b8460ff168160ff161015612253576000816121d884886149b6565b6121e29190614934565b60ff16905060008260ff168460ff1660646121fd919061496d565b61220b9061ffff168a61491c565b612215919061491c565b905061223e81868461ffff168151811061223157612231614b17565b60200260200101516133c6565b5050808061224b90614ab7565b9150506121bd565b508061225e81614ab7565b9150506121ac565b5050505050565b60006122788261187a565b15612293575050600f5461010090046001600160a01b031690565b6000828152600260205260409020546001600160a01b031680610e0e5760405162461bcd60e51b815260206004820152602760248201527f4d4454503a206f776e657220717565727920666f72206e6f6e6578697374656e60448201527f7420746f6b656e000000000000000000000000000000000000000000000000006064820152608401610d1c565b600a543410156123705760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b611ec08282600180613226565b6006546001600160a01b036101009091041633146123cb5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6113888161ffff16106124465760405162461bcd60e51b815260206004820152602d60248201527f4d4454503a20726f79616c74794261736973506f696e7473206d75737420626560448201527f203c2035303030202835302529000000000000000000000000000000000000006064820152608401610d1c565b6009805461ffff191661ffff92909216919091179055565b60006001600160a01b0382166124dc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d1c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b036101009091041633146125465760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a60006134bd565b6006546001600160a01b0361010090910416331461259e5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a61352e565b611ec082826133c6565b6006546001600160a01b036101009091041633146125fe5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f5460ff16156126515760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a206d65746164617461206973206e6f772066696e616c00000000006044820152606401610d1c565b600f805460ff19166001179055565b606060018054610e2390614a45565b600d80546120a690614a45565b6006546001600160a01b036101009091041633146126ca5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6009805461ffff909216620100000263ffff000019909216919091179055565b611ec03383836135a9565b600c80546120a690614a45565b6006546001600160a01b036101009091041633146127505760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600b80549115156101000261ff0019909216919091179055565b6127743383613244565b6127e65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d1c565b611fb184848484613678565b6006546001600160a01b036101009091041633146128405760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611fb1848484846001604051806020016040528060008152506136f6565b600a543410156128b05760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b6128bd3382600180613226565b50565b6060816000811180156128e157506128d960648061496d565b61ffff168111155b6129255760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b600d61293084612f07565b6040516020016129419291906147aa565b604051602081830303815290604052915050919050565b600060105460075461296a919061491c565b905090565b6006546001600160a01b036101009091041633146129bd5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600b805460ff1916911515919091179055565b6060600c8054610e2390614a45565b6006546001600160a01b03610100909104163314612a2d5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6009805461ffff9092166401000000000265ffff0000000019909216919091179055565b6006546001600160a01b03610100909104163314612a9f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b61105b600e8383613f77565b6006546001600160a01b03610100909104163314612af95760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6001600160a01b038116612b755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d1c565b6128bd816134bd565b6006546001600160a01b03610100909104163314612bcc5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600a55565b6006546001600160a01b03610100909104163314612c1f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f5460ff1615612c725760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a206d65746164617461206973206e6f772066696e616c00000000006044820152606401610d1c565b61105b600d8383613f77565b60065460ff1615612cc45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b60005b8160ff168160ff161015611fb15760005b8360ff168160ff161015612da85760008160ff168360ff166064612cfc919061496d565b612d0a9061ffff168861491c565b612d14919061491c565b600f5490915061010090046001600160a01b03166342842e0e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015612d7c57600080fd5b505af1158015612d90573d6000803e3d6000fd5b50505050508080612da090614ab7565b915050612cd8565b5080612db381614ab7565b915050612cc7565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612e1e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610e0e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610e0e565b6000612e618261187a565b15612e6e57506001919050565b506000908152600260205260409020546001600160a01b0316151590565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612ece8261226d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081612f4757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f715780612f5b81614a9c565b9150612f6a9050600a83614959565b9150612f4b565b60008167ffffffffffffffff811115612f8c57612f8c614b2d565b6040519080825280601f01601f191660200182016040528015612fb6576020820181803683370190505b5090505b841561303957612fcb6001836149df565b9150612fd8600a86614ad7565b612fe390603061491c565b60f81b818381518110612ff857612ff8614b17565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613032600a86614959565b9450612fba565b949350505050565b826001600160a01b03166130548261226d565b6001600160a01b0316146130d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d1c565b6001600160a01b03821661314b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b613156838383613d2a565b613161600082612e8c565b6001600160a01b038316600090815260036020526040812080546001929061318a9084906149df565b90915550506001600160a01b03821660009081526003602052604081208054600192906131b890849061491c565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611fb1848484846000604051806020016040528060008152506136f6565b600061324f82612e56565b6132b05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d1c565b60006132bb8361226d565b9050806001600160a01b0316846001600160a01b031614806132f65750836001600160a01b03166132eb84610ea6565b6001600160a01b0316145b8061303957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16613039565b60065460ff1661337c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d1c565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b81336133d18261226d565b6001600160a01b0316146134275760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a2063616c6c6572206973206e6f7420746f6b656e206f776e6572006044820152606401610d1c565b60065460ff161561346d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b6000838152600860209081526040909120835161348c92850190613ffb565b5060405183907fd26ab77304eac64a04df2018c66716ad9c938c7b11429b56a46c017768172d1b90600090a2505050565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156135745760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586133a93390565b816001600160a01b0316836001600160a01b0316141561360b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d1c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613683848484613041565b61368f84848484613d38565b611fb15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b84848460008260ff161161374c5760405162461bcd60e51b815260206004820152601760248201527f4d4454503a207769647468206d757374206265203e20300000000000000000006044820152606401610d1c565b60008160ff161161379f5760405162461bcd60e51b815260206004820152601860248201527f4d4454503a20686569676874206d757374206265203e203000000000000000006044820152606401610d1c565b6001600160a01b0389166137f55760405162461bcd60e51b815260206004820152601560248201527f4d4454503a20696e76616c6964206164647265737300000000000000000000006044820152606401610d1c565b6000881161383d5760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b61384860648061496d565b61ffff166138576001896149f6565b60ff166138656001896149f6565b6138739060ff16606461496d565b6138819061ffff168b61491c565b61388b919061491c565b11156138d15760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b60006138dd87896149b6565b60ff169050600081116139325760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a20696e73756666696369656e74207175616e7469747900000000006044820152606401610d1c565b85613ac857600b5460ff166139895760405162461bcd60e51b815260206004820152601560248201527f4d4454503a2073616c65206e6f742061637469766500000000000000000000006044820152606401610d1c565b6009546601000000000000900461ffff16816139a48c61245e565b6139ae919061491c565b11156139fc5760405162461bcd60e51b815260206004820152601d60248201527f4d4454503a206f766572206f776e6572736869704d696e744c696d69740000006044820152606401610d1c565b600954640100000000900461ffff16811115613a5a5760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a206f7665722073696e676c654d696e744c696d69740000000000006044820152606401610d1c565b60095462010000900461ffff1681613a70612958565b613a7a919061491c565b1115613ac85760405162461bcd60e51b815260206004820152601960248201527f4d4454503a206f76657220746f74616c4d696e744c696d6974000000000000006044820152606401610d1c565b613ad660008b8b8b8b613e90565b60005b8760ff168160ff161015613cf05760005b8960ff168160ff161015613cdd5760008160ff168360ff166064613b0e919061496d565b613b1c9061ffff168e61491c565b613b26919061491c565b9050613b3181612e56565b15613b7e5760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20746f6b656e20616c7265616479206d696e7465640000000000006044820152606401610d1c565b600b54610100900460ff1680613b9a5750613b9881613f27565b155b613be65760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a206d696e74696e672063656e746572206e6f7420616374697665006044820152606401610d1c565b8c6002600083815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550613c2b60008e838b613d38565b613c925760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b60405181906001600160a01b038f16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45080613cd581614ab7565b915050613aea565b5080613ce881614ab7565b915050613ad9565b506001600160a01b038a1660009081526003602052604081208054839290613d1990849061491c565b909155505050505050505050505050565b61105b838383600180613e90565b60006001600160a01b0384163b15613e8557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d7c903390899088908890600401614874565b602060405180830381600087803b158015613d9657600080fd5b505af1925050508015613dc6575060408051601f3d908101601f19168201909252613dc3918101906144b7565b60015b613e6b573d808015613df4576040519150601f19603f3d011682016040523d82523d6000602084013e613df9565b606091505b508051613e635760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613039565b506001949350505050565b60065460ff1615613ed65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b836001600160a01b0316856001600160a01b031614612266576001600160a01b03851661226657613f0781836149b6565b60ff1660076000828254613f1b919061491c565b90915550505050505050565b600080613f35606484614ad7565b90506000613f44606485614959565b905060268210158015613f585750603e8211155b8015613f65575060288110155b80156130395750603b10159392505050565b828054613f8390614a45565b90600052602060002090601f016020900481019282613fa55760008555613feb565b82601f10613fbe5782800160ff19823516178555613feb565b82800160010185558215613feb579182015b82811115613feb578235825591602001919060010190613fd0565b50613ff792915061406f565b5090565b82805461400790614a45565b90600052602060002090601f0160209004810192826140295760008555613feb565b82601f1061404257805160ff1916838001178555613feb565b82800160010185558215613feb579182015b82811115613feb578251825591602001919060010190614054565b5b80821115613ff75760008155600101614070565b6000614097614092846148f4565b6148c3565b90508281528383830111156140ab57600080fd5b828260208301376000602084830101529392505050565b803580151581146140d257600080fd5b919050565b60008083601f8401126140e957600080fd5b50813567ffffffffffffffff81111561410157600080fd5b6020830191508360208285010111156118c457600080fd5b600082601f83011261412a57600080fd5b61413983833560208501614084565b9392505050565b803560ff811681146140d257600080fd5b60006020828403121561416357600080fd5b813561413981614b43565b60006020828403121561418057600080fd5b815161413981614b43565b6000806040838503121561419e57600080fd5b82356141a981614b43565b915060208301356141b981614b43565b809150509250929050565b6000806000606084860312156141d957600080fd5b83356141e481614b43565b925060208401356141f481614b43565b929592945050506040919091013590565b60008060008060006080868803121561421d57600080fd5b853561422881614b43565b9450602086013561423881614b43565b935060408601359250606086013567ffffffffffffffff81111561425b57600080fd5b614267888289016140d7565b969995985093965092949392505050565b6000806000806080858703121561428e57600080fd5b843561429981614b43565b935060208501356142a981614b43565b925060408501359150606085013567ffffffffffffffff8111156142cc57600080fd5b8501601f810187136142dd57600080fd5b6142ec87823560208401614084565b91505092959194509250565b600080600080600060a0868803121561431057600080fd5b853561431b81614b43565b9450602086013561432b81614b43565b93506040860135925061434060608701614140565b915061434e60808701614140565b90509295509295909350565b6000806040838503121561436d57600080fd5b823561437881614b43565b9150614386602084016140c2565b90509250929050565b600080604083850312156143a257600080fd5b82356143ad81614b43565b946020939093013593505050565b600080600080608085870312156143d157600080fd5b84356143dc81614b43565b9350602085013592506143f160408601614140565b91506143ff60608601614140565b905092959194509250565b6000806020838503121561441d57600080fd5b823567ffffffffffffffff8082111561443557600080fd5b818501915085601f83011261444957600080fd5b81358181111561445857600080fd5b8660208260051b850101111561446d57600080fd5b60209290920196919550909350505050565b60006020828403121561449157600080fd5b614139826140c2565b6000602082840312156144ac57600080fd5b813561413981614b58565b6000602082840312156144c957600080fd5b815161413981614b58565b600080602083850312156144e757600080fd5b823567ffffffffffffffff8111156144fe57600080fd5b61450a858286016140d7565b90969095509350505050565b60006020828403121561452857600080fd5b815167ffffffffffffffff81111561453f57600080fd5b8201601f8101841361455057600080fd5b805161455e614092826148f4565b81815285602083850101111561457357600080fd5b614584826020830160208601614a19565b95945050505050565b60006020828403121561459f57600080fd5b813561ffff8116811461413957600080fd5b6000602082840312156145c357600080fd5b5035919050565b600080604083850312156145dd57600080fd5b82359150602083013567ffffffffffffffff8111156145fb57600080fd5b61460785828601614119565b9150509250929050565b6000806040838503121561462457600080fd5b50508035926020909101359150565b60008060006060848603121561464857600080fd5b8335925061465860208501614140565b915061466660408501614140565b90509250925092565b6000806000806080858703121561468557600080fd5b843593506020614696818701614140565b93506146a460408701614140565b9250606086013567ffffffffffffffff808211156146c157600080fd5b818801915088601f8301126146d557600080fd5b8135818111156146e7576146e7614b2d565b8060051b6146f68582016148c3565b8281528581019085870183870188018e101561471157600080fd5b600093505b848410156147505780358681111561472d57600080fd5b61473b8f8a838b0101614119565b84525060019390930192918701918701614716565b50999c989b5096995050505050505050565b6000815180845261477a816020860160208601614a19565b601f01601f19169290920160200192915050565b600081516147a0818560208601614a19565b9290920192915050565b600080845481600182811c9150808316806147c657607f831692505b60208084108214156147e657634e487b7160e01b86526022600452602486fd5b8180156147fa576001811461480b57614838565b60ff19861689528489019650614838565b60008b81526020902060005b868110156148305781548b820152908501908301614817565b505084890196505b50505050505061458461484b828661478e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526148a66080830184614762565b9695505050505050565b6020815260006141396020830184614762565b604051601f8201601f1916810167ffffffffffffffff811182821017156148ec576148ec614b2d565b604052919050565b600067ffffffffffffffff82111561490e5761490e614b2d565b50601f01601f191660200190565b6000821982111561492f5761492f614aeb565b500190565b600060ff821660ff84168060ff0382111561495157614951614aeb565b019392505050565b60008261496857614968614b01565b500490565b600061ffff8083168185168183048111821515161561498e5761498e614aeb565b02949350505050565b60008160001904831182151516156149b1576149b1614aeb565b500290565b600060ff821660ff84168160ff04811182151516156149d7576149d7614aeb565b029392505050565b6000828210156149f1576149f1614aeb565b500390565b600060ff821660ff841680821015614a1057614a10614aeb565b90039392505050565b60005b83811015614a34578181015183820152602001614a1c565b83811115611fb15750506000910152565b600181811c90821680614a5957607f821691505b6020821081141561128157634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415614a9257614a92614aeb565b6001019392505050565b6000600019821415614ab057614ab0614aeb565b5060010190565b600060ff821660ff811415614ace57614ace614aeb565b60010192915050565b600082614ae657614ae6614b01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146128bd57600080fd5b6001600160e01b0319811681146128bd57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122096dcbca709d89f79269ca53930d2a58c3b1758f7838cc709c0bc8e18a407201c64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000001cf33f4c6c4e6391f4d2b445aa3a36639b77dd680000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d56546b744a62385653693441476575527276376565656452786e385a73683356553534335a447744774d62422f000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d59655a48477a66555334523277665469317759573843713965794b345265613851514b7447334552684b66432f000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106104655760003560e01c8063676c7e5e11610243578063b88d4fde11610143578063e8a3d485116100bb578063f2fde38b1161008a578063f994589a1161006f578063f994589a14610c71578063fb94bd8a14610c92578063fd3ec9f514610cb257600080fd5b8063f2fde38b14610c31578063f4a0a52814610c5157600080fd5b8063e8a3d48514610b93578063e8d44caf14610ba8578063e985e9c514610bc8578063eb3391a914610c1157600080fd5b8063c742856611610112578063cf721b15116100f7578063cf721b1514610b5e578063d2d65ff514610b73578063e04a8eaf1461080357600080fd5b8063c742856614610b1b578063c87b56dd14610b3e57600080fd5b8063b88d4fde14610aae578063be52a67514610ace578063c01f2f7614610aee578063c634d03214610b0857600080fd5b806390a34ac3116101d6578063a22cb465116101a5578063a5dee0021161018a578063a5dee00214610a4a578063a82106ee14610a6f578063b46a816514610a8f57600080fd5b8063a22cb46514610a15578063a5097ebf14610a3557600080fd5b806390a34ac3146109b657806395d89b41146109cb5780639f3d1a2a146109e0578063a1ae82e5146109f557600080fd5b806376dd1f861161021257806376dd1f861461093d5780638456cb591461095e5780638d50645a146109735780638da5cb5b1461099357600080fd5b8063676c7e5e146108d25780636817c76c146108f257806370a0823114610908578063715018a61461092857600080fd5b80633906f560116103695780634886f62c116102e1578063564566a8116102b05780635c975abb116102955780635c975abb146108875780636352211e1461089f578063669a1f69146108bf57600080fd5b8063564566a81461084d5780635935e01a1461086757600080fd5b80634886f62c146107ee5780634a0218d6146108035780634f6ccce71461081857806351cc5d661461083857600080fd5b80633f4ba83a1161033857806342842e0e1161031d57806342842e0e1461079657806345e832df146107b657806346c715fa146107c957600080fd5b80633f4ba83a1461076657806342260b5d1461077b57600080fd5b80633906f560146106e95780633bd4803c146107115780633be9a9e1146107315780633ccfd60b1461075157600080fd5b80631f5e7978116103fc5780632935279f116103cb5780632a55205a116103b05780632a55205a1461066a5780632c0a6055146106a95780632f745c59146106c957600080fd5b80632935279f1461062a5780632a1b707a1461064a57600080fd5b80631f5e7978146105b75780632222cda0146105ca57806323b872dd146105ea5780632639f4601461060a57600080fd5b8063095ea7b311610438578063095ea7b31461051b5780630c0a9d261461053b578063150b7a021461055b57806318160ddd1461059457600080fd5b80630170163a1461046a57806301ffc9a71461048c57806306fdde03146104c1578063081812fc146104e3575b600080fd5b34801561047657600080fd5b5061048a61048536600461458d565b610cd2565b005b34801561049857600080fd5b506104ac6104a736600461449a565b610d4d565b60405190151581526020015b60405180910390f35b3480156104cd57600080fd5b506104d6610e14565b6040516104b891906148b0565b3480156104ef57600080fd5b506105036104fe3660046145b1565b610ea6565b6040516001600160a01b0390911681526020016104b8565b34801561052757600080fd5b5061048a61053636600461438f565b610f2e565b34801561054757600080fd5b506104d66105563660046145b1565b611060565b34801561056757600080fd5b5061057b610576366004614205565b611287565b6040516001600160e01b031990911681526020016104b8565b3480156105a057600080fd5b506105a961163f565b6040519081526020016104b8565b61048a6105c5366004614633565b611655565b3480156105d657600080fd5b5061048a6105e53660046142f8565b6116cf565b3480156105f657600080fd5b5061048a6106053660046141c4565b61175a565b34801561061657600080fd5b5061048a6106253660046144d4565b6117e1565b34801561063657600080fd5b506104ac6106453660046145b1565b61183b565b34801561065657600080fd5b506104ac6106653660046145b1565b61187a565b34801561067657600080fd5b5061068a610685366004614611565b611899565b604080516001600160a01b0390931683526020830191909152016104b8565b3480156106b557600080fd5b506105036106c43660046145b1565b6118cb565b3480156106d557600080fd5b506105a96106e436600461438f565b611964565b3480156106f557600080fd5b506106fe611a99565b60405161ffff90911681526020016104b8565b34801561071d57600080fd5b5061048a61072c3660046142f8565b611aa7565b34801561073d57600080fd5b5061048a61074c36600461440a565b611b2a565b34801561075d57600080fd5b5061048a611e33565b34801561077257600080fd5b5061048a611ec4565b34801561078757600080fd5b506009546106fe9061ffff1681565b3480156107a257600080fd5b5061048a6107b13660046141c4565b611f1c565b61048a6107c43660046143bb565b611f37565b3480156107d557600080fd5b50600f546105039061010090046001600160a01b031681565b3480156107fa57600080fd5b5061048a611fb7565b34801561080f57600080fd5b506106fe606481565b34801561082457600080fd5b506105a96108333660046145b1565b61202f565b34801561084457600080fd5b506104d6612099565b34801561085957600080fd5b50600b546104ac9060ff1681565b34801561087357600080fd5b5061048a61088236600461466f565b612127565b34801561089357600080fd5b5060065460ff166104ac565b3480156108ab57600080fd5b506105036108ba3660046145b1565b61226d565b61048a6108cd36600461438f565b61231e565b3480156108de57600080fd5b5061048a6108ed36600461458d565b61237d565b3480156108fe57600080fd5b506105a9600a5481565b34801561091457600080fd5b506105a9610923366004614151565b61245e565b34801561093457600080fd5b5061048a6124f8565b34801561094957600080fd5b506009546106fe9062010000900461ffff1681565b34801561096a57600080fd5b5061048a612550565b34801561097f57600080fd5b5061048a61098e3660046145ca565b6125a6565b34801561099f57600080fd5b5060065461010090046001600160a01b0316610503565b3480156109c257600080fd5b5061048a6125b0565b3480156109d757600080fd5b506104d6612660565b3480156109ec57600080fd5b506104d661266f565b348015610a0157600080fd5b5061048a610a1036600461458d565b61267c565b348015610a2157600080fd5b5061048a610a3036600461435a565b6126ea565b348015610a4157600080fd5b506104d66126f5565b348015610a5657600080fd5b506009546106fe906601000000000000900461ffff1681565b348015610a7b57600080fd5b5061048a610a8a36600461447f565b612702565b348015610a9b57600080fd5b50600b546104ac90610100900460ff1681565b348015610aba57600080fd5b5061048a610ac9366004614278565b61276a565b348015610ada57600080fd5b5061048a610ae93660046143bb565b6127f2565b348015610afa57600080fd5b50600f546104ac9060ff1681565b61048a610b163660046145b1565b61285e565b348015610b2757600080fd5b506009546106fe90640100000000900461ffff1681565b348015610b4a57600080fd5b506104d6610b593660046145b1565b6128c0565b348015610b6a57600080fd5b506105a9612958565b348015610b7f57600080fd5b5061048a610b8e36600461447f565b61296f565b348015610b9f57600080fd5b506104d66129d0565b348015610bb457600080fd5b5061048a610bc336600461458d565b6129df565b348015610bd457600080fd5b506104ac610be336600461418b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c1d57600080fd5b5061048a610c2c3660046144d4565b612a51565b348015610c3d57600080fd5b5061048a610c4c366004614151565b612aab565b348015610c5d57600080fd5b5061048a610c6c3660046145b1565b612b7e565b348015610c7d57600080fd5b50600f546104ac90600160a81b900460ff1681565b348015610c9e57600080fd5b5061048a610cad3660046144d4565b612bd1565b348015610cbe57600080fd5b5061048a610ccd366004614633565b612c7e565b6006546001600160a01b03610100909104163314610d255760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f83398151915260448201526064015b60405180910390fd5b6009805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b60006001600160e01b03198216630a85bd0160e11b1480610d9757506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610dcb57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610dff57506001600160e01b031982167fe8a3d48500000000000000000000000000000000000000000000000000000000145b80610e0e5750610e0e82612dbb565b92915050565b606060008054610e2390614a45565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4f90614a45565b8015610e9c5780601f10610e7157610100808354040283529160200191610e9c565b820191906000526020600020905b815481529060010190602001808311610e7f57829003601f168201915b5050505050905090565b6000610eb182612e56565b610f125760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d1c565b506000908152600460205260409020546001600160a01b031690565b6000610f398261226d565b9050806001600160a01b0316836001600160a01b03161415610fc35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b336001600160a01b0382161480610fdf5750610fdf8133610be3565b6110515760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d1c565b61105b8383612e8c565b505050565b606081600081118015611081575061107960648061496d565b61ffff168111155b6110c55760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b6110ce8361187a565b1561117757600f546040517f0c0a9d26000000000000000000000000000000000000000000000000000000008152600481018590526101009091046001600160a01b031690630c0a9d269060240160006040518083038186803b15801561113457600080fd5b505afa158015611148573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111709190810190614516565b9150611281565b6000838152600860205260408120805461119090614a45565b80601f01602080910402602001604051908101604052809291908181526020018280546111bc90614a45565b80156112095780601f106111de57610100808354040283529160200191611209565b820191906000526020600020905b8154815290600101906020018083116111ec57829003601f168201915b50505050509050600081511115611221579150611281565b6000848152600260205260409020546001600160a01b0316801561125157611248856128c0565b93505050611281565b600e61125c86612f07565b60405160200161126d9291906147aa565b604051602081830303815290604052935050505b50919050565b600061129560065460ff1690565b156112d55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b600f5461010090046001600160a01b0316336001600160a01b0316146113635760405162461bcd60e51b815260206004820152602f60248201527f4d4454503a2063616e6e6f742061636365707420746f6b656e2066726f6d207560448201527f6e6b6e6f776e20636f6e747261637400000000000000000000000000000000006064820152608401610d1c565b600f546040516331a9108f60e11b815260048101869052309161010090046001600160a01b031690636352211e9060240160206040518083038186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e4919061416e565b6001600160a01b0316146114605760405162461bcd60e51b815260206004820152602a60248201527f4d4454503a20746f6b656e206e6f7420796574206f776e65642062792074686960448201527f7320636f6e7472616374000000000000000000000000000000000000000000006064820152608401610d1c565b600f5461010090046001600160a01b031661147a8561226d565b6001600160a01b0316146114f65760405162461bcd60e51b815260206004820152602f60248201527f4d4454503a2063616e6e6f742061636365707420746f6b656e206e6f7420736560448201527f7420666f72206d6967726174696f6e00000000000000000000000000000000006064820152608401610d1c565b600f546115129061010090046001600160a01b03168686613041565b61155061152161010086614ad7565b601161152f61010088614959565b6028811061153f5761153f614b17565b015490600160ff919091161b191690565b601161155e61010087614959565b6028811061156e5761156e614b17565b01556115ad61157f61010086614ad7565b603961158d61010088614959565b6028811061159d5761159d614b17565b015490600160ff919091161b1790565b60396115bb61010087614959565b602881106115cb576115cb614b17565b01819055506001601060008282546115e391906149df565b925050819055506001600760008282546115fd919061491c565b909155505060405184907fcb81cc0672f8611568f0de539e3a44de3e2f070f6726e417c97b906bf0c8d16190600090a250630a85bd0160e11b95945050505050565b600061164c60648061496d565b61ffff16905090565b8060ff168260ff16600a5461166a9190614997565b6116749190614997565b3410156116c35760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b61105b33848484613226565b60005b8160ff168160ff1610156117525760005b8360ff168160ff16101561173f5760008160ff168360ff166064611707919061496d565b6117159061ffff168861491c565b61171f919061491c565b905061172c888883611f1c565b508061173781614ab7565b9150506116e3565b508061174a81614ab7565b9150506116d2565b505050505050565b6117643382613244565b6117d65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d1c565b61105b838383613041565b6006546001600160a01b0361010090910416331461182f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b61105b600c8383613f77565b6000610e0e61184c61010084614ad7565b603961185a61010086614959565b6028811061186a5761186a614b17565b01549060ff161c60019081161490565b6000610e0e61188b61010084614ad7565b601161185a61010086614959565b60095460009081903090612710906118b59061ffff1686614997565b6118bf9190614959565b915091505b9250929050565b60006118d68261187a565b1561195b57600f546040516331a9108f60e11b8152600481018490526101009091046001600160a01b031690636352211e9060240160206040518083038186803b15801561192357600080fd5b505afa158015611937573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0e919061416e565b610e0e8261226d565b600061196f8361245e565b82106119bd5760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a206f776e657220696e646578206f7574206f6620626f756e6473006044820152606401610d1c565b600060015b6119cd60648061496d565b61ffff168111611a2a576000818152600260205260409020546001600160a01b0386811691161415611a185783821415611a0a579150610e0e9050565b81611a1481614a9c565b9250505b80611a2281614a9c565b9150506119c2565b5060405162461bcd60e51b815260206004820152602b60248201527f4d4454503a20756e61626c6520746f2067657420746f6b656e206f66206f776e60448201527f657220627920696e6465780000000000000000000000000000000000000000006064820152608401610d1c565b611aa460648061496d565b81565b60005b8160ff168160ff1610156117525760005b8360ff168160ff161015611b175760008160ff168360ff166064611adf919061496d565b611aed9061ffff168861491c565b611af7919061491c565b9050611b0488888361175a565b5080611b0f81614ab7565b915050611abb565b5080611b2281614ab7565b915050611aaa565b6006546001600160a01b03610100909104163314611b785760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f54600160a81b900460ff16611bf75760405162461bcd60e51b815260206004820152602560248201527f4d4454503a206d6967726174696f6e2068617320616c7265616479206861707060448201527f656e6564210000000000000000000000000000000000000000000000000000006064820152608401610d1c565b60005b61ffff8116821115611de057600083838361ffff16818110611c1e57611c1e614b17565b905060200201359050600081118015611c455750611c3d60648061496d565b61ffff168111155b611c895760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b6000818152600260205260409020546001600160a01b031615611d145760405162461bcd60e51b815260206004820152602360248201527f4d4454503a2063616e6e6f74206d69677261746520616e206f776e656420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b611d1d8161187a565b15611d905760405162461bcd60e51b815260206004820152602560248201527f4d4454503a20746f6b656e20616c72656164792073657420666f72206d69677260448201527f6174696f6e0000000000000000000000000000000000000000000000000000006064820152608401610d1c565b611dad611d9f61010083614ad7565b601161158d61010085614959565b6011611dbb61010084614959565b60288110611dcb57611dcb614b17565b01555080611dd881614a7a565b915050611bfa565b50600f5461010090046001600160a01b031660009081526003602052604081208054839290611e1090849061491c565b909155505060108054829190600090611e2a90849061491c565b90915550505050565b6006546001600160a01b03610100909104163314611e815760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600654604051479161010090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611ec0573d6000803e3d6000fd5b5050565b6006546001600160a01b03610100909104163314611f125760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a61332a565b565b61105b8383836040518060200160405280600081525061276a565b8060ff168260ff16600a54611f4c9190614997565b611f569190614997565b341015611fa55760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b611fb184848484613226565b50505050565b6006546001600160a01b036101009091041633146120055760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055565b600061203c60648061496d565b61ffff16821061208e5760405162461bcd60e51b815260206004820152601360248201527f4d4454503a20696e76616c696420696e646578000000000000000000000000006044820152606401610d1c565b610e0e82600161491c565b600e80546120a690614a45565b80601f01602080910402602001604051908101604052809291908181526020018280546120d290614a45565b801561211f5780601f106120f45761010080835404028352916020019161211f565b820191906000526020600020905b81548152906001019060200180831161210257829003601f168201915b505050505081565b805161213383856149b6565b60ff16146121a95760405162461bcd60e51b815260206004820152602560248201527f4d4454503a206c656e677468206f6620636f6e74656e745552497320696e636f60448201527f72726563740000000000000000000000000000000000000000000000000000006064820152608401610d1c565b60005b8260ff168160ff1610156122665760005b8460ff168160ff161015612253576000816121d884886149b6565b6121e29190614934565b60ff16905060008260ff168460ff1660646121fd919061496d565b61220b9061ffff168a61491c565b612215919061491c565b905061223e81868461ffff168151811061223157612231614b17565b60200260200101516133c6565b5050808061224b90614ab7565b9150506121bd565b508061225e81614ab7565b9150506121ac565b5050505050565b60006122788261187a565b15612293575050600f5461010090046001600160a01b031690565b6000828152600260205260409020546001600160a01b031680610e0e5760405162461bcd60e51b815260206004820152602760248201527f4d4454503a206f776e657220717565727920666f72206e6f6e6578697374656e60448201527f7420746f6b656e000000000000000000000000000000000000000000000000006064820152608401610d1c565b600a543410156123705760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b611ec08282600180613226565b6006546001600160a01b036101009091041633146123cb5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6113888161ffff16106124465760405162461bcd60e51b815260206004820152602d60248201527f4d4454503a20726f79616c74794261736973506f696e7473206d75737420626560448201527f203c2035303030202835302529000000000000000000000000000000000000006064820152608401610d1c565b6009805461ffff191661ffff92909216919091179055565b60006001600160a01b0382166124dc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d1c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b036101009091041633146125465760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a60006134bd565b6006546001600160a01b0361010090910416331461259e5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611f1a61352e565b611ec082826133c6565b6006546001600160a01b036101009091041633146125fe5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f5460ff16156126515760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a206d65746164617461206973206e6f772066696e616c00000000006044820152606401610d1c565b600f805460ff19166001179055565b606060018054610e2390614a45565b600d80546120a690614a45565b6006546001600160a01b036101009091041633146126ca5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6009805461ffff909216620100000263ffff000019909216919091179055565b611ec03383836135a9565b600c80546120a690614a45565b6006546001600160a01b036101009091041633146127505760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600b80549115156101000261ff0019909216919091179055565b6127743383613244565b6127e65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d1c565b611fb184848484613678565b6006546001600160a01b036101009091041633146128405760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b611fb1848484846001604051806020016040528060008152506136f6565b600a543410156128b05760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20696e73756666696369656e74207061796d656e740000000000006044820152606401610d1c565b6128bd3382600180613226565b50565b6060816000811180156128e157506128d960648061496d565b61ffff168111155b6129255760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b600d61293084612f07565b6040516020016129419291906147aa565b604051602081830303815290604052915050919050565b600060105460075461296a919061491c565b905090565b6006546001600160a01b036101009091041633146129bd5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600b805460ff1916911515919091179055565b6060600c8054610e2390614a45565b6006546001600160a01b03610100909104163314612a2d5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6009805461ffff9092166401000000000265ffff0000000019909216919091179055565b6006546001600160a01b03610100909104163314612a9f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b61105b600e8383613f77565b6006546001600160a01b03610100909104163314612af95760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b6001600160a01b038116612b755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d1c565b6128bd816134bd565b6006546001600160a01b03610100909104163314612bcc5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600a55565b6006546001600160a01b03610100909104163314612c1f5760405162461bcd60e51b81526020600482018190526024820152600080516020614b6f8339815191526044820152606401610d1c565b600f5460ff1615612c725760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a206d65746164617461206973206e6f772066696e616c00000000006044820152606401610d1c565b61105b600d8383613f77565b60065460ff1615612cc45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b60005b8160ff168160ff161015611fb15760005b8360ff168160ff161015612da85760008160ff168360ff166064612cfc919061496d565b612d0a9061ffff168861491c565b612d14919061491c565b600f5490915061010090046001600160a01b03166342842e0e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015612d7c57600080fd5b505af1158015612d90573d6000803e3d6000fd5b50505050508080612da090614ab7565b915050612cd8565b5080612db381614ab7565b915050612cc7565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612e1e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610e0e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610e0e565b6000612e618261187a565b15612e6e57506001919050565b506000908152600260205260409020546001600160a01b0316151590565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612ece8261226d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081612f4757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f715780612f5b81614a9c565b9150612f6a9050600a83614959565b9150612f4b565b60008167ffffffffffffffff811115612f8c57612f8c614b2d565b6040519080825280601f01601f191660200182016040528015612fb6576020820181803683370190505b5090505b841561303957612fcb6001836149df565b9150612fd8600a86614ad7565b612fe390603061491c565b60f81b818381518110612ff857612ff8614b17565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613032600a86614959565b9450612fba565b949350505050565b826001600160a01b03166130548261226d565b6001600160a01b0316146130d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d1c565b6001600160a01b03821661314b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d1c565b613156838383613d2a565b613161600082612e8c565b6001600160a01b038316600090815260036020526040812080546001929061318a9084906149df565b90915550506001600160a01b03821660009081526003602052604081208054600192906131b890849061491c565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611fb1848484846000604051806020016040528060008152506136f6565b600061324f82612e56565b6132b05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d1c565b60006132bb8361226d565b9050806001600160a01b0316846001600160a01b031614806132f65750836001600160a01b03166132eb84610ea6565b6001600160a01b0316145b8061303957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16613039565b60065460ff1661337c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d1c565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b81336133d18261226d565b6001600160a01b0316146134275760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a2063616c6c6572206973206e6f7420746f6b656e206f776e6572006044820152606401610d1c565b60065460ff161561346d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b6000838152600860209081526040909120835161348c92850190613ffb565b5060405183907fd26ab77304eac64a04df2018c66716ad9c938c7b11429b56a46c017768172d1b90600090a2505050565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156135745760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586133a93390565b816001600160a01b0316836001600160a01b0316141561360b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d1c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613683848484613041565b61368f84848484613d38565b611fb15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b84848460008260ff161161374c5760405162461bcd60e51b815260206004820152601760248201527f4d4454503a207769647468206d757374206265203e20300000000000000000006044820152606401610d1c565b60008160ff161161379f5760405162461bcd60e51b815260206004820152601860248201527f4d4454503a20686569676874206d757374206265203e203000000000000000006044820152606401610d1c565b6001600160a01b0389166137f55760405162461bcd60e51b815260206004820152601560248201527f4d4454503a20696e76616c6964206164647265737300000000000000000000006044820152606401610d1c565b6000881161383d5760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b61384860648061496d565b61ffff166138576001896149f6565b60ff166138656001896149f6565b6138739060ff16606461496d565b6138819061ffff168b61491c565b61388b919061491c565b11156138d15760405162461bcd60e51b8152602060048201526015602482015274135115140e881a5b9d985b1a59081d1bdad95b9259605a1b6044820152606401610d1c565b60006138dd87896149b6565b60ff169050600081116139325760405162461bcd60e51b815260206004820152601b60248201527f4d4454503a20696e73756666696369656e74207175616e7469747900000000006044820152606401610d1c565b85613ac857600b5460ff166139895760405162461bcd60e51b815260206004820152601560248201527f4d4454503a2073616c65206e6f742061637469766500000000000000000000006044820152606401610d1c565b6009546601000000000000900461ffff16816139a48c61245e565b6139ae919061491c565b11156139fc5760405162461bcd60e51b815260206004820152601d60248201527f4d4454503a206f766572206f776e6572736869704d696e744c696d69740000006044820152606401610d1c565b600954640100000000900461ffff16811115613a5a5760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a206f7665722073696e676c654d696e744c696d69740000000000006044820152606401610d1c565b60095462010000900461ffff1681613a70612958565b613a7a919061491c565b1115613ac85760405162461bcd60e51b815260206004820152601960248201527f4d4454503a206f76657220746f74616c4d696e744c696d6974000000000000006044820152606401610d1c565b613ad660008b8b8b8b613e90565b60005b8760ff168160ff161015613cf05760005b8960ff168160ff161015613cdd5760008160ff168360ff166064613b0e919061496d565b613b1c9061ffff168e61491c565b613b26919061491c565b9050613b3181612e56565b15613b7e5760405162461bcd60e51b815260206004820152601a60248201527f4d4454503a20746f6b656e20616c7265616479206d696e7465640000000000006044820152606401610d1c565b600b54610100900460ff1680613b9a5750613b9881613f27565b155b613be65760405162461bcd60e51b815260206004820152601f60248201527f4d4454503a206d696e74696e672063656e746572206e6f7420616374697665006044820152606401610d1c565b8c6002600083815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550613c2b60008e838b613d38565b613c925760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b60405181906001600160a01b038f16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45080613cd581614ab7565b915050613aea565b5080613ce881614ab7565b915050613ad9565b506001600160a01b038a1660009081526003602052604081208054839290613d1990849061491c565b909155505050505050505050505050565b61105b838383600180613e90565b60006001600160a01b0384163b15613e8557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d7c903390899088908890600401614874565b602060405180830381600087803b158015613d9657600080fd5b505af1925050508015613dc6575060408051601f3d908101601f19168201909252613dc3918101906144b7565b60015b613e6b573d808015613df4576040519150601f19603f3d011682016040523d82523d6000602084013e613df9565b606091505b508051613e635760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d1c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613039565b506001949350505050565b60065460ff1615613ed65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d1c565b836001600160a01b0316856001600160a01b031614612266576001600160a01b03851661226657613f0781836149b6565b60ff1660076000828254613f1b919061491c565b90915550505050505050565b600080613f35606484614ad7565b90506000613f44606485614959565b905060268210158015613f585750603e8211155b8015613f65575060288110155b80156130395750603b10159392505050565b828054613f8390614a45565b90600052602060002090601f016020900481019282613fa55760008555613feb565b82601f10613fbe5782800160ff19823516178555613feb565b82800160010185558215613feb579182015b82811115613feb578235825591602001919060010190613fd0565b50613ff792915061406f565b5090565b82805461400790614a45565b90600052602060002090601f0160209004810192826140295760008555613feb565b82601f1061404257805160ff1916838001178555613feb565b82800160010185558215613feb579182015b82811115613feb578251825591602001919060010190614054565b5b80821115613ff75760008155600101614070565b6000614097614092846148f4565b6148c3565b90508281528383830111156140ab57600080fd5b828260208301376000602084830101529392505050565b803580151581146140d257600080fd5b919050565b60008083601f8401126140e957600080fd5b50813567ffffffffffffffff81111561410157600080fd5b6020830191508360208285010111156118c457600080fd5b600082601f83011261412a57600080fd5b61413983833560208501614084565b9392505050565b803560ff811681146140d257600080fd5b60006020828403121561416357600080fd5b813561413981614b43565b60006020828403121561418057600080fd5b815161413981614b43565b6000806040838503121561419e57600080fd5b82356141a981614b43565b915060208301356141b981614b43565b809150509250929050565b6000806000606084860312156141d957600080fd5b83356141e481614b43565b925060208401356141f481614b43565b929592945050506040919091013590565b60008060008060006080868803121561421d57600080fd5b853561422881614b43565b9450602086013561423881614b43565b935060408601359250606086013567ffffffffffffffff81111561425b57600080fd5b614267888289016140d7565b969995985093965092949392505050565b6000806000806080858703121561428e57600080fd5b843561429981614b43565b935060208501356142a981614b43565b925060408501359150606085013567ffffffffffffffff8111156142cc57600080fd5b8501601f810187136142dd57600080fd5b6142ec87823560208401614084565b91505092959194509250565b600080600080600060a0868803121561431057600080fd5b853561431b81614b43565b9450602086013561432b81614b43565b93506040860135925061434060608701614140565b915061434e60808701614140565b90509295509295909350565b6000806040838503121561436d57600080fd5b823561437881614b43565b9150614386602084016140c2565b90509250929050565b600080604083850312156143a257600080fd5b82356143ad81614b43565b946020939093013593505050565b600080600080608085870312156143d157600080fd5b84356143dc81614b43565b9350602085013592506143f160408601614140565b91506143ff60608601614140565b905092959194509250565b6000806020838503121561441d57600080fd5b823567ffffffffffffffff8082111561443557600080fd5b818501915085601f83011261444957600080fd5b81358181111561445857600080fd5b8660208260051b850101111561446d57600080fd5b60209290920196919550909350505050565b60006020828403121561449157600080fd5b614139826140c2565b6000602082840312156144ac57600080fd5b813561413981614b58565b6000602082840312156144c957600080fd5b815161413981614b58565b600080602083850312156144e757600080fd5b823567ffffffffffffffff8111156144fe57600080fd5b61450a858286016140d7565b90969095509350505050565b60006020828403121561452857600080fd5b815167ffffffffffffffff81111561453f57600080fd5b8201601f8101841361455057600080fd5b805161455e614092826148f4565b81815285602083850101111561457357600080fd5b614584826020830160208601614a19565b95945050505050565b60006020828403121561459f57600080fd5b813561ffff8116811461413957600080fd5b6000602082840312156145c357600080fd5b5035919050565b600080604083850312156145dd57600080fd5b82359150602083013567ffffffffffffffff8111156145fb57600080fd5b61460785828601614119565b9150509250929050565b6000806040838503121561462457600080fd5b50508035926020909101359150565b60008060006060848603121561464857600080fd5b8335925061465860208501614140565b915061466660408501614140565b90509250925092565b6000806000806080858703121561468557600080fd5b843593506020614696818701614140565b93506146a460408701614140565b9250606086013567ffffffffffffffff808211156146c157600080fd5b818801915088601f8301126146d557600080fd5b8135818111156146e7576146e7614b2d565b8060051b6146f68582016148c3565b8281528581019085870183870188018e101561471157600080fd5b600093505b848410156147505780358681111561472d57600080fd5b61473b8f8a838b0101614119565b84525060019390930192918701918701614716565b50999c989b5096995050505050505050565b6000815180845261477a816020860160208601614a19565b601f01601f19169290920160200192915050565b600081516147a0818560208601614a19565b9290920192915050565b600080845481600182811c9150808316806147c657607f831692505b60208084108214156147e657634e487b7160e01b86526022600452602486fd5b8180156147fa576001811461480b57614838565b60ff19861689528489019650614838565b60008b81526020902060005b868110156148305781548b820152908501908301614817565b505084890196505b50505050505061458461484b828661478e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526148a66080830184614762565b9695505050505050565b6020815260006141396020830184614762565b604051601f8201601f1916810167ffffffffffffffff811182821017156148ec576148ec614b2d565b604052919050565b600067ffffffffffffffff82111561490e5761490e614b2d565b50601f01601f191660200190565b6000821982111561492f5761492f614aeb565b500190565b600060ff821660ff84168060ff0382111561495157614951614aeb565b019392505050565b60008261496857614968614b01565b500490565b600061ffff8083168185168183048111821515161561498e5761498e614aeb565b02949350505050565b60008160001904831182151516156149b1576149b1614aeb565b500290565b600060ff821660ff84168160ff04811182151516156149d7576149d7614aeb565b029392505050565b6000828210156149f1576149f1614aeb565b500390565b600060ff821660ff841680821015614a1057614a10614aeb565b90039392505050565b60005b83811015614a34578181015183820152602001614a1c565b83811115611fb15750506000910152565b600181811c90821680614a5957607f821691505b6020821081141561128157634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415614a9257614a92614aeb565b6001019392505050565b6000600019821415614ab057614ab0614aeb565b5060010190565b600060ff821660ff811415614ace57614ace614aeb565b60010192915050565b600082614ae657614ae6614b01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146128bd57600080fd5b6001600160e01b0319811681146128bd57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122096dcbca709d89f79269ca53930d2a58c3b1758f7838cc709c0bc8e18a407201c64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000001cf33f4c6c4e6391f4d2b445aa3a36639b77dd680000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d56546b744a62385653693441476575527276376565656452786e385a73683356553534335a447744774d62422f000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d59655a48477a66555334523277665469317759573843713965794b345265613851514b7447334552684b66432f000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _totalMintLimit (uint16): 2000
Arg [1] : _singleMintLimit (uint16): 35
Arg [2] : _ownershipMintLimit (uint16): 35
Arg [3] : _mintPrice (uint256): 10000000000000000
Arg [4] : _metadataBaseURI (string): ipfs://QmVTktJb8VSi4AGeuRrv7eeedRxn8Zsh3VU543ZDwDwMbB/
Arg [5] : _defaultContentBaseURI (string): ipfs://QmYeZHGzfUS4R2wfTi1wYW8Cq9eyK4Rea8QQKtG3ERhKfC/
Arg [6] : _collectionURI (string):
Arg [7] : _royaltyBasisPoints (uint16): 500
Arg [8] : _original (address): 0x1Cf33F4c6C4E6391F4D2B445aa3a36639b77dd68

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [3] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [8] : 0000000000000000000000001cf33f4c6c4e6391f4d2b445aa3a36639b77dd68
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d56546b744a623856536934414765755272763765656564
Arg [11] : 52786e385a73683356553534335a447744774d62422f00000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [13] : 697066733a2f2f516d59655a48477a6655533452327766546931775957384371
Arg [14] : 3965794b345265613851514b7447334552684b66432f00000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

MDTP is the Homepage of the Metaverse! .Show off your NFTs on space that you own as an NFT .Its milliondollarhomepage.com with crypto rocket-fuel

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.