ETH Price: $2,683.16 (+10.25%)
Gas: 1 Gwei

Token

ALPHi Founders (ALPHi)
 

Overview

Max Total Supply

291 ALPHi

Holders

123

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
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:
AlphiGenesis

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 5000 runs

Other Settings:
default evmVersion
File 1 of 18 : 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 2 of 18 : 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 3 of 18 : 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 4 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 5 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 18 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 17 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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 18 of 18 : AlphiGenesis.sol
//// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/// @title Alphi Genesis Mint 
/// @notice Main contract governing the minting and experience boosting of 
/// Alphi Genesis NFTs
contract AlphiGenesis is
ERC721,
ERC721Enumerable,
ERC721URIStorage,
Ownable,
ERC2981
{
    using Counters for Counters.Counter;
    using Strings for uint256;

    // ------------------------------------------------------------------------
    // State Variables: Immutable Token Parameters
    // ------------------------------------------------------------------------
    
    /// @dev Max supply of NFTs that can be minted in this contract
    uint256 public immutable MAX_SUPPLY;
    /// @dev Max supply of NFTs that can be minted during the initial sale
    uint256 public immutable MAX_SALE;
    /// @dev Initial sale price of minting the NFTs
    uint256 public immutable PRICE;
    /// @dev Max amount of NFTs a wallet can mint
    uint256 public immutable MAX_MINT_PER_WALLET;
    /// @dev Default amount of NFTs a wallet can mint during the promotional mint
    uint256 public immutable DEFAULT_PROMO_MINT;
    
    // ------------------------------------------------------------------------
    // State Variables: Mutable Token Parameters
    // ------------------------------------------------------------------------
    
    /// @dev Base token URI for all NFTs in this contract
    string public baseTokenURI;
    
    // ------------------------------------------------------------------------
    // State Variables: Minting Parameters
    // ------------------------------------------------------------------------
    
    /// @dev A counter to keep track of the token IDs
    Counters.Counter private _tokenIdCounter;
    
    /// @dev Mapping from account address to the number of NFTs that account
    /// has minted
    mapping(address => uint256) public numberAddressMinted;
    
    /// @dev Mapping from account address to the number of NFTs that account 
    /// has minted through the promotional period. If the promotional mint is set
    /// to zero, the minting function will default to the DEFAULT_PROMO_MINT
    mapping(address => uint256) public promotionalMinted;
    
    /// @dev Mapping from account address to the number of NFTs that account is 
    /// allowed to mint during the promotional period
    mapping(address => uint256) public promotion;
    
    /// @dev Flag indicating if wave 1 is currently active
    bool public wave1 = false;
    /// @dev Flag indicating if wave 2 is currently active
    bool public wave2 = false;
    /// @dev Flag indicating if wave 3 is currently active
    bool public wave3 = false;
    
    /// @dev Mapping from account address to a boolean indicating if that 
    /// account is on wave 1 allow list
    mapping(address => bool) public allowListWave1;
    
    /// @dev Mapping from account address to a boolean indicating if that
    /// account is on wave 2 allow list
    mapping(address => bool) public allowListWave2;
    
    // ------------------------------------------------------------------------
    // State Variables: Experience Boost
    // ------------------------------------------------------------------------
    
    /// @dev Mapping from account address to a boolean indicating if the token 
    /// is currently soft-locked
    mapping(uint256 => bool) public tokenLocked;
    
    /// @dev Mapping from token ID to the most recent block timestamp (seconds)
    /// the token was either locked or unlocked
    mapping(uint256 => uint256) public timeModified;
    
    /// @dev Mapping from token ID to the total amount of time (seconds) the 
    /// token has been locked over its lifetime
    mapping(uint256 => uint256) public lifetimeLocked;
    
    // ------------------------------------------------------------------------
    // Events: Experience Boost
    // ------------------------------------------------------------------------
    
    /// @notice Emitted when an account locks their NFT for experience boost
    /// @param sender The account that locked their NFT  
    /// @param id The token ID that has been locked 
    /// @param time The block timestamp (seconds) when the token was locked
    event ExperienceLocked(
        address indexed sender,
        uint256 indexed id,
        uint256 indexed time
    );
    
    /// @notice Emitted when an account unlocks their NFT to disable exp boost
    /// @param sender The account that unlocked their NFT
    /// @param id The token ID that has been unlocked 
    /// @param time The block timestamp (seconds) when the token was unlocked
    event ExperienceUnlocked(
        address indexed sender,
        uint256 indexed id,
        uint256 indexed time
    );
    
    // ------------------------------------------------------------------------
    // Events: Mint Management
    // ------------------------------------------------------------------------
    
    /// @notice Emitted when wave 1 of the mint is activated or deactivated
    /// @param active The current state of wave 1 
    /// (true = active, false = inactive)
    event Wave1Active(bool indexed active);
    
    /// @notice Emitted when wave 2 of the mint is activated or deactivated
    /// @param active The current state of wave 2 
    /// (true = active, false = inactive)
    event Wave2Active(bool indexed active);
    
    /// @notice Emitted when wave 3 of the mint is activated or deactivated
    /// @param active The current state of wave 3 
    /// (true = active, false = inactive)
    event Wave3Active(bool indexed active);
    
    // ------------------------------------------------------------------------
    // Contract Initialization
    // ------------------------------------------------------------------------
    
    /// @dev Creates a new AlphiGenesis contract with the provided parameters.
    /// @param _uName The name of the NFT.
    /// @param _uSymbol The symbol of the NFT.
    /// @param _maxSupply The maximum supply of tokens.
    /// @param _price The price per token in wei.
    /// @param _maxPerWallet The maximum number of tokens allowed to be minted 
    /// per wallet.
    /// @param _initialBaseURI The initial base URI for the token metadata.
    /// @param _royaltyRecipient The recipient of the royalty fees.
    /// @param _royaltyBasisPoints The royalty fee as a percentage in basis 
    /// points.
    constructor(
        string memory _uName,
        string memory _uSymbol,
        uint256 _maxSupply,
        uint256 _maxSale,
        uint256 _price,
        uint256 _maxPerWallet,
        uint256 _promoMint,
        string memory _initialBaseURI,
        address _royaltyRecipient,
        uint96 _royaltyBasisPoints
    ) ERC721(_uName, _uSymbol) {
        MAX_SUPPLY = _maxSupply;
        MAX_SALE = _maxSale;
        PRICE = _price;
        MAX_MINT_PER_WALLET = _maxPerWallet;
        DEFAULT_PROMO_MINT = _promoMint;
        baseTokenURI = _initialBaseURI;
        _setDefaultRoyalty(_royaltyRecipient, _royaltyBasisPoints);
    }
    
    // ------------------------------------------------------------------------
    // Functions: Modify Token Parameters
    // ------------------------------------------------------------------------
    
    /// @notice The contract owner can change the base token URI in order to 
    /// change the token metadata
    /// @dev Only the contract owner can call this function
    /// @param _baseTokenURI New token base URI as a string 
    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }
    
    /// @notice The contract owner can change the token URI of a single NFT 
    /// @dev Only the contract owner can call this function. The submitted 
    /// new URI will be concatenated with the base token URI 
    /// @param _tokenId The token ID of the NFT whose URI will be changed
    /// @param _newURI New URI that will be concatenated with the base URI 
    function changeTokenURI(uint256 _tokenId, string memory _newURI)
    public
    onlyOwner
    {
        _setTokenURI(_tokenId, _newURI);
    }
    
    // ------------------------------------------------------------------------
    // Functions: Mint Utilities
    // ------------------------------------------------------------------------
    
    /// @notice The contract owner can activate or deactivate wave 1 
    /// (free mint to accounts on Allow List 1) of the mint 
    /// @dev Only the contract owner can call this function
    /// @param _active A boolean value that indicates whether wave 1 is active 
    /// (true) or inactive (false)
    function activateWave1(bool _active) public onlyOwner {
        wave1 = _active;
        emit Wave1Active(wave1);
    }
    
    /// @notice The contract owner can activate or deactivate wave 2 
    /// (paid mint to accounts on Allow List 2) of the mint 
    /// @dev Only the contract owner can call this function 
    /// @param _active A boolean value that indicates whether wave 2 is active 
    /// (true) or inactive (false)
    function activateWave2(bool _active) public onlyOwner {
        wave2 = _active;
        emit Wave2Active(wave2);
    }
    
    /// @notice The contract owner can activate or deactivate wave 3 
    /// (paid mint to all accounts of the general public) of the mint 
    /// @dev Only the contract owner can call this function
    /// @param _active A boolean value that indicates whether wave 3 is active 
    /// (true) or inactive (false)
    function activateWave3(bool _active) public onlyOwner {
        wave3 = _active;
        emit Wave3Active(wave3);
    }
    /// @notice Gets the amount of NFTs that an account has minted
    /// @param _mintedAddress Address of the account to check
    /// @return Number of NFTs the account has already minted
    function amountMinted(address _mintedAddress)
    public
    view
    returns (uint256)
    {
        return (numberAddressMinted[_mintedAddress]);
    }
    
    /// @notice Gets the amount of NFTs that an account has minted in wave 1 
    /// @param _mintedAddress Address of the account to Check
    /// @return Number of NFTs the account has already minted in wave 1
    function numPromotionMinted(address _mintedAddress)
    public
    view
    returns (uint256)
    {
        return (promotionalMinted[_mintedAddress]);
    }
    
    /// @notice Sets a custom amount of NFTs an address can mint in wave 1 
    /// @dev Only the contract owner can call this function
    /// @param _address Address of the account to set the limit for
    /// @param _amount Number of NFTs the account can mint in wave 1 
    function setPromotion(address _address, uint256 _amount) public onlyOwner {
        promotion[_address] = _amount;
    }

    /// @notice Gets the amount of NFTs that an account can mint in wave 1 
    /// @param _address Address of the account to Check
    /// @return Number of NFTs the account can mint in wave 1 
    function promoLimit(address _address) public view returns (uint256){
        return (promotion[_address]);
    }
    
    /// @notice Contract owner can add an array of addresses to the allow list
    /// for wave 1
    /// @dev Only the contract owner can call this function.
    /// For each address in the array, it sets the corresponding mapped value
    /// to true.
    /// @param _wAddresses Array of addresses to add to the wave 1 allow list
    function addWave1Address(address[] calldata _wAddresses) public onlyOwner {
        for (uint256 i = 0; i < _wAddresses.length; i++) {
            allowListWave1[_wAddresses[i]] = true;
        }
    }
    
    /// @notice Contract owner can add an array of addresses to the allow list
    /// for wave 2
    /// @dev Only the contract owner can call this function.
    /// For each address in the array, it sets the corresponding mapped value
    /// to true.
    /// @param _wAddresses Array of addresses to add to the wave 2 allow list
    function addWave2Address(address[] calldata _wAddresses) public onlyOwner {
        for (uint256 i = 0; i < _wAddresses.length; i++) {
            allowListWave2[_wAddresses[i]] = true;
        }
    }
    
    /// @notice Contract owner can remove an array of addresses to the allow 
    /// list for wave 1
    /// @dev Only the contract owner can call this function.
    /// For each address in the array, it sets the corresponding mapped value
    /// to false.
    /// @param _wAddresses Array of addresses to remove from the wave 1 allow 
    /// list
    function removeWave1Address(address[] calldata _wAddresses) 
    public 
    onlyOwner 
    {
        for (uint256 i = 0; i < _wAddresses.length; i++) {
            allowListWave1[_wAddresses[i]] = false;
        }
    }
    
    /// @notice Contract owner can remove an array of addresses to the allow 
    /// list for wave 2
    /// @dev Only the contract owner can call this function.
    /// For each address in the array, it sets the corresponding mapped value
    /// to false.
    /// @param _wAddresses Array of addresses to remove from the wave 2 allow 
    /// list
    function removeWave2Address(address[] calldata _wAddresses) 
    public 
    onlyOwner 
    {
        for (uint256 i = 0; i < _wAddresses.length; i++) {
            allowListWave2[_wAddresses[i]] = false;
        }
    }
    
    /// @notice View all wave status 
    /// @return Status of each wave in an array 
    /// (index 0: Wave 1, index 1: Wave 2, index 2: Wave 3)
    function waveActive()
    public
    view
    returns (
        bool,
        bool,
        bool
    )
    {
        return (wave1, wave2, wave3);
    }
    
    /// @notice Checks which allow list an account has been added to 
    /// @param _address Account to query
    /// @return Array booleans indicating which list(s) the account has been 
    /// added to (index 0: Wave 1, index 1: Wave 2)
    function isOnList(address _address) public view returns (bool, bool) {
        return (allowListWave1[_address], allowListWave2[_address]);
    }
    
    // ------------------------------------------------------------------------
    // Functions: Minting
    // ------------------------------------------------------------------------
    
    /// @notice Mints a new NFT based on the current wave that is active and 
    /// the account's allow list status, number of tokens already minted, and 
    /// whether the max supply of the NFT has been reached. 
    /// @dev Users need to be in the correct allow list mapping and they need 
    /// to provide sufficient ETH based on the wave of the sale. 
    /// This function assumes that the same address has not been added 
    /// to multiple allow lists (if they are, the first list will be used).  
    /// Must not have already minted the maximum allowed tokens per wallet 
    /// (amountMinted(msg.sender) < MAX_MINT_PER_WALLET).
    /// Must not have reached the maximum supply of tokens 
    /// (_tokenIdCounter.current() < MAX_SUPPLY).
    /// Emits a transfer event on the successful minting of a token  
    function genesisMint() public payable {
        require(
            amountMinted(msg.sender) < MAX_MINT_PER_WALLET,
            "Already minted maximum"
        );
        require(
            _tokenIdCounter.current() < MAX_SALE, 
            "Max supply reached"
        );

        if (allowListWave2[msg.sender]) {
            require(
                wave2, 
                "Wave 2 is not currently active"
            );
            require(
                msg.value >= PRICE, 
                "Not enough ETH sent; check price!"
            );
            numberAddressMinted[msg.sender] = amountMinted(msg.sender) + 1;
            _saleMint(msg.sender);
        } else {
            require(
                wave3, 
                "Public minting currently not active"
            );
            require(
                msg.value >= PRICE, 
                "Not enough ETH sent; check price!"
            );
            numberAddressMinted[msg.sender] = amountMinted(msg.sender) + 1;
            _saleMint(msg.sender);
        }
    }

    function promoMint() public payable {
        require(
            wave1,
            "Wave 1 is not currently active"
        );
        require(
            allowListWave1[msg.sender],
            "You are not on the allow list"
        );
        require(
            _tokenIdCounter.current() < MAX_SALE,
            "Max supply reached"
        );

        uint256 _maxMint = promotion[msg.sender];
        uint256 _numMinted = promotionalMinted[msg.sender];

        if (_maxMint == 0) {
            require(
                _numMinted < DEFAULT_PROMO_MINT,
                "Already minted maximum promotional tokens"
            );
            promotionalMinted[msg.sender] = _numMinted + 1;
            _saleMint(msg.sender);
        } else {
            require(
                _numMinted < _maxMint,
                "Already minted maximum promotional tokens"
            );
            promotionalMinted[msg.sender] = _numMinted + 1;
            _saleMint(msg.sender);
        }
    }

    /// @notice Allows the contract owner to mint a reward NFT to the address
    /// of their choosing
    /// @dev Only the contract owner can call this function. 
    /// The account that is being minted to must not hawe already minted the 
    /// maximum amount of NFTs (amountMinted(to) < MAX_MINT_PER_WALLET).
    /// The maximum token supply of the contract must not have been reached
    /// (_tokenIdCounter.current() < MAX_SUPPLY).
    /// Emits a transfer event on the successful minting of a token 
    /// @param to The address that should receive the minted token
    function ownerGenesisMint(address to) public onlyOwner {
        require(
            _tokenIdCounter.current() < MAX_SUPPLY, 
            "Max supply reached"
        );
        _saleMint(to);
    }

    /// @dev Writes all possible data before calling mint function. Then writes
    /// the token URI for the newly minted NFT
    /// @param to The address that will be receiving the minted NFT
    function _saleMint(address to) private {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(to, tokenId);
        _setTokenURI(tokenId, tokenId.toString());
    }
    

    // ------------------------------------------------------------------------
    // Functions: Experience Boost
    // ------------------------------------------------------------------------

    /// @notice User can lock an NFT they own to activate experience boost 
    /// @dev For the function call to be successful, the token needs to have 
    /// been minted (_exists(_tokenId), the caller needs to own the NFT 
    /// (ownerOf(_tokenId) == msg.sender), and the token must be currently 
    /// unlocked (!tokenLocked(_tokenId))
    /// Emits an event on successful token lock 
    /// @param _tokenId Token ID of the NFT the user wishes to lock 
    function experienceLock(uint256 _tokenId) public {
        require(
            _exists(_tokenId), 
            "Token not minted"
        );
        require(
            ownerOf(_tokenId) == msg.sender,
            "Token not owned by the caller"
        );
        require(
            !tokenLocked[_tokenId], 
            "Token already locked"
        );
        tokenLocked[_tokenId] = true;
        timeModified[_tokenId] = block.timestamp;
        emit ExperienceLocked(msg.sender, _tokenId, timeModified[_tokenId]);
    }

    /// @notice User can unlock an NFT they own to deactivate experience boost 
    /// @dev For the function call to succeed, the token needs to have been 
    /// minted (_exists(_tokenId), the caller needs to own the 
    /// NFT (ownerOf(_tokenId) == msg.sender), and the token must be currently 
    /// locked (tokenLocked(_tokenId))
    /// Emits an event on successful token unlock 
    /// @param _tokenId Token ID of the NFT the user wishes to unlock 
    function experienceUnlock(uint256 _tokenId) public {
        require(
            _exists(_tokenId), 
            "Token not minted"
        );
        require(
            ownerOf(_tokenId) == msg.sender,
            "Token not owned by the caller"
        );
        require(
            tokenLocked[_tokenId], 
            "Token already unlocked"
        );
        tokenLocked[_tokenId] = false;
        lifetimeLocked[_tokenId] += lastExperienceInteraction(_tokenId);
        timeModified[_tokenId] = block.timestamp;
        emit ExperienceUnlocked(msg.sender, _tokenId, timeModified[_tokenId]);
    }

    /// @notice Checks locked status of an NFT in this collection
    /// @dev Checks if the token has been minted
    /// @param _tokenId Token ID of the NFT 
    /// @return Boolean locked status of the NFT (true = locked, false = unlocked)
    function isLocked(uint256 _tokenId) public view returns (bool) {
        require(
            _exists(_tokenId), 
            "Token not minted"
        );
        return tokenLocked[_tokenId];
    }

    /// @notice Gets the total time since the NFT was last locked (for total 
    /// lifetime locked call getLifetimeLocked(_tokenId) instead)
    /// @dev Checks if the token has been minted.
    /// @param _tokenId Token ID of the NFT to check status
    /// @return Total time locked in the most recent locking period (seconds)
    function getTimeLocked(uint256 _tokenId) public view returns (uint256) {
        require(
            _exists(_tokenId), 
            "Token not minted"
        );
        if (tokenLocked[_tokenId]) {
            return lastExperienceInteraction(_tokenId);
        } else {
            return 0;
        }
    }

    /// @notice Gets the total historical locking time of an NFT (for total 
    /// time locked in the current locking interaction, call 
    /// getTimeLocked(_tokenId) instead)
    /// @dev Checks if the token has been minted
    /// @param _tokenId Token ID of the NFT to check status
    /// @return Total historical time locked (seconds)
    function getLifetimeLocked(uint256 _tokenId) public view returns (uint256) {
        require(
            _exists(_tokenId), 
            "Token not minted"
        );
        if (isLocked(_tokenId)) {
            return
                lifetimeLocked[_tokenId] + lastExperienceInteraction(_tokenId);
        } else {
            return lifetimeLocked[_tokenId];
        }
    }

    /// @notice Check how long ago a user interacted with an NFT for experience
    /// boost locking and unlocking
    /// @dev Checks to ensure the token has been minted. If the token has 
    /// never been locked, the transaction will revert 
    /// (timeModified[_tokenId] != 0)
    /// @param _tokenId Token ID of the NFT to check 
    /// @return Time (seconds) since the last user interaction locking or 
    /// unlocking the NFT 
    function lastExperienceInteraction(uint256 _tokenId)
        public
        view
        returns (uint256)
    {
        require(_exists(_tokenId), "Token not minted");
        require(timeModified[_tokenId] != 0, "Token has no interaction history");
        return block.timestamp - timeModified[_tokenId];
    }

    /// @notice Gets the block timestamp (seconds) of the last user interaction
    /// with experience boost locking and unlocking 
    /// @dev Checks to ensure the token has been minted. If the token has 
    /// never been locked, the transaction will revert 
    /// (timeModified[_tokenId] != 0)
    /// @param _tokenId Token ID of the NFT to check 
    /// @return Timestamp (seconds) of the last user interaction locking or 
    /// unlocking the NFT 
    function getTimeModified(uint256 _tokenId) public view returns (uint256) {
        require(_exists(_tokenId), "Token not minted");
        require(timeModified[_tokenId] != 0, "Token has no interaction history");
        return timeModified[_tokenId];
    }

    // ------------------------------------------------------------------------
    // Functions: Withdraw Funds
    // ------------------------------------------------------------------------

    /// @notice The contract owner can withdraw all ETH held by this contract 
    /// @dev Only the contract owner can call this function. It will withdraw 
    /// all ETH to the contract owner's account 
    function withdraw() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    // ------------------------------------------------------------------------
    // Functions: ERC2981 Royalty Standard
    // ------------------------------------------------------------------------

    /// @notice The contract owner can set the receiving account and the 
    /// sale percentage of any royalty payments that are compatible with the 
    /// ERC 2981 Standard
    /// @dev Only the contract owner can call this function
    /// @param _receiver Address of the account to receive royalty payments
    /// @param _feeNumerator Fee percentage in basis points (e.g. 1% = 100 BP)
    function setDefaultRoyalty(address _receiver, uint96 _feeNumerator)
        public
        onlyOwner
    {
        _setDefaultRoyalty(_receiver, _feeNumerator);
    }

    // ------------------------------------------------------------------------
    // Functions: Overrides for parent contracts
    // ------------------------------------------------------------------------

    /// @dev Fetches the current value of the base URI 
    /// @return The base token URI as a string
    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }

    /// @dev Checks to see if the token has been locked for experience boost. 
    /// If it is locked, the transfer will fail and the transaction will
    /// revert. If the transfer is originating from the zero address, then 
    /// the transfer will be allowed since that is a minting event and the 
    /// token has no locked status. 
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId,
        uint256 batchSize
    ) internal override(ERC721, ERC721Enumerable) {
        if (from != address(0)) {
            require(!isLocked(tokenId), "Token is locked, unlock to transfer");
        }
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }
    
    /// @dev _burn function is not used, but still needs to be overridden    
    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uName","type":"string"},{"internalType":"string","name":"_uSymbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSale","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_promoMint","type":"uint256"},{"internalType":"string","name":"_initialBaseURI","type":"string"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint96","name":"_royaltyBasisPoints","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"time","type":"uint256"}],"name":"ExperienceLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"time","type":"uint256"}],"name":"ExperienceUnlocked","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"active","type":"bool"}],"name":"Wave1Active","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"active","type":"bool"}],"name":"Wave2Active","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"active","type":"bool"}],"name":"Wave3Active","type":"event"},{"inputs":[],"name":"DEFAULT_PROMO_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"activateWave1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"activateWave2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"activateWave3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wAddresses","type":"address[]"}],"name":"addWave1Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wAddresses","type":"address[]"}],"name":"addWave2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListWave1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListWave2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mintedAddress","type":"address"}],"name":"amountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newURI","type":"string"}],"name":"changeTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"experienceLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"experienceUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesisMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getLifetimeLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTimeLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTimeModified","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isOnList","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"lastExperienceInteraction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lifetimeLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mintedAddress","type":"address"}],"name":"numPromotionMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberAddressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"ownerGenesisMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"promoLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"promotion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"promotionalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wAddresses","type":"address[]"}],"name":"removeWave1Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wAddresses","type":"address[]"}],"name":"removeWave2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPromotion","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"timeModified","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wave1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wave2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wave3","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waveActive","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526013805462ffffff191690553480156200001e57600080fd5b506040516200462a3803806200462a833981016040819052620000419162000317565b898960006200005183826200048f565b5060016200006082826200048f565b5050506200007d62000077620000c260201b60201c565b620000c6565b608088905260a087905260c086905260e0859052610100849052600e620000a584826200048f565b50620000b2828262000118565b505050505050505050506200055b565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200018c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620001e45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000183565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600c55565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200024557600080fd5b81516001600160401b03808211156200026257620002626200021d565b604051601f8301601f19908116603f011681019082821181831017156200028d576200028d6200021d565b81604052838152602092508683858801011115620002aa57600080fd5b600091505b83821015620002ce5785820183015181830184015290820190620002af565b600093810190920192909252949350505050565b80516001600160a01b0381168114620002fa57600080fd5b919050565b80516001600160601b0381168114620002fa57600080fd5b6000806000806000806000806000806101408b8d0312156200033857600080fd5b8a516001600160401b03808211156200035057600080fd5b6200035e8e838f0162000233565b9b5060208d01519150808211156200037557600080fd5b620003838e838f0162000233565b9a5060408d0151995060608d0151985060808d0151975060a08d0151965060c08d0151955060e08d0151915080821115620003bd57600080fd5b50620003cc8d828e0162000233565b935050620003de6101008c01620002e2565b9150620003ef6101208c01620002ff565b90509295989b9194979a5092959850565b600181811c908216806200041557607f821691505b6020821081036200043657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200048a57600081815260208120601f850160051c81016020861015620004655750805b601f850160051c820191505b81811015620004865782815560010162000471565b5050505b505050565b81516001600160401b03811115620004ab57620004ab6200021d565b620004c381620004bc845462000400565b846200043c565b602080601f831160018114620004fb5760008415620004e25750858301515b600019600386901b1c1916600185901b17855562000486565b600085815260208120601f198616915b828110156200052c578886015182559484019460019091019084016200050b565b50858210156200054b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e05161010051614060620005ca600039600081816107d001526119d0015260008181610b1101526122520152600081816109f401526123a60152600081816104ef0152818161193501526122c0015260008181610647015261166801526140606000f3fe6080604052600436106103c35760003560e01c80637330daac116101f2578063c61997711161010d578063e10e4ea0116100a0578063f291e72c1161006f578063f291e72c14610cf2578063f2fde38b14610d12578063f6aacfb114610d32578063f8fbf35614610d5257600080fd5b8063e10e4ea014610c3c578063e4cc17b514610c5c578063e985e9c514610c7c578063ee8f6cf014610cc557600080fd5b8063d031381e116100dc578063d031381e14610bc7578063d13c6e6814610be7578063d547cfb714610c07578063dc001f3314610c1c57600080fd5b8063c619977114610b53578063c87b56dd14610b80578063ca1b2b2f14610ba0578063cb82b4be14610bbf57600080fd5b8063900ae7ac11610185578063a22cb46511610154578063a22cb46514610abf578063a27798c914610adf578063b19960e614610aff578063b88d4fde14610b3357600080fd5b8063900ae7ac14610a3457806391ede7fb14610a6a57806395d89b4114610a8a578063a19a5b0f14610a9f57600080fd5b80637fb3a9a2116101c15780637fb3a9a2146109a2578063891fd0f9146109c25780638d859f3e146109e25780638da5cb5b14610a1657600080fd5b80637330daac146108c4578063733fda971461092557806375509228146109525780637ad1de541461097257600080fd5b80633ccfd60b116102e25780636352211e116102755780636adfd553116102445780636adfd553146108425780636ba702971461086f57806370a082311461088f578063715018a6146108af57600080fd5b80636352211e1461079e57806363b1ee55146107be5780636665d607146107f25780636a3fd6a91461082257600080fd5b806346694b7d116102b157806346694b7d1461070e57806349911d351461073e5780634f6ccce71461075e57806355f804b31461077e57600080fd5b80633ccfd60b146106835780634194ff521461069857806342842e0e146106b8578063438a67e7146106d857600080fd5b806323b872dd1161035a5780632aaa6933116103295780632aaa6933146105e85780632f745c591461061557806332cb6b0c146106355780633883643f1461066957600080fd5b806323b872dd14610526578063283749e01461054657806329f7706b146105665780632a55205a146105a957600080fd5b8063095ea7b311610396578063095ea7b314610479578063107ffcd314610499578063136f3cfc146104dd57806318160ddd1461051157600080fd5b806301ffc9a7146103c857806304634d8d146103fd57806306fdde031461041f578063081812fc14610441575b600080fd5b3480156103d457600080fd5b506103e86103e33660046138cd565b610d5a565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061041d610418366004613901565b610d6b565b005b34801561042b57600080fd5b50610434610d81565b6040516103f49190613999565b34801561044d57600080fd5b5061046161045c3660046139ac565b610e13565b6040516001600160a01b0390911681526020016103f4565b34801561048557600080fd5b5061041d6104943660046139c5565b610e3a565b3480156104a557600080fd5b506104cf6104b43660046139ef565b6001600160a01b031660009081526012602052604090205490565b6040519081526020016103f4565b3480156104e957600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000081565b34801561051d57600080fd5b506008546104cf565b34801561053257600080fd5b5061041d610541366004613a0a565b610f70565b34801561055257600080fd5b5061041d610561366004613a46565b610ff7565b34801561057257600080fd5b506013546040805160ff808416151582526101008404811615156020830152620100009093049092161515908201526060016103f4565b3480156105b557600080fd5b506105c96105c4366004613abb565b611071565b604080516001600160a01b0390931683526020830191909152016103f4565b3480156105f457600080fd5b506104cf6106033660046139ef565b60106020526000908152604090205481565b34801561062157600080fd5b506104cf6106303660046139c5565b61114e565b34801561064157600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000081565b34801561067557600080fd5b506013546103e89060ff1681565b34801561068f57600080fd5b5061041d6111f6565b3480156106a457600080fd5b5061041d6106b3366004613a46565b61122d565b3480156106c457600080fd5b5061041d6106d3366004613a0a565b6112a7565b3480156106e457600080fd5b506104cf6106f33660046139ef565b6001600160a01b031660009081526010602052604090205490565b34801561071a57600080fd5b506103e86107293660046139ac565b60166020526000908152604090205460ff1681565b34801561074a57600080fd5b5061041d610759366004613a46565b6112c2565b34801561076a57600080fd5b506104cf6107793660046139ac565b61133c565b34801561078a57600080fd5b5061041d610799366004613ba2565b6113e0565b3480156107aa57600080fd5b506104616107b93660046139ac565b6113f4565b3480156107ca57600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000081565b3480156107fe57600080fd5b506103e861080d3660046139ef565b60156020526000908152604090205460ff1681565b34801561082e57600080fd5b5061041d61083d366004613be7565b611459565b34801561084e57600080fd5b506104cf61085d3660046139ac565b60176020526000908152604090205481565b34801561087b57600080fd5b5061041d61088a3660046139c5565b6114a6565b34801561089b57600080fd5b506104cf6108aa3660046139ef565b6114ca565b3480156108bb57600080fd5b5061041d611564565b3480156108d057600080fd5b5061090e6108df3660046139ef565b6001600160a01b031660009081526014602090815260408083205460159092529091205460ff91821692911690565b6040805192151583529015156020830152016103f4565b34801561093157600080fd5b506104cf6109403660046139ef565b60126020526000908152604090205481565b34801561095e57600080fd5b506104cf61096d3660046139ac565b611578565b34801561097e57600080fd5b506103e861098d3660046139ef565b60146020526000908152604090205460ff1681565b3480156109ae57600080fd5b5061041d6109bd366004613c02565b61164c565b3480156109ce57600080fd5b5061041d6109dd3660046139ef565b61165e565b3480156109ee57600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a2257600080fd5b50600b546001600160a01b0316610461565b348015610a4057600080fd5b506104cf610a4f3660046139ef565b6001600160a01b031660009081526011602052604090205490565b348015610a7657600080fd5b5061041d610a85366004613be7565b6116e6565b348015610a9657600080fd5b5061043461175b565b348015610aab57600080fd5b506013546103e89062010000900460ff1681565b348015610acb57600080fd5b5061041d610ada366004613c49565b61176a565b348015610aeb57600080fd5b5061041d610afa366004613be7565b611775565b348015610b0b57600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000081565b348015610b3f57600080fd5b5061041d610b4e366004613c7c565b6117e9565b348015610b5f57600080fd5b506104cf610b6e3660046139ef565b60116020526000908152604090205481565b348015610b8c57600080fd5b50610434610b9b3660046139ac565b611877565b348015610bac57600080fd5b506013546103e890610100900460ff1681565b61041d611882565b348015610bd357600080fd5b5061041d610be2366004613a46565b611aff565b348015610bf357600080fd5b506104cf610c023660046139ac565b611b79565b348015610c1357600080fd5b50610434611c25565b348015610c2857600080fd5b5061041d610c373660046139ac565b611cb3565b348015610c4857600080fd5b5061041d610c573660046139ac565b611e2d565b348015610c6857600080fd5b506104cf610c773660046139ac565b611fd3565b348015610c8857600080fd5b506103e8610c97366004613cf8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cd157600080fd5b506104cf610ce03660046139ac565b60186020526000908152604090205481565b348015610cfe57600080fd5b506104cf610d0d3660046139ac565b61205f565b348015610d1e57600080fd5b5061041d610d2d3660046139ef565b612139565b348015610d3e57600080fd5b506103e8610d4d3660046139ac565b6121c6565b61041d612240565b6000610d65826124ef565b92915050565b610d73612545565b610d7d828261259f565b5050565b606060008054610d9090613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbc90613d22565b8015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b5050505050905090565b6000610e1e826126ca565b506000908152600460205260409020546001600160a01b031690565b6000610e45826113f4565b9050806001600160a01b0316836001600160a01b031603610ed35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610eef5750610eef8133610c97565b610f615760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610eca565b610f6b838361272e565b505050565b610f7a33826127b4565b610fec5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610eca565b610f6b838383612833565b610fff612545565b60005b81811015610f6b5760016015600085858581811061102257611022613d75565b905060200201602081019061103791906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061106981613dd3565b915050611002565b6000828152600d602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291611112575060408051808201909152600c546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090611136906bffffffffffffffffffffffff1687613ded565b6111409190613e04565b915196919550909350505050565b6000611159836114ca565b82106111cd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610eca565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6111fe612545565b60405133904780156108fc02916000818181858888f1935050505015801561122a573d6000803e3d6000fd5b50565b611235612545565b60005b81811015610f6b5760016014600085858581811061125857611258613d75565b905060200201602081019061126d91906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061129f81613dd3565b915050611238565b610f6b838383604051806020016040528060008152506117e9565b6112ca612545565b60005b81811015610f6b576000601560008585858181106112ed576112ed613d75565b905060200201602081019061130291906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061133481613dd3565b9150506112cd565b600061134760085490565b82106113bb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610eca565b600882815481106113ce576113ce613d75565b90600052602060002001549050919050565b6113e8612545565b600e610d7d8282613e8d565b6000818152600260205260408120546001600160a01b031680610d655760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610eca565b611461612545565b6013805460ff191682151590811790915560405160ff9091161515907f0f368445c54a753efd5f16081f90c487f1233c064333cb9cdbe9a53fe149267890600090a250565b6114ae612545565b6001600160a01b03909116600090815260126020526040902055565b60006001600160a01b0382166115485760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610eca565b506001600160a01b031660009081526003602052604090205490565b61156c612545565b6115766000612a81565b565b6000818152600260205260408120546001600160a01b03166115dc5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526017602052604081205490036116395760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20686173206e6f20696e746572616374696f6e20686973746f72796044820152606401610eca565b5060009081526017602052604090205490565b611654612545565b610d7d8282612aeb565b611666612545565b7f0000000000000000000000000000000000000000000000000000000000000000611690600f5490565b106116dd5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b61122a81612b8d565b6116ee612545565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100008315158102919091179182905560405160ff91909204161515907f2a8ca2da7410857491e914890cf949dfe3582228fbbc4d2812f783d97edd91d590600090a250565b606060018054610d9090613d22565b610d7d338383612bc4565b61177d612545565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008315158102919091179182905560405160ff91909204161515907fb70e67f331ca091988822f36be2b757e32446bdf37956da31c8b7ffcf208e6da90600090a250565b6117f333836127b4565b6118655760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610eca565b61187184848484612c92565b50505050565b6060610d6582612d1b565b60135460ff166118d45760405162461bcd60e51b815260206004820152601e60248201527f576176652031206973206e6f742063757272656e746c792061637469766500006044820152606401610eca565b3360009081526014602052604090205460ff166119335760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f6e2074686520616c6c6f77206c6973740000006044820152606401610eca565b7f000000000000000000000000000000000000000000000000000000000000000061195d600f5490565b106119aa5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b3360009081526012602090815260408083205460119092528220549091829003611a8a577f00000000000000000000000000000000000000000000000000000000000000008110611a635760405162461bcd60e51b815260206004820152602960248201527f416c7265616479206d696e746564206d6178696d756d2070726f6d6f74696f6e60448201527f616c20746f6b656e7300000000000000000000000000000000000000000000006064820152608401610eca565b611a6e816001613f4d565b33600081815260116020526040902091909155610d7d90612b8d565b818110611a635760405162461bcd60e51b815260206004820152602960248201527f416c7265616479206d696e746564206d6178696d756d2070726f6d6f74696f6e60448201527f616c20746f6b656e7300000000000000000000000000000000000000000000006064820152608401610eca565b611b07612545565b60005b81811015610f6b57600060146000858585818110611b2a57611b2a613d75565b9050602002016020810190611b3f91906139ef565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611b7181613dd3565b915050611b0a565b6000818152600260205260408120546001600160a01b0316611bdd5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b611be6826121c6565b15611c0d57611bf48261205f565b600083815260186020526040902054610d659190613f4d565b5060009081526018602052604090205490565b919050565b600e8054611c3290613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5e90613d22565b8015611cab5780601f10611c8057610100808354040283529160200191611cab565b820191906000526020600020905b815481529060010190602001808311611c8e57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316611d175760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b33611d21826113f4565b6001600160a01b031614611d775760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206e6f74206f776e6564206279207468652063616c6c65720000006044820152606401610eca565b60008181526016602052604090205460ff1615611dd65760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c7265616479206c6f636b65640000000000000000000000006044820152606401610eca565b6000818152601660209081526040808320805460ff191660011790556017909152808220429081905590519091839133917fd009a987036486c17def45b3df23da11dfc8500b2f845868bfa1f2619ed6eba591a450565b6000818152600260205260409020546001600160a01b0316611e915760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b33611e9b826113f4565b6001600160a01b031614611ef15760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206e6f74206f776e6564206279207468652063616c6c65720000006044820152606401610eca565b60008181526016602052604090205460ff16611f4f5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e20616c726561647920756e6c6f636b6564000000000000000000006044820152606401610eca565b6000818152601660205260409020805460ff19169055611f6e8161205f565b60008281526018602052604081208054909190611f8c908490613f4d565b9091555050600081815260176020526040808220429081905590519091839133917f586d7cb4f94af4d409f17132e3a3787bfbcaf57270f42eb6f8853b29752dddae91a450565b6000818152600260205260408120546001600160a01b03166120375760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526016602052604090205460ff161561205757610d658261205f565b506000919050565b6000818152600260205260408120546001600160a01b03166120c35760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526017602052604081205490036121205760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20686173206e6f20696e746572616374696f6e20686973746f72796044820152606401610eca565b600082815260176020526040902054610d659042613f60565b612141612545565b6001600160a01b0381166121bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610eca565b61122a81612a81565b6000818152600260205260408120546001600160a01b031661222a5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b5060009081526016602052604090205460ff1690565b336000908152601060205260409020547f0000000000000000000000000000000000000000000000000000000000000000116122be5760405162461bcd60e51b815260206004820152601660248201527f416c7265616479206d696e746564206d6178696d756d000000000000000000006044820152606401610eca565b7f00000000000000000000000000000000000000000000000000000000000000006122e8600f5490565b106123355760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b3360009081526015602052604090205460ff161561247157601354610100900460ff166123a45760405162461bcd60e51b815260206004820152601e60248201527f576176652032206973206e6f742063757272656e746c792061637469766500006044820152606401610eca565b7f000000000000000000000000000000000000000000000000000000000000000034101561243a5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f756768204554482073656e743b20636865636b20707269636560448201527f21000000000000000000000000000000000000000000000000000000000000006064820152608401610eca565b33600090815260106020526040902054612455906001613f4d565b3360008181526010602052604090209190915561157690612b8d565b60135462010000900460ff166123a45760405162461bcd60e51b815260206004820152602360248201527f5075626c6963206d696e74696e672063757272656e746c79206e6f742061637460448201527f69766500000000000000000000000000000000000000000000000000000000006064820152608401610eca565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610d655750610d6582612e16565b600b546001600160a01b031633146115765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b6127106bffffffffffffffffffffffff821611156126255760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610eca565b6001600160a01b03821661267b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610eca565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600c55565b6000818152600260205260409020546001600160a01b031661122a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610eca565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061277b826113f4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806127c0836113f4565b9050806001600160a01b0316846001600160a01b0316148061280757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061282b5750836001600160a01b031661282084610e13565b6001600160a01b0316145b949350505050565b826001600160a01b0316612846826113f4565b6001600160a01b0316146128c25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610eca565b6001600160a01b03821661293d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610eca565b61294a8383836001612e6c565b826001600160a01b031661295d826113f4565b6001600160a01b0316146129d95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610eca565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600260205260409020546001600160a01b0316612b755760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610eca565b6000828152600a60205260409020610f6b8282613e8d565b6000612b98600f5490565b9050612ba8600f80546001019055565b612bb28282612f03565b610d7d81612bbf83612f1d565b612aeb565b816001600160a01b0316836001600160a01b031603612c255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610eca565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c9d848484612833565b612ca984848484612fbd565b6118715760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b6060612d26826126ca565b6000828152600a602052604081208054612d3f90613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054612d6b90613d22565b8015612db85780601f10612d8d57610100808354040283529160200191612db8565b820191906000526020600020905b815481529060010190602001808311612d9b57829003601f168201915b505050505090506000612dc961315e565b90508051600003612ddb575092915050565b815115612e0d578082604051602001612df5929190613f73565b60405160208183030381529060405292505050919050565b61282b8461316d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610d655750610d65826131d4565b6001600160a01b03841615612ef757612e84826121c6565b15612ef75760405162461bcd60e51b815260206004820152602360248201527f546f6b656e206973206c6f636b65642c20756e6c6f636b20746f207472616e7360448201527f66657200000000000000000000000000000000000000000000000000000000006064820152608401610eca565b611871848484846132b7565b610d7d8282604051806020016040528060008152506133f3565b60606000612f2a8361347c565b600101905060008167ffffffffffffffff811115612f4a57612f4a613add565b6040519080825280601f01601f191660200182016040528015612f74576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612f7e57509392505050565b60006001600160a01b0384163b15613153576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061301a903390899088908890600401613fa2565b6020604051808303816000875af1925050508015613055575060408051601f3d908101601f1916820190925261305291810190613fde565b60015b613108573d808015613083576040519150601f19603f3d011682016040523d82523d6000602084013e613088565b606091505b5080516000036131005760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061282b565b506001949350505050565b6060600e8054610d9090613d22565b6060613178826126ca565b600061318261315e565b905060008151116131a257604051806020016040528060008152506131cd565b806131ac84612f1d565b6040516020016131bd929190613f73565b6040516020818303038152906040525b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061326757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d6557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610d65565b600181111561332e5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610eca565b816001600160a01b03851661338a5761338581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133ad565b836001600160a01b0316856001600160a01b0316146133ad576133ad858261355e565b6001600160a01b0384166133c9576133c4816135fb565b6133ec565b846001600160a01b0316846001600160a01b0316146133ec576133ec84826136aa565b5050505050565b6133fd83836136ee565b61340a6000848484612fbd565b610f6b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106134c5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106134f1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061350f57662386f26fc10000830492506010015b6305f5e1008310613527576305f5e100830492506008015b612710831061353b57612710830492506004015b6064831061354d576064830492506002015b600a8310610d655760010192915050565b6000600161356b846114ca565b6135759190613f60565b6000838152600760205260409020549091508082146135c8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061360d90600190613f60565b6000838152600960205260408120546008805493945090928490811061363557613635613d75565b90600052602060002001549050806008838154811061365657613656613d75565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061368e5761368e613ffb565b6001900381819060005260206000200160009055905550505050565b60006136b5836114ca565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137445760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610eca565b6000818152600260205260409020546001600160a01b0316156137a95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610eca565b6137b7600083836001612e6c565b6000818152600260205260409020546001600160a01b03161561381c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610eca565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461122a57600080fd5b6000602082840312156138df57600080fd5b81356131cd8161389f565b80356001600160a01b0381168114611c2057600080fd5b6000806040838503121561391457600080fd5b61391d836138ea565b915060208301356bffffffffffffffffffffffff8116811461393e57600080fd5b809150509250929050565b60005b8381101561396457818101518382015260200161394c565b50506000910152565b60008151808452613985816020860160208601613949565b601f01601f19169290920160200192915050565b6020815260006131cd602083018461396d565b6000602082840312156139be57600080fd5b5035919050565b600080604083850312156139d857600080fd5b6139e1836138ea565b946020939093013593505050565b600060208284031215613a0157600080fd5b6131cd826138ea565b600080600060608486031215613a1f57600080fd5b613a28846138ea565b9250613a36602085016138ea565b9150604084013590509250925092565b60008060208385031215613a5957600080fd5b823567ffffffffffffffff80821115613a7157600080fd5b818501915085601f830112613a8557600080fd5b813581811115613a9457600080fd5b8660208260051b8501011115613aa957600080fd5b60209290920196919550909350505050565b60008060408385031215613ace57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613b2757613b27613add565b604051601f8501601f19908116603f01168101908282118183101715613b4f57613b4f613add565b81604052809350858152868686011115613b6857600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613b9357600080fd5b6131cd83833560208501613b0c565b600060208284031215613bb457600080fd5b813567ffffffffffffffff811115613bcb57600080fd5b61282b84828501613b82565b80358015158114611c2057600080fd5b600060208284031215613bf957600080fd5b6131cd82613bd7565b60008060408385031215613c1557600080fd5b82359150602083013567ffffffffffffffff811115613c3357600080fd5b613c3f85828601613b82565b9150509250929050565b60008060408385031215613c5c57600080fd5b613c65836138ea565b9150613c7360208401613bd7565b90509250929050565b60008060008060808587031215613c9257600080fd5b613c9b856138ea565b9350613ca9602086016138ea565b925060408501359150606085013567ffffffffffffffff811115613ccc57600080fd5b8501601f81018713613cdd57600080fd5b613cec87823560208401613b0c565b91505092959194509250565b60008060408385031215613d0b57600080fd5b613d14836138ea565b9150613c73602084016138ea565b600181811c90821680613d3657607f821691505b602082108103613d6f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006000198203613de657613de6613da4565b5060010190565b8082028115828204841417610d6557610d65613da4565b600082613e3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f821115610f6b57600081815260208120601f850160051c81016020861015613e665750805b601f850160051c820191505b81811015613e8557828155600101613e72565b505050505050565b815167ffffffffffffffff811115613ea757613ea7613add565b613ebb81613eb58454613d22565b84613e3f565b602080601f831160018114613ef05760008415613ed85750858301515b600019600386901b1c1916600185901b178555613e85565b600085815260208120601f198616915b82811015613f1f57888601518255948401946001909101908401613f00565b5085821015613f3d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610d6557610d65613da4565b81810381811115610d6557610d65613da4565b60008351613f85818460208801613949565b835190830190613f99818360208801613949565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613fd4608083018461396d565b9695505050505050565b600060208284031215613ff057600080fd5b81516131cd8161389f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220f92d009a574430b52ea02b2a193cd24b594c6c1eb239cfe159291fcde0040b5364736f6c6343000812003300000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000014d000000000000000000000000000000000000000000000000000000000000014d00000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000e54ca855e17d2e2a19dae30eb17208e96c090dc700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000e414c50486920466f756e646572730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005414c5048690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d56514b4b523451705a387a6e555244664b446875694e7731596176765a735a72703976446f787a39533159642f00000000000000000000

