ETH Price: $1,972.12 (-4.93%)

Token

GrumpyNFT (GrumpyNFT)
 

Overview

Max Total Supply

24 GrumpyNFT

Holders

4

Transfers

-
0

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GrumpyNFTs

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
         


pragma solidity ^0.8.16;

import "./IERC721ABurnable.sol";
import "./ERC721AQueryable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract GrumpyNFTs is ERC721A, Ownable, ReentrancyGuard, ERC721AQueryable, IERC721ABurnable {
    event PermanentURI(string _value, uint256 indexed _id);
    event Swipe(address indexed _from, address indexed _to, uint256 indexed _id, uint256 _value);

    uint256 public constant MAX_SUPPLY = 1200;
    // Holds the # of remaining tokens available for migration
    uint256 public remainingSupply = 200;
    uint256 public _price;
    bool public openPackPaused;
    bool public contractPaused;
    bool public baseURILocked;
    bool public gameLive = true;
    string private _baseTokenURI;
    address private _burnAuthorizedContract;
    address private _admin;
    address public _fundingrecipient;
    mapping(address => bool) private _marketplaceBlocklist;

    PackContract private PACK;

    constructor(
        string memory baseTokenURI,
        address admin,
        address packContract,
        address fundingrecipient,
        uint256 price)
    ERC721A("GrumpyNFT", "GrumpyNFT") {
        _admin = admin;
        _baseTokenURI = baseTokenURI;
        _fundingrecipient = fundingrecipient;
        _price = price;
        openPackPaused = false;
        PACK = PackContract(packContract);
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Caller is another contract");
        _;
    }
    
    modifier onlyOwnerOrAdmin() {
        require(msg.sender == owner() || msg.sender == _admin, "Not owner or admin");
        _;
    }


    // Starts the migration process of given Grumpy Pack

    function startopenPack(uint256[] memory packIds)
        external
        nonReentrant
        callerIsUser
    {
        require(!openPackPaused && !contractPaused, "Pack opening is paused");


        uint256 i;
        for (i = 0; i < packIds.length;) {
            uint256 packId = packIds[i];
            // check if the msg sender is the owner
            require(PACK.ownerOf(packId) == msg.sender, "You don't own the given Pack");

            // burn pack
            PACK.burn(packId);

            unchecked { i++; }
        }


        // mint GrumpyNFTs
        _safeMint(msg.sender, packIds.length * 6);

    }

    // Only the owner of the token and its approved operators, and the authorized contract
    // can call this function.
    function burn(uint256 tokenId) public virtual override {
        // Avoid unnecessary approvals for the authorized contract
        bool approvalCheck = msg.sender != _burnAuthorizedContract;
        _burn(tokenId, approvalCheck);
    }

    function pauseopenPack(bool paused) external onlyOwnerOrAdmin {
        openPackPaused = paused;
    }

    function pauseContract(bool paused) external onlyOwnerOrAdmin {
        contractPaused = paused;
    }

    function _beforeTokenTransfers(
        address /* from */,
        address /* to */,
        uint256 /* startTokenId */,
        uint256 /* quantity */
    ) internal virtual override {
        require(!contractPaused, "Contract is paused");
    }

    // Locks base token URI forever and emits PermanentURI for marketplaces (e.g. OpenSea)
    function lockBaseURI() external onlyOwnerOrAdmin {
        baseURILocked = true;
        for (uint256 i = 0; i < _nextTokenId(); i++) {
            if (_exists(i)) {
                emit PermanentURI(tokenURI(i), i);
            }
        }
    }

    function ownerMint(address to, uint256 quantity) external onlyOwnerOrAdmin {
        require(_totalMinted() + quantity <= MAX_SUPPLY, "Quantity exceeds supply");

        _safeMint(to, quantity);
        
    }
     //  =============   Setters    =============   //

    function setBaseURI(string calldata newBaseURI) external onlyOwnerOrAdmin {
        require(!baseURILocked, "Base URI is locked");
        _baseTokenURI = newBaseURI;
    }

 
    function setAdmin(address admin) external onlyOwner {
        _admin = admin;
    }
    
    function setPackContract(address addr) external onlyOwnerOrAdmin {
        PACK = PackContract(addr);
    }

    function setBurnAuthorizedContract(address authorizedContract) external onlyOwnerOrAdmin {
        _burnAuthorizedContract = authorizedContract;
    }

       function setNewPrice(uint256 _newPrice) public onlyOwnerOrAdmin {
        _price = _newPrice;
    }

    //  =============   Getters    =============   //

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    // OpenSea metadata initialization
    function contractURI() public pure returns (string memory) {
        return "ipfs://QmZxUd8khqVnBT2hP4aCk7PD2Fq7TvHxwst6fCT8tamHtP";
    }

    function totalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    
    function withdrawMoney(address to) external onlyOwnerOrAdmin {
        (bool success, ) = to.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    // ============================================================= //
    //                      Marketplace Controls                     //
    // ============================================================= //


    function toggleGamestatus() public onlyOwnerOrAdmin {
        gameLive = !gameLive;
    }

    function approve(address to, uint256 tokenId) public virtual override(ERC721A, IERC721A) {
        require(_marketplaceBlocklist[to] == false, "Marketplace is blocked");
        require(gameLive == false, "Cannot Trade during game.");
        super.approve(to, tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override(ERC721A, IERC721A) {
        require(_marketplaceBlocklist[operator] == false, "Marketplace is blocked");
        require(gameLive == false, "Cannot Trade during game.");
        super.setApprovalForAll(operator, approved);
    }

    function blockMarketplace(address addr, bool blocked) public onlyOwnerOrAdmin {
        _marketplaceBlocklist[addr] = blocked;
    }

    function swipe(address from, address to, uint256 tokenId) public payable {
        address tokenowner = ownerOf(tokenId);
        require(gameLive == true, "Game is not live");
        require(msg.sender == to , "Not the buyer");
        require(from == tokenowner , "Incorrect Owner");
        require(msg.value >= _price , "Not enough ETH");
        transferFrom(from,to,tokenId);
        payable(_fundingrecipient).transfer(msg.value);

        emit Swipe(from, to, tokenId, msg.value);
        // event Swipe(address indexed _from, address indexed _to, uint256 indexed _id, uint256 _value);
    }

}

interface PackContract {
    function burn(uint256 tokenId) external;
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import './ERC721AB.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 7 of 9 : ERC721AB.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Reference type for token approval.
    string public baseExtension = ".json";
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), baseExtension)) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

       // if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

       // (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
      //  if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
       //     if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

     //   if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
           // if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(from, 0)
            //}
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"packContract","type":"address"},{"internalType":"address","name":"fundingrecipient","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Swipe","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"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_fundingrecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"blocked","type":"bool"}],"name":"blockMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPackPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","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":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"pauseopenPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"admin","type":"address"}],"name":"setAdmin","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizedContract","type":"address"}],"name":"setBurnAuthorizedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setNewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setPackContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"packIds","type":"uint256[]"}],"name":"startopenPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"swipe","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleGamestatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526005608090815264173539b7b760d91b60a05260009062000026908262000240565b5060c8600b55600d805463ff000000191663010000001790553480156200004c57600080fd5b5060405162003112380380620031128339810160408190526200006f9162000329565b60408051808201825260098082526811dc9d5b5c1e53919560ba1b6020808401829052845180860190955291845290830152906003620000b0838262000240565b506004620000bf828262000240565b5050600060015550620000d23362000149565b6001600a55601080546001600160a01b0319166001600160a01b038616179055600e62000100868262000240565b50601180546001600160a01b039384166001600160a01b031991821617909155600c91909155600d805460ff191690556013805493909216921691909117905550620004409050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001c657607f821691505b602082108103620001e757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023b57600081815260208120601f850160051c81016020861015620002165750805b601f850160051c820191505b81811015620002375782815560010162000222565b5050505b505050565b81516001600160401b038111156200025c576200025c6200019b565b62000274816200026d8454620001b1565b84620001ed565b602080601f831160018114620002ac5760008415620002935750858301515b600019600386901b1c1916600185901b17855562000237565b600085815260208120601f198616915b82811015620002dd57888601518255948401946001909101908401620002bc565b5085821015620002fc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b03811681146200032457600080fd5b919050565b600080600080600060a086880312156200034257600080fd5b85516001600160401b03808211156200035a57600080fd5b818801915088601f8301126200036f57600080fd5b8151818111156200038457620003846200019b565b604051601f8201601f19908116603f01168101908382118183101715620003af57620003af6200019b565b81604052828152602093508b84848701011115620003cc57600080fd5b600091505b82821015620003f05784820184015181830185015290830190620003d1565b60008484830101528099505050506200040b8189016200030c565b955050506200041d604087016200030c565b92506200042d606087016200030c565b9150608086015190509295509295909350565b612cc280620004506000396000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063c23dc68f116100c1578063e8a3d4851161007a578063e8a3d48514610792578063e985e9c5146107a7578063ee8cdd4e146107f0578063f211ab7d14610810578063f2fde38b14610830578063fc5ab6f31461085057600080fd5b8063c23dc68f146106e0578063c66828621461070d578063c87b56dd14610722578063c9b3a59414610742578063da0239a61461075c578063e272b8921461077257600080fd5b80638da5cb5b116101135780638da5cb5b1461063857806395d89b411461065657806399a2557a1461066b578063a22cb4651461068b578063a2309ff8146106ab578063b88d4fde146106c057600080fd5b806370a0823114610584578063715018a6146105a457806373f09b67146105b95780638448d8fe146105d95780638462151c146105ec5780638a67456a1461061957600080fd5b80633a20a354116101fe57806353df5c7c116101b757806353df5c7c146104c257806355f804b3146104d75780635bbb2177146104f75780635d148e5c146105245780636352211e14610544578063704b6c021461056457600080fd5b80633a20a3541461040d57806342842e0e1461042d57806342966c681461044d578063441d16291461046d57806346b800ff14610482578063484b973c146104a257600080fd5b806318160ddd1161025057806318160ddd1461035e5780631f0e330b14610381578063235b6ea1146103a157806323b872dd146103b75780632f971029146103d757806332cb6b0c146103f757600080fd5b806301ffc9a71461028d57806306fdde03146102c257806307129205146102e4578063081812fc1461031c578063095ea7b31461033c575b600080fd5b34801561029957600080fd5b506102ad6102a83660046123e7565b610871565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108c3565b6040516102b99190612454565b3480156102f057600080fd5b50601154610304906001600160a01b031681565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b50610304610337366004612467565b610955565b34801561034857600080fd5b5061035c610357366004612495565b610999565b005b34801561036a57600080fd5b50600254600154035b6040519081526020016102b9565b34801561038d57600080fd5b5061035c61039c3660046124d6565b610a64565b3480156103ad57600080fd5b50610373600c5481565b3480156103c357600080fd5b5061035c6103d236600461250b565b610ace565b3480156103e357600080fd5b5061035c6103f236600461254c565b610bb1565b34801561040357600080fd5b506103736104b081565b34801561041957600080fd5b5061035c61042836600461254c565b610c86565b34801561043957600080fd5b5061035c61044836600461250b565b610ce7565b34801561045957600080fd5b5061035c610468366004612467565b610d07565b34801561047957600080fd5b5061035c610d20565b34801561048e57600080fd5b5061035c61049d36600461254c565b610d80565b3480156104ae57600080fd5b5061035c6104bd366004612495565b610de1565b3480156104ce57600080fd5b5061035c610e8f565b3480156104e357600080fd5b5061035c6104f2366004612569565b610f50565b34801561050357600080fd5b506105176105123660046125db565b610fea565b6040516102b9919061267b565b34801561053057600080fd5b50600d546102ad9062010000900460ff1681565b34801561055057600080fd5b5061030461055f366004612467565b6110b6565b34801561057057600080fd5b5061035c61057f36600461254c565b6110c1565b34801561059057600080fd5b5061037361059f36600461254c565b6110eb565b3480156105b057600080fd5b5061035c61113a565b3480156105c557600080fd5b5061035c6105d43660046126bd565b61114e565b61035c6105e736600461250b565b6111a0565b3480156105f857600080fd5b5061060c61060736600461254c565b611376565b6040516102b991906126d8565b34801561062557600080fd5b50600d546102ad90610100900460ff1681565b34801561064457600080fd5b506009546001600160a01b0316610304565b34801561066257600080fd5b506102d761147f565b34801561067757600080fd5b5061060c610686366004612710565b61148e565b34801561069757600080fd5b5061035c6106a63660046124d6565b611608565b3480156106b757600080fd5b506103736116ca565b3480156106cc57600080fd5b5061035c6106db36600461278c565b6116da565b3480156106ec57600080fd5b506107006106fb366004612467565b61171e565b6040516102b99190612850565b34801561071957600080fd5b506102d7611796565b34801561072e57600080fd5b506102d761073d366004612467565b611824565b34801561074e57600080fd5b50600d546102ad9060ff1681565b34801561076857600080fd5b50610373600b5481565b34801561077e57600080fd5b5061035c61078d3660046126bd565b6118aa565b34801561079e57600080fd5b506102d7611903565b3480156107b357600080fd5b506102ad6107c236600461285e565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156107fc57600080fd5b5061035c61080b366004612467565b611923565b34801561081c57600080fd5b5061035c61082b366004612897565b611967565b34801561083c57600080fd5b5061035c61084b36600461254c565b611b9e565b34801561085c57600080fd5b50600d546102ad906301000000900460ff1681565b60006301ffc9a760e01b6001600160e01b0319831614806108a257506380ac58cd60e01b6001600160e01b03198316145b806108bd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546108d29061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe9061293d565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050905090565b600061096082611c14565b61097d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6001600160a01b03821660009081526012602052604090205460ff1615610a005760405162461bcd60e51b815260206004820152601660248201527513585c9ad95d1c1b1858d9481a5cc8189b1bd8dad95960521b60448201526064015b60405180910390fd5b600d546301000000900460ff1615610a565760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba102a3930b23290323ab934b7339033b0b6b29760391b60448201526064016109f7565b610a608282611c3c565b5050565b6009546001600160a01b0316331480610a8757506010546001600160a01b031633145b610aa35760405162461bcd60e51b81526004016109f790612977565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6000610ad982611cdc565b9050610ae88484846001611d43565b60008085556001600160a01b0380861682526006602052604080832080546000190190559085168083529120805460010190554260a01b17600160e11b17600083815260056020526040812091909155600160e11b82169003610b7b57600182016000818152600560205260408120549003610b79576001548114610b795760008181526005602052604090208290555b505b81836001600160a01b0316856001600160a01b0316600080516020612c6d83398151915260405160405180910390a45b50505050565b6009546001600160a01b0316331480610bd457506010546001600160a01b031633145b610bf05760405162461bcd60e51b81526004016109f790612977565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610c3d576040519150601f19603f3d011682016040523d82523d6000602084013e610c42565b606091505b5050905080610a605760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109f7565b6009546001600160a01b0316331480610ca957506010546001600160a01b031633145b610cc55760405162461bcd60e51b81526004016109f790612977565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610d02838383604051806020016040528060008152506116da565b505050565b600f546001600160a01b0316331415610a608282611d90565b6009546001600160a01b0316331480610d4357506010546001600160a01b031633145b610d5f5760405162461bcd60e51b81526004016109f790612977565b600d805463ff00000019811663010000009182900460ff1615909102179055565b6009546001600160a01b0316331480610da357506010546001600160a01b031633145b610dbf5760405162461bcd60e51b81526004016109f790612977565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b0316331480610e0457506010546001600160a01b031633145b610e205760405162461bcd60e51b81526004016109f790612977565b6104b081610e2d60015490565b610e3791906129b9565b1115610e855760405162461bcd60e51b815260206004820152601760248201527f5175616e74697479206578636565647320737570706c7900000000000000000060448201526064016109f7565b610a608282611ede565b6009546001600160a01b0316331480610eb257506010546001600160a01b031633145b610ece5760405162461bcd60e51b81526004016109f790612977565b600d805462ff000019166201000017905560005b600154811015610f4d57610ef581611c14565b15610f3b57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610f2583611824565b604051610f329190612454565b60405180910390a25b80610f45816129cc565b915050610ee2565b50565b6009546001600160a01b0316331480610f7357506010546001600160a01b031633145b610f8f5760405162461bcd60e51b81526004016109f790612977565b600d5462010000900460ff1615610fdd5760405162461bcd60e51b815260206004820152601260248201527110985cd948155492481a5cc81b1bd8dad95960721b60448201526064016109f7565b600e610d02828483612a33565b60608160008167ffffffffffffffff81111561100857611008612745565b60405190808252806020026020018201604052801561105a57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110265790505b50905060005b8281146110ad5761108886868381811061107c5761107c612af3565b9050602002013561171e565b82828151811061109a5761109a612af3565b6020908102919091010152600101611060565b50949350505050565b60006108bd82611cdc565b6110c9611ef8565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611114576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611142611ef8565b61114c6000611f52565b565b6009546001600160a01b031633148061117157506010546001600160a01b031633145b61118d5760405162461bcd60e51b81526004016109f790612977565b600d805460ff1916911515919091179055565b60006111ab826110b6565b600d549091506301000000900460ff1615156001146111ff5760405162461bcd60e51b815260206004820152601060248201526f47616d65206973206e6f74206c69766560801b60448201526064016109f7565b336001600160a01b038416146112475760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a343290313abcb2b960991b60448201526064016109f7565b806001600160a01b0316846001600160a01b03161461129a5760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba1027bbb732b960891b60448201526064016109f7565b600c543410156112dd5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109f7565b6112e8848484610ace565b6011546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611321573d6000803e3d6000fd5b5081836001600160a01b0316856001600160a01b03167fa70544c809117293f57559ae7b7a98371b77d7cc6997f466ddaa200ded719b573460405161136891815260200190565b60405180910390a450505050565b60606000806000611386856110eb565b905060008167ffffffffffffffff8111156113a3576113a3612745565b6040519080825280602002602001820160405280156113cc578160200160208202803683370190505b5090506113f960408051608081018252600080825260208201819052918101829052606081019190915290565b60005b8386146114735761140c81611fa4565b9150816040015161146b5781516001600160a01b03161561142c57815194505b876001600160a01b0316856001600160a01b03160361146b578083878060010198508151811061145e5761145e612af3565b6020026020010181815250505b6001016113fc565b50909695505050505050565b6060600480546108d29061293d565b60608183106114b057604051631960ccad60e11b815260040160405180910390fd5b6000806114bc60015490565b9050808411156114ca578093505b60006114d5876110eb565b9050848610156114f457858503818110156114ee578091505b506114f8565b5060005b60008167ffffffffffffffff81111561151357611513612745565b60405190808252806020026020018201604052801561153c578160200160208202803683370190505b5090508160000361155257935061160192505050565b600061155d8861171e565b90506000816040015161156e575080515b885b8881141580156115805750848714155b156115f55761158e81611fa4565b925082604001516115ed5782516001600160a01b0316156115ae57825191505b8a6001600160a01b0316826001600160a01b0316036115ed57808488806001019950815181106115e0576115e0612af3565b6020026020010181815250505b600101611570565b50505092835250909150505b9392505050565b6001600160a01b03821660009081526012602052604090205460ff161561166a5760405162461bcd60e51b815260206004820152601660248201527513585c9ad95d1c1b1858d9481a5cc8189b1bd8dad95960521b60448201526064016109f7565b600d546301000000900460ff16156116c05760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba102a3930b23290323ab934b7339033b0b6b29760391b60448201526064016109f7565b610a608282611fe0565b60006116d560015490565b905090565b6116e5848484610ace565b6001600160a01b0383163b15610bab5761170184848484612075565b610bab576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060015483106117725792915050565b61177b83611fa4565b905080604001511561178d5792915050565b61160183612160565b600080546117a39061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546117cf9061293d565b801561181c5780601f106117f15761010080835404028352916020019161181c565b820191906000526020600020905b8154815290600101906020018083116117ff57829003601f168201915b505050505081565b606061182f82611c14565b61184c57604051630a14c4b560e41b815260040160405180910390fd5b6000611856612195565b905080516000036118765760405180602001604052806000815250611601565b80611880846121a4565b600060405160200161189493929190612b09565b6040516020818303038152906040529392505050565b6009546001600160a01b03163314806118cd57506010546001600160a01b031633145b6118e95760405162461bcd60e51b81526004016109f790612977565b600d80549115156101000261ff0019909216919091179055565b6060604051806060016040528060358152602001612c3860359139905090565b6009546001600160a01b031633148061194657506010546001600160a01b031633145b6119625760405162461bcd60e51b81526004016109f790612977565b600c55565b61196f6121dc565b3233146119be5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e747261637400000000000060448201526064016109f7565b600d5460ff161580156119d95750600d54610100900460ff16155b611a1e5760405162461bcd60e51b8152602060048201526016602482015275141858dac81bdc195b9a5b99c81a5cc81c185d5cd95960521b60448201526064016109f7565b60005b8151811015611b7c576000828281518110611a3e57611a3e612af3565b60209081029190910101516013546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa158015611a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abb9190612ba9565b6001600160a01b031614611b115760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206f776e2074686520676976656e205061636b0000000060448201526064016109f7565b601354604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015611b5757600080fd5b505af1158015611b6b573d6000803e3d6000fd5b505060019093019250611a21915050565b611b933383516006611b8e9190612bc6565b611ede565b50610f4d6001600a55565b611ba6611ef8565b6001600160a01b038116611c0b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f7565b610f4d81611f52565b6000600154821080156108bd575050600090815260056020526040902054600160e01b161590565b6000611c47826110b6565b9050336001600160a01b03821614611c8057611c6381336107c2565b611c80576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081600154811015611d2a5760008181526005602052604081205490600160e01b82169003611d28575b80600003611601575060001901600081815260056020526040902054611d07565b505b604051636f96cda160e11b815260040160405180910390fd5b600d54610100900460ff1615610bab5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109f7565b6000611d9b83611cdc565b905080600080611db986600090815260076020526040902080549091565b915091508415611e0057338082146001600160a01b03851690911417611e0057611de383336107c2565b611e0057604051632ce44b5f60e11b815260040160405180910390fd5b611e0e836000886001611d43565b8015611e1957600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003611ea757600186016000818152600560205260408120549003611ea5576001548114611ea55760008181526005602052604090208590555b505b60405186906000906001600160a01b03861690600080516020612c6d833981519152908390a4505060028054600101905550505050565b610a60828260405180602001604052806000815250612235565b6009546001600160a01b0316331461114c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600560205260409020546108bd906122a2565b336001600160a01b038316036120095760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120aa903390899088908890600401612bdd565b6020604051808303816000875af19250505080156120e5575060408051601f3d908101601f191682019092526120e291810190612c1a565b60015b612143573d808015612113576040519150601f19603f3d011682016040523d82523d6000602084013e612118565b606091505b50805160000361213b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108bd61219083611cdc565b6122a2565b6060600e80546108d29061293d565b604080516080019081905280825b600183039250600a81066030018353600a9004806121b25750819003601f19909101908152919050565b6002600a540361222e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f7565b6002600a55565b61223f83836122ea565b6001600160a01b0383163b15610d02576001548281035b6122696000868380600101945086612075565b612286576040516368d2bf6b60e11b815260040160405180910390fd5b81811061225657816001541461229b57600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600154600082900361230f5760405163b562e8dd60e01b815260040160405180910390fd5b61231c6000848385611d43565b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b17831790558284019083908390600080516020612c6d8339815191528180a4600183015b8181146123a75780836000600080516020612c6d833981519152600080a4600101612381565b50816000036123c857604051622e076360e81b815260040160405180910390fd5b60015550505050565b6001600160e01b031981168114610f4d57600080fd5b6000602082840312156123f957600080fd5b8135611601816123d1565b60005b8381101561241f578181015183820152602001612407565b50506000910152565b60008151808452612440816020860160208601612404565b601f01601f19169290920160200192915050565b6020815260006116016020830184612428565b60006020828403121561247957600080fd5b5035919050565b6001600160a01b0381168114610f4d57600080fd5b600080604083850312156124a857600080fd5b82356124b381612480565b946020939093013593505050565b803580151581146124d157600080fd5b919050565b600080604083850312156124e957600080fd5b82356124f481612480565b9150612502602084016124c1565b90509250929050565b60008060006060848603121561252057600080fd5b833561252b81612480565b9250602084013561253b81612480565b929592945050506040919091013590565b60006020828403121561255e57600080fd5b813561160181612480565b6000806020838503121561257c57600080fd5b823567ffffffffffffffff8082111561259457600080fd5b818501915085601f8301126125a857600080fd5b8135818111156125b757600080fd5b8660208285010111156125c957600080fd5b60209290920196919550909350505050565b600080602083850312156125ee57600080fd5b823567ffffffffffffffff8082111561260657600080fd5b818501915085601f83011261261a57600080fd5b81358181111561262957600080fd5b8660208260051b85010111156125c957600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611473576126aa83855161263e565b9284019260809290920191600101612697565b6000602082840312156126cf57600080fd5b611601826124c1565b6020808252825182820181905260009190848201906040850190845b81811015611473578351835292840192918401916001016126f4565b60008060006060848603121561272557600080fd5b833561273081612480565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561278457612784612745565b604052919050565b600080600080608085870312156127a257600080fd5b84356127ad81612480565b93506020858101356127be81612480565b935060408601359250606086013567ffffffffffffffff808211156127e257600080fd5b818801915088601f8301126127f657600080fd5b81358181111561280857612808612745565b61281a601f8201601f1916850161275b565b9150808252898482850101111561283057600080fd5b808484018584013760008482840101525080935050505092959194509250565b608081016108bd828461263e565b6000806040838503121561287157600080fd5b823561287c81612480565b9150602083013561288c81612480565b809150509250929050565b600060208083850312156128aa57600080fd5b823567ffffffffffffffff808211156128c257600080fd5b818501915085601f8301126128d657600080fd5b8135818111156128e8576128e8612745565b8060051b91506128f984830161275b565b818152918301840191848101908884111561291357600080fd5b938501935b8385101561293157843582529385019390850190612918565b98975050505050505050565b600181811c9082168061295157607f821691505b60208210810361297157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601290820152712737ba1037bbb732b91037b91030b236b4b760711b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108bd576108bd6129a3565b6000600182016129de576129de6129a3565b5060010190565b601f821115610d0257600081815260208120601f850160051c81016020861015612a0c5750805b601f850160051c820191505b81811015612a2b57828155600101612a18565b505050505050565b67ffffffffffffffff831115612a4b57612a4b612745565b612a5f83612a59835461293d565b836129e5565b6000601f841160018114612a935760008515612a7b5750838201355b600019600387901b1c1916600186901b17835561229b565b600083815260209020601f19861690835b82811015612ac45786850135825560209485019460019092019101612aa4565b5086821015612ae15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b600084516020612b1c8285838a01612404565b855191840191612b2f8184848a01612404565b8554920191600090612b408161293d565b60018281168015612b585760018114612b6d57612b99565b60ff1984168752821515830287019450612b99565b896000528560002060005b84811015612b9157815489820152908301908701612b78565b505082870194505b50929a9950505050505050505050565b600060208284031215612bbb57600080fd5b815161160181612480565b80820281158282048414176108bd576108bd6129a3565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c1090830184612428565b9695505050505050565b600060208284031215612c2c57600080fd5b8151611601816123d156fe697066733a2f2f516d5a785564386b6871566e42543268503461436b3750443246713754764878777374366643543874616d487450ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220354405bd103a1f56cfa73cf8adb795849c4d4d3a4638dcd70f7c513602e238dc64736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008ab5496a45c92c36ec293d2681f1d3706eaff85d0000000000000000000000007bfd9f0f8552b2cc4a12d785d81675b6ca508b68000000000000000000000000fc9f38885cb7e241daf0cca64e563d9e464fa104000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5631656339456645426b4d6266644a6952415155356832325a644e61656f536557776d466f376e6f4a736f632f00000000000000000000

