ETH Price: $3,472.79 (-0.41%)

Token

HLPeace Genesis Angel (HLPeace Genesis Angel)
 

Overview

Max Total Supply

5,916 HLPeace Genesis Angel

Holders

686

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
5 HLPeace Genesis Angel
0xe491a44fc6b494c101bee933c04f9dcc27e65aed
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:
HLPeaceGenesisAngel

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : HLPeaceGenesisAngel.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721a/contracts/ERC721A.sol";

import "../interfaces/IHLPeaceGenesisAngel.sol";
import "../AdminableV2.sol";

/**
 *  @title  Dev Non-fungible token
 *
 *  @author IHeart Team
 *
 *  @notice This smart contract create the token ERC721 for Operation.
 *          The contract here by is implemented to initial some NFT for logic divided APY.
 */

contract HLPeaceGenesisAngel is IHLPeaceGenesisAngel, AdminableV2, ERC721A, ERC2981 {
    using Strings for uint256;

    uint256 public constant MAX_BATCH = 250;
    // Type special: 2 NFT
    uint256 public constant TOTAL_SUPPLY = 7777;
    uint256 public constant NORMAL_SUPPLY = 7775;

    /**
     *  @notice maxPerUser is amount limit of each user can hold
     */
    uint256 public maxPerUser;

    /**
     *  @notice provenance once it's calculated
     */
    string public provenanceHash;

    /**
     *  @notice baseURI store the value of the ipfs url of NFT images
     */
    string public baseURI;

    /**
     *  @notice metadata store the value of the ipfs url of metadata royalties
     */
    string public metadata;

    /**
     *  @notice revealUri store the value of the ipfs url of images reveal
     */
    string public revealUri;

    /**
     *  @notice revealAdmin is owner can change revealUri or set status reveal
     */
    address public revealAdmin;

    /**
     *  @notice isLimitPerUser is check limit per user
     */
    bool public isLimitPerUser;

    /**
     *  @notice isSoldOut is check user custom sold out
     */
    bool public isSoldOut;

    /**
     *  @notice isReveal is check reveal
     */
    bool public isReveal;

    /**
     *  @notice tokenIdReveal is the token being revealed (1 -> tokenIdReveal & isReveal = false)
     */
    uint256 public tokenIdReveal;

    event SetBaseUri(address indexed collection, string oldValue, string newValue);
    event SetMaxPerUser(uint256 oldValue, uint256 newValue);
    event SetIsLimitPerUser(bool oldValue, bool newValue);
    event SetSoldOut(address indexed collection, bool oldValue, bool newValue);
    event Minted(uint256 indexed tokenId, address indexed receiver);
    event MintedBatch(uint256 indexed startTokenId, uint256 quantity, address indexed receiver);
    event MintedSpecialType(uint256 indexed tokenId, address indexed receiver);
    event SetRoyalty(address indexed reveiver, uint256 feeNumerator);
    event SetRevealUri(address indexed collection, string oldValue, string newValue);
    event SetRevealAdmin(address indexed collection, address indexed oldValue, address indexed newValue);
    event SetReveal(address indexed collection, bool oldValue, bool newValue);

    /**
     * @notice Initialize new logic contract.
     * @dev    Replace for contructor function
     * @param owner_ Address of the owner
     * @param revealAdmin_ Address of admin change reveal
     * @param name_ Name of NFT
     * @param symbol_ Symbol of NFT
     * @param baseUri_ Base URI of NFT
     * @param revealUri_ URI of image reveal
     * @param treasury_ Address of treasury
     * @param feeNumerator_ Fee numerator
     * @param maxPerUser_ Max of nft that one user can hold
     * @param metadata_ Metadata of NFT
     */
    constructor(
        address owner_,
        address revealAdmin_,
        string memory name_,
        string memory symbol_,
        string memory baseUri_,
        string memory revealUri_,
        address treasury_,
        uint96 feeNumerator_,
        uint256 maxPerUser_,
        string memory metadata_
    ) ERC721A(name_, symbol_) {
        _transferOwnership(owner_);
        baseURI = baseUri_;
        metadata = metadata_;
        maxPerUser = maxPerUser_;
        revealUri = revealUri_;
        revealAdmin = revealAdmin_;

        _setDefaultRoyalty(treasury_, feeNumerator_);
    }

    modifier onlyRevealAdminOrOwner() {
        require(_msgSender() == revealAdmin || _msgSender() == owner(), "Caller is not reveal owner or owner");
        _;
    }

    /**
     *  @notice Return current base URI.
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function _startTokenId() internal pure virtual override returns (uint256) {
        return 1;
    }

    /**
     *  @notice Get token counter
     *
     *  @dev    All caller can call this function.
     */
    function getTokenCounter() public view returns (uint256) {
        return _nextTokenId() - _startTokenId();
    }

    /**
     *  @notice Replace current base URI by new base URI.
     *
     *  @dev    Only owner can call this function.
     */
    function setBaseURI(string memory _newURI) external onlyOwner {
        string memory _oldValue = baseURI;
        baseURI = _newURI;
        emit SetBaseUri(address(this), _oldValue, baseURI);
    }

    /**
     *  @notice Replace current base URI by new metadata URI.
     *
     *  @dev    Only owner can call this function.
     */
    function setContractURI(string memory _metadata) external onlyOwner {
        metadata = _metadata;
    }

    /**
     * @notice Set royalty
     * @dev    Only owner can call this function
     * @param _receiver address to receive royalty fee
     * @param _feeNumerator fee numbertor
     *
     * emit {SetRoyalty} events
     */
    function setRoyalty(address _receiver, uint96 _feeNumerator) external onlyOwner {
        _setDefaultRoyalty(_receiver, _feeNumerator);
        emit SetRoyalty(_receiver, _feeNumerator);
    }

    /**
     * @notice Set max nft that one user can buy
     * @dev    Only owner can call this function
     * @param _maxPerUser max nft that one user can buy
     *
     * emit {SetMaxPerUser} events
     */
    function setMaxPerUser(uint256 _maxPerUser) external onlyOwner notZeroAmount(_maxPerUser) {
        uint256 _oldValue = maxPerUser;
        maxPerUser = _maxPerUser;
        emit SetMaxPerUser(_oldValue, maxPerUser);
    }

    /**
     * @notice Enable / disable limit per user
     * @dev    Only owner can call this function
     * @param _isLimitPerUser enable / disable limit per user
     *
     * emit {SetIsLimitPerUser} events
     */
    function setIsLimitPerUser(bool _isLimitPerUser) external onlyOwner {
        bool _oldValue = isLimitPerUser;
        isLimitPerUser = _isLimitPerUser;
        emit SetIsLimitPerUser(_oldValue, isLimitPerUser);
    }

    /**
     * @notice Set reveal admin
     * @dev    Only owner or reveal admin contract can call this function
     * @param _revealUri new admin reveal address
     *
     * emit {SetRevealUri} events
     */
    function setRevealUri(string memory _revealUri) external onlyRevealAdminOrOwner {
        string memory _oldValue = revealUri;
        revealUri = _revealUri;
        emit SetRevealUri(address(this), _oldValue, revealUri);
    }

    /**
     * @notice Set reveal admin
     * @dev    Only owner contract can call this function
     * @param _revealAdmin new admin reveal address
     *
     * emit {SetReveal} events
     */
    function setRevealAdmin(address _revealAdmin) external onlyOwner notZeroAddress(_revealAdmin) {
        address _oldValue = revealAdmin;
        revealAdmin = _revealAdmin;
        emit SetRevealAdmin(address(this), _oldValue, revealAdmin);
    }

    /**
     * @notice Enable / disable reveal
     * @dev    Only reveal owner or owner contract can call this function
     * @param _isReveal enable / disable
     *
     * emit {SetReveal} events
     */
    function setReveal(bool _isReveal) external onlyRevealAdminOrOwner {
        bool _oldValue = isReveal;
        isReveal = _isReveal;
        if (!isReveal) {
            tokenIdReveal = getTokenCounter();
        }
        emit SetReveal(address(this), _oldValue, isReveal);
    }

    /**
     * @notice Enable / disable sold out
     * @dev    Only owner contract can call this function
     * @param _isSoldOut enable / disable
     *
     * emit {SetSoldOut} events
     */
    function setSoldOut(bool _isSoldOut) external onlyOwner {
        bool _oldValue = isSoldOut;
        isSoldOut = _isSoldOut;
        emit SetSoldOut(address(this), _oldValue, isSoldOut);
    }

    /*
     * Set provenance once it's calculated
     */
    function setProvenanceHash(string memory _provenanceHash) public onlyOwner {
        provenanceHash = _provenanceHash;
    }

    /**
     *  @notice Mapping token ID to base URI in ipfs storage
     *
     *  @dev    All caller can call this function.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token.");
        string memory currentBaseURI = _baseURI();

        if (!isReveal && tokenId > tokenIdReveal) {
            return revealUri;
        }

        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, "/", uint256(tokenId).toString(), ".json"))
                : "";
    }

    /**
     *  @notice Mint a special genesis
     *
     *  @dev    Only admin can call this function.
     */
    function mintSpecialType(address receiver) external onlyOwner {
        require(!isSoldOut && totalSupply() >= NORMAL_SUPPLY && totalSupply() < TOTAL_SUPPLY, "Sold out");

        uint256 startTokenId = _nextTokenId();

        _safeMint(receiver, 1);

        emit MintedSpecialType(startTokenId, receiver);
    }

    /**
     *  @notice Mint a genesis when call.
     *
     *  @dev    Only admin can call this function.
     */
    function mint(address receiver) external onlyAdmin {
        require(!isSoldOut && totalSupply() < NORMAL_SUPPLY, "Sold out");

        uint256 startTokenId = _nextTokenId();

        _safeMint(receiver, 1);

        emit Minted(startTokenId, receiver);
    }

    /**
     *  @notice Mint Batch genesis.
     *
     *  @dev    Only admin can call this function.
     */
    function mintBatch(address receiver, uint256 times) external onlyAdmin {
        require(times > 0 && times <= MAX_BATCH, "Invalid mint batch");
        require(!isSoldOut && totalSupply() + times <= NORMAL_SUPPLY, "Sold out");

        uint256 startTokenId = _nextTokenId();

        _safeMint(receiver, times);

        emit MintedBatch(startTokenId, times, receiver);
    }

    /**
     *  @notice this is new stardard for royalties
     */
    function contractURI() public view returns (string memory) {
        return metadata;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view override(ERC721A, ERC2981) returns (bool) {
        return
            interfaceId == type(IHLPeaceGenesisAngel).interfaceId ||
            ERC2981.supportsInterface(interfaceId) ||
            ERC721A.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal override {
        if (isLimitPerUser && isWallet(to)) {
            require(balanceOf(to) + quantity <= maxPerUser, "Limit times each user");
        }
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 12 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 6 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 9 of 12 : AdminableV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

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

/**
 *  @title  Dev Adminable Contract
 *
 *  @author IHeart Team
 *
 *  @notice This smart contract is contract to control access and role to call function
 */
contract AdminableV2 is Ownable {
    /**
     *  @notice _admins mapping from token ID to isAdmin status
     */
    mapping(address => bool) public admins;

    event SetAdmin(address indexed user, bool allow);

    constructor() {}

    modifier onlyAdmin() {
        require(owner() == _msgSender() || admins[_msgSender()], "Ownable: caller is not an admin");
        _;
    }

    modifier notZeroAddress(address _addr) {
        require(_addr != address(0), "Invalid address");
        _;
    }

    modifier notZeroAmount(uint256 _amount) {
        require(_amount > 0, "Invalid amount");
        _;
    }

    /**
     *  @notice Replace the admin role by another address.
     *
     *  @dev    Only owner can call this function.
     */
    function setAdmin(address _user, bool _allow) public virtual onlyOwner {
        _setAdmin(_user, _allow);
    }

    /**
     *  @notice Replace the admin role by another address.
     *
     *  @dev    Only owner can call this function.
     */
    function setAdmins(address[] memory _users, bool _allow) public virtual onlyOwner {
        require(_users.length > 0, "Invalid length");
        for (uint256 i = 0; i < _users.length; i++) {
            _setAdmin(_users[i], _allow);
        }
    }

    function _setAdmin(address _user, bool _allow) internal virtual notZeroAddress(_user) {
        admins[_user] = _allow;
        emit SetAdmin(_user, _allow);
    }

    /**
     *  @notice Check account whether it is the admin role.
     */
    function isAdmin(address _account) external view returns (bool) {
        return admins[_account];
    }

    /*------------------Checking Functions------------------*/
    function isWallet(address _account) public view returns (bool) {
        return _account != address(0) && _account.code.length == 0 && tx.origin == _msgSender();
    }
}

File 10 of 12 : IHLPeaceGenesisAngel.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

/**
 *  @notice IGenesis is interface of genesis token
 */
interface IHLPeaceGenesisAngel {
    function mintBatch(address receiver, uint256 times) external;
}

File 11 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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 {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    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))) : '';
    }

    /**
     * @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 payable 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 {
        _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 payable 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(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 {
            // 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 payable 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 payable 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`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                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 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

File 12 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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();

    /**
     * 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 payable;

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"revealAdmin_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"string","name":"revealUri_","type":"string"},{"internalType":"address","name":"treasury_","type":"address"},{"internalType":"uint96","name":"feeNumerator_","type":"uint96"},{"internalType":"uint256","name":"maxPerUser_","type":"uint256"},{"internalType":"string","name":"metadata_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"MintedBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"MintedSpecialType","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"allow","type":"bool"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"string","name":"oldValue","type":"string"},{"indexed":false,"internalType":"string","name":"newValue","type":"string"}],"name":"SetBaseUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"oldValue","type":"bool"},{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"SetIsLimitPerUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetMaxPerUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"bool","name":"oldValue","type":"bool"},{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"SetReveal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"address","name":"oldValue","type":"address"},{"indexed":true,"internalType":"address","name":"newValue","type":"address"}],"name":"SetRevealAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"string","name":"oldValue","type":"string"},{"indexed":false,"internalType":"string","name":"newValue","type":"string"}],"name":"SetRevealUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"reveiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeNumerator","type":"uint256"}],"name":"SetRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"bool","name":"oldValue","type":"bool"},{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"SetSoldOut","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_BATCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NORMAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isLimitPerUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"times","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"mintSpecialType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAdmins","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":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadata","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isLimitPerUser","type":"bool"}],"name":"setIsLimitPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerUser","type":"uint256"}],"name":"setMaxPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isReveal","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_revealAdmin","type":"address"}],"name":"setRevealAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_revealUri","type":"string"}],"name":"setRevealUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSoldOut","type":"bool"}],"name":"setSoldOut","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdReveal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200327438038062003274833981016040819052620000349162000329565b87876200004133620000da565b60046200004f8382620004f0565b5060056200005e8282620004f0565b5050600160025550620000718a620000da565b600e6200007f8782620004f0565b50600f6200008e8282620004f0565b50600c8290556010620000a28682620004f0565b50601180546001600160a01b0319166001600160a01b038b16179055620000ca84846200012a565b50505050505050505050620005bc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200019e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620001f65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000195565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b80516001600160a01b03811681146200024757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027457600080fd5b81516001600160401b03808211156200029157620002916200024c565b604051601f8301601f19908116603f01168101908282118183101715620002bc57620002bc6200024c565b81604052838152602092508683858801011115620002d957600080fd5b600091505b83821015620002fd5785820183015181830184015290820190620002de565b600093810190920192909252949350505050565b80516001600160601b03811681146200024757600080fd5b6000806000806000806000806000806101408b8d0312156200034a57600080fd5b620003558b6200022f565b99506200036560208c016200022f565b60408c01519099506001600160401b03808211156200038357600080fd5b620003918e838f0162000262565b995060608d0151915080821115620003a857600080fd5b620003b68e838f0162000262565b985060808d0151915080821115620003cd57600080fd5b620003db8e838f0162000262565b975060a08d0151915080821115620003f257600080fd5b620004008e838f0162000262565b96506200041060c08e016200022f565b95506200042060e08e0162000311565b94506101008d015193506101208d01519150808211156200044057600080fd5b506200044f8d828e0162000262565b9150509295989b9194979a5092959850565b600181811c908216806200047657607f821691505b6020821081036200049757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004eb57600081815260208120601f850160051c81016020861015620004c65750805b601f850160051c820191505b81811015620004e757828155600101620004d2565b5050505b505050565b81516001600160401b038111156200050c576200050c6200024c565b62000524816200051d845462000461565b846200049d565b602080601f8311600181146200055c5760008415620005435750858301515b600019600386901b1c1916600185901b178555620004e7565b600085815260208120601f198616915b828110156200058d578886015182559484019460019091019084016200056c565b5085821015620005ac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612ca880620005cc6000396000f3fe6080604052600436106102ff5760003560e01c80636e02007d11610190578063b215ee07116100dc578063d9ef157a11610095578063e8a3d4851161006f578063e8a3d485146108d9578063e985e9c5146108ee578063f2fde38b1461090e578063fae4c7f91461092e57600080fd5b8063d9ef157a1461088d578063de54125b146108ad578063e1bb829a146108c357600080fd5b8063b215ee07146107f0578063b88d4fde14610810578063c6ab67a314610823578063c87b56dd14610838578063c973de0b14610858578063ce5570ec1461086d57600080fd5b80638da5cb5b11610149578063938e3d7b11610123578063938e3d7b14610786578063950bff9f146107a657806395d89b41146107bb578063a22cb465146107d057600080fd5b80638da5cb5b146107325780638f2fc60b14610750578063902d55a51461077057600080fd5b80636e02007d1461067b5780636f4917201461069057806370a08231146106b0578063715018a6146106d0578063813dcee7146106e55780638462151c1461070557600080fd5b80632a55205a1161024f5780634b0bddd2116102085780636352211e116101e25780636352211e146106055780636a627842146106255780636c0360eb146106455780636c74ec901461065a57600080fd5b80634b0bddd2146105a557806355f804b3146105c5578063618a8b21146105e557600080fd5b80632a55205a146104cd5780632da5ea171461050c578063392f37e91461052d57806342842e0e14610542578063429b62e51461055557806342b58b2f1461058557600080fd5b8063101106ab116102bc57806323b872dd1161029657806323b872dd14610441578063248b71fc1461045457806324d7806c146104745780632a3f300c146104ad57600080fd5b8063101106ab146103ec578063109695231461040c57806318160ddd1461042c57600080fd5b806301ffc9a714610304578063030e2c881461033957806306d586bb1461035b57806306fdde031461037f578063081812fc146103a1578063095ea7b3146103d9575b600080fd5b34801561031057600080fd5b5061032461031f366004612444565b61094f565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b506103596103543660046124d4565b610989565b005b34801561036757600080fd5b50610371600c5481565b604051908152602001610330565b34801561038b57600080fd5b50610394610a1e565b60405161033091906125e3565b3480156103ad57600080fd5b506103c16103bc3660046125f6565b610ab0565b6040516001600160a01b039091168152602001610330565b6103596103e736600461260f565b610af4565b3480156103f857600080fd5b50610359610407366004612639565b610b94565b34801561041857600080fd5b506103596104273660046126ac565b610c3a565b34801561043857600080fd5b50610371610c52565b61035961044f3660046126f5565b610c60565b34801561046057600080fd5b5061035961046f36600461260f565b610e06565b34801561048057600080fd5b5061032461048f366004612639565b6001600160a01b031660009081526001602052604090205460ff1690565b3480156104b957600080fd5b506103596104c8366004612731565b610f76565b3480156104d957600080fd5b506104ed6104e836600461274c565b611045565b604080516001600160a01b039093168352602083019190915201610330565b34801561051857600080fd5b5060115461032490600160a81b900460ff1681565b34801561053957600080fd5b506103946110f1565b6103596105503660046126f5565b61117f565b34801561056157600080fd5b50610324610570366004612639565b60016020526000908152604090205460ff1681565b34801561059157600080fd5b506103596105a03660046126ac565b61119a565b3480156105b157600080fd5b506103596105c036600461276e565b6112bd565b3480156105d157600080fd5b506103596105e03660046126ac565b6112cf565b3480156105f157600080fd5b50610359610600366004612731565b6113b2565b34801561061157600080fd5b506103c16106203660046125f6565b61142c565b34801561063157600080fd5b50610359610640366004612639565b611437565b34801561065157600080fd5b5061039461153b565b34801561066657600080fd5b5060115461032490600160a01b900460ff1681565b34801561068757600080fd5b50610371611548565b34801561069c57600080fd5b506103596106ab366004612639565b61155e565b3480156106bc57600080fd5b506103716106cb366004612639565b61160b565b3480156106dc57600080fd5b5061035961165a565b3480156106f157600080fd5b506103596107003660046125f6565b61166e565b34801561071157600080fd5b50610725610720366004612639565b6116fe565b60405161033091906127a1565b34801561073e57600080fd5b506000546001600160a01b03166103c1565b34801561075c57600080fd5b5061035961076b3660046127d9565b611807565b34801561077c57600080fd5b50610371611e6181565b34801561079257600080fd5b506103596107a13660046126ac565b61185d565b3480156107b257600080fd5b5061037160fa81565b3480156107c757600080fd5b50610394611871565b3480156107dc57600080fd5b506103596107eb36600461276e565b611880565b3480156107fc57600080fd5b506011546103c1906001600160a01b031681565b61035961081e36600461281c565b6118ec565b34801561082f57600080fd5b50610394611936565b34801561084457600080fd5b506103946108533660046125f6565b611943565b34801561086457600080fd5b50610394611ac3565b34801561087957600080fd5b50610324610888366004612639565b611ad0565b34801561089957600080fd5b506103596108a8366004612731565b611b02565b3480156108b957600080fd5b5061037160125481565b3480156108cf57600080fd5b50610371611e5f81565b3480156108e557600080fd5b50610394611b70565b3480156108fa57600080fd5b50610324610909366004612898565b611b7f565b34801561091a57600080fd5b50610359610929366004612639565b611bad565b34801561093a57600080fd5b5060115461032490600160b01b900460ff1681565b60006001600160e01b03198216630922dc7f60e21b1480610974575061097482611c26565b80610983575061098382611c5b565b92915050565b610991611ca9565b60008251116109d85760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064015b60405180910390fd5b60005b8251811015610a1957610a078382815181106109f9576109f96128c2565b602002602001015183611d03565b80610a11816128ee565b9150506109db565b505050565b606060048054610a2d90612907565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990612907565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000610abb82611dac565b610ad8576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610aff8261142c565b9050336001600160a01b03821614610b3857610b1b8133611b7f565b610b38576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b9c611ca9565b806001600160a01b038116610be55760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016109cf565b601180546001600160a01b038481166001600160a01b03198316811790935560405191169190829030907f93969d5a0d1dcc3bc41b03b7c27cff9eb86c91d7189cf93fbbc8a8a931b2e84f90600090a4505050565b610c42611ca9565b600d610c4e8282612987565b5050565b600354600254036000190190565b6000610c6b82611de1565b9050836001600160a01b0316816001600160a01b031614610c9e5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610ceb57610cce8633611b7f565b610ceb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d1257604051633a954ecd60e21b815260040160405180910390fd5b610d1f8686866001611e50565b8015610d2a57600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003610dbc57600184016000818152600660205260408120549003610dba576002548114610dba5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b0316331480610e2e57503360009081526001602052604090205460ff165b610e7a5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420616e2061646d696e0060448201526064016109cf565b600081118015610e8b575060fa8111155b610ecc5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840dad2dce840c4c2e8c6d60731b60448201526064016109cf565b601154600160a81b900460ff16158015610efa5750611e5f81610eed610c52565b610ef79190612a47565b11155b610f165760405162461bcd60e51b81526004016109cf90612a5a565b6000610f2160025490565b9050610f2d8383611ed4565b826001600160a01b0316817f07aa08b6e2c236e0df09ac6fdd068ae1e342a2306191a1a8d0c234f344b892f684604051610f6991815260200190565b60405180910390a3505050565b6011546001600160a01b0316336001600160a01b03161480610fa257506000546001600160a01b031633145b610fbe5760405162461bcd60e51b81526004016109cf90612a7c565b60118054821515600160b01b90810260ff60b01b198316179283905560ff918190048216920416610ff557610ff1611548565b6012555b601154604080518315158152600160b01b90920460ff161515602083015230917f4336075821d93044eeee62d9e9ac38e87b54a0b31181a14aebbfe418d2b1b23491015b60405180910390a25050565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110ba575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906110d9906001600160601b031687612abf565b6110e39190612af4565b915196919550909350505050565b600f80546110fe90612907565b80601f016020809104026020016040519081016040528092919081815260200182805461112a90612907565b80156111775780601f1061114c57610100808354040283529160200191611177565b820191906000526020600020905b81548152906001019060200180831161115a57829003601f168201915b505050505081565b610a19838383604051806020016040528060008152506118ec565b6011546001600160a01b0316336001600160a01b031614806111c657506000546001600160a01b031633145b6111e25760405162461bcd60e51b81526004016109cf90612a7c565b6000601080546111f190612907565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90612907565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b5050505050905081601090816112809190612987565b50306001600160a01b03167f3ac413a506e4ba7b1ec200ed84ee63bd953c6c4cb3f68960a8983e30758bef37826010604051611039929190612b08565b6112c5611ca9565b610c4e8282611d03565b6112d7611ca9565b6000600e80546112e690612907565b80601f016020809104026020016040519081016040528092919081815260200182805461131290612907565b801561135f5780601f106113345761010080835404028352916020019161135f565b820191906000526020600020905b81548152906001019060200180831161134257829003601f168201915b5050505050905081600e90816113759190612987565b50306001600160a01b03167f91e48868d9d8bb142503930647bbc90d592381243d0750d56563e6fd9283be1c82600e604051611039929190612b08565b6113ba611ca9565b60118054821515600160a01b90810260ff60a01b198316179283905560405160ff928290048316937f24e809799a9d1f159b2e9f0baef6d5ef96fe3fe0dab0897c1adda9e9bd766b18936114209386939204169091151582521515602082015260400190565b60405180910390a15050565b600061098382611de1565b6000546001600160a01b031633148061145f57503360009081526001602052604090205460ff165b6114ab5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420616e2061646d696e0060448201526064016109cf565b601154600160a81b900460ff161580156114cd5750611e5f6114cb610c52565b105b6114e95760405162461bcd60e51b81526004016109cf90612a5a565b60006114f460025490565b9050611501826001611ed4565b6040516001600160a01b0383169082907fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e90600090a35050565b600e80546110fe90612907565b600060016002546115599190612ba3565b905090565b611566611ca9565b601154600160a81b900460ff161580156115895750611e5f611586610c52565b10155b801561159d5750611e6161159b610c52565b105b6115b95760405162461bcd60e51b81526004016109cf90612a5a565b60006115c460025490565b90506115d1826001611ed4565b6040516001600160a01b0383169082907f952b44aa68a978efc78262c8b56040c33e2598c402a43eaa1515fc7b5ddc93ed90600090a35050565b60006001600160a01b038216611634576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611662611ca9565b61166c6000611eee565b565b611676611ca9565b80600081116116b85760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109cf565b600c80549083905560408051828152602081018590527f282002a00d2b3fc9f6c962dbbd9ef6eb4a21ea0e76d9864b378f17283479755a910160405180910390a1505050565b6060600080600061170e8561160b565b905060008167ffffffffffffffff81111561172b5761172b612461565b604051908082528060200260200182016040528015611754578160200160208202803683370190505b50905061178160408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146117fb5761179481611f3e565b915081604001516117f35781516001600160a01b0316156117b457815194505b876001600160a01b0316856001600160a01b0316036117f357808387806001019850815181106117e6576117e66128c2565b6020026020010181815250505b600101611784565b50909695505050505050565b61180f611ca9565b6118198282611fbd565b6040516001600160601b03821681526001600160a01b038316907faf80eecb6d383b7ffd8fa84554dd154b74dfdf6410e2dc8a7f5afda7f2d7e01890602001611039565b611865611ca9565b600f610c4e8282612987565b606060058054610a2d90612907565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118f7848484610c60565b6001600160a01b0383163b1561193057611913848484846120ba565b611930576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600d80546110fe90612907565b606061194e82611dac565b6119b35760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b60648201526084016109cf565b60006119bd6121a6565b601154909150600160b01b900460ff161580156119db575060125483115b15611a7357601080546119ed90612907565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1990612907565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b5050505050915050919050565b6000815111611a915760405180602001604052806000815250611abc565b80611a9b846121b5565b604051602001611aac929190612bb6565b6040516020818303038152906040525b9392505050565b601080546110fe90612907565b60006001600160a01b03821615801590611af257506001600160a01b0382163b155b8015610983575050323314919050565b611b0a611ca9565b60118054821515600160a81b90810260ff60a81b19831617928390556040805160ff938390048416801515825292909404909216151560208401529130917f34b502b91c2c32a6bd3c56dbe1e612332b4014350d5d4c0ba469d06dd11f3fba9101611039565b6060600f8054610a2d90612907565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b611bb5611ca9565b6001600160a01b038116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cf565b611c2381611eee565b50565b60006001600160e01b0319821663152a902d60e11b148061098357506301ffc9a760e01b6001600160e01b0319831614610983565b60006301ffc9a760e01b6001600160e01b031983161480611c8c57506380ac58cd60e01b6001600160e01b03198316145b806109835750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b0316331461166c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cf565b816001600160a01b038116611d4c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016109cf565b6001600160a01b038316600081815260016020908152604091829020805460ff191686151590811790915591519182527f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea910160405180910390a2505050565b600081600111158015611dc0575060025482105b8015610983575050600090815260066020526040902054600160e01b161590565b60008180600111611e3757600254811015611e375760008181526006602052604081205490600160e01b82169003611e35575b80600003611abc575060001901600081815260066020526040902054611e14565b505b604051636f96cda160e11b815260040160405180910390fd5b601154600160a01b900460ff168015611e6d5750611e6d83611ad0565b15611ecf57600c5481611e7f8561160b565b611e899190612a47565b1115611ecf5760405162461bcd60e51b81526020600482015260156024820152742634b6b4ba103a34b6b2b99032b0b1b4103ab9b2b960591b60448201526064016109cf565b611930565b610c4e8282604051806020016040528060008152506122b6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526006602052604090205461098390604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6127106001600160601b038216111561202b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cf565b6001600160a01b0382166120815760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120ef903390899088908890600401612c04565b6020604051808303816000875af192505050801561212a575060408051601f3d908101601f1916820190925261212791810190612c41565b60015b612188573d808015612158576040519150601f19603f3d011682016040523d82523d6000602084013e61215d565b606091505b508051600003612180576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e8054610a2d90612907565b6060816000036121dc5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561220657806121f0816128ee565b91506121ff9050600a83612af4565b91506121e0565b60008167ffffffffffffffff81111561222157612221612461565b6040519080825280601f01601f19166020018201604052801561224b576020820181803683370190505b5090505b841561219e57612260600183612ba3565b915061226d600a86612c5e565b612278906030612a47565b60f81b81838151811061228d5761228d6128c2565b60200101906001600160f81b031916908160001a9053506122af600a86612af4565b945061224f565b6122c08383612323565b6001600160a01b0383163b15610a19576002548281035b6122ea60008683806001019450866120ba565b612307576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122d757816002541461231c57600080fd5b5050505050565b60025460008290036123485760405163b562e8dd60e01b815260040160405180910390fd5b6123556000848385611e50565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461240457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016123cc565b508160000361242557604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b031981168114611c2357600080fd5b60006020828403121561245657600080fd5b8135611abc8161242e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156124a0576124a0612461565b604052919050565b80356001600160a01b03811681146124bf57600080fd5b919050565b803580151581146124bf57600080fd5b600080604083850312156124e757600080fd5b823567ffffffffffffffff808211156124ff57600080fd5b818501915085601f83011261251357600080fd5b813560208282111561252757612527612461565b8160051b9250612538818401612477565b828152928401810192818101908985111561255257600080fd5b948201945b8486101561257757612568866124a8565b82529482019490820190612557565b965061258690508782016124c4565b9450505050509250929050565b60005b838110156125ae578181015183820152602001612596565b50506000910152565b600081518084526125cf816020860160208601612593565b601f01601f19169290920160200192915050565b602081526000611abc60208301846125b7565b60006020828403121561260857600080fd5b5035919050565b6000806040838503121561262257600080fd5b61262b836124a8565b946020939093013593505050565b60006020828403121561264b57600080fd5b611abc826124a8565b600067ffffffffffffffff83111561266e5761266e612461565b612681601f8401601f1916602001612477565b905082815283838301111561269557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156126be57600080fd5b813567ffffffffffffffff8111156126d557600080fd5b8201601f810184136126e657600080fd5b61219e84823560208401612654565b60008060006060848603121561270a57600080fd5b612713846124a8565b9250612721602085016124a8565b9150604084013590509250925092565b60006020828403121561274357600080fd5b611abc826124c4565b6000806040838503121561275f57600080fd5b50508035926020909101359150565b6000806040838503121561278157600080fd5b61278a836124a8565b9150612798602084016124c4565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156117fb578351835292840192918401916001016127bd565b600080604083850312156127ec57600080fd5b6127f5836124a8565b915060208301356001600160601b038116811461281157600080fd5b809150509250929050565b6000806000806080858703121561283257600080fd5b61283b856124a8565b9350612849602086016124a8565b925060408501359150606085013567ffffffffffffffff81111561286c57600080fd5b8501601f8101871361287d57600080fd5b61288c87823560208401612654565b91505092959194509250565b600080604083850312156128ab57600080fd5b6128b4836124a8565b9150612798602084016124a8565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612900576129006128d8565b5060010190565b600181811c9082168061291b57607f821691505b60208210810361293b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a1957600081815260208120601f850160051c810160208610156129685750805b601f850160051c820191505b81811015610dfe57828155600101612974565b815167ffffffffffffffff8111156129a1576129a1612461565b6129b5816129af8454612907565b84612941565b602080601f8311600181146129ea57600084156129d25750858301515b600019600386901b1c1916600185901b178555610dfe565b600085815260208120601f198616915b82811015612a19578886015182559484019460019091019084016129fa565b5085821015612a375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610983576109836128d8565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526023908201527f43616c6c6572206973206e6f742072657665616c206f776e6572206f72206f776040820152623732b960e91b606082015260800190565b6000816000190483118215151615612ad957612ad96128d8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b0357612b03612ade565b500490565b604081526000612b1b60408301856125b7565b60208382038185015260008554612b3181612907565b80855260018281168015612b4c5760018114612b6657612b94565b60ff1984168787015282151560051b870186019450612b94565b896000528560002060005b84811015612b8c578154898201890152908301908701612b71565b880187019550505b50929998505050505050505050565b81810381811115610983576109836128d8565b60008351612bc8818460208801612593565b602f60f81b9083019081528351612be6816001840160208801612593565b64173539b7b760d91b60019290910191820152600601949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c37908301846125b7565b9695505050505050565b600060208284031215612c5357600080fd5b8151611abc8161242e565b600082612c6d57612c6d612ade565b50069056fea2646970667358221220c13c7004c0cab52b1c0f5685eba11056ad94dc9f066cfcaf2d8c983521e387e864736f6c63430008100033000000000000000000000000b36b80bf2f275909c983243d838db9c8f0dbfd3c0000000000000000000000000b20540f0f923052d62cc7f9274b7d2de8d5f8bb0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000002c108785d2e41a662f7ae89c881435a0dcf7963f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000015484c50656163652047656e6573697320416e67656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000015484c50656163652047656e6573697320416e67656c0000000000000000000000000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6170692e686c70656163652e6a702f6170692f76312f6e66742f6e66742d6d657461646174612d64657461696c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80636e02007d11610190578063b215ee07116100dc578063d9ef157a11610095578063e8a3d4851161006f578063e8a3d485146108d9578063e985e9c5146108ee578063f2fde38b1461090e578063fae4c7f91461092e57600080fd5b8063d9ef157a1461088d578063de54125b146108ad578063e1bb829a146108c357600080fd5b8063b215ee07146107f0578063b88d4fde14610810578063c6ab67a314610823578063c87b56dd14610838578063c973de0b14610858578063ce5570ec1461086d57600080fd5b80638da5cb5b11610149578063938e3d7b11610123578063938e3d7b14610786578063950bff9f146107a657806395d89b41146107bb578063a22cb465146107d057600080fd5b80638da5cb5b146107325780638f2fc60b14610750578063902d55a51461077057600080fd5b80636e02007d1461067b5780636f4917201461069057806370a08231146106b0578063715018a6146106d0578063813dcee7146106e55780638462151c1461070557600080fd5b80632a55205a1161024f5780634b0bddd2116102085780636352211e116101e25780636352211e146106055780636a627842146106255780636c0360eb146106455780636c74ec901461065a57600080fd5b80634b0bddd2146105a557806355f804b3146105c5578063618a8b21146105e557600080fd5b80632a55205a146104cd5780632da5ea171461050c578063392f37e91461052d57806342842e0e14610542578063429b62e51461055557806342b58b2f1461058557600080fd5b8063101106ab116102bc57806323b872dd1161029657806323b872dd14610441578063248b71fc1461045457806324d7806c146104745780632a3f300c146104ad57600080fd5b8063101106ab146103ec578063109695231461040c57806318160ddd1461042c57600080fd5b806301ffc9a714610304578063030e2c881461033957806306d586bb1461035b57806306fdde031461037f578063081812fc146103a1578063095ea7b3146103d9575b600080fd5b34801561031057600080fd5b5061032461031f366004612444565b61094f565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b506103596103543660046124d4565b610989565b005b34801561036757600080fd5b50610371600c5481565b604051908152602001610330565b34801561038b57600080fd5b50610394610a1e565b60405161033091906125e3565b3480156103ad57600080fd5b506103c16103bc3660046125f6565b610ab0565b6040516001600160a01b039091168152602001610330565b6103596103e736600461260f565b610af4565b3480156103f857600080fd5b50610359610407366004612639565b610b94565b34801561041857600080fd5b506103596104273660046126ac565b610c3a565b34801561043857600080fd5b50610371610c52565b61035961044f3660046126f5565b610c60565b34801561046057600080fd5b5061035961046f36600461260f565b610e06565b34801561048057600080fd5b5061032461048f366004612639565b6001600160a01b031660009081526001602052604090205460ff1690565b3480156104b957600080fd5b506103596104c8366004612731565b610f76565b3480156104d957600080fd5b506104ed6104e836600461274c565b611045565b604080516001600160a01b039093168352602083019190915201610330565b34801561051857600080fd5b5060115461032490600160a81b900460ff1681565b34801561053957600080fd5b506103946110f1565b6103596105503660046126f5565b61117f565b34801561056157600080fd5b50610324610570366004612639565b60016020526000908152604090205460ff1681565b34801561059157600080fd5b506103596105a03660046126ac565b61119a565b3480156105b157600080fd5b506103596105c036600461276e565b6112bd565b3480156105d157600080fd5b506103596105e03660046126ac565b6112cf565b3480156105f157600080fd5b50610359610600366004612731565b6113b2565b34801561061157600080fd5b506103c16106203660046125f6565b61142c565b34801561063157600080fd5b50610359610640366004612639565b611437565b34801561065157600080fd5b5061039461153b565b34801561066657600080fd5b5060115461032490600160a01b900460ff1681565b34801561068757600080fd5b50610371611548565b34801561069c57600080fd5b506103596106ab366004612639565b61155e565b3480156106bc57600080fd5b506103716106cb366004612639565b61160b565b3480156106dc57600080fd5b5061035961165a565b3480156106f157600080fd5b506103596107003660046125f6565b61166e565b34801561071157600080fd5b50610725610720366004612639565b6116fe565b60405161033091906127a1565b34801561073e57600080fd5b506000546001600160a01b03166103c1565b34801561075c57600080fd5b5061035961076b3660046127d9565b611807565b34801561077c57600080fd5b50610371611e6181565b34801561079257600080fd5b506103596107a13660046126ac565b61185d565b3480156107b257600080fd5b5061037160fa81565b3480156107c757600080fd5b50610394611871565b3480156107dc57600080fd5b506103596107eb36600461276e565b611880565b3480156107fc57600080fd5b506011546103c1906001600160a01b031681565b61035961081e36600461281c565b6118ec565b34801561082f57600080fd5b50610394611936565b34801561084457600080fd5b506103946108533660046125f6565b611943565b34801561086457600080fd5b50610394611ac3565b34801561087957600080fd5b50610324610888366004612639565b611ad0565b34801561089957600080fd5b506103596108a8366004612731565b611b02565b3480156108b957600080fd5b5061037160125481565b3480156108cf57600080fd5b50610371611e5f81565b3480156108e557600080fd5b50610394611b70565b3480156108fa57600080fd5b50610324610909366004612898565b611b7f565b34801561091a57600080fd5b50610359610929366004612639565b611bad565b34801561093a57600080fd5b5060115461032490600160b01b900460ff1681565b60006001600160e01b03198216630922dc7f60e21b1480610974575061097482611c26565b80610983575061098382611c5b565b92915050565b610991611ca9565b60008251116109d85760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064015b60405180910390fd5b60005b8251811015610a1957610a078382815181106109f9576109f96128c2565b602002602001015183611d03565b80610a11816128ee565b9150506109db565b505050565b606060048054610a2d90612907565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990612907565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000610abb82611dac565b610ad8576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610aff8261142c565b9050336001600160a01b03821614610b3857610b1b8133611b7f565b610b38576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b9c611ca9565b806001600160a01b038116610be55760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016109cf565b601180546001600160a01b038481166001600160a01b03198316811790935560405191169190829030907f93969d5a0d1dcc3bc41b03b7c27cff9eb86c91d7189cf93fbbc8a8a931b2e84f90600090a4505050565b610c42611ca9565b600d610c4e8282612987565b5050565b600354600254036000190190565b6000610c6b82611de1565b9050836001600160a01b0316816001600160a01b031614610c9e5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610ceb57610cce8633611b7f565b610ceb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d1257604051633a954ecd60e21b815260040160405180910390fd5b610d1f8686866001611e50565b8015610d2a57600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003610dbc57600184016000818152600660205260408120549003610dba576002548114610dba5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b0316331480610e2e57503360009081526001602052604090205460ff165b610e7a5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420616e2061646d696e0060448201526064016109cf565b600081118015610e8b575060fa8111155b610ecc5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840dad2dce840c4c2e8c6d60731b60448201526064016109cf565b601154600160a81b900460ff16158015610efa5750611e5f81610eed610c52565b610ef79190612a47565b11155b610f165760405162461bcd60e51b81526004016109cf90612a5a565b6000610f2160025490565b9050610f2d8383611ed4565b826001600160a01b0316817f07aa08b6e2c236e0df09ac6fdd068ae1e342a2306191a1a8d0c234f344b892f684604051610f6991815260200190565b60405180910390a3505050565b6011546001600160a01b0316336001600160a01b03161480610fa257506000546001600160a01b031633145b610fbe5760405162461bcd60e51b81526004016109cf90612a7c565b60118054821515600160b01b90810260ff60b01b198316179283905560ff918190048216920416610ff557610ff1611548565b6012555b601154604080518315158152600160b01b90920460ff161515602083015230917f4336075821d93044eeee62d9e9ac38e87b54a0b31181a14aebbfe418d2b1b23491015b60405180910390a25050565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110ba575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906110d9906001600160601b031687612abf565b6110e39190612af4565b915196919550909350505050565b600f80546110fe90612907565b80601f016020809104026020016040519081016040528092919081815260200182805461112a90612907565b80156111775780601f1061114c57610100808354040283529160200191611177565b820191906000526020600020905b81548152906001019060200180831161115a57829003601f168201915b505050505081565b610a19838383604051806020016040528060008152506118ec565b6011546001600160a01b0316336001600160a01b031614806111c657506000546001600160a01b031633145b6111e25760405162461bcd60e51b81526004016109cf90612a7c565b6000601080546111f190612907565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90612907565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b5050505050905081601090816112809190612987565b50306001600160a01b03167f3ac413a506e4ba7b1ec200ed84ee63bd953c6c4cb3f68960a8983e30758bef37826010604051611039929190612b08565b6112c5611ca9565b610c4e8282611d03565b6112d7611ca9565b6000600e80546112e690612907565b80601f016020809104026020016040519081016040528092919081815260200182805461131290612907565b801561135f5780601f106113345761010080835404028352916020019161135f565b820191906000526020600020905b81548152906001019060200180831161134257829003601f168201915b5050505050905081600e90816113759190612987565b50306001600160a01b03167f91e48868d9d8bb142503930647bbc90d592381243d0750d56563e6fd9283be1c82600e604051611039929190612b08565b6113ba611ca9565b60118054821515600160a01b90810260ff60a01b198316179283905560405160ff928290048316937f24e809799a9d1f159b2e9f0baef6d5ef96fe3fe0dab0897c1adda9e9bd766b18936114209386939204169091151582521515602082015260400190565b60405180910390a15050565b600061098382611de1565b6000546001600160a01b031633148061145f57503360009081526001602052604090205460ff165b6114ab5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420616e2061646d696e0060448201526064016109cf565b601154600160a81b900460ff161580156114cd5750611e5f6114cb610c52565b105b6114e95760405162461bcd60e51b81526004016109cf90612a5a565b60006114f460025490565b9050611501826001611ed4565b6040516001600160a01b0383169082907fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e90600090a35050565b600e80546110fe90612907565b600060016002546115599190612ba3565b905090565b611566611ca9565b601154600160a81b900460ff161580156115895750611e5f611586610c52565b10155b801561159d5750611e6161159b610c52565b105b6115b95760405162461bcd60e51b81526004016109cf90612a5a565b60006115c460025490565b90506115d1826001611ed4565b6040516001600160a01b0383169082907f952b44aa68a978efc78262c8b56040c33e2598c402a43eaa1515fc7b5ddc93ed90600090a35050565b60006001600160a01b038216611634576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611662611ca9565b61166c6000611eee565b565b611676611ca9565b80600081116116b85760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109cf565b600c80549083905560408051828152602081018590527f282002a00d2b3fc9f6c962dbbd9ef6eb4a21ea0e76d9864b378f17283479755a910160405180910390a1505050565b6060600080600061170e8561160b565b905060008167ffffffffffffffff81111561172b5761172b612461565b604051908082528060200260200182016040528015611754578160200160208202803683370190505b50905061178160408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146117fb5761179481611f3e565b915081604001516117f35781516001600160a01b0316156117b457815194505b876001600160a01b0316856001600160a01b0316036117f357808387806001019850815181106117e6576117e66128c2565b6020026020010181815250505b600101611784565b50909695505050505050565b61180f611ca9565b6118198282611fbd565b6040516001600160601b03821681526001600160a01b038316907faf80eecb6d383b7ffd8fa84554dd154b74dfdf6410e2dc8a7f5afda7f2d7e01890602001611039565b611865611ca9565b600f610c4e8282612987565b606060058054610a2d90612907565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118f7848484610c60565b6001600160a01b0383163b1561193057611913848484846120ba565b611930576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600d80546110fe90612907565b606061194e82611dac565b6119b35760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b60648201526084016109cf565b60006119bd6121a6565b601154909150600160b01b900460ff161580156119db575060125483115b15611a7357601080546119ed90612907565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1990612907565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b5050505050915050919050565b6000815111611a915760405180602001604052806000815250611abc565b80611a9b846121b5565b604051602001611aac929190612bb6565b6040516020818303038152906040525b9392505050565b601080546110fe90612907565b60006001600160a01b03821615801590611af257506001600160a01b0382163b155b8015610983575050323314919050565b611b0a611ca9565b60118054821515600160a81b90810260ff60a81b19831617928390556040805160ff938390048416801515825292909404909216151560208401529130917f34b502b91c2c32a6bd3c56dbe1e612332b4014350d5d4c0ba469d06dd11f3fba9101611039565b6060600f8054610a2d90612907565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b611bb5611ca9565b6001600160a01b038116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cf565b611c2381611eee565b50565b60006001600160e01b0319821663152a902d60e11b148061098357506301ffc9a760e01b6001600160e01b0319831614610983565b60006301ffc9a760e01b6001600160e01b031983161480611c8c57506380ac58cd60e01b6001600160e01b03198316145b806109835750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b0316331461166c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cf565b816001600160a01b038116611d4c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016109cf565b6001600160a01b038316600081815260016020908152604091829020805460ff191686151590811790915591519182527f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea910160405180910390a2505050565b600081600111158015611dc0575060025482105b8015610983575050600090815260066020526040902054600160e01b161590565b60008180600111611e3757600254811015611e375760008181526006602052604081205490600160e01b82169003611e35575b80600003611abc575060001901600081815260066020526040902054611e14565b505b604051636f96cda160e11b815260040160405180910390fd5b601154600160a01b900460ff168015611e6d5750611e6d83611ad0565b15611ecf57600c5481611e7f8561160b565b611e899190612a47565b1115611ecf5760405162461bcd60e51b81526020600482015260156024820152742634b6b4ba103a34b6b2b99032b0b1b4103ab9b2b960591b60448201526064016109cf565b611930565b610c4e8282604051806020016040528060008152506122b6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526006602052604090205461098390604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6127106001600160601b038216111561202b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cf565b6001600160a01b0382166120815760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120ef903390899088908890600401612c04565b6020604051808303816000875af192505050801561212a575060408051601f3d908101601f1916820190925261212791810190612c41565b60015b612188573d808015612158576040519150601f19603f3d011682016040523d82523d6000602084013e61215d565b606091505b508051600003612180576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e8054610a2d90612907565b6060816000036121dc5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561220657806121f0816128ee565b91506121ff9050600a83612af4565b91506121e0565b60008167ffffffffffffffff81111561222157612221612461565b6040519080825280601f01601f19166020018201604052801561224b576020820181803683370190505b5090505b841561219e57612260600183612ba3565b915061226d600a86612c5e565b612278906030612a47565b60f81b81838151811061228d5761228d6128c2565b60200101906001600160f81b031916908160001a9053506122af600a86612af4565b945061224f565b6122c08383612323565b6001600160a01b0383163b15610a19576002548281035b6122ea60008683806001019450866120ba565b612307576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122d757816002541461231c57600080fd5b5050505050565b60025460008290036123485760405163b562e8dd60e01b815260040160405180910390fd5b6123556000848385611e50565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461240457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016123cc565b508160000361242557604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b031981168114611c2357600080fd5b60006020828403121561245657600080fd5b8135611abc8161242e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156124a0576124a0612461565b604052919050565b80356001600160a01b03811681146124bf57600080fd5b919050565b803580151581146124bf57600080fd5b600080604083850312156124e757600080fd5b823567ffffffffffffffff808211156124ff57600080fd5b818501915085601f83011261251357600080fd5b813560208282111561252757612527612461565b8160051b9250612538818401612477565b828152928401810192818101908985111561255257600080fd5b948201945b8486101561257757612568866124a8565b82529482019490820190612557565b965061258690508782016124c4565b9450505050509250929050565b60005b838110156125ae578181015183820152602001612596565b50506000910152565b600081518084526125cf816020860160208601612593565b601f01601f19169290920160200192915050565b602081526000611abc60208301846125b7565b60006020828403121561260857600080fd5b5035919050565b6000806040838503121561262257600080fd5b61262b836124a8565b946020939093013593505050565b60006020828403121561264b57600080fd5b611abc826124a8565b600067ffffffffffffffff83111561266e5761266e612461565b612681601f8401601f1916602001612477565b905082815283838301111561269557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156126be57600080fd5b813567ffffffffffffffff8111156126d557600080fd5b8201601f810184136126e657600080fd5b61219e84823560208401612654565b60008060006060848603121561270a57600080fd5b612713846124a8565b9250612721602085016124a8565b9150604084013590509250925092565b60006020828403121561274357600080fd5b611abc826124c4565b6000806040838503121561275f57600080fd5b50508035926020909101359150565b6000806040838503121561278157600080fd5b61278a836124a8565b9150612798602084016124c4565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156117fb578351835292840192918401916001016127bd565b600080604083850312156127ec57600080fd5b6127f5836124a8565b915060208301356001600160601b038116811461281157600080fd5b809150509250929050565b6000806000806080858703121561283257600080fd5b61283b856124a8565b9350612849602086016124a8565b925060408501359150606085013567ffffffffffffffff81111561286c57600080fd5b8501601f8101871361287d57600080fd5b61288c87823560208401612654565b91505092959194509250565b600080604083850312156128ab57600080fd5b6128b4836124a8565b9150612798602084016124a8565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612900576129006128d8565b5060010190565b600181811c9082168061291b57607f821691505b60208210810361293b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a1957600081815260208120601f850160051c810160208610156129685750805b601f850160051c820191505b81811015610dfe57828155600101612974565b815167ffffffffffffffff8111156129a1576129a1612461565b6129b5816129af8454612907565b84612941565b602080601f8311600181146129ea57600084156129d25750858301515b600019600386901b1c1916600185901b178555610dfe565b600085815260208120601f198616915b82811015612a19578886015182559484019460019091019084016129fa565b5085821015612a375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610983576109836128d8565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526023908201527f43616c6c6572206973206e6f742072657665616c206f776e6572206f72206f776040820152623732b960e91b606082015260800190565b6000816000190483118215151615612ad957612ad96128d8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b0357612b03612ade565b500490565b604081526000612b1b60408301856125b7565b60208382038185015260008554612b3181612907565b80855260018281168015612b4c5760018114612b6657612b94565b60ff1984168787015282151560051b870186019450612b94565b896000528560002060005b84811015612b8c578154898201890152908301908701612b71565b880187019550505b50929998505050505050505050565b81810381811115610983576109836128d8565b60008351612bc8818460208801612593565b602f60f81b9083019081528351612be6816001840160208801612593565b64173539b7b760d91b60019290910191820152600601949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c37908301846125b7565b9695505050505050565b600060208284031215612c5357600080fd5b8151611abc8161242e565b600082612c6d57612c6d612ade565b50069056fea2646970667358221220c13c7004c0cab52b1c0f5685eba11056ad94dc9f066cfcaf2d8c983521e387e864736f6c63430008100033

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

000000000000000000000000b36b80bf2f275909c983243d838db9c8f0dbfd3c0000000000000000000000000b20540f0f923052d62cc7f9274b7d2de8d5f8bb0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000002c108785d2e41a662f7ae89c881435a0dcf7963f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000015484c50656163652047656e6573697320416e67656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000015484c50656163652047656e6573697320416e67656c0000000000000000000000000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6170692e686c70656163652e6a702f6170692f76312f6e66742f6e66742d6d657461646174612d64657461696c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : owner_ (address): 0xB36b80BF2f275909c983243D838Db9c8f0dBFD3c
Arg [1] : revealAdmin_ (address): 0x0B20540F0f923052D62cc7f9274B7D2De8D5f8BB
Arg [2] : name_ (string): HLPeace Genesis Angel
Arg [3] : symbol_ (string): HLPeace Genesis Angel
Arg [4] : baseUri_ (string): https://api.hlpeace.jp/api/v1/nft/nft-metadata-detail
Arg [5] : revealUri_ (string):
Arg [6] : treasury_ (address): 0x2C108785D2E41a662F7Ae89c881435A0dcF7963F
Arg [7] : feeNumerator_ (uint96): 1000
Arg [8] : maxPerUser_ (uint256): 250
Arg [9] : metadata_ (string):

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 000000000000000000000000b36b80bf2f275909c983243d838db9c8f0dbfd3c
Arg [1] : 0000000000000000000000000b20540f0f923052d62cc7f9274b7d2de8d5f8bb
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 0000000000000000000000002c108785d2e41a662f7ae89c881435a0dcf7963f
Arg [7] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [8] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [11] : 484c50656163652047656e6573697320416e67656c0000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [13] : 484c50656163652047656e6573697320416e67656c0000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [15] : 68747470733a2f2f6170692e686c70656163652e6a702f6170692f76312f6e66
Arg [16] : 742f6e66742d6d657461646174612d64657461696c0000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000


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.