Deployed Bytecode

0x6080604052600436106103c35760003560e01c80637330daac116101f2578063c61997711161010d578063e10e4ea0116100a0578063f291e72c1161006f578063f291e72c14610cf2578063f2fde38b14610d12578063f6aacfb114610d32578063f8fbf35614610d5257600080fd5b8063e10e4ea014610c3c578063e4cc17b514610c5c578063e985e9c514610c7c578063ee8f6cf014610cc557600080fd5b8063d031381e116100dc578063d031381e14610bc7578063d13c6e6814610be7578063d547cfb714610c07578063dc001f3314610c1c57600080fd5b8063c619977114610b53578063c87b56dd14610b80578063ca1b2b2f14610ba0578063cb82b4be14610bbf57600080fd5b8063900ae7ac11610185578063a22cb46511610154578063a22cb46514610abf578063a27798c914610adf578063b19960e614610aff578063b88d4fde14610b3357600080fd5b8063900ae7ac14610a3457806391ede7fb14610a6a57806395d89b4114610a8a578063a19a5b0f14610a9f57600080fd5b80637fb3a9a2116101c15780637fb3a9a2146109a2578063891fd0f9146109c25780638d859f3e146109e25780638da5cb5b14610a1657600080fd5b80637330daac146108c4578063733fda971461092557806375509228146109525780637ad1de541461097257600080fd5b80633ccfd60b116102e25780636352211e116102755780636adfd553116102445780636adfd553146108425780636ba702971461086f57806370a082311461088f578063715018a6146108af57600080fd5b80636352211e1461079e57806363b1ee55146107be5780636665d607146107f25780636a3fd6a91461082257600080fd5b806346694b7d116102b157806346694b7d1461070e57806349911d351461073e5780634f6ccce71461075e57806355f804b31461077e57600080fd5b80633ccfd60b146106835780634194ff521461069857806342842e0e146106b8578063438a67e7146106d857600080fd5b806323b872dd1161035a5780632aaa6933116103295780632aaa6933146105e85780632f745c591461061557806332cb6b0c146106355780633883643f1461066957600080fd5b806323b872dd14610526578063283749e01461054657806329f7706b146105665780632a55205a146105a957600080fd5b8063095ea7b311610396578063095ea7b314610479578063107ffcd314610499578063136f3cfc146104dd57806318160ddd1461051157600080fd5b806301ffc9a7146103c857806304634d8d146103fd57806306fdde031461041f578063081812fc14610441575b600080fd5b3480156103d457600080fd5b506103e86103e33660046138cd565b610d5a565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061041d610418366004613901565b610d6b565b005b34801561042b57600080fd5b50610434610d81565b6040516103f49190613999565b34801561044d57600080fd5b5061046161045c3660046139ac565b610e13565b6040516001600160a01b0390911681526020016103f4565b34801561048557600080fd5b5061041d6104943660046139c5565b610e3a565b3480156104a557600080fd5b506104cf6104b43660046139ef565b6001600160a01b031660009081526012602052604090205490565b6040519081526020016103f4565b3480156104e957600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000014d81565b34801561051d57600080fd5b506008546104cf565b34801561053257600080fd5b5061041d610541366004613a0a565b610f70565b34801561055257600080fd5b5061041d610561366004613a46565b610ff7565b34801561057257600080fd5b506013546040805160ff808416151582526101008404811615156020830152620100009093049092161515908201526060016103f4565b3480156105b557600080fd5b506105c96105c4366004613abb565b611071565b604080516001600160a01b0390931683526020830191909152016103f4565b3480156105f457600080fd5b506104cf6106033660046139ef565b60106020526000908152604090205481565b34801561062157600080fd5b506104cf6106303660046139c5565b61114e565b34801561064157600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000014d81565b34801561067557600080fd5b506013546103e89060ff1681565b34801561068f57600080fd5b5061041d6111f6565b3480156106a457600080fd5b5061041d6106b3366004613a46565b61122d565b3480156106c457600080fd5b5061041d6106d3366004613a0a565b6112a7565b3480156106e457600080fd5b506104cf6106f33660046139ef565b6001600160a01b031660009081526010602052604090205490565b34801561071a57600080fd5b506103e86107293660046139ac565b60166020526000908152604090205460ff1681565b34801561074a57600080fd5b5061041d610759366004613a46565b6112c2565b34801561076a57600080fd5b506104cf6107793660046139ac565b61133c565b34801561078a57600080fd5b5061041d610799366004613ba2565b6113e0565b3480156107aa57600080fd5b506104616107b93660046139ac565b6113f4565b3480156107ca57600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000181565b3480156107fe57600080fd5b506103e861080d3660046139ef565b60156020526000908152604090205460ff1681565b34801561082e57600080fd5b5061041d61083d366004613be7565b611459565b34801561084e57600080fd5b506104cf61085d3660046139ac565b60176020526000908152604090205481565b34801561087b57600080fd5b5061041d61088a3660046139c5565b6114a6565b34801561089b57600080fd5b506104cf6108aa3660046139ef565b6114ca565b3480156108bb57600080fd5b5061041d611564565b3480156108d057600080fd5b5061090e6108df3660046139ef565b6001600160a01b031660009081526014602090815260408083205460159092529091205460ff91821692911690565b6040805192151583529015156020830152016103f4565b34801561093157600080fd5b506104cf6109403660046139ef565b60126020526000908152604090205481565b34801561095e57600080fd5b506104cf61096d3660046139ac565b611578565b34801561097e57600080fd5b506103e861098d3660046139ef565b60146020526000908152604090205460ff1681565b3480156109ae57600080fd5b5061041d6109bd366004613c02565b61164c565b3480156109ce57600080fd5b5061041d6109dd3660046139ef565b61165e565b3480156109ee57600080fd5b506104cf7f00000000000000000000000000000000000000000000000001bc16d674ec800081565b348015610a2257600080fd5b50600b546001600160a01b0316610461565b348015610a4057600080fd5b506104cf610a4f3660046139ef565b6001600160a01b031660009081526011602052604090205490565b348015610a7657600080fd5b5061041d610a85366004613be7565b6116e6565b348015610a9657600080fd5b5061043461175b565b348015610aab57600080fd5b506013546103e89062010000900460ff1681565b348015610acb57600080fd5b5061041d610ada366004613c49565b61176a565b348015610aeb57600080fd5b5061041d610afa366004613be7565b611775565b348015610b0b57600080fd5b506104cf7f000000000000000000000000000000000000000000000000000000000000000a81565b348015610b3f57600080fd5b5061041d610b4e366004613c7c565b6117e9565b348015610b5f57600080fd5b506104cf610b6e3660046139ef565b60116020526000908152604090205481565b348015610b8c57600080fd5b50610434610b9b3660046139ac565b611877565b348015610bac57600080fd5b506013546103e890610100900460ff1681565b61041d611882565b348015610bd357600080fd5b5061041d610be2366004613a46565b611aff565b348015610bf357600080fd5b506104cf610c023660046139ac565b611b79565b348015610c1357600080fd5b50610434611c25565b348015610c2857600080fd5b5061041d610c373660046139ac565b611cb3565b348015610c4857600080fd5b5061041d610c573660046139ac565b611e2d565b348015610c6857600080fd5b506104cf610c773660046139ac565b611fd3565b348015610c8857600080fd5b506103e8610c97366004613cf8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cd157600080fd5b506104cf610ce03660046139ac565b60186020526000908152604090205481565b348015610cfe57600080fd5b506104cf610d0d3660046139ac565b61205f565b348015610d1e57600080fd5b5061041d610d2d3660046139ef565b612139565b348015610d3e57600080fd5b506103e8610d4d3660046139ac565b6121c6565b61041d612240565b6000610d65826124ef565b92915050565b610d73612545565b610d7d828261259f565b5050565b606060008054610d9090613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbc90613d22565b8015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b5050505050905090565b6000610e1e826126ca565b506000908152600460205260409020546001600160a01b031690565b6000610e45826113f4565b9050806001600160a01b0316836001600160a01b031603610ed35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610eef5750610eef8133610c97565b610f615760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610eca565b610f6b838361272e565b505050565b610f7a33826127b4565b610fec5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610eca565b610f6b838383612833565b610fff612545565b60005b81811015610f6b5760016015600085858581811061102257611022613d75565b905060200201602081019061103791906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061106981613dd3565b915050611002565b6000828152600d602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291611112575060408051808201909152600c546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090611136906bffffffffffffffffffffffff1687613ded565b6111409190613e04565b915196919550909350505050565b6000611159836114ca565b82106111cd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610eca565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6111fe612545565b60405133904780156108fc02916000818181858888f1935050505015801561122a573d6000803e3d6000fd5b50565b611235612545565b60005b81811015610f6b5760016014600085858581811061125857611258613d75565b905060200201602081019061126d91906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061129f81613dd3565b915050611238565b610f6b838383604051806020016040528060008152506117e9565b6112ca612545565b60005b81811015610f6b576000601560008585858181106112ed576112ed613d75565b905060200201602081019061130291906139ef565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061133481613dd3565b9150506112cd565b600061134760085490565b82106113bb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610eca565b600882815481106113ce576113ce613d75565b90600052602060002001549050919050565b6113e8612545565b600e610d7d8282613e8d565b6000818152600260205260408120546001600160a01b031680610d655760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610eca565b611461612545565b6013805460ff191682151590811790915560405160ff9091161515907f0f368445c54a753efd5f16081f90c487f1233c064333cb9cdbe9a53fe149267890600090a250565b6114ae612545565b6001600160a01b03909116600090815260126020526040902055565b60006001600160a01b0382166115485760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610eca565b506001600160a01b031660009081526003602052604090205490565b61156c612545565b6115766000612a81565b565b6000818152600260205260408120546001600160a01b03166115dc5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526017602052604081205490036116395760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20686173206e6f20696e746572616374696f6e20686973746f72796044820152606401610eca565b5060009081526017602052604090205490565b611654612545565b610d7d8282612aeb565b611666612545565b7f000000000000000000000000000000000000000000000000000000000000014d611690600f5490565b106116dd5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b61122a81612b8d565b6116ee612545565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100008315158102919091179182905560405160ff91909204161515907f2a8ca2da7410857491e914890cf949dfe3582228fbbc4d2812f783d97edd91d590600090a250565b606060018054610d9090613d22565b610d7d338383612bc4565b61177d612545565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008315158102919091179182905560405160ff91909204161515907fb70e67f331ca091988822f36be2b757e32446bdf37956da31c8b7ffcf208e6da90600090a250565b6117f333836127b4565b6118655760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610eca565b61187184848484612c92565b50505050565b6060610d6582612d1b565b60135460ff166118d45760405162461bcd60e51b815260206004820152601e60248201527f576176652031206973206e6f742063757272656e746c792061637469766500006044820152606401610eca565b3360009081526014602052604090205460ff166119335760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f6e2074686520616c6c6f77206c6973740000006044820152606401610eca565b7f000000000000000000000000000000000000000000000000000000000000014d61195d600f5490565b106119aa5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b3360009081526012602090815260408083205460119092528220549091829003611a8a577f00000000000000000000000000000000000000000000000000000000000000018110611a635760405162461bcd60e51b815260206004820152602960248201527f416c7265616479206d696e746564206d6178696d756d2070726f6d6f74696f6e60448201527f616c20746f6b656e7300000000000000000000000000000000000000000000006064820152608401610eca565b611a6e816001613f4d565b33600081815260116020526040902091909155610d7d90612b8d565b818110611a635760405162461bcd60e51b815260206004820152602960248201527f416c7265616479206d696e746564206d6178696d756d2070726f6d6f74696f6e60448201527f616c20746f6b656e7300000000000000000000000000000000000000000000006064820152608401610eca565b611b07612545565b60005b81811015610f6b57600060146000858585818110611b2a57611b2a613d75565b9050602002016020810190611b3f91906139ef565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611b7181613dd3565b915050611b0a565b6000818152600260205260408120546001600160a01b0316611bdd5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b611be6826121c6565b15611c0d57611bf48261205f565b600083815260186020526040902054610d659190613f4d565b5060009081526018602052604090205490565b919050565b600e8054611c3290613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5e90613d22565b8015611cab5780601f10611c8057610100808354040283529160200191611cab565b820191906000526020600020905b815481529060010190602001808311611c8e57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316611d175760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b33611d21826113f4565b6001600160a01b031614611d775760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206e6f74206f776e6564206279207468652063616c6c65720000006044820152606401610eca565b60008181526016602052604090205460ff1615611dd65760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c7265616479206c6f636b65640000000000000000000000006044820152606401610eca565b6000818152601660209081526040808320805460ff191660011790556017909152808220429081905590519091839133917fd009a987036486c17def45b3df23da11dfc8500b2f845868bfa1f2619ed6eba591a450565b6000818152600260205260409020546001600160a01b0316611e915760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b33611e9b826113f4565b6001600160a01b031614611ef15760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206e6f74206f776e6564206279207468652063616c6c65720000006044820152606401610eca565b60008181526016602052604090205460ff16611f4f5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e20616c726561647920756e6c6f636b6564000000000000000000006044820152606401610eca565b6000818152601660205260409020805460ff19169055611f6e8161205f565b60008281526018602052604081208054909190611f8c908490613f4d565b9091555050600081815260176020526040808220429081905590519091839133917f586d7cb4f94af4d409f17132e3a3787bfbcaf57270f42eb6f8853b29752dddae91a450565b6000818152600260205260408120546001600160a01b03166120375760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526016602052604090205460ff161561205757610d658261205f565b506000919050565b6000818152600260205260408120546001600160a01b03166120c35760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b60008281526017602052604081205490036121205760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20686173206e6f20696e746572616374696f6e20686973746f72796044820152606401610eca565b600082815260176020526040902054610d659042613f60565b612141612545565b6001600160a01b0381166121bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610eca565b61122a81612a81565b6000818152600260205260408120546001600160a01b031661222a5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f74206d696e746564000000000000000000000000000000006044820152606401610eca565b5060009081526016602052604090205460ff1690565b336000908152601060205260409020547f000000000000000000000000000000000000000000000000000000000000000a116122be5760405162461bcd60e51b815260206004820152601660248201527f416c7265616479206d696e746564206d6178696d756d000000000000000000006044820152606401610eca565b7f000000000000000000000000000000000000000000000000000000000000014d6122e8600f5490565b106123355760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152606401610eca565b3360009081526015602052604090205460ff161561247157601354610100900460ff166123a45760405162461bcd60e51b815260206004820152601e60248201527f576176652032206973206e6f742063757272656e746c792061637469766500006044820152606401610eca565b7f00000000000000000000000000000000000000000000000001bc16d674ec800034101561243a5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f756768204554482073656e743b20636865636b20707269636560448201527f21000000000000000000000000000000000000000000000000000000000000006064820152608401610eca565b33600090815260106020526040902054612455906001613f4d565b3360008181526010602052604090209190915561157690612b8d565b60135462010000900460ff166123a45760405162461bcd60e51b815260206004820152602360248201527f5075626c6963206d696e74696e672063757272656e746c79206e6f742061637460448201527f69766500000000000000000000000000000000000000000000000000000000006064820152608401610eca565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610d655750610d6582612e16565b600b546001600160a01b031633146115765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b6127106bffffffffffffffffffffffff821611156126255760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610eca565b6001600160a01b03821661267b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610eca565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600c55565b6000818152600260205260409020546001600160a01b031661122a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610eca565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061277b826113f4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806127c0836113f4565b9050806001600160a01b0316846001600160a01b0316148061280757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061282b5750836001600160a01b031661282084610e13565b6001600160a01b0316145b949350505050565b826001600160a01b0316612846826113f4565b6001600160a01b0316146128c25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610eca565b6001600160a01b03821661293d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610eca565b61294a8383836001612e6c565b826001600160a01b031661295d826113f4565b6001600160a01b0316146129d95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610eca565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600260205260409020546001600160a01b0316612b755760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610eca565b6000828152600a60205260409020610f6b8282613e8d565b6000612b98600f5490565b9050612ba8600f80546001019055565b612bb28282612f03565b610d7d81612bbf83612f1d565b612aeb565b816001600160a01b0316836001600160a01b031603612c255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610eca565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c9d848484612833565b612ca984848484612fbd565b6118715760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b6060612d26826126ca565b6000828152600a602052604081208054612d3f90613d22565b80601f0160208091040260200160405190810160405280929190818152602001828054612d6b90613d22565b8015612db85780601f10612d8d57610100808354040283529160200191612db8565b820191906000526020600020905b815481529060010190602001808311612d9b57829003601f168201915b505050505090506000612dc961315e565b90508051600003612ddb575092915050565b815115612e0d578082604051602001612df5929190613f73565b60405160208183030381529060405292505050919050565b61282b8461316d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610d655750610d65826131d4565b6001600160a01b03841615612ef757612e84826121c6565b15612ef75760405162461bcd60e51b815260206004820152602360248201527f546f6b656e206973206c6f636b65642c20756e6c6f636b20746f207472616e7360448201527f66657200000000000000000000000000000000000000000000000000000000006064820152608401610eca565b611871848484846132b7565b610d7d8282604051806020016040528060008152506133f3565b60606000612f2a8361347c565b600101905060008167ffffffffffffffff811115612f4a57612f4a613add565b6040519080825280601f01601f191660200182016040528015612f74576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612f7e57509392505050565b60006001600160a01b0384163b15613153576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061301a903390899088908890600401613fa2565b6020604051808303816000875af1925050508015613055575060408051601f3d908101601f1916820190925261305291810190613fde565b60015b613108573d808015613083576040519150601f19603f3d011682016040523d82523d6000602084013e613088565b606091505b5080516000036131005760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061282b565b506001949350505050565b6060600e8054610d9090613d22565b6060613178826126ca565b600061318261315e565b905060008151116131a257604051806020016040528060008152506131cd565b806131ac84612f1d565b6040516020016131bd929190613f73565b6040516020818303038152906040525b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061326757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d6557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610d65565b600181111561332e5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610eca565b816001600160a01b03851661338a5761338581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133ad565b836001600160a01b0316856001600160a01b0316146133ad576133ad858261355e565b6001600160a01b0384166133c9576133c4816135fb565b6133ec565b846001600160a01b0316846001600160a01b0316146133ec576133ec84826136aa565b5050505050565b6133fd83836136ee565b61340a6000848484612fbd565b610f6b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610eca565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106134c5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106134f1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061350f57662386f26fc10000830492506010015b6305f5e1008310613527576305f5e100830492506008015b612710831061353b57612710830492506004015b6064831061354d576064830492506002015b600a8310610d655760010192915050565b6000600161356b846114ca565b6135759190613f60565b6000838152600760205260409020549091508082146135c8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061360d90600190613f60565b6000838152600960205260408120546008805493945090928490811061363557613635613d75565b90600052602060002001549050806008838154811061365657613656613d75565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061368e5761368e613ffb565b6001900381819060005260206000200160009055905550505050565b60006136b5836114ca565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137445760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610eca565b6000818152600260205260409020546001600160a01b0316156137a95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610eca565b6137b7600083836001612e6c565b6000818152600260205260409020546001600160a01b03161561381c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610eca565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461122a57600080fd5b6000602082840312156138df57600080fd5b81356131cd8161389f565b80356001600160a01b0381168114611c2057600080fd5b6000806040838503121561391457600080fd5b61391d836138ea565b915060208301356bffffffffffffffffffffffff8116811461393e57600080fd5b809150509250929050565b60005b8381101561396457818101518382015260200161394c565b50506000910152565b60008151808452613985816020860160208601613949565b601f01601f19169290920160200192915050565b6020815260006131cd602083018461396d565b6000602082840312156139be57600080fd5b5035919050565b600080604083850312156139d857600080fd5b6139e1836138ea565b946020939093013593505050565b600060208284031215613a0157600080fd5b6131cd826138ea565b600080600060608486031215613a1f57600080fd5b613a28846138ea565b9250613a36602085016138ea565b9150604084013590509250925092565b60008060208385031215613a5957600080fd5b823567ffffffffffffffff80821115613a7157600080fd5b818501915085601f830112613a8557600080fd5b813581811115613a9457600080fd5b8660208260051b8501011115613aa957600080fd5b60209290920196919550909350505050565b60008060408385031215613ace57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613b2757613b27613add565b604051601f8501601f19908116603f01168101908282118183101715613b4f57613b4f613add565b81604052809350858152868686011115613b6857600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613b9357600080fd5b6131cd83833560208501613b0c565b600060208284031215613bb457600080fd5b813567ffffffffffffffff811115613bcb57600080fd5b61282b84828501613b82565b80358015158114611c2057600080fd5b600060208284031215613bf957600080fd5b6131cd82613bd7565b60008060408385031215613c1557600080fd5b82359150602083013567ffffffffffffffff811115613c3357600080fd5b613c3f85828601613b82565b9150509250929050565b60008060408385031215613c5c57600080fd5b613c65836138ea565b9150613c7360208401613bd7565b90509250929050565b60008060008060808587031215613c9257600080fd5b613c9b856138ea565b9350613ca9602086016138ea565b925060408501359150606085013567ffffffffffffffff811115613ccc57600080fd5b8501601f81018713613cdd57600080fd5b613cec87823560208401613b0c565b91505092959194509250565b60008060408385031215613d0b57600080fd5b613d14836138ea565b9150613c73602084016138ea565b600181811c90821680613d3657607f821691505b602082108103613d6f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006000198203613de657613de6613da4565b5060010190565b8082028115828204841417610d6557610d65613da4565b600082613e3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f821115610f6b57600081815260208120601f850160051c81016020861015613e665750805b601f850160051c820191505b81811015613e8557828155600101613e72565b505050505050565b815167ffffffffffffffff811115613ea757613ea7613add565b613ebb81613eb58454613d22565b84613e3f565b602080601f831160018114613ef05760008415613ed85750858301515b600019600386901b1c1916600185901b178555613e85565b600085815260208120601f198616915b82811015613f1f57888601518255948401946001909101908401613f00565b5085821015613f3d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610d6557610d65613da4565b81810381811115610d6557610d65613da4565b60008351613f85818460208801613949565b835190830190613f99818360208801613949565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613fd4608083018461396d565b9695505050505050565b600060208284031215613ff057600080fd5b81516131cd8161389f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220f92d009a574430b52ea02b2a193cd24b594c6c1eb239cfe159291fcde0040b5364736f6c63430008120033

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