Deployed Bytecode

0x6080604052600436106102885760003560e01c806370a082311161015a578063c23dc68f116100c1578063e8a3d4851161007a578063e8a3d48514610792578063e985e9c5146107a7578063ee8cdd4e146107f0578063f211ab7d14610810578063f2fde38b14610830578063fc5ab6f31461085057600080fd5b8063c23dc68f146106e0578063c66828621461070d578063c87b56dd14610722578063c9b3a59414610742578063da0239a61461075c578063e272b8921461077257600080fd5b80638da5cb5b116101135780638da5cb5b1461063857806395d89b411461065657806399a2557a1461066b578063a22cb4651461068b578063a2309ff8146106ab578063b88d4fde146106c057600080fd5b806370a0823114610584578063715018a6146105a457806373f09b67146105b95780638448d8fe146105d95780638462151c146105ec5780638a67456a1461061957600080fd5b80633a20a354116101fe57806353df5c7c116101b757806353df5c7c146104c257806355f804b3146104d75780635bbb2177146104f75780635d148e5c146105245780636352211e14610544578063704b6c021461056457600080fd5b80633a20a3541461040d57806342842e0e1461042d57806342966c681461044d578063441d16291461046d57806346b800ff14610482578063484b973c146104a257600080fd5b806318160ddd1161025057806318160ddd1461035e5780631f0e330b14610381578063235b6ea1146103a157806323b872dd146103b75780632f971029146103d757806332cb6b0c146103f757600080fd5b806301ffc9a71461028d57806306fdde03146102c257806307129205146102e4578063081812fc1461031c578063095ea7b31461033c575b600080fd5b34801561029957600080fd5b506102ad6102a83660046123e7565b610871565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108c3565b6040516102b99190612454565b3480156102f057600080fd5b50601154610304906001600160a01b031681565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b50610304610337366004612467565b610955565b34801561034857600080fd5b5061035c610357366004612495565b610999565b005b34801561036a57600080fd5b50600254600154035b6040519081526020016102b9565b34801561038d57600080fd5b5061035c61039c3660046124d6565b610a64565b3480156103ad57600080fd5b50610373600c5481565b3480156103c357600080fd5b5061035c6103d236600461250b565b610ace565b3480156103e357600080fd5b5061035c6103f236600461254c565b610bb1565b34801561040357600080fd5b506103736104b081565b34801561041957600080fd5b5061035c61042836600461254c565b610c86565b34801561043957600080fd5b5061035c61044836600461250b565b610ce7565b34801561045957600080fd5b5061035c610468366004612467565b610d07565b34801561047957600080fd5b5061035c610d20565b34801561048e57600080fd5b5061035c61049d36600461254c565b610d80565b3480156104ae57600080fd5b5061035c6104bd366004612495565b610de1565b3480156104ce57600080fd5b5061035c610e8f565b3480156104e357600080fd5b5061035c6104f2366004612569565b610f50565b34801561050357600080fd5b506105176105123660046125db565b610fea565b6040516102b9919061267b565b34801561053057600080fd5b50600d546102ad9062010000900460ff1681565b34801561055057600080fd5b5061030461055f366004612467565b6110b6565b34801561057057600080fd5b5061035c61057f36600461254c565b6110c1565b34801561059057600080fd5b5061037361059f36600461254c565b6110eb565b3480156105b057600080fd5b5061035c61113a565b3480156105c557600080fd5b5061035c6105d43660046126bd565b61114e565b61035c6105e736600461250b565b6111a0565b3480156105f857600080fd5b5061060c61060736600461254c565b611376565b6040516102b991906126d8565b34801561062557600080fd5b50600d546102ad90610100900460ff1681565b34801561064457600080fd5b506009546001600160a01b0316610304565b34801561066257600080fd5b506102d761147f565b34801561067757600080fd5b5061060c610686366004612710565b61148e565b34801561069757600080fd5b5061035c6106a63660046124d6565b611608565b3480156106b757600080fd5b506103736116ca565b3480156106cc57600080fd5b5061035c6106db36600461278c565b6116da565b3480156106ec57600080fd5b506107006106fb366004612467565b61171e565b6040516102b99190612850565b34801561071957600080fd5b506102d7611796565b34801561072e57600080fd5b506102d761073d366004612467565b611824565b34801561074e57600080fd5b50600d546102ad9060ff1681565b34801561076857600080fd5b50610373600b5481565b34801561077e57600080fd5b5061035c61078d3660046126bd565b6118aa565b34801561079e57600080fd5b506102d7611903565b3480156107b357600080fd5b506102ad6107c236600461285e565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156107fc57600080fd5b5061035c61080b366004612467565b611923565b34801561081c57600080fd5b5061035c61082b366004612897565b611967565b34801561083c57600080fd5b5061035c61084b36600461254c565b611b9e565b34801561085c57600080fd5b50600d546102ad906301000000900460ff1681565b60006301ffc9a760e01b6001600160e01b0319831614806108a257506380ac58cd60e01b6001600160e01b03198316145b806108bd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546108d29061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe9061293d565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050905090565b600061096082611c14565b61097d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6001600160a01b03821660009081526012602052604090205460ff1615610a005760405162461bcd60e51b815260206004820152601660248201527513585c9ad95d1c1b1858d9481a5cc8189b1bd8dad95960521b60448201526064015b60405180910390fd5b600d546301000000900460ff1615610a565760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba102a3930b23290323ab934b7339033b0b6b29760391b60448201526064016109f7565b610a608282611c3c565b5050565b6009546001600160a01b0316331480610a8757506010546001600160a01b031633145b610aa35760405162461bcd60e51b81526004016109f790612977565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6000610ad982611cdc565b9050610ae88484846001611d43565b60008085556001600160a01b0380861682526006602052604080832080546000190190559085168083529120805460010190554260a01b17600160e11b17600083815260056020526040812091909155600160e11b82169003610b7b57600182016000818152600560205260408120549003610b79576001548114610b795760008181526005602052604090208290555b505b81836001600160a01b0316856001600160a01b0316600080516020612c6d83398151915260405160405180910390a45b50505050565b6009546001600160a01b0316331480610bd457506010546001600160a01b031633145b610bf05760405162461bcd60e51b81526004016109f790612977565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610c3d576040519150601f19603f3d011682016040523d82523d6000602084013e610c42565b606091505b5050905080610a605760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109f7565b6009546001600160a01b0316331480610ca957506010546001600160a01b031633145b610cc55760405162461bcd60e51b81526004016109f790612977565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610d02838383604051806020016040528060008152506116da565b505050565b600f546001600160a01b0316331415610a608282611d90565b6009546001600160a01b0316331480610d4357506010546001600160a01b031633145b610d5f5760405162461bcd60e51b81526004016109f790612977565b600d805463ff00000019811663010000009182900460ff1615909102179055565b6009546001600160a01b0316331480610da357506010546001600160a01b031633145b610dbf5760405162461bcd60e51b81526004016109f790612977565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b0316331480610e0457506010546001600160a01b031633145b610e205760405162461bcd60e51b81526004016109f790612977565b6104b081610e2d60015490565b610e3791906129b9565b1115610e855760405162461bcd60e51b815260206004820152601760248201527f5175616e74697479206578636565647320737570706c7900000000000000000060448201526064016109f7565b610a608282611ede565b6009546001600160a01b0316331480610eb257506010546001600160a01b031633145b610ece5760405162461bcd60e51b81526004016109f790612977565b600d805462ff000019166201000017905560005b600154811015610f4d57610ef581611c14565b15610f3b57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610f2583611824565b604051610f329190612454565b60405180910390a25b80610f45816129cc565b915050610ee2565b50565b6009546001600160a01b0316331480610f7357506010546001600160a01b031633145b610f8f5760405162461bcd60e51b81526004016109f790612977565b600d5462010000900460ff1615610fdd5760405162461bcd60e51b815260206004820152601260248201527110985cd948155492481a5cc81b1bd8dad95960721b60448201526064016109f7565b600e610d02828483612a33565b60608160008167ffffffffffffffff81111561100857611008612745565b60405190808252806020026020018201604052801561105a57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110265790505b50905060005b8281146110ad5761108886868381811061107c5761107c612af3565b9050602002013561171e565b82828151811061109a5761109a612af3565b6020908102919091010152600101611060565b50949350505050565b60006108bd82611cdc565b6110c9611ef8565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611114576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611142611ef8565b61114c6000611f52565b565b6009546001600160a01b031633148061117157506010546001600160a01b031633145b61118d5760405162461bcd60e51b81526004016109f790612977565b600d805460ff1916911515919091179055565b60006111ab826110b6565b600d549091506301000000900460ff1615156001146111ff5760405162461bcd60e51b815260206004820152601060248201526f47616d65206973206e6f74206c69766560801b60448201526064016109f7565b336001600160a01b038416146112475760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a343290313abcb2b960991b60448201526064016109f7565b806001600160a01b0316846001600160a01b03161461129a5760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba1027bbb732b960891b60448201526064016109f7565b600c543410156112dd5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109f7565b6112e8848484610ace565b6011546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611321573d6000803e3d6000fd5b5081836001600160a01b0316856001600160a01b03167fa70544c809117293f57559ae7b7a98371b77d7cc6997f466ddaa200ded719b573460405161136891815260200190565b60405180910390a450505050565b60606000806000611386856110eb565b905060008167ffffffffffffffff8111156113a3576113a3612745565b6040519080825280602002602001820160405280156113cc578160200160208202803683370190505b5090506113f960408051608081018252600080825260208201819052918101829052606081019190915290565b60005b8386146114735761140c81611fa4565b9150816040015161146b5781516001600160a01b03161561142c57815194505b876001600160a01b0316856001600160a01b03160361146b578083878060010198508151811061145e5761145e612af3565b6020026020010181815250505b6001016113fc565b50909695505050505050565b6060600480546108d29061293d565b60608183106114b057604051631960ccad60e11b815260040160405180910390fd5b6000806114bc60015490565b9050808411156114ca578093505b60006114d5876110eb565b9050848610156114f457858503818110156114ee578091505b506114f8565b5060005b60008167ffffffffffffffff81111561151357611513612745565b60405190808252806020026020018201604052801561153c578160200160208202803683370190505b5090508160000361155257935061160192505050565b600061155d8861171e565b90506000816040015161156e575080515b885b8881141580156115805750848714155b156115f55761158e81611fa4565b925082604001516115ed5782516001600160a01b0316156115ae57825191505b8a6001600160a01b0316826001600160a01b0316036115ed57808488806001019950815181106115e0576115e0612af3565b6020026020010181815250505b600101611570565b50505092835250909150505b9392505050565b6001600160a01b03821660009081526012602052604090205460ff161561166a5760405162461bcd60e51b815260206004820152601660248201527513585c9ad95d1c1b1858d9481a5cc8189b1bd8dad95960521b60448201526064016109f7565b600d546301000000900460ff16156116c05760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba102a3930b23290323ab934b7339033b0b6b29760391b60448201526064016109f7565b610a608282611fe0565b60006116d560015490565b905090565b6116e5848484610ace565b6001600160a01b0383163b15610bab5761170184848484612075565b610bab576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060015483106117725792915050565b61177b83611fa4565b905080604001511561178d5792915050565b61160183612160565b600080546117a39061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546117cf9061293d565b801561181c5780601f106117f15761010080835404028352916020019161181c565b820191906000526020600020905b8154815290600101906020018083116117ff57829003601f168201915b505050505081565b606061182f82611c14565b61184c57604051630a14c4b560e41b815260040160405180910390fd5b6000611856612195565b905080516000036118765760405180602001604052806000815250611601565b80611880846121a4565b600060405160200161189493929190612b09565b6040516020818303038152906040529392505050565b6009546001600160a01b03163314806118cd57506010546001600160a01b031633145b6118e95760405162461bcd60e51b81526004016109f790612977565b600d80549115156101000261ff0019909216919091179055565b6060604051806060016040528060358152602001612c3860359139905090565b6009546001600160a01b031633148061194657506010546001600160a01b031633145b6119625760405162461bcd60e51b81526004016109f790612977565b600c55565b61196f6121dc565b3233146119be5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e747261637400000000000060448201526064016109f7565b600d5460ff161580156119d95750600d54610100900460ff16155b611a1e5760405162461bcd60e51b8152602060048201526016602482015275141858dac81bdc195b9a5b99c81a5cc81c185d5cd95960521b60448201526064016109f7565b60005b8151811015611b7c576000828281518110611a3e57611a3e612af3565b60209081029190910101516013546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa158015611a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abb9190612ba9565b6001600160a01b031614611b115760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206f776e2074686520676976656e205061636b0000000060448201526064016109f7565b601354604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015611b5757600080fd5b505af1158015611b6b573d6000803e3d6000fd5b505060019093019250611a21915050565b611b933383516006611b8e9190612bc6565b611ede565b50610f4d6001600a55565b611ba6611ef8565b6001600160a01b038116611c0b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f7565b610f4d81611f52565b6000600154821080156108bd575050600090815260056020526040902054600160e01b161590565b6000611c47826110b6565b9050336001600160a01b03821614611c8057611c6381336107c2565b611c80576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081600154811015611d2a5760008181526005602052604081205490600160e01b82169003611d28575b80600003611601575060001901600081815260056020526040902054611d07565b505b604051636f96cda160e11b815260040160405180910390fd5b600d54610100900460ff1615610bab5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109f7565b6000611d9b83611cdc565b905080600080611db986600090815260076020526040902080549091565b915091508415611e0057338082146001600160a01b03851690911417611e0057611de383336107c2565b611e0057604051632ce44b5f60e11b815260040160405180910390fd5b611e0e836000886001611d43565b8015611e1957600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003611ea757600186016000818152600560205260408120549003611ea5576001548114611ea55760008181526005602052604090208590555b505b60405186906000906001600160a01b03861690600080516020612c6d833981519152908390a4505060028054600101905550505050565b610a60828260405180602001604052806000815250612235565b6009546001600160a01b0316331461114c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600560205260409020546108bd906122a2565b336001600160a01b038316036120095760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120aa903390899088908890600401612bdd565b6020604051808303816000875af19250505080156120e5575060408051601f3d908101601f191682019092526120e291810190612c1a565b60015b612143573d808015612113576040519150601f19603f3d011682016040523d82523d6000602084013e612118565b606091505b50805160000361213b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108bd61219083611cdc565b6122a2565b6060600e80546108d29061293d565b604080516080019081905280825b600183039250600a81066030018353600a9004806121b25750819003601f19909101908152919050565b6002600a540361222e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f7565b6002600a55565b61223f83836122ea565b6001600160a01b0383163b15610d02576001548281035b6122696000868380600101945086612075565b612286576040516368d2bf6b60e11b815260040160405180910390fd5b81811061225657816001541461229b57600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600154600082900361230f5760405163b562e8dd60e01b815260040160405180910390fd5b61231c6000848385611d43565b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b17831790558284019083908390600080516020612c6d8339815191528180a4600183015b8181146123a75780836000600080516020612c6d833981519152600080a4600101612381565b50816000036123c857604051622e076360e81b815260040160405180910390fd5b60015550505050565b6001600160e01b031981168114610f4d57600080fd5b6000602082840312156123f957600080fd5b8135611601816123d1565b60005b8381101561241f578181015183820152602001612407565b50506000910152565b60008151808452612440816020860160208601612404565b601f01601f19169290920160200192915050565b6020815260006116016020830184612428565b60006020828403121561247957600080fd5b5035919050565b6001600160a01b0381168114610f4d57600080fd5b600080604083850312156124a857600080fd5b82356124b381612480565b946020939093013593505050565b803580151581146124d157600080fd5b919050565b600080604083850312156124e957600080fd5b82356124f481612480565b9150612502602084016124c1565b90509250929050565b60008060006060848603121561252057600080fd5b833561252b81612480565b9250602084013561253b81612480565b929592945050506040919091013590565b60006020828403121561255e57600080fd5b813561160181612480565b6000806020838503121561257c57600080fd5b823567ffffffffffffffff8082111561259457600080fd5b818501915085601f8301126125a857600080fd5b8135818111156125b757600080fd5b8660208285010111156125c957600080fd5b60209290920196919550909350505050565b600080602083850312156125ee57600080fd5b823567ffffffffffffffff8082111561260657600080fd5b818501915085601f83011261261a57600080fd5b81358181111561262957600080fd5b8660208260051b85010111156125c957600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611473576126aa83855161263e565b9284019260809290920191600101612697565b6000602082840312156126cf57600080fd5b611601826124c1565b6020808252825182820181905260009190848201906040850190845b81811015611473578351835292840192918401916001016126f4565b60008060006060848603121561272557600080fd5b833561273081612480565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561278457612784612745565b604052919050565b600080600080608085870312156127a257600080fd5b84356127ad81612480565b93506020858101356127be81612480565b935060408601359250606086013567ffffffffffffffff808211156127e257600080fd5b818801915088601f8301126127f657600080fd5b81358181111561280857612808612745565b61281a601f8201601f1916850161275b565b9150808252898482850101111561283057600080fd5b808484018584013760008482840101525080935050505092959194509250565b608081016108bd828461263e565b6000806040838503121561287157600080fd5b823561287c81612480565b9150602083013561288c81612480565b809150509250929050565b600060208083850312156128aa57600080fd5b823567ffffffffffffffff808211156128c257600080fd5b818501915085601f8301126128d657600080fd5b8135818111156128e8576128e8612745565b8060051b91506128f984830161275b565b818152918301840191848101908884111561291357600080fd5b938501935b8385101561293157843582529385019390850190612918565b98975050505050505050565b600181811c9082168061295157607f821691505b60208210810361297157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601290820152712737ba1037bbb732b91037b91030b236b4b760711b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108bd576108bd6129a3565b6000600182016129de576129de6129a3565b5060010190565b601f821115610d0257600081815260208120601f850160051c81016020861015612a0c5750805b601f850160051c820191505b81811015612a2b57828155600101612a18565b505050505050565b67ffffffffffffffff831115612a4b57612a4b612745565b612a5f83612a59835461293d565b836129e5565b6000601f841160018114612a935760008515612a7b5750838201355b600019600387901b1c1916600186901b17835561229b565b600083815260209020601f19861690835b82811015612ac45786850135825560209485019460019092019101612aa4565b5086821015612ae15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b600084516020612b1c8285838a01612404565b855191840191612b2f8184848a01612404565b8554920191600090612b408161293d565b60018281168015612b585760018114612b6d57612b99565b60ff1984168752821515830287019450612b99565b896000528560002060005b84811015612b9157815489820152908301908701612b78565b505082870194505b50929a9950505050505050505050565b600060208284031215612bbb57600080fd5b815161160181612480565b80820281158282048414176108bd576108bd6129a3565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c1090830184612428565b9695505050505050565b600060208284031215612c2c57600080fd5b8151611601816123d156fe697066733a2f2f516d5a785564386b6871566e42543268503461436b3750443246713754764878777374366643543874616d487450ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220354405bd103a1f56cfa73cf8adb795849c4d4d3a4638dcd70f7c513602e238dc64736f6c63430008120033

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