00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000014d000000000000000000000000000000000000000000000000000000000000014d00000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000e54ca855e17d2e2a19dae30eb17208e96c090dc700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000e414c50486920466f756e646572730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005414c5048690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d56514b4b523451705a387a6e555244664b446875694e7731596176765a735a72703976446f787a39533159642f00000000000000000000

-----Decoded View---------------
Arg [0] : _uName (string): ALPHi Founders
Arg [1] : _uSymbol (string): ALPHi
Arg [2] : _maxSupply (uint256): 333
Arg [3] : _maxSale (uint256): 333
Arg [4] : _price (uint256): 125000000000000000
Arg [5] : _maxPerWallet (uint256): 10
Arg [6] : _promoMint (uint256): 1
Arg [7] : _initialBaseURI (string): ipfs://QmVQKKR4QpZ8znURDfKDhuiNw1YavvZsZrp9vDoxz9S1Yd/
Arg [8] : _royaltyRecipient (address): 0xe54cA855e17d2E2A19DaE30Eb17208E96C090Dc7
Arg [9] : _royaltyBasisPoints (uint96): 500

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 000000000000000000000000000000000000000000000000000000000000014d
Arg [3] : 000000000000000000000000000000000000000000000000000000000000014d
Arg [4] : 00000000000000000000000000000000000000000000000001bc16d674ec8000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [8] : 000000000000000000000000e54ca855e17d2e2a19dae30eb17208e96c090dc7
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [11] : 414c50486920466f756e64657273000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 414c504869000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [15] : 697066733a2f2f516d56514b4b523451705a387a6e555244664b446875694e77
Arg [16] : 31596176765a735a72703976446f787a39533159642f00000000000000000000


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.