00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008ab5496a45c92c36ec293d2681f1d3706eaff85d0000000000000000000000007bfd9f0f8552b2cc4a12d785d81675b6ca508b68000000000000000000000000fc9f38885cb7e241daf0cca64e563d9e464fa104000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5631656339456645426b4d6266644a6952415155356832325a644e61656f536557776d466f376e6f4a736f632f00000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): ipfs://QmV1ec9EfEBkMbfdJiRAQU5h22ZdNaeoSeWwmFo7noJsoc/
Arg [1] : admin (address): 0x8AB5496a45c92c36eC293d2681F1d3706eaff85D
Arg [2] : packContract (address): 0x7bFd9f0F8552b2CC4A12d785d81675b6ca508B68
Arg [3] : fundingrecipient (address): 0xFc9f38885CB7E241DAf0cCA64e563D9e464Fa104
Arg [4] : price (uint256): 10000000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000008ab5496a45c92c36ec293d2681f1d3706eaff85d
Arg [2] : 0000000000000000000000007bfd9f0f8552b2cc4a12d785d81675b6ca508b68
Arg [3] : 000000000000000000000000fc9f38885cb7e241daf0cca64e563d9e464fa104
Arg [4] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [6] : 697066733a2f2f516d5631656339456645426b4d6266644a6952415155356832
Arg [7] : 325a644e61656f536557776d466f376e6f4a736f632f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.