ETH Price: $3,313.06 (-3.29%)

Token

Nametag (NT)
 

Overview

Max Total Supply

43,753 NT

Holders

37,210

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NT
0xcabbc2c734b70562c9eb5cff1e4b3b9da257763e
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The username of the future. Nametag is your universal username, secure on the blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NameTag

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : NameTag.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "./StringUpper.sol";
import "./INameTagV1.sol";
import "./IExternalAllowedContract.sol";


contract NameTag is ERC721Enumerable, Ownable, StringUpper, ReentrancyGuard {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(address => bool) allowList;
    mapping(address => uint256) public allowListPurchasedAmount;
    uint256 public allowListPrice;
    uint256 public allowListLimit;

    event AddedToAllowList(address indexed _address);
    event RemovedFromAllowList(address indexed _address, uint256 _purchasedAmount);


    EnumerableSet.AddressSet private _allowContractList;

    struct AllowContractParams {
        uint256 price;
        uint8 limit;
        uint256 minBalance;
        uint256 purchasedAmount;
        mapping(address => uint8) purchasedAmountByAddress;
    }

    mapping(address => AllowContractParams[]) public allowContractListParams;

    event AddedToAllowContractList(address indexed _address, uint256 indexed _price, uint8 _limit, uint256 _minBalance);
    event RemovedFromAllowContractList(address indexed _address, uint256 _purchasedAmount);
    event PresaleContractPurchase(address indexed _contract, address indexed _address, uint256 _purchasedAmount);

    uint16 public addToAllowListLimit;
    uint16 public removeFromAllowListLimit;


    mapping (string => bool) denyList;

    event AddedDenyList(string _word);
    event RemovedDenyList(string _word);


    bool public presaleActive;
    uint256 public presaleDuration;
    uint256 public presaleStartTime;

    event PresaleStart(uint256 indexed _presaleDuration, uint256 indexed _presaleStartTime);
    event PresalePaused(uint256 indexed _timeElapsed, uint256 indexed _totalSupply);

    bool public saleActive;
    uint8 public saleTransactionLimit;
    uint256 public salePrice;
    uint256 public saleSupply;
    uint256 public saleLimit;

    event SaleStart(uint256 indexed _saleStartTime, uint256 indexed _salePrice, uint8 _saleTransactionLimit);
    event SalePaused(uint256 indexed _salePauseTime, uint256 indexed _totalSupply);
    event SaleLimitUpdated(uint256 indexed _limitStartTime, uint256 indexed _saleLimit);

    modifier whenPresaleActive() {
        require(presaleActive, "NT: Presale is not active");
        _;
    }

    modifier whenPresalePaused() {
        require(!presaleActive, "NT: Presale is not paused");
        _;
    }

    modifier whenSaleActive() {
        require(saleActive, "NT: Sale is not active");
        _;
    }

    modifier whenSalePaused() {
        require(!saleActive, "NT: Sale is not paused");
        _;
    }

    modifier whenAnySaleActive() {
        require(presaleActive || saleActive, "NT: Any sale is terminated");
        _;
    }


    mapping(uint256 => string) tokenNames;
    mapping(string => uint256) names;

    event NameChanged(uint256 indexed tokenId, string from, string to);

    string private _baseTokenURI;

    INameTagV1 immutable _token;
    bool public validateNameTagV1;

    constructor(
        string memory name_, string memory symbol_, string memory baseURI_,
        uint256 allowListPrice_, uint256 allowListLimit_,
        uint16 addToAllowListLimit_, uint16 removeFromAllowListLimit_,
        INameTagV1 token_, bool validateNameTagV1_
    ) ERC721(name_, symbol_)  {
        _baseTokenURI = baseURI_;
        allowListPrice = allowListPrice_;
        allowListLimit = allowListLimit_;

        addToAllowListLimit = addToAllowListLimit_;
        removeFromAllowListLimit = removeFromAllowListLimit_;

        _token = token_;
        validateNameTagV1 = validateNameTagV1_;
    }

    function token() external view returns(address) {
        return address(_token);
    }

    function setValidateNameTagV1(bool validateNameTagV1_) external onlyOwner {
        validateNameTagV1 = validateNameTagV1_;
    }

    function setBaseURI(string memory baseURI_) external onlyOwner {
        _baseTokenURI = baseURI_;
    }

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

    function setAddToAllowListLimit(uint16 addToAllowListLimit_) external onlyOwner {
        addToAllowListLimit = addToAllowListLimit_;
    }

    function setRemoveFromAllowListLimit(uint16 removeFromAllowListLimit_) external onlyOwner {
        removeFromAllowListLimit = removeFromAllowListLimit_;
    }

    function setAllowListLimit(uint256 limit_) external onlyOwner {
        allowListLimit = limit_;
    }

    function setAllowListPrice(uint256 price_) external onlyOwner {
        allowListPrice = price_;
    }

    function addToAllowList(address[] memory addresses) external onlyOwner {
        require(addresses.length <= addToAllowListLimit, "NT: List of addresses is too large");
        for(uint index = 0; index < addresses.length; index += 1) {
            if (allowList[addresses[index]]) {
                emit RemovedFromAllowList(addresses[index], allowListPurchasedAmount[addresses[index]]);
                allowListPurchasedAmount[addresses[index]] = 0;
            } else {
                allowList[addresses[index]] = true;
            }
            emit AddedToAllowList(addresses[index]);
        }
    }

    function removeFromAllowList(address[] memory addresses) external onlyOwner {
        require(addresses.length <= removeFromAllowListLimit, "NT: List of addresses is too large");
        for(uint index = 0; index < addresses.length; index += 1) {
            if (allowList[addresses[index]]) {
                allowList[addresses[index]] = false;
                emit RemovedFromAllowList(addresses[index], allowListPurchasedAmount[addresses[index]]);
                delete allowListPurchasedAmount[addresses[index]];
            }
        }
    }

    function inAllowList(address value) public view returns (bool) {
        return allowList[value];
    }

    function checkContract(address _contract) external view returns (bool) {
        return IExternalAllowedContract(_contract).balanceOf(owner()) >= 0;
    }

    function addToAllowContractList(
        address[] memory addresses, uint256[] memory prices, uint8[] memory limits, uint256[] memory balances
    ) external onlyOwner {
        uint256 length = addresses.length;
        require(length <= addToAllowListLimit, "NT: List of addresses is too large");
        require(length == prices.length && length == limits.length && length == balances.length, "NT: All lists should be the same length");
        for(uint index = 0; index < length; index += 1) {
            require(IExternalAllowedContract(addresses[index]).balanceOf(msg.sender) >= 0, "NT: Cannot call balanceOf method on the external contract");

            _allowContractList.add(addresses[index]);

            AllowContractParams storage params = allowContractListParams[addresses[index]].push();
            params.price = prices[index];
            params.limit = limits[index];
            params.minBalance = balances[index];

            emit AddedToAllowContractList(addresses[index], prices[index], limits[index], balances[index]);
        }
    }

    function removeFromAllowContractList(address[] memory addresses) external onlyOwner {
        require(addresses.length <= removeFromAllowListLimit, "NT: List of addresses is too large");
        for(uint index = 0; index < addresses.length; index += 1) {
            if (_allowContractList.remove(addresses[index])) {
                uint version = _contractParamsVersion(addresses[index]) - 1;
                emit RemovedFromAllowContractList(addresses[index], allowContractListParams[addresses[index]][version].purchasedAmount);
            }
        }
    }

    function inAllowContractList(address value) public view returns (bool) {
        return _allowContractList.contains(value);
    }

    function allowContractListLength() external view returns (uint256) {
        return _allowContractList.length();
    }

    function allowContractAddressByIndex(uint256 index) external view returns (address) {
        require(index < _allowContractList.length(), "NT: Index out of bounds");
        return _allowContractList.at(index);
    }

    function _contractParamsVersion(address _contract) internal view returns(uint) {
        return allowContractListParams[_contract].length;
    }

    function contractParamsVersion(address _contract) external view returns(uint) {
        require(inAllowContractList(_contract), "NT: Contract address is not in the allowed list");
        return _contractParamsVersion(_contract);
    }

    function allowContractParams(address _contract) external view returns (uint256, uint8, uint256, uint256) {
        require(inAllowContractList(_contract), "NT: Contract address is not in the allowed list");

        uint version = _contractParamsVersion(_contract) - 1;
        return (
            allowContractListParams[_contract][version].price,
            allowContractListParams[_contract][version].limit,
            allowContractListParams[_contract][version].minBalance,
            allowContractListParams[_contract][version].purchasedAmount
        );
    }

    function contractPurchasedAmountByAddress(address _contract, address owner) external view returns(uint8) {
        require(inAllowContractList(_contract), "NT: Contract address is not in the allowed list");
        return allowContractListParams[_contract][_contractParamsVersion(_contract) - 1].purchasedAmountByAddress[owner];
    }

    function addDenyList(string[] memory _words) external onlyOwner {
        for(uint index = 0; index < _words.length; index+=1) {
            denyList[upper(_words[index])] = true;
            emit AddedDenyList(_words[index]);
        }
    }

    function removeDenyList(string[] memory _words) external onlyOwner {
        for(uint index = 0; index < _words.length; index+=1) {
            denyList[upper(_words[index])] = false;
            emit RemovedDenyList(_words[index]);
        }
    }

    function inDenyList(string memory _word) external view returns (bool) {
        return bool(denyList[upper(_word)]);
    }

    function startPresale(uint256 presaleDuration_) external onlyOwner whenPresalePaused {
        presaleStartTime = block.timestamp;
        presaleDuration = presaleDuration_;
        presaleActive = true;
        emit PresaleStart(presaleDuration, presaleStartTime);
    }

    function pausePresale() external onlyOwner whenPresaleActive {
        presaleActive = false;
        emit PresalePaused(_elapsedPresaleTime(), totalSupply());
    }

    function _setSaleLimit(uint256 saleLimit_) internal {
        saleSupply = 0;
        saleLimit = saleLimit_;
        emit SaleLimitUpdated(block.timestamp, saleLimit);
    }

    function setSaleLimit(uint256 saleLimit_)  external onlyOwner  {
        _setSaleLimit(saleLimit_);
    }

    function startPublicSale(
        uint256 salePrice_, uint8 saleTransactionLimit_, uint256 saleLimit_
    ) external onlyOwner whenSalePaused {
        salePrice = salePrice_;
        saleTransactionLimit = saleTransactionLimit_;

        _setSaleLimit(saleLimit_);

        saleActive = true;
        emit SaleStart(block.timestamp, salePrice, saleTransactionLimit);
    }

    function pausePublicSale() external onlyOwner whenSaleActive {
        saleActive = false;
        emit SalePaused(totalSupply(), block.timestamp);
    }

    function _elapsedPresaleTime() internal view returns (uint256) {
        return presaleStartTime > 0 ? block.timestamp - presaleStartTime : 0;
    }

    function _remainingPresaleTime() internal view returns (uint256) {
        if (presaleStartTime == 0 || _elapsedPresaleTime() >= presaleDuration) {
            return 0;
        }

        return (presaleStartTime + presaleDuration) - block.timestamp;
    }

    function remainingPresaleTime() external view whenPresaleActive returns (uint256) {
        require(presaleStartTime > 0, "NT: Presale hasn't started yet");
        return _remainingPresaleTime();
    }

    function _preValidatePurchase(uint256 tokensAmount) internal view returns(bool) {
        require(msg.sender != address(0));
        require(tokensAmount > 0, "NT: Must mint at least one token");
        if (
            presaleActive && _remainingPresaleTime() > 0 && inAllowList(msg.sender)
            && tokensAmount + allowListPurchasedAmount[msg.sender] <= allowListLimit
        ) {
            require(allowListPrice * tokensAmount <= msg.value, "NT: Presale, insufficient funds");
            return true;
        }

        require(saleActive, "NT: Sale is not active");
        if (saleLimit > 0) {
            // Sale is unlimited if saleLimit == 0
            require(tokensAmount + saleSupply <= saleLimit, "NT: Limited amount of tokens");
        }
        require(tokensAmount <= saleTransactionLimit, "NT: Limited amount of tokens in transaction");
        require(salePrice * tokensAmount <= msg.value, "NT: Insufficient funds");
        return false;
    }

    function _processPurchaseToken(address recipient) internal returns (uint256) {
        uint256 newItemId = totalSupply() + 1;
        _safeMint(recipient, newItemId);
        return newItemId;
    }

    function _buyTokens(string[] memory _names) internal returns (uint256[] memory) {
        uint256[] memory tokens = new uint256[](_names.length);

        for (uint index = 0; index < _names.length; index += 1) {
            tokens[index] = _processPurchaseToken(msg.sender);
            require(_setName(tokens[index], _names[index]), "NT: Name cannot be assigned");
        }

        return tokens;
    }

    function buyTokens(string[] memory _names) external payable whenAnySaleActive nonReentrant returns (uint256[] memory) {
        bool usePresale = _preValidatePurchase(_names.length);

        if (usePresale) {
            allowListPurchasedAmount[msg.sender] += _names.length;
        } else {
            saleSupply += _names.length;
        }

        return _buyTokens(_names);
    }

    function buyTokensByContract(string[] memory _names, address _contract) external payable whenPresaleActive nonReentrant returns (uint256[] memory) {
        require(msg.sender != address(0));
        require(_names.length > 0, "NT: Must mint at least one token");
        require(_remainingPresaleTime() > 0, "NT: Presale time out");
        require(inAllowContractList(_contract), "NT: Contract address is not in the allowed list");

        uint version = _contractParamsVersion(_contract) - 1;
        require(
            IExternalAllowedContract(_contract).balanceOf(msg.sender) >= allowContractListParams[_contract][version].minBalance,
            "NT: Sender balance on the contract less than min balance"
        );

        uint8 purchasedAmount = allowContractListParams[_contract][version].purchasedAmountByAddress[msg.sender];
        require(_names.length + purchasedAmount <= allowContractListParams[_contract][version].limit, "NT: Presale contract limit exceeded");
        require(allowContractListParams[_contract][version].price * _names.length <= msg.value, "NT: Presale, insufficient funds");

        allowContractListParams[_contract][version].purchasedAmountByAddress[msg.sender] += uint8(_names.length);
        allowContractListParams[_contract][version].purchasedAmount += _names.length;

        emit PresaleContractPurchase(_contract, msg.sender, _names.length);

        return _buyTokens(_names);
    }

    function withdraw(address payable wallet, uint256 amount) external onlyOwner {
        require(amount <= address(this).balance);
        wallet.transfer(amount);
    }

    function validate(string memory name) internal pure returns (bool, string memory) {
        bytes memory b = bytes(name);
        if (b.length == 0) return (false, '');
        if (b.length > 36) return (false, '');

        bytes memory bUpperName = new bytes(b.length);

        for (uint8 i = 0; i < b.length; i++) {
            bytes1 char = b[i];
            if (
                !(char >= 0x30 && char <= 0x39) && //9-0
                !(char >= 0x41 && char <= 0x5A) && //A-Z
                !(char >= 0x61 && char <= 0x7A) //a-z
            ) {
                return (false, '');
            }
            bUpperName[i] = _upper(char);
        }

        return (true, string(bUpperName));
    }

    function getByName(string memory name) public view virtual returns (uint256) {
        return names[upper(name)];
    }

    function getTokenName(uint256 tokenId) public view virtual returns (string memory) {
        return tokenNames[tokenId];
    }

    function _setName(uint256 tokenId, string memory name_) internal virtual returns(bool){
        bool status;
        string memory upperName;
        (status, upperName) = validate(name_);
        if (status == false || names[upperName] != 0 || denyList[upperName]) {
            return false;
        }
        if (validateNameTagV1) {
            require(_token.getByName(upperName) == 0, "NT: Exist name in version 1");
        }

        string memory oldName = getTokenName(tokenId);
        string memory oldUpperName = upper(oldName);
        names[oldUpperName] = 0;
        tokenNames[tokenId] = name_;
        names[upperName] = tokenId;

        emit NameChanged(tokenId, oldName, name_);
        return true;
    }

    function renounceOwnership() public override onlyOwner {
        revert('NT: Cannot renounce ownership');
    }
}

File 2 of 18 : IExternalAllowedContract.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;


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

File 3 of 18 : INameTagV1.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";


interface INameTagV1 is IERC721Enumerable {
    struct Wave {
        uint256 limit;
        uint256 startTime;
    }

    event NameChanged(uint256 indexed tokenId, string from, string to);

    function currentWaveIndex() external view returns (uint8);
    function currentLimit() external view returns (uint256);
    function currentWave() external view returns (uint256, uint256);
    function waveByIndex(uint8 waveIndex_) external view returns (uint256, uint256);

    function price() external view returns (uint256);
    function tokenAmountBuyLimit() external view returns (uint8);

    function metadataFee() external view returns (uint256);
    function defaultMetadata() external view returns (string memory);
    function defaultNamedMetadata() external view returns (string memory);
    function metadataRole() external view returns (address);

    function changeMetadataRole(address newAddress) external;
    function setMetadataFee(uint256 metadataFee_) external;
    function setDefaultMetadata(string memory metadata_) external;
    function setDefaultNamedMetadata(string memory metadata_) external;
    function setMetadata(uint256 tokenId, string memory _metadata) external;
    function setMetadataList(uint256[] memory _tokens, string[] memory _metadata) external;

    function setTokenAmountBuyLimit(uint8 tokenAmountBuyLimit_) external;
    function setBaseURI(string memory baseURI_) external;

    function setWaveStartTime(uint8 waveIndex_, uint256 startTime_) external;
    function setPrice(uint256 price_) external;
    function withdraw(address payable wallet, uint256 amount) external;

    function addDenyList(string[] memory _words) external;
    function removeDenyList(string[] memory _words) external;

    function tokenURI(uint256 tokenId) external view returns (string memory);
    function getByName(string memory name) external view returns (uint256);
    function getTokenName(uint256 tokenId) external view returns (string memory);

    function buyNamedTokens(string[] memory _names) external payable returns (uint256[] memory);
    function buyTokens() external payable returns (uint256[] memory);
    function buyNamedToken(string memory _name) external payable returns (uint256);
    function buyToken(string memory _name) external payable returns (uint256);

    function setNames(uint256[] memory _tokens, string[] memory _names) external payable returns (bool[] memory);

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

    function owner() external view returns (address);
    function renounceOwnership() external;
    function transferOwnership(address newOwner) external;
}

File 4 of 18 : StringUpper.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

abstract contract StringUpper {
    function _upper(bytes1 _b1) internal pure returns (bytes1) {
        if (_b1 >= 0x61 && _b1 <= 0x7A) {
            return bytes1(uint8(_b1) - 32);
        }

        return _b1;
    }

    function upper(string memory _base) internal pure returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _upper(_baseBytes[i]);
        }
        return string(_baseBytes);
    }
}

File 5 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 7 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 8 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

    /**
     * @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 12 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 13 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 14 of 18 : Context.sol
// SPDX-License-Identifier: MIT

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 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 16 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

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 17 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

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 18 of 18 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"uint256","name":"allowListPrice_","type":"uint256"},{"internalType":"uint256","name":"allowListLimit_","type":"uint256"},{"internalType":"uint16","name":"addToAllowListLimit_","type":"uint16"},{"internalType":"uint16","name":"removeFromAllowListLimit_","type":"uint16"},{"internalType":"contract INameTagV1","name":"token_","type":"address"},{"internalType":"bool","name":"validateNameTagV1_","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_word","type":"string"}],"name":"AddedDenyList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":true,"internalType":"uint256","name":"_price","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_limit","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_minBalance","type":"uint256"}],"name":"AddedToAllowContractList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"AddedToAllowList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"from","type":"string"},{"indexed":false,"internalType":"string","name":"to","type":"string"}],"name":"NameChanged","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":"_contract","type":"address"},{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_purchasedAmount","type":"uint256"}],"name":"PresaleContractPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_timeElapsed","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"PresalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_presaleDuration","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_presaleStartTime","type":"uint256"}],"name":"PresaleStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_word","type":"string"}],"name":"RemovedDenyList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_purchasedAmount","type":"uint256"}],"name":"RemovedFromAllowContractList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_purchasedAmount","type":"uint256"}],"name":"RemovedFromAllowList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_limitStartTime","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_saleLimit","type":"uint256"}],"name":"SaleLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_salePauseTime","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"SalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleStartTime","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_salePrice","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_saleTransactionLimit","type":"uint8"}],"name":"SaleStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string[]","name":"_words","type":"string[]"}],"name":"addDenyList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"},{"internalType":"uint8[]","name":"limits","type":"uint8[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"name":"addToAllowContractList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addToAllowListLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"allowContractAddressByIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowContractListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowContractListParams","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"limit","type":"uint8"},{"internalType":"uint256","name":"minBalance","type":"uint256"},{"internalType":"uint256","name":"purchasedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"allowContractParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListPurchasedAmount","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":[{"internalType":"string[]","name":"_names","type":"string[]"}],"name":"buyTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_names","type":"string[]"},{"internalType":"address","name":"_contract","type":"address"}],"name":"buyTokensByContract","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"checkContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"contractParamsVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"contractPurchasedAmountByAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"getByName","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"inAllowContractList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"inAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_word","type":"string"}],"name":"inDenyList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingPresaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_words","type":"string[]"}],"name":"removeDenyList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromAllowContractList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeFromAllowListLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleTransactionLimit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"addToAllowListLimit_","type":"uint16"}],"name":"setAddToAllowListLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"setAllowListLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setAllowListPrice","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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"removeFromAllowListLimit_","type":"uint16"}],"name":"setRemoveFromAllowListLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleLimit_","type":"uint256"}],"name":"setSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"validateNameTagV1_","type":"bool"}],"name":"setValidateNameTagV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"presaleDuration_","type":"uint256"}],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"salePrice_","type":"uint256"},{"internalType":"uint8","name":"saleTransactionLimit_","type":"uint8"},{"internalType":"uint256","name":"saleLimit_","type":"uint256"}],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"validateNameTagV1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620055d7380380620055d78339810160408190526200003491620002ec565b8851899089906200004d9060009060208501906200014e565b508051620000639060019060208401906200014e565b505050620000806200007a620000f860201b60201c565b620000fc565b6001600b5586516200009a90601e9060208a01906200014e565b50600e95909555600f939093556013805461ffff93841663ffffffff199091161762010000929093169190910291909117905560601b6001600160601b031916608052601f805460ff1916911515919091179055506200042f915050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015c90620003dc565b90600052602060002090601f016020900481019282620001805760008555620001cb565b82601f106200019b57805160ff1916838001178555620001cb565b82800160010185558215620001cb579182015b82811115620001cb578251825591602001919060010190620001ae565b50620001d9929150620001dd565b5090565b5b80821115620001d95760008155600101620001de565b805180151581146200020557600080fd5b919050565b80516001600160a01b03811681146200020557600080fd5b600082601f8301126200023457600080fd5b81516001600160401b038082111562000251576200025162000419565b604051601f8301601f19908116603f011681019082821181831017156200027c576200027c62000419565b816040528381526020925086838588010111156200029957600080fd5b600091505b83821015620002bd57858201830151818301840152908201906200029e565b83821115620002cf5760008385830101525b9695505050505050565b805161ffff811681146200020557600080fd5b60008060008060008060008060006101208a8c0312156200030c57600080fd5b89516001600160401b03808211156200032457600080fd5b620003328d838e0162000222565b9a5060208c01519150808211156200034957600080fd5b620003578d838e0162000222565b995060408c01519150808211156200036e57600080fd5b506200037d8c828d0162000222565b97505060608a0151955060808a015194506200039c60a08b01620002d9565b9350620003ac60c08b01620002d9565b9250620003bc60e08b016200020a565b9150620003cd6101008b01620001f4565b90509295985092959850929598565b600181811c90821680620003f157607f821691505b602082108114156200041357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c6151826200045560003960008181610c500152613bf201526151826000f3fe6080604052600436106103e45760003560e01c80637e26639f11610208578063b336ad8311610118578063d87d6bd5116100ab578063f2fde38b1161007a578063f2fde38b14610bcb578063f3fef3a314610beb578063f51f96dd14610c0b578063f5ebbd5414610c21578063fc0c546a14610c4157600080fd5b8063d87d6bd514610b22578063dbe16c0714610b42578063e73b073614610b62578063e985e9c514610b8257600080fd5b8063cacf41aa116100e7578063cacf41aa14610aba578063cff63a5614610ada578063d7b1245414610aed578063d7c3d77414610b0d57600080fd5b8063b336ad8314610a2d578063b88d4fde14610a4d578063c2be466914610a6d578063c87b56dd14610a9a57600080fd5b8063a22cb4651161019b578063a626b7611161016a578063a626b761146109ab578063a82524b2146109cc578063a8e0350d146109e2578063a96af0f4146109f7578063ac329fa214610a0d57600080fd5b8063a22cb46514610935578063a24e515314610955578063a383b53c1461096b578063a51312c81461098b57600080fd5b806395d89b41116101d757806395d89b41146108c05780639916053b146108d55780639f30669b146108f5578063a132aad11461091557600080fd5b80637e26639f1461084c5780637f8502bf1461086257806389c75b32146108825780638da5cb5b146108a257600080fd5b806353135ca01161030357806369c5173011610296578063715018a611610265578063715018a6146107905780637263cfe2146107a557806373f4de9f146107c5578063798108fc146107fe5780637a44c2971461081e57600080fd5b806369c51730146106ff5780636cc64884146107305780636df9fa881461075057806370a082311461077057600080fd5b80635868c32a116102d25780635868c32a1461068f5780635ccf0f5a146106a55780636352211e146106c557806368428a1b146106e557600080fd5b806353135ca0146105fd5780635346ef6d146106175780635378ce241461062d57806355f804b31461066f57600080fd5b806323b872dd1161037b578063379152de1161034a578063379152de1461057d57806342842e0e1461059d5780634c6865e5146105bd5780634f6ccce7146105dd57600080fd5b806323b872dd146104fd578063265ce8ff1461051d5780632f745c591461053d5780633571f3b51461055d57600080fd5b8063081812fc116103b7578063081812fc14610471578063095ea7b3146104a95780630c41f497146104c957806318160ddd146104de57600080fd5b806301ffc9a7146103e9578063051b14851461041e57806306fdde0314610438578063070f5c091461045a575b600080fd5b3480156103f557600080fd5b50610409610404366004614b2e565b610c74565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50601f546104099060ff1681565b34801561044457600080fd5b5061044d610c9f565b6040516104159190614d1f565b34801561046657600080fd5b5061046f610d31565b005b34801561047d57600080fd5b5061049161048c366004614bc0565b610dc6565b6040516001600160a01b039091168152602001610415565b3480156104b557600080fd5b5061046f6104c436600461480a565b610e5b565b3480156104d557600080fd5b5061046f610f71565b3480156104ea57600080fd5b506008545b604051908152602001610415565b34801561050957600080fd5b5061046f61051836600461486f565b611025565b61053061052b366004614a99565b611056565b6040516104159190614cdb565b34801561054957600080fd5b506104ef61055836600461480a565b611180565b34801561056957600080fd5b50610491610578366004614bc0565b611216565b34801561058957600080fd5b5061046f610598366004614b13565b61127b565b3480156105a957600080fd5b5061046f6105b836600461486f565b6112b8565b3480156105c957600080fd5b5061046f6105d8366004614b9c565b6112d3565b3480156105e957600080fd5b506104ef6105f8366004614bc0565b61131d565b34801561060957600080fd5b506015546104099060ff1681565b34801561062357600080fd5b506104ef600f5481565b34801561063957600080fd5b5061064d61064836600461480a565b6113b0565b6040805194855260ff9093166020850152918301526060820152608001610415565b34801561067b57600080fd5b5061046f61068a366004614b68565b6113f9565b34801561069b57600080fd5b506104ef60165481565b3480156106b157600080fd5b5061046f6106c0366004614a99565b61143a565b3480156106d157600080fd5b506104916106e0366004614bc0565b61152a565b3480156106f157600080fd5b506018546104099060ff1681565b34801561070b57600080fd5b5060185461071e90610100900460ff1681565b60405160ff9091168152602001610415565b34801561073c57600080fd5b5061046f61074b366004614bc0565b6115a1565b34801561075c57600080fd5b5061046f61076b366004614bc0565b6115d0565b34801561077c57600080fd5b506104ef61078b3660046147ed565b6115ff565b34801561079c57600080fd5b5061046f611686565b3480156107b157600080fd5b5061046f6107c0366004614964565b6116f8565b3480156107d157600080fd5b506104096107e03660046147ed565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561080a57600080fd5b5061046f610819366004614bf2565b611935565b34801561082a57600080fd5b506013546108399061ffff1681565b60405161ffff9091168152602001610415565b34801561085857600080fd5b506104ef601b5481565b34801561086e57600080fd5b5061046f61087d366004614998565b611a22565b34801561088e57600080fd5b5061046f61089d366004614b9c565b611ddb565b3480156108ae57600080fd5b50600a546001600160a01b0316610491565b3480156108cc57600080fd5b5061044d611e1d565b3480156108e157600080fd5b5061046f6108f0366004614964565b611e2c565b34801561090157600080fd5b506104ef6109103660046147ed565b611fda565b34801561092157600080fd5b5061046f610930366004614bc0565b61201f565b34801561094157600080fd5b5061046f61095036600461492f565b6120e2565b34801561096157600080fd5b506104ef600e5481565b34801561097757600080fd5b50610409610986366004614b68565b6121a7565b34801561099757600080fd5b5061046f6109a6366004614964565b6121da565b3480156109b757600080fd5b506013546108399062010000900461ffff1681565b3480156109d857600080fd5b506104ef60175481565b3480156109ee57600080fd5b506104ef6123c6565b348015610a0357600080fd5b506104ef601a5481565b348015610a1957600080fd5b5061064d610a283660046147ed565b6123d7565b348015610a3957600080fd5b506104ef610a48366004614b68565b61253f565b348015610a5957600080fd5b5061046f610a683660046148b0565b61256f565b348015610a7957600080fd5b506104ef610a883660046147ed565b600d6020526000908152604090205481565b348015610aa657600080fd5b5061044d610ab5366004614bc0565b6125a7565b348015610ac657600080fd5b5061046f610ad5366004614a99565b612682565b610530610ae8366004614acd565b612765565b348015610af957600080fd5b50610409610b083660046147ed565b612cc4565b348015610b1957600080fd5b506104ef612d67565b348015610b2e57600080fd5b5061046f610b3d366004614bc0565b612de6565b348015610b4e57600080fd5b5061044d610b5d366004614bc0565b612e1c565b348015610b6e57600080fd5b50610409610b7d3660046147ed565b612ebe565b348015610b8e57600080fd5b50610409610b9d366004614836565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bd757600080fd5b5061046f610be63660046147ed565b612ecb565b348015610bf757600080fd5b5061046f610c0636600461480a565b612f63565b348015610c1757600080fd5b506104ef60195481565b348015610c2d57600080fd5b5061071e610c3c366004614836565b612fd0565b348015610c4d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610491565b60006001600160e01b0319821663780e9d6360e01b1480610c995750610c9982613061565b92915050565b606060008054610cae90615029565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90615029565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050505050905090565b600a546001600160a01b03163314610d645760405162461bcd60e51b8152600401610d5b90614e43565b60405180910390fd5b60155460ff16610d865760405162461bcd60e51b8152600401610d5b90614ec9565b6015805460ff19169055600854610d9b6130b1565b6040517f927e6cd2dce24f32508868820cdc35f09d9de0f4b44e945114110125196fba9f90600090a3565b6000818152600260205260408120546001600160a01b0316610e3f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d5b565b506000908152600460205260409020546001600160a01b031690565b6000610e668261152a565b9050806001600160a01b0316836001600160a01b03161415610ed45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d5b565b336001600160a01b0382161480610ef05750610ef08133610b9d565b610f625760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d5b565b610f6c83836130cf565b505050565b600a546001600160a01b03163314610f9b5760405162461bcd60e51b8152600401610d5b90614e43565b60185460ff16610fe65760405162461bcd60e51b81526020600482015260166024820152754e543a2053616c65206973206e6f742061637469766560501b6044820152606401610d5b565b6018805460ff1916905542610ffa60085490565b6040517f15b4b3d2d25688c15ceeb8688ce5149f4a6e1a71e0df748b16be5a0dd04b607b90600090a3565b61102f338261313d565b61104b5760405162461bcd60e51b8152600401610d5b90614e78565b610f6c838383613234565b60155460609060ff168061106c575060185460ff165b6110b85760405162461bcd60e51b815260206004820152601a60248201527f4e543a20416e792073616c65206973207465726d696e617465640000000000006044820152606401610d5b565b6002600b54141561110b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5b565b6002600b55815160009061111e906133df565b90508015611152578251336000908152600d602052604081208054909190611147908490614f53565b9091555061116b9050565b8251601a60008282546111659190614f53565b90915550505b6111748361367d565b6001600b559392505050565b600061118b836115ff565b82106111ed5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d5b565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000611222601061379a565b82106112705760405162461bcd60e51b815260206004820152601760248201527f4e543a20496e646578206f7574206f6620626f756e64730000000000000000006044820152606401610d5b565b610c996010836137a4565b600a546001600160a01b031633146112a55760405162461bcd60e51b8152600401610d5b90614e43565b601f805460ff1916911515919091179055565b610f6c8383836040518060200160405280600081525061256f565b600a546001600160a01b031633146112fd5760405162461bcd60e51b8152600401610d5b90614e43565b6013805461ffff909216620100000263ffff000019909216919091179055565b600061132860085490565b821061138b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d5b565b6008828154811061139e5761139e6150f5565b90600052602060002001549050919050565b601260205281600052604060002081815481106113cc57600080fd5b6000918252602090912060059091020180546001820154600283015460039093015491945060ff16925084565b600a546001600160a01b031633146114235760405162461bcd60e51b8152600401610d5b90614e43565b805161143690601e906020840190614554565b5050565b600a546001600160a01b031633146114645760405162461bcd60e51b8152600401610d5b90614e43565b60005b81518110156114365760006014611496848481518110611489576114896150f5565b60200260200101516137b0565b6040516114a39190614c53565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507f45021f100f3e4c429576f4cb58398ea559280b3125cd6b6d49fa2b82a8afecb78282815181106114fb576114fb6150f5565b60200260200101516040516115109190614d1f565b60405180910390a1611523600182614f53565b9050611467565b6000818152600260205260408120546001600160a01b031680610c995760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d5b565b600a546001600160a01b031633146115cb5760405162461bcd60e51b8152600401610d5b90614e43565b600f55565b600a546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610d5b90614e43565b600e55565b60006001600160a01b03821661166a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d5b565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146116b05760405162461bcd60e51b8152600401610d5b90614e43565b60405162461bcd60e51b815260206004820152601d60248201527f4e543a2043616e6e6f742072656e6f756e6365206f776e6572736869700000006044820152606401610d5b565b600a546001600160a01b031633146117225760405162461bcd60e51b8152600401610d5b90614e43565b601354815161ffff909116101561174b5760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657600c600083838151811061176d5761176d6150f5565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561187c578181815181106117ab576117ab6150f5565b60200260200101516001600160a01b03167f34ae38791a72578b30ca926f9d74d54825c259f6eaa0c1c7e97b463a7d0cf7f0600d60008585815181106117f3576117f36150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460405161182b91815260200190565b60405180910390a26000600d600084848151811061184b5761184b6150f5565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506118d4565b6001600c6000848481518110611894576118946150f5565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8181815181106118e6576118e66150f5565b60200260200101516001600160a01b03167fa29fd8e8b328183429f81e3acc10dc14196777efa4ccd23165f71d4dd027ac1b60405160405180910390a261192e600182614f53565b905061174e565b600a546001600160a01b0316331461195f5760405162461bcd60e51b8152600401610d5b90614e43565b60185460ff16156119ab5760405162461bcd60e51b815260206004820152601660248201527513950e8814d85b19481a5cc81b9bdd081c185d5cd95960521b6044820152606401610d5b565b60198390556018805461ff00191661010060ff8516021790556119cd81613823565b6018805460ff19166001179081905560195460405161010090920460ff1682529042907f7ef3f57c7c810470372424b8e303f632778f314d2366d9239c0d6fad781da66d9060200160405180910390a3505050565b600a546001600160a01b03163314611a4c5760405162461bcd60e51b8152600401610d5b90614e43565b835160135461ffff16811115611a745760405162461bcd60e51b8152600401610d5b90614e01565b835181148015611a845750825181145b8015611a905750815181145b611aec5760405162461bcd60e51b815260206004820152602760248201527f4e543a20416c6c206c697374732073686f756c64206265207468652073616d65604482015266040d8cadccee8d60cb1b6064820152608401610d5b565b60005b81811015611dd3576000868281518110611b0b57611b0b6150f5565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611b5657600080fd5b505afa158015611b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8e9190614bd9565b1015611c025760405162461bcd60e51b815260206004820152603960248201527f4e543a2043616e6e6f742063616c6c2062616c616e63654f66206d6574686f6460448201527f206f6e207468652065787465726e616c20636f6e7472616374000000000000006064820152608401610d5b565b611c2f868281518110611c1757611c176150f5565b6020026020010151601061385d90919063ffffffff16565b50600060126000888481518110611c4857611c486150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001816001815401808255809150500390600052602060002090600502019050858281518110611ca257611ca26150f5565b60200260200101518160000181905550848281518110611cc457611cc46150f5565b60200260200101518160010160006101000a81548160ff021916908360ff160217905550838281518110611cfa57611cfa6150f5565b60200260200101518160020181905550858281518110611d1c57611d1c6150f5565b6020026020010151878381518110611d3657611d366150f5565b60200260200101516001600160a01b03167f640c9df610e65a449421f11005db9c48f618ff8ad02eafd39fbe3a1c5a67ee85878581518110611d7a57611d7a6150f5565b6020026020010151878681518110611d9457611d946150f5565b6020026020010151604051611db892919060ff929092168252602082015260400190565b60405180910390a350611dcc600182614f53565b9050611aef565b505050505050565b600a546001600160a01b03163314611e055760405162461bcd60e51b8152600401610d5b90614e43565b6013805461ffff191661ffff92909216919091179055565b606060018054610cae90615029565b600a546001600160a01b03163314611e565760405162461bcd60e51b8152600401610d5b90614e43565b60135481516201000090910461ffff161015611e845760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657611ebd828281518110611ea557611ea56150f5565b6020026020010151601061387290919063ffffffff16565b15611fc85760006001611efe848481518110611edb57611edb6150f5565b60200260200101516001600160a01b031660009081526012602052604090205490565b611f089190614fc3565b9050828281518110611f1c57611f1c6150f5565b60200260200101516001600160a01b03167f6bcc29dd661ba9880d292f2f49edbc9eaec3944756b757b0234854eedcb51a1060126000868681518110611f6457611f646150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208381548110611f9d57611f9d6150f5565b906000526020600020906005020160030154604051611fbe91815260200190565b60405180910390a2505b611fd3600182614f53565b9050611e87565b6000611fe582612ebe565b6120015760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b038216600090815260126020526040902054610c99565b600a546001600160a01b031633146120495760405162461bcd60e51b8152600401610d5b90614e43565b60155460ff161561209c5760405162461bcd60e51b815260206004820152601960248201527f4e543a2050726573616c65206973206e6f7420706175736564000000000000006044820152606401610d5b565b42601781905560168290556015805460ff1916600117905560405182907fc147e6a4093415fedfa3c5eec52d207a60276cb42b6acd4a6895d4b181179ce790600090a350565b6001600160a01b03821633141561213b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d5b565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600060146121b4836137b0565b6040516121c19190614c53565b9081526040519081900360200190205460ff1692915050565b600a546001600160a01b031633146122045760405162461bcd60e51b8152600401610d5b90614e43565b60135481516201000090910461ffff1610156122325760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657600c6000838381518110612254576122546150f5565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156123b4576000600c6000848481518110612298576122986150f5565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508181815181106122e9576122e96150f5565b60200260200101516001600160a01b03167f34ae38791a72578b30ca926f9d74d54825c259f6eaa0c1c7e97b463a7d0cf7f0600d6000858581518110612331576123316150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460405161236991815260200190565b60405180910390a2600d6000838381518110612387576123876150f5565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600090555b6123bf600182614f53565b9050612235565b60006123d2601061379a565b905090565b6000806000806123e685612ebe565b6124025760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b03851660009081526012602052604081205461242790600190614fc3565b6001600160a01b038716600090815260126020526040902080549192509082908110612455576124556150f5565b600091825260208083206005909202909101546001600160a01b038916835260129091526040909120805483908110612490576124906150f5565b60009182526020808320600160059093020191909101546001600160a01b038a16835260129091526040909120805460ff90921691849081106124d5576124d56150f5565b906000526020600020906005020160020154601260008a6001600160a01b03166001600160a01b03168152602001908152602001600020848154811061251d5761251d6150f5565b9060005260206000209060050201600301549450945094509450509193509193565b6000601d61254c836137b0565b6040516125599190614c53565b9081526020016040518091039020549050919050565b612579338361313d565b6125955760405162461bcd60e51b8152600401610d5b90614e78565b6125a184848484613887565b50505050565b6000818152600260205260409020546060906001600160a01b03166126265760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d5b565b60006126306138ba565b90506000815111612650576040518060200160405280600081525061267b565b8061265a846138c9565b60405160200161266b929190614c6f565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146126ac5760405162461bcd60e51b8152600401610d5b90614e43565b60005b815181101561143657600160146126d1848481518110611489576114896150f5565b6040516126de9190614c53565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507f65d525fb783e504cc4323307d8ae6e34d0a1822d7caca488ba524d0d33badfff828281518110612736576127366150f5565b602002602001015160405161274b9190614d1f565b60405180910390a161275e600182614f53565b90506126af565b60155460609060ff1661278a5760405162461bcd60e51b8152600401610d5b90614ec9565b6002600b5414156127dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5b565b6002600b55336127ec57600080fd5b600083511161283d5760405162461bcd60e51b815260206004820181905260248201527f4e543a204d757374206d696e74206174206c65617374206f6e6520746f6b656e6044820152606401610d5b565b60006128476139c6565b1161288b5760405162461bcd60e51b815260206004820152601460248201527313950e88141c995cd85b19481d1a5b59481bdd5d60621b6044820152606401610d5b565b61289482612ebe565b6128b05760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b0382166000908152601260205260408120546128d590600190614fc3565b6001600160a01b038416600090815260126020526040902080549192509082908110612903576129036150f5565b60009182526020909120600260059092020101546040516370a0823160e01b81523360048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561295657600080fd5b505afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e9190614bd9565b1015612a025760405162461bcd60e51b815260206004820152603860248201527f4e543a2053656e6465722062616c616e6365206f6e2074686520636f6e74726160448201527f6374206c657373207468616e206d696e2062616c616e636500000000000000006064820152608401610d5b565b6001600160a01b0383166000908152601260205260408120805483908110612a2c57612a2c6150f5565b6000918252602080832033845260046005909302019190910181526040808320546001600160a01b03881684526012909252909120805460ff90921692509083908110612a7b57612a7b6150f5565b6000918252602090912060016005909202010154855160ff91821691612aa49190841690614f53565b1115612afe5760405162461bcd60e51b815260206004820152602360248201527f4e543a2050726573616c6520636f6e7472616374206c696d697420657863656560448201526219195960ea1b6064820152608401610d5b565b84516001600160a01b038516600090815260126020526040902080543492919085908110612b2e57612b2e6150f5565b906000526020600020906005020160000154612b4a9190614fa4565b1115612b985760405162461bcd60e51b815260206004820152601f60248201527f4e543a2050726573616c652c20696e73756666696369656e742066756e6473006044820152606401610d5b565b84516001600160a01b0385166000908152601260205260409020805484908110612bc457612bc46150f5565b600091825260208083203384526004600590930201919091019052604081208054909190612bf690849060ff16614f6b565b92506101000a81548160ff021916908360ff160217905550845160126000866001600160a01b03166001600160a01b031681526020019081526020016000208381548110612c4657612c466150f5565b90600052602060002090600502016003016000828254612c669190614f53565b9091555050845160405190815233906001600160a01b038616907fb9f2571e9e71e1b60488705d4558dc8f55303e0e0b9f14d20d277e2657db88749060200160405180910390a3612cb68561367d565b6001600b5595945050505050565b600080826001600160a01b03166370a08231612ce8600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612d2757600080fd5b505afa158015612d3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5f9190614bd9565b101592915050565b60155460009060ff16612d8c5760405162461bcd60e51b8152600401610d5b90614ec9565b600060175411612dde5760405162461bcd60e51b815260206004820152601e60248201527f4e543a2050726573616c65206861736e277420737461727465642079657400006044820152606401610d5b565b6123d26139c6565b600a546001600160a01b03163314612e105760405162461bcd60e51b8152600401610d5b90614e43565b612e1981613823565b50565b6000818152601c60205260409020805460609190612e3990615029565b80601f0160208091040260200160405190810160405280929190818152602001828054612e6590615029565b8015612eb25780601f10612e8757610100808354040283529160200191612eb2565b820191906000526020600020905b815481529060010190602001808311612e9557829003601f168201915b50505050509050919050565b6000610c99601083613a08565b600a546001600160a01b03163314612ef55760405162461bcd60e51b8152600401610d5b90614e43565b6001600160a01b038116612f5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d5b565b612e1981613a2a565b600a546001600160a01b03163314612f8d5760405162461bcd60e51b8152600401610d5b90614e43565b47811115612f9a57600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610f6c573d6000803e3d6000fd5b6000612fdb83612ebe565b612ff75760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b0383166000908152601260205260409020805461301d90600190614fc3565b8154811061302d5761302d6150f5565b600091825260208083206001600160a01b03861684526004600590930201919091019052604090205460ff16905092915050565b60006001600160e01b031982166380ac58cd60e01b148061309257506001600160e01b03198216635b5e139f60e01b145b80610c9957506301ffc9a760e01b6001600160e01b0319831614610c99565b600080601754116130c25750600090565b6017546123d29042614fc3565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906131048261152a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166131b65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d5b565b60006131c18361152a565b9050806001600160a01b0316846001600160a01b031614806131fc5750836001600160a01b03166131f184610dc6565b6001600160a01b0316145b8061322c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166132478261152a565b6001600160a01b0316146132af5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610d5b565b6001600160a01b0382166133115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d5b565b61331c838383613a7c565b6133276000826130cf565b6001600160a01b0383166000908152600360205260408120805460019290613350908490614fc3565b90915550506001600160a01b038216600090815260036020526040812080546001929061337e908490614f53565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000336133eb57600080fd5b6000821161343b5760405162461bcd60e51b815260206004820181905260248201527f4e543a204d757374206d696e74206174206c65617374206f6e6520746f6b656e6044820152606401610d5b565b60155460ff168015613454575060006134526139c6565b115b801561346f5750336000908152600c602052604090205460ff165b80156134965750600f54336000908152600d60205260409020546134939084614f53565b11155b15613500573482600e546134aa9190614fa4565b11156134f85760405162461bcd60e51b815260206004820152601f60248201527f4e543a2050726573616c652c20696e73756666696369656e742066756e6473006044820152606401610d5b565b506001919050565b60185460ff1661354b5760405162461bcd60e51b81526020600482015260166024820152754e543a2053616c65206973206e6f742061637469766560501b6044820152606401610d5b565b601b54156135b157601b54601a546135639084614f53565b11156135b15760405162461bcd60e51b815260206004820152601c60248201527f4e543a204c696d6974656420616d6f756e74206f6620746f6b656e73000000006044820152606401610d5b565b601854610100900460ff1682111561361f5760405162461bcd60e51b815260206004820152602b60248201527f4e543a204c696d6974656420616d6f756e74206f6620746f6b656e7320696e2060448201526a3a3930b739b0b1ba34b7b760a91b6064820152608401610d5b565b348260195461362e9190614fa4565b11156136755760405162461bcd60e51b81526020600482015260166024820152754e543a20496e73756666696369656e742066756e647360501b6044820152606401610d5b565b506000919050565b6060600082516001600160401b0381111561369a5761369a61510b565b6040519080825280602002602001820160405280156136c3578160200160208202803683370190505b50905060005b8351811015613793576136db33613b34565b8282815181106136ed576136ed6150f5565b60200260200101818152505061373582828151811061370e5761370e6150f5565b6020026020010151858381518110613728576137286150f5565b6020026020010151613b57565b6137815760405162461bcd60e51b815260206004820152601b60248201527f4e543a204e616d652063616e6e6f742062652061737369676e656400000000006044820152606401610d5b565b61378c600182614f53565b90506136c9565b5092915050565b6000610c99825490565b600061267b8383613d8b565b60608160005b8151811015613793576137e88282815181106137d4576137d46150f5565b01602001516001600160f81b031916613db5565b8282815181106137fa576137fa6150f5565b60200101906001600160f81b031916908160001a9053508061381b81615064565b9150506137b6565b6000601a819055601b829055604051829142917ff403d999bb7ab2cf3b077b758050ab9a805fa792c7c63a66fb2c61c536940b929190a350565b600061267b836001600160a01b038416613e04565b600061267b836001600160a01b038416613e53565b613892848484613234565b61389e84848484613f46565b6125a15760405162461bcd60e51b8152600401610d5b90614d60565b6060601e8054610cae90615029565b6060816138ed5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613917578061390181615064565b91506139109050600a83614f90565b91506138f1565b6000816001600160401b038111156139315761393161510b565b6040519080825280601f01601f19166020018201604052801561395b576020820181803683370190505b5090505b841561322c57613970600183614fc3565b915061397d600a8661509f565b613988906030614f53565b60f81b81838151811061399d5761399d6150f5565b60200101906001600160f81b031916908160001a9053506139bf600a86614f90565b945061395f565b6000601754600014806139e257506016546139df6130b1565b10155b156139ed5750600090565b426016546017546139fe9190614f53565b6123d29190614fc3565b6001600160a01b0381166000908152600183016020526040812054151561267b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316613ad757613ad281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613afa565b816001600160a01b0316836001600160a01b031614613afa57613afa8382614053565b6001600160a01b038216613b1157610f6c816140f0565b826001600160a01b0316826001600160a01b031614610f6c57610f6c828261419f565b600080613b4060085490565b613b4b906001614f53565b9050610c9983826141e3565b6000806060613b65846141fd565b9092509050811580613b965750601d81604051613b829190614c53565b908152602001604051809103902054600014155b80613bc05750601481604051613bac9190614c53565b9081526040519081900360200190205460ff165b15613bd057600092505050610c99565b601f5460ff1615613cc45760405163b336ad8360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b336ad8390613c27908490600401614d1f565b60206040518083038186803b158015613c3f57600080fd5b505afa158015613c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c779190614bd9565b15613cc45760405162461bcd60e51b815260206004820152601b60248201527f4e543a204578697374206e616d6520696e2076657273696f6e203100000000006044820152606401610d5b565b6000613ccf86612e1c565b90506000613cdc826137b0565b90506000601d82604051613cf09190614c53565b9081526040805160209281900383019020929092556000898152601c8252919091208751613d2092890190614554565b5086601d84604051613d329190614c53565b908152602001604051809103902081905550867fd03378e710a4f526d1030d6dd70e5c0999dcaf843ca8a83aadcb0946a251de8e8388604051613d76929190614d32565b60405180910390a25060019695505050505050565b6000826000018281548110613da257613da26150f5565b9060005260206000200154905092915050565b6000606160f81b6001600160f81b0319831610801590613de35750603d60f91b6001600160f81b0319831611155b15613e0057613df7602060f884901c614fda565b60f81b92915050565b5090565b6000818152600183016020526040812054613e4b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c99565b506000610c99565b60008181526001830160205260408120548015613f3c576000613e77600183614fc3565b8554909150600090613e8b90600190614fc3565b9050818114613ef0576000866000018281548110613eab57613eab6150f5565b9060005260206000200154905080876000018481548110613ece57613ece6150f5565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613f0157613f016150df565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c99565b6000915050610c99565b60006001600160a01b0384163b1561404857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f8a903390899088908890600401614c9e565b602060405180830381600087803b158015613fa457600080fd5b505af1925050508015613fd4575060408051601f3d908101601f19168201909252613fd191810190614b4b565b60015b61402e573d808015614002576040519150601f19603f3d011682016040523d82523d6000602084013e614007565b606091505b5080516140265760405162461bcd60e51b8152600401610d5b90614d60565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061322c565b506001949350505050565b60006001614060846115ff565b61406a9190614fc3565b6000838152600760205260409020549091508082146140bd576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061410290600190614fc3565b6000838152600960205260408120546008805493945090928490811061412a5761412a6150f5565b90600052602060002001549050806008838154811061414b5761414b6150f5565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614183576141836150df565b6001900381819060005260206000200160009055905550505050565b60006141aa836115ff565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6114368282604051806020016040528060008152506143d3565b80516000906060908390614227576000604051806020016040528060008152509250925050915091565b60248151111561424d576000604051806020016040528060008152509250925050915091565b600081516001600160401b038111156142685761426861510b565b6040519080825280601f01601f191660200182016040528015614292576020820181803683370190505b50905060005b82518160ff1610156143c6576000838260ff16815181106142bb576142bb6150f5565b01602001516001600160f81b0319169050600360fc1b81108015906142ee5750603960f81b6001600160f81b0319821611155b1580156143245750604160f81b6001600160f81b03198216108015906143225750602d60f91b6001600160f81b0319821611155b155b80156143595750606160f81b6001600160f81b03198216108015906143575750603d60f91b6001600160f81b0319821611155b155b1561437d576000604051806020016040528060008152509550955050505050915091565b61438681613db5565b838360ff168151811061439b5761439b6150f5565b60200101906001600160f81b031916908160001a9053505080806143be9061507f565b915050614298565b5060019590945092505050565b6143dd8383614406565b6143ea6000848484613f46565b610f6c5760405162461bcd60e51b8152600401610d5b90614d60565b6001600160a01b03821661445c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d5b565b6000818152600260205260409020546001600160a01b0316156144c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d5b565b6144cd60008383613a7c565b6001600160a01b03821660009081526003602052604081208054600192906144f6908490614f53565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461456090615029565b90600052602060002090601f01602090048101928261458257600085556145c8565b82601f1061459b57805160ff19168380011785556145c8565b828001600101855582156145c8579182015b828111156145c85782518255916020019190600101906145ad565b50613e009291505b80821115613e0057600081556001016145d0565b60006001600160401b038311156145fd576145fd61510b565b614610601f8401601f1916602001614f00565b905082815283838301111561462457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261464c57600080fd5b8135602061466161465c83614f30565b614f00565b80838252828201915082860187848660051b890101111561468157600080fd5b60005b858110156146a957813561469781615121565b84529284019290840190600101614684565b5090979650505050505050565b600082601f8301126146c757600080fd5b813560206146d761465c83614f30565b80838252828201915082860187848660051b89010111156146f757600080fd5b6000805b868110156147395782356001600160401b03811115614718578283fd5b6147268b88838d01016147bc565b86525093850193918501916001016146fb565b509198975050505050505050565b600082601f83011261475857600080fd5b8135602061476861465c83614f30565b80838252828201915082860187848660051b890101111561478857600080fd5b60005b858110156146a95781358452928401929084019060010161478b565b803580151581146147b757600080fd5b919050565b600082601f8301126147cd57600080fd5b61267b838335602085016145e4565b803560ff811681146147b757600080fd5b6000602082840312156147ff57600080fd5b813561267b81615121565b6000806040838503121561481d57600080fd5b823561482881615121565b946020939093013593505050565b6000806040838503121561484957600080fd5b823561485481615121565b9150602083013561486481615121565b809150509250929050565b60008060006060848603121561488457600080fd5b833561488f81615121565b9250602084013561489f81615121565b929592945050506040919091013590565b600080600080608085870312156148c657600080fd5b84356148d181615121565b935060208501356148e181615121565b92506040850135915060608501356001600160401b0381111561490357600080fd5b8501601f8101871361491457600080fd5b614923878235602084016145e4565b91505092959194509250565b6000806040838503121561494257600080fd5b823561494d81615121565b915061495b602084016147a7565b90509250929050565b60006020828403121561497657600080fd5b81356001600160401b0381111561498c57600080fd5b61322c8482850161463b565b600080600080608085870312156149ae57600080fd5b84356001600160401b03808211156149c557600080fd5b6149d18883890161463b565b95506020915081870135818111156149e857600080fd5b6149f489828a01614747565b955050604087013581811115614a0957600080fd5b8701601f81018913614a1a57600080fd5b8035614a2861465c82614f30565b8082825285820191508584018c878560051b8701011115614a4857600080fd5b600094505b83851015614a7257614a5e816147dc565b835260019490940193918601918601614a4d565b5096505050506060870135915080821115614a8c57600080fd5b5061492387828801614747565b600060208284031215614aab57600080fd5b81356001600160401b03811115614ac157600080fd5b61322c848285016146b6565b60008060408385031215614ae057600080fd5b82356001600160401b03811115614af657600080fd5b614b02858286016146b6565b925050602083013561486481615121565b600060208284031215614b2557600080fd5b61267b826147a7565b600060208284031215614b4057600080fd5b813561267b81615136565b600060208284031215614b5d57600080fd5b815161267b81615136565b600060208284031215614b7a57600080fd5b81356001600160401b03811115614b9057600080fd5b61322c848285016147bc565b600060208284031215614bae57600080fd5b813561ffff8116811461267b57600080fd5b600060208284031215614bd257600080fd5b5035919050565b600060208284031215614beb57600080fd5b5051919050565b600080600060608486031215614c0757600080fd5b83359250614c17602085016147dc565b9150604084013590509250925092565b60008151808452614c3f816020860160208601614ffd565b601f01601f19169290920160200192915050565b60008251614c65818460208701614ffd565b9190910192915050565b60008351614c81818460208801614ffd565b835190830190614c95818360208801614ffd565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cd190830184614c27565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614d1357835183529284019291840191600101614cf7565b50909695505050505050565b60208152600061267b6020830184614c27565b604081526000614d456040830185614c27565b8281036020840152614d578185614c27565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602f908201527f4e543a20436f6e74726163742061646472657373206973206e6f7420696e207460408201526e1a1948185b1b1bddd959081b1a5cdd608a1b606082015260800190565b60208082526022908201527f4e543a204c697374206f662061646472657373657320697320746f6f206c6172604082015261676560f01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526019908201527f4e543a2050726573616c65206973206e6f742061637469766500000000000000604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614f2857614f2861510b565b604052919050565b60006001600160401b03821115614f4957614f4961510b565b5060051b60200190565b60008219821115614f6657614f666150b3565b500190565b600060ff821660ff84168060ff03821115614f8857614f886150b3565b019392505050565b600082614f9f57614f9f6150c9565b500490565b6000816000190483118215151615614fbe57614fbe6150b3565b500290565b600082821015614fd557614fd56150b3565b500390565b600060ff821660ff841680821015614ff457614ff46150b3565b90039392505050565b60005b83811015615018578181015183820152602001615000565b838111156125a15750506000910152565b600181811c9082168061503d57607f821691505b6020821081141561505e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615078576150786150b3565b5060010190565b600060ff821660ff811415615096576150966150b3565b60010192915050565b6000826150ae576150ae6150c9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612e1957600080fd5b6001600160e01b031981168114612e1957600080fdfea26469706673582212203804a4fd0e4a39e66ea54138c94511e728528b14776a143e4c482b34ad777d2064736f6c634300080600330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000320000000000000000000000000c9eef4c46abcb11002c9bb8a47445c96cdbcaffb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000074e616d657461670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6e616d657461672e6f72672f6170692f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103e45760003560e01c80637e26639f11610208578063b336ad8311610118578063d87d6bd5116100ab578063f2fde38b1161007a578063f2fde38b14610bcb578063f3fef3a314610beb578063f51f96dd14610c0b578063f5ebbd5414610c21578063fc0c546a14610c4157600080fd5b8063d87d6bd514610b22578063dbe16c0714610b42578063e73b073614610b62578063e985e9c514610b8257600080fd5b8063cacf41aa116100e7578063cacf41aa14610aba578063cff63a5614610ada578063d7b1245414610aed578063d7c3d77414610b0d57600080fd5b8063b336ad8314610a2d578063b88d4fde14610a4d578063c2be466914610a6d578063c87b56dd14610a9a57600080fd5b8063a22cb4651161019b578063a626b7611161016a578063a626b761146109ab578063a82524b2146109cc578063a8e0350d146109e2578063a96af0f4146109f7578063ac329fa214610a0d57600080fd5b8063a22cb46514610935578063a24e515314610955578063a383b53c1461096b578063a51312c81461098b57600080fd5b806395d89b41116101d757806395d89b41146108c05780639916053b146108d55780639f30669b146108f5578063a132aad11461091557600080fd5b80637e26639f1461084c5780637f8502bf1461086257806389c75b32146108825780638da5cb5b146108a257600080fd5b806353135ca01161030357806369c5173011610296578063715018a611610265578063715018a6146107905780637263cfe2146107a557806373f4de9f146107c5578063798108fc146107fe5780637a44c2971461081e57600080fd5b806369c51730146106ff5780636cc64884146107305780636df9fa881461075057806370a082311461077057600080fd5b80635868c32a116102d25780635868c32a1461068f5780635ccf0f5a146106a55780636352211e146106c557806368428a1b146106e557600080fd5b806353135ca0146105fd5780635346ef6d146106175780635378ce241461062d57806355f804b31461066f57600080fd5b806323b872dd1161037b578063379152de1161034a578063379152de1461057d57806342842e0e1461059d5780634c6865e5146105bd5780634f6ccce7146105dd57600080fd5b806323b872dd146104fd578063265ce8ff1461051d5780632f745c591461053d5780633571f3b51461055d57600080fd5b8063081812fc116103b7578063081812fc14610471578063095ea7b3146104a95780630c41f497146104c957806318160ddd146104de57600080fd5b806301ffc9a7146103e9578063051b14851461041e57806306fdde0314610438578063070f5c091461045a575b600080fd5b3480156103f557600080fd5b50610409610404366004614b2e565b610c74565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50601f546104099060ff1681565b34801561044457600080fd5b5061044d610c9f565b6040516104159190614d1f565b34801561046657600080fd5b5061046f610d31565b005b34801561047d57600080fd5b5061049161048c366004614bc0565b610dc6565b6040516001600160a01b039091168152602001610415565b3480156104b557600080fd5b5061046f6104c436600461480a565b610e5b565b3480156104d557600080fd5b5061046f610f71565b3480156104ea57600080fd5b506008545b604051908152602001610415565b34801561050957600080fd5b5061046f61051836600461486f565b611025565b61053061052b366004614a99565b611056565b6040516104159190614cdb565b34801561054957600080fd5b506104ef61055836600461480a565b611180565b34801561056957600080fd5b50610491610578366004614bc0565b611216565b34801561058957600080fd5b5061046f610598366004614b13565b61127b565b3480156105a957600080fd5b5061046f6105b836600461486f565b6112b8565b3480156105c957600080fd5b5061046f6105d8366004614b9c565b6112d3565b3480156105e957600080fd5b506104ef6105f8366004614bc0565b61131d565b34801561060957600080fd5b506015546104099060ff1681565b34801561062357600080fd5b506104ef600f5481565b34801561063957600080fd5b5061064d61064836600461480a565b6113b0565b6040805194855260ff9093166020850152918301526060820152608001610415565b34801561067b57600080fd5b5061046f61068a366004614b68565b6113f9565b34801561069b57600080fd5b506104ef60165481565b3480156106b157600080fd5b5061046f6106c0366004614a99565b61143a565b3480156106d157600080fd5b506104916106e0366004614bc0565b61152a565b3480156106f157600080fd5b506018546104099060ff1681565b34801561070b57600080fd5b5060185461071e90610100900460ff1681565b60405160ff9091168152602001610415565b34801561073c57600080fd5b5061046f61074b366004614bc0565b6115a1565b34801561075c57600080fd5b5061046f61076b366004614bc0565b6115d0565b34801561077c57600080fd5b506104ef61078b3660046147ed565b6115ff565b34801561079c57600080fd5b5061046f611686565b3480156107b157600080fd5b5061046f6107c0366004614964565b6116f8565b3480156107d157600080fd5b506104096107e03660046147ed565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561080a57600080fd5b5061046f610819366004614bf2565b611935565b34801561082a57600080fd5b506013546108399061ffff1681565b60405161ffff9091168152602001610415565b34801561085857600080fd5b506104ef601b5481565b34801561086e57600080fd5b5061046f61087d366004614998565b611a22565b34801561088e57600080fd5b5061046f61089d366004614b9c565b611ddb565b3480156108ae57600080fd5b50600a546001600160a01b0316610491565b3480156108cc57600080fd5b5061044d611e1d565b3480156108e157600080fd5b5061046f6108f0366004614964565b611e2c565b34801561090157600080fd5b506104ef6109103660046147ed565b611fda565b34801561092157600080fd5b5061046f610930366004614bc0565b61201f565b34801561094157600080fd5b5061046f61095036600461492f565b6120e2565b34801561096157600080fd5b506104ef600e5481565b34801561097757600080fd5b50610409610986366004614b68565b6121a7565b34801561099757600080fd5b5061046f6109a6366004614964565b6121da565b3480156109b757600080fd5b506013546108399062010000900461ffff1681565b3480156109d857600080fd5b506104ef60175481565b3480156109ee57600080fd5b506104ef6123c6565b348015610a0357600080fd5b506104ef601a5481565b348015610a1957600080fd5b5061064d610a283660046147ed565b6123d7565b348015610a3957600080fd5b506104ef610a48366004614b68565b61253f565b348015610a5957600080fd5b5061046f610a683660046148b0565b61256f565b348015610a7957600080fd5b506104ef610a883660046147ed565b600d6020526000908152604090205481565b348015610aa657600080fd5b5061044d610ab5366004614bc0565b6125a7565b348015610ac657600080fd5b5061046f610ad5366004614a99565b612682565b610530610ae8366004614acd565b612765565b348015610af957600080fd5b50610409610b083660046147ed565b612cc4565b348015610b1957600080fd5b506104ef612d67565b348015610b2e57600080fd5b5061046f610b3d366004614bc0565b612de6565b348015610b4e57600080fd5b5061044d610b5d366004614bc0565b612e1c565b348015610b6e57600080fd5b50610409610b7d3660046147ed565b612ebe565b348015610b8e57600080fd5b50610409610b9d366004614836565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bd757600080fd5b5061046f610be63660046147ed565b612ecb565b348015610bf757600080fd5b5061046f610c0636600461480a565b612f63565b348015610c1757600080fd5b506104ef60195481565b348015610c2d57600080fd5b5061071e610c3c366004614836565b612fd0565b348015610c4d57600080fd5b507f000000000000000000000000c9eef4c46abcb11002c9bb8a47445c96cdbcaffb610491565b60006001600160e01b0319821663780e9d6360e01b1480610c995750610c9982613061565b92915050565b606060008054610cae90615029565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90615029565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050505050905090565b600a546001600160a01b03163314610d645760405162461bcd60e51b8152600401610d5b90614e43565b60405180910390fd5b60155460ff16610d865760405162461bcd60e51b8152600401610d5b90614ec9565b6015805460ff19169055600854610d9b6130b1565b6040517f927e6cd2dce24f32508868820cdc35f09d9de0f4b44e945114110125196fba9f90600090a3565b6000818152600260205260408120546001600160a01b0316610e3f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d5b565b506000908152600460205260409020546001600160a01b031690565b6000610e668261152a565b9050806001600160a01b0316836001600160a01b03161415610ed45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d5b565b336001600160a01b0382161480610ef05750610ef08133610b9d565b610f625760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d5b565b610f6c83836130cf565b505050565b600a546001600160a01b03163314610f9b5760405162461bcd60e51b8152600401610d5b90614e43565b60185460ff16610fe65760405162461bcd60e51b81526020600482015260166024820152754e543a2053616c65206973206e6f742061637469766560501b6044820152606401610d5b565b6018805460ff1916905542610ffa60085490565b6040517f15b4b3d2d25688c15ceeb8688ce5149f4a6e1a71e0df748b16be5a0dd04b607b90600090a3565b61102f338261313d565b61104b5760405162461bcd60e51b8152600401610d5b90614e78565b610f6c838383613234565b60155460609060ff168061106c575060185460ff165b6110b85760405162461bcd60e51b815260206004820152601a60248201527f4e543a20416e792073616c65206973207465726d696e617465640000000000006044820152606401610d5b565b6002600b54141561110b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5b565b6002600b55815160009061111e906133df565b90508015611152578251336000908152600d602052604081208054909190611147908490614f53565b9091555061116b9050565b8251601a60008282546111659190614f53565b90915550505b6111748361367d565b6001600b559392505050565b600061118b836115ff565b82106111ed5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d5b565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000611222601061379a565b82106112705760405162461bcd60e51b815260206004820152601760248201527f4e543a20496e646578206f7574206f6620626f756e64730000000000000000006044820152606401610d5b565b610c996010836137a4565b600a546001600160a01b031633146112a55760405162461bcd60e51b8152600401610d5b90614e43565b601f805460ff1916911515919091179055565b610f6c8383836040518060200160405280600081525061256f565b600a546001600160a01b031633146112fd5760405162461bcd60e51b8152600401610d5b90614e43565b6013805461ffff909216620100000263ffff000019909216919091179055565b600061132860085490565b821061138b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d5b565b6008828154811061139e5761139e6150f5565b90600052602060002001549050919050565b601260205281600052604060002081815481106113cc57600080fd5b6000918252602090912060059091020180546001820154600283015460039093015491945060ff16925084565b600a546001600160a01b031633146114235760405162461bcd60e51b8152600401610d5b90614e43565b805161143690601e906020840190614554565b5050565b600a546001600160a01b031633146114645760405162461bcd60e51b8152600401610d5b90614e43565b60005b81518110156114365760006014611496848481518110611489576114896150f5565b60200260200101516137b0565b6040516114a39190614c53565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507f45021f100f3e4c429576f4cb58398ea559280b3125cd6b6d49fa2b82a8afecb78282815181106114fb576114fb6150f5565b60200260200101516040516115109190614d1f565b60405180910390a1611523600182614f53565b9050611467565b6000818152600260205260408120546001600160a01b031680610c995760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d5b565b600a546001600160a01b031633146115cb5760405162461bcd60e51b8152600401610d5b90614e43565b600f55565b600a546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610d5b90614e43565b600e55565b60006001600160a01b03821661166a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d5b565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146116b05760405162461bcd60e51b8152600401610d5b90614e43565b60405162461bcd60e51b815260206004820152601d60248201527f4e543a2043616e6e6f742072656e6f756e6365206f776e6572736869700000006044820152606401610d5b565b600a546001600160a01b031633146117225760405162461bcd60e51b8152600401610d5b90614e43565b601354815161ffff909116101561174b5760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657600c600083838151811061176d5761176d6150f5565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561187c578181815181106117ab576117ab6150f5565b60200260200101516001600160a01b03167f34ae38791a72578b30ca926f9d74d54825c259f6eaa0c1c7e97b463a7d0cf7f0600d60008585815181106117f3576117f36150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460405161182b91815260200190565b60405180910390a26000600d600084848151811061184b5761184b6150f5565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506118d4565b6001600c6000848481518110611894576118946150f5565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8181815181106118e6576118e66150f5565b60200260200101516001600160a01b03167fa29fd8e8b328183429f81e3acc10dc14196777efa4ccd23165f71d4dd027ac1b60405160405180910390a261192e600182614f53565b905061174e565b600a546001600160a01b0316331461195f5760405162461bcd60e51b8152600401610d5b90614e43565b60185460ff16156119ab5760405162461bcd60e51b815260206004820152601660248201527513950e8814d85b19481a5cc81b9bdd081c185d5cd95960521b6044820152606401610d5b565b60198390556018805461ff00191661010060ff8516021790556119cd81613823565b6018805460ff19166001179081905560195460405161010090920460ff1682529042907f7ef3f57c7c810470372424b8e303f632778f314d2366d9239c0d6fad781da66d9060200160405180910390a3505050565b600a546001600160a01b03163314611a4c5760405162461bcd60e51b8152600401610d5b90614e43565b835160135461ffff16811115611a745760405162461bcd60e51b8152600401610d5b90614e01565b835181148015611a845750825181145b8015611a905750815181145b611aec5760405162461bcd60e51b815260206004820152602760248201527f4e543a20416c6c206c697374732073686f756c64206265207468652073616d65604482015266040d8cadccee8d60cb1b6064820152608401610d5b565b60005b81811015611dd3576000868281518110611b0b57611b0b6150f5565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611b5657600080fd5b505afa158015611b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8e9190614bd9565b1015611c025760405162461bcd60e51b815260206004820152603960248201527f4e543a2043616e6e6f742063616c6c2062616c616e63654f66206d6574686f6460448201527f206f6e207468652065787465726e616c20636f6e7472616374000000000000006064820152608401610d5b565b611c2f868281518110611c1757611c176150f5565b6020026020010151601061385d90919063ffffffff16565b50600060126000888481518110611c4857611c486150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001816001815401808255809150500390600052602060002090600502019050858281518110611ca257611ca26150f5565b60200260200101518160000181905550848281518110611cc457611cc46150f5565b60200260200101518160010160006101000a81548160ff021916908360ff160217905550838281518110611cfa57611cfa6150f5565b60200260200101518160020181905550858281518110611d1c57611d1c6150f5565b6020026020010151878381518110611d3657611d366150f5565b60200260200101516001600160a01b03167f640c9df610e65a449421f11005db9c48f618ff8ad02eafd39fbe3a1c5a67ee85878581518110611d7a57611d7a6150f5565b6020026020010151878681518110611d9457611d946150f5565b6020026020010151604051611db892919060ff929092168252602082015260400190565b60405180910390a350611dcc600182614f53565b9050611aef565b505050505050565b600a546001600160a01b03163314611e055760405162461bcd60e51b8152600401610d5b90614e43565b6013805461ffff191661ffff92909216919091179055565b606060018054610cae90615029565b600a546001600160a01b03163314611e565760405162461bcd60e51b8152600401610d5b90614e43565b60135481516201000090910461ffff161015611e845760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657611ebd828281518110611ea557611ea56150f5565b6020026020010151601061387290919063ffffffff16565b15611fc85760006001611efe848481518110611edb57611edb6150f5565b60200260200101516001600160a01b031660009081526012602052604090205490565b611f089190614fc3565b9050828281518110611f1c57611f1c6150f5565b60200260200101516001600160a01b03167f6bcc29dd661ba9880d292f2f49edbc9eaec3944756b757b0234854eedcb51a1060126000868681518110611f6457611f646150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208381548110611f9d57611f9d6150f5565b906000526020600020906005020160030154604051611fbe91815260200190565b60405180910390a2505b611fd3600182614f53565b9050611e87565b6000611fe582612ebe565b6120015760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b038216600090815260126020526040902054610c99565b600a546001600160a01b031633146120495760405162461bcd60e51b8152600401610d5b90614e43565b60155460ff161561209c5760405162461bcd60e51b815260206004820152601960248201527f4e543a2050726573616c65206973206e6f7420706175736564000000000000006044820152606401610d5b565b42601781905560168290556015805460ff1916600117905560405182907fc147e6a4093415fedfa3c5eec52d207a60276cb42b6acd4a6895d4b181179ce790600090a350565b6001600160a01b03821633141561213b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d5b565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600060146121b4836137b0565b6040516121c19190614c53565b9081526040519081900360200190205460ff1692915050565b600a546001600160a01b031633146122045760405162461bcd60e51b8152600401610d5b90614e43565b60135481516201000090910461ffff1610156122325760405162461bcd60e51b8152600401610d5b90614e01565b60005b815181101561143657600c6000838381518110612254576122546150f5565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156123b4576000600c6000848481518110612298576122986150f5565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508181815181106122e9576122e96150f5565b60200260200101516001600160a01b03167f34ae38791a72578b30ca926f9d74d54825c259f6eaa0c1c7e97b463a7d0cf7f0600d6000858581518110612331576123316150f5565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460405161236991815260200190565b60405180910390a2600d6000838381518110612387576123876150f5565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600090555b6123bf600182614f53565b9050612235565b60006123d2601061379a565b905090565b6000806000806123e685612ebe565b6124025760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b03851660009081526012602052604081205461242790600190614fc3565b6001600160a01b038716600090815260126020526040902080549192509082908110612455576124556150f5565b600091825260208083206005909202909101546001600160a01b038916835260129091526040909120805483908110612490576124906150f5565b60009182526020808320600160059093020191909101546001600160a01b038a16835260129091526040909120805460ff90921691849081106124d5576124d56150f5565b906000526020600020906005020160020154601260008a6001600160a01b03166001600160a01b03168152602001908152602001600020848154811061251d5761251d6150f5565b9060005260206000209060050201600301549450945094509450509193509193565b6000601d61254c836137b0565b6040516125599190614c53565b9081526020016040518091039020549050919050565b612579338361313d565b6125955760405162461bcd60e51b8152600401610d5b90614e78565b6125a184848484613887565b50505050565b6000818152600260205260409020546060906001600160a01b03166126265760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d5b565b60006126306138ba565b90506000815111612650576040518060200160405280600081525061267b565b8061265a846138c9565b60405160200161266b929190614c6f565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146126ac5760405162461bcd60e51b8152600401610d5b90614e43565b60005b815181101561143657600160146126d1848481518110611489576114896150f5565b6040516126de9190614c53565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507f65d525fb783e504cc4323307d8ae6e34d0a1822d7caca488ba524d0d33badfff828281518110612736576127366150f5565b602002602001015160405161274b9190614d1f565b60405180910390a161275e600182614f53565b90506126af565b60155460609060ff1661278a5760405162461bcd60e51b8152600401610d5b90614ec9565b6002600b5414156127dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5b565b6002600b55336127ec57600080fd5b600083511161283d5760405162461bcd60e51b815260206004820181905260248201527f4e543a204d757374206d696e74206174206c65617374206f6e6520746f6b656e6044820152606401610d5b565b60006128476139c6565b1161288b5760405162461bcd60e51b815260206004820152601460248201527313950e88141c995cd85b19481d1a5b59481bdd5d60621b6044820152606401610d5b565b61289482612ebe565b6128b05760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b0382166000908152601260205260408120546128d590600190614fc3565b6001600160a01b038416600090815260126020526040902080549192509082908110612903576129036150f5565b60009182526020909120600260059092020101546040516370a0823160e01b81523360048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561295657600080fd5b505afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e9190614bd9565b1015612a025760405162461bcd60e51b815260206004820152603860248201527f4e543a2053656e6465722062616c616e6365206f6e2074686520636f6e74726160448201527f6374206c657373207468616e206d696e2062616c616e636500000000000000006064820152608401610d5b565b6001600160a01b0383166000908152601260205260408120805483908110612a2c57612a2c6150f5565b6000918252602080832033845260046005909302019190910181526040808320546001600160a01b03881684526012909252909120805460ff90921692509083908110612a7b57612a7b6150f5565b6000918252602090912060016005909202010154855160ff91821691612aa49190841690614f53565b1115612afe5760405162461bcd60e51b815260206004820152602360248201527f4e543a2050726573616c6520636f6e7472616374206c696d697420657863656560448201526219195960ea1b6064820152608401610d5b565b84516001600160a01b038516600090815260126020526040902080543492919085908110612b2e57612b2e6150f5565b906000526020600020906005020160000154612b4a9190614fa4565b1115612b985760405162461bcd60e51b815260206004820152601f60248201527f4e543a2050726573616c652c20696e73756666696369656e742066756e6473006044820152606401610d5b565b84516001600160a01b0385166000908152601260205260409020805484908110612bc457612bc46150f5565b600091825260208083203384526004600590930201919091019052604081208054909190612bf690849060ff16614f6b565b92506101000a81548160ff021916908360ff160217905550845160126000866001600160a01b03166001600160a01b031681526020019081526020016000208381548110612c4657612c466150f5565b90600052602060002090600502016003016000828254612c669190614f53565b9091555050845160405190815233906001600160a01b038616907fb9f2571e9e71e1b60488705d4558dc8f55303e0e0b9f14d20d277e2657db88749060200160405180910390a3612cb68561367d565b6001600b5595945050505050565b600080826001600160a01b03166370a08231612ce8600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612d2757600080fd5b505afa158015612d3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5f9190614bd9565b101592915050565b60155460009060ff16612d8c5760405162461bcd60e51b8152600401610d5b90614ec9565b600060175411612dde5760405162461bcd60e51b815260206004820152601e60248201527f4e543a2050726573616c65206861736e277420737461727465642079657400006044820152606401610d5b565b6123d26139c6565b600a546001600160a01b03163314612e105760405162461bcd60e51b8152600401610d5b90614e43565b612e1981613823565b50565b6000818152601c60205260409020805460609190612e3990615029565b80601f0160208091040260200160405190810160405280929190818152602001828054612e6590615029565b8015612eb25780601f10612e8757610100808354040283529160200191612eb2565b820191906000526020600020905b815481529060010190602001808311612e9557829003601f168201915b50505050509050919050565b6000610c99601083613a08565b600a546001600160a01b03163314612ef55760405162461bcd60e51b8152600401610d5b90614e43565b6001600160a01b038116612f5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d5b565b612e1981613a2a565b600a546001600160a01b03163314612f8d5760405162461bcd60e51b8152600401610d5b90614e43565b47811115612f9a57600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610f6c573d6000803e3d6000fd5b6000612fdb83612ebe565b612ff75760405162461bcd60e51b8152600401610d5b90614db2565b6001600160a01b0383166000908152601260205260409020805461301d90600190614fc3565b8154811061302d5761302d6150f5565b600091825260208083206001600160a01b03861684526004600590930201919091019052604090205460ff16905092915050565b60006001600160e01b031982166380ac58cd60e01b148061309257506001600160e01b03198216635b5e139f60e01b145b80610c9957506301ffc9a760e01b6001600160e01b0319831614610c99565b600080601754116130c25750600090565b6017546123d29042614fc3565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906131048261152a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166131b65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d5b565b60006131c18361152a565b9050806001600160a01b0316846001600160a01b031614806131fc5750836001600160a01b03166131f184610dc6565b6001600160a01b0316145b8061322c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166132478261152a565b6001600160a01b0316146132af5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610d5b565b6001600160a01b0382166133115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d5b565b61331c838383613a7c565b6133276000826130cf565b6001600160a01b0383166000908152600360205260408120805460019290613350908490614fc3565b90915550506001600160a01b038216600090815260036020526040812080546001929061337e908490614f53565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000336133eb57600080fd5b6000821161343b5760405162461bcd60e51b815260206004820181905260248201527f4e543a204d757374206d696e74206174206c65617374206f6e6520746f6b656e6044820152606401610d5b565b60155460ff168015613454575060006134526139c6565b115b801561346f5750336000908152600c602052604090205460ff165b80156134965750600f54336000908152600d60205260409020546134939084614f53565b11155b15613500573482600e546134aa9190614fa4565b11156134f85760405162461bcd60e51b815260206004820152601f60248201527f4e543a2050726573616c652c20696e73756666696369656e742066756e6473006044820152606401610d5b565b506001919050565b60185460ff1661354b5760405162461bcd60e51b81526020600482015260166024820152754e543a2053616c65206973206e6f742061637469766560501b6044820152606401610d5b565b601b54156135b157601b54601a546135639084614f53565b11156135b15760405162461bcd60e51b815260206004820152601c60248201527f4e543a204c696d6974656420616d6f756e74206f6620746f6b656e73000000006044820152606401610d5b565b601854610100900460ff1682111561361f5760405162461bcd60e51b815260206004820152602b60248201527f4e543a204c696d6974656420616d6f756e74206f6620746f6b656e7320696e2060448201526a3a3930b739b0b1ba34b7b760a91b6064820152608401610d5b565b348260195461362e9190614fa4565b11156136755760405162461bcd60e51b81526020600482015260166024820152754e543a20496e73756666696369656e742066756e647360501b6044820152606401610d5b565b506000919050565b6060600082516001600160401b0381111561369a5761369a61510b565b6040519080825280602002602001820160405280156136c3578160200160208202803683370190505b50905060005b8351811015613793576136db33613b34565b8282815181106136ed576136ed6150f5565b60200260200101818152505061373582828151811061370e5761370e6150f5565b6020026020010151858381518110613728576137286150f5565b6020026020010151613b57565b6137815760405162461bcd60e51b815260206004820152601b60248201527f4e543a204e616d652063616e6e6f742062652061737369676e656400000000006044820152606401610d5b565b61378c600182614f53565b90506136c9565b5092915050565b6000610c99825490565b600061267b8383613d8b565b60608160005b8151811015613793576137e88282815181106137d4576137d46150f5565b01602001516001600160f81b031916613db5565b8282815181106137fa576137fa6150f5565b60200101906001600160f81b031916908160001a9053508061381b81615064565b9150506137b6565b6000601a819055601b829055604051829142917ff403d999bb7ab2cf3b077b758050ab9a805fa792c7c63a66fb2c61c536940b929190a350565b600061267b836001600160a01b038416613e04565b600061267b836001600160a01b038416613e53565b613892848484613234565b61389e84848484613f46565b6125a15760405162461bcd60e51b8152600401610d5b90614d60565b6060601e8054610cae90615029565b6060816138ed5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613917578061390181615064565b91506139109050600a83614f90565b91506138f1565b6000816001600160401b038111156139315761393161510b565b6040519080825280601f01601f19166020018201604052801561395b576020820181803683370190505b5090505b841561322c57613970600183614fc3565b915061397d600a8661509f565b613988906030614f53565b60f81b81838151811061399d5761399d6150f5565b60200101906001600160f81b031916908160001a9053506139bf600a86614f90565b945061395f565b6000601754600014806139e257506016546139df6130b1565b10155b156139ed5750600090565b426016546017546139fe9190614f53565b6123d29190614fc3565b6001600160a01b0381166000908152600183016020526040812054151561267b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316613ad757613ad281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613afa565b816001600160a01b0316836001600160a01b031614613afa57613afa8382614053565b6001600160a01b038216613b1157610f6c816140f0565b826001600160a01b0316826001600160a01b031614610f6c57610f6c828261419f565b600080613b4060085490565b613b4b906001614f53565b9050610c9983826141e3565b6000806060613b65846141fd565b9092509050811580613b965750601d81604051613b829190614c53565b908152602001604051809103902054600014155b80613bc05750601481604051613bac9190614c53565b9081526040519081900360200190205460ff165b15613bd057600092505050610c99565b601f5460ff1615613cc45760405163b336ad8360e01b81526001600160a01b037f000000000000000000000000c9eef4c46abcb11002c9bb8a47445c96cdbcaffb169063b336ad8390613c27908490600401614d1f565b60206040518083038186803b158015613c3f57600080fd5b505afa158015613c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c779190614bd9565b15613cc45760405162461bcd60e51b815260206004820152601b60248201527f4e543a204578697374206e616d6520696e2076657273696f6e203100000000006044820152606401610d5b565b6000613ccf86612e1c565b90506000613cdc826137b0565b90506000601d82604051613cf09190614c53565b9081526040805160209281900383019020929092556000898152601c8252919091208751613d2092890190614554565b5086601d84604051613d329190614c53565b908152602001604051809103902081905550867fd03378e710a4f526d1030d6dd70e5c0999dcaf843ca8a83aadcb0946a251de8e8388604051613d76929190614d32565b60405180910390a25060019695505050505050565b6000826000018281548110613da257613da26150f5565b9060005260206000200154905092915050565b6000606160f81b6001600160f81b0319831610801590613de35750603d60f91b6001600160f81b0319831611155b15613e0057613df7602060f884901c614fda565b60f81b92915050565b5090565b6000818152600183016020526040812054613e4b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c99565b506000610c99565b60008181526001830160205260408120548015613f3c576000613e77600183614fc3565b8554909150600090613e8b90600190614fc3565b9050818114613ef0576000866000018281548110613eab57613eab6150f5565b9060005260206000200154905080876000018481548110613ece57613ece6150f5565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613f0157613f016150df565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c99565b6000915050610c99565b60006001600160a01b0384163b1561404857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f8a903390899088908890600401614c9e565b602060405180830381600087803b158015613fa457600080fd5b505af1925050508015613fd4575060408051601f3d908101601f19168201909252613fd191810190614b4b565b60015b61402e573d808015614002576040519150601f19603f3d011682016040523d82523d6000602084013e614007565b606091505b5080516140265760405162461bcd60e51b8152600401610d5b90614d60565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061322c565b506001949350505050565b60006001614060846115ff565b61406a9190614fc3565b6000838152600760205260409020549091508082146140bd576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061410290600190614fc3565b6000838152600960205260408120546008805493945090928490811061412a5761412a6150f5565b90600052602060002001549050806008838154811061414b5761414b6150f5565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614183576141836150df565b6001900381819060005260206000200160009055905550505050565b60006141aa836115ff565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6114368282604051806020016040528060008152506143d3565b80516000906060908390614227576000604051806020016040528060008152509250925050915091565b60248151111561424d576000604051806020016040528060008152509250925050915091565b600081516001600160401b038111156142685761426861510b565b6040519080825280601f01601f191660200182016040528015614292576020820181803683370190505b50905060005b82518160ff1610156143c6576000838260ff16815181106142bb576142bb6150f5565b01602001516001600160f81b0319169050600360fc1b81108015906142ee5750603960f81b6001600160f81b0319821611155b1580156143245750604160f81b6001600160f81b03198216108015906143225750602d60f91b6001600160f81b0319821611155b155b80156143595750606160f81b6001600160f81b03198216108015906143575750603d60f91b6001600160f81b0319821611155b155b1561437d576000604051806020016040528060008152509550955050505050915091565b61438681613db5565b838360ff168151811061439b5761439b6150f5565b60200101906001600160f81b031916908160001a9053505080806143be9061507f565b915050614298565b5060019590945092505050565b6143dd8383614406565b6143ea6000848484613f46565b610f6c5760405162461bcd60e51b8152600401610d5b90614d60565b6001600160a01b03821661445c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d5b565b6000818152600260205260409020546001600160a01b0316156144c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d5b565b6144cd60008383613a7c565b6001600160a01b03821660009081526003602052604081208054600192906144f6908490614f53565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461456090615029565b90600052602060002090601f01602090048101928261458257600085556145c8565b82601f1061459b57805160ff19168380011785556145c8565b828001600101855582156145c8579182015b828111156145c85782518255916020019190600101906145ad565b50613e009291505b80821115613e0057600081556001016145d0565b60006001600160401b038311156145fd576145fd61510b565b614610601f8401601f1916602001614f00565b905082815283838301111561462457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261464c57600080fd5b8135602061466161465c83614f30565b614f00565b80838252828201915082860187848660051b890101111561468157600080fd5b60005b858110156146a957813561469781615121565b84529284019290840190600101614684565b5090979650505050505050565b600082601f8301126146c757600080fd5b813560206146d761465c83614f30565b80838252828201915082860187848660051b89010111156146f757600080fd5b6000805b868110156147395782356001600160401b03811115614718578283fd5b6147268b88838d01016147bc565b86525093850193918501916001016146fb565b509198975050505050505050565b600082601f83011261475857600080fd5b8135602061476861465c83614f30565b80838252828201915082860187848660051b890101111561478857600080fd5b60005b858110156146a95781358452928401929084019060010161478b565b803580151581146147b757600080fd5b919050565b600082601f8301126147cd57600080fd5b61267b838335602085016145e4565b803560ff811681146147b757600080fd5b6000602082840312156147ff57600080fd5b813561267b81615121565b6000806040838503121561481d57600080fd5b823561482881615121565b946020939093013593505050565b6000806040838503121561484957600080fd5b823561485481615121565b9150602083013561486481615121565b809150509250929050565b60008060006060848603121561488457600080fd5b833561488f81615121565b9250602084013561489f81615121565b929592945050506040919091013590565b600080600080608085870312156148c657600080fd5b84356148d181615121565b935060208501356148e181615121565b92506040850135915060608501356001600160401b0381111561490357600080fd5b8501601f8101871361491457600080fd5b614923878235602084016145e4565b91505092959194509250565b6000806040838503121561494257600080fd5b823561494d81615121565b915061495b602084016147a7565b90509250929050565b60006020828403121561497657600080fd5b81356001600160401b0381111561498c57600080fd5b61322c8482850161463b565b600080600080608085870312156149ae57600080fd5b84356001600160401b03808211156149c557600080fd5b6149d18883890161463b565b95506020915081870135818111156149e857600080fd5b6149f489828a01614747565b955050604087013581811115614a0957600080fd5b8701601f81018913614a1a57600080fd5b8035614a2861465c82614f30565b8082825285820191508584018c878560051b8701011115614a4857600080fd5b600094505b83851015614a7257614a5e816147dc565b835260019490940193918601918601614a4d565b5096505050506060870135915080821115614a8c57600080fd5b5061492387828801614747565b600060208284031215614aab57600080fd5b81356001600160401b03811115614ac157600080fd5b61322c848285016146b6565b60008060408385031215614ae057600080fd5b82356001600160401b03811115614af657600080fd5b614b02858286016146b6565b925050602083013561486481615121565b600060208284031215614b2557600080fd5b61267b826147a7565b600060208284031215614b4057600080fd5b813561267b81615136565b600060208284031215614b5d57600080fd5b815161267b81615136565b600060208284031215614b7a57600080fd5b81356001600160401b03811115614b9057600080fd5b61322c848285016147bc565b600060208284031215614bae57600080fd5b813561ffff8116811461267b57600080fd5b600060208284031215614bd257600080fd5b5035919050565b600060208284031215614beb57600080fd5b5051919050565b600080600060608486031215614c0757600080fd5b83359250614c17602085016147dc565b9150604084013590509250925092565b60008151808452614c3f816020860160208601614ffd565b601f01601f19169290920160200192915050565b60008251614c65818460208701614ffd565b9190910192915050565b60008351614c81818460208801614ffd565b835190830190614c95818360208801614ffd565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cd190830184614c27565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614d1357835183529284019291840191600101614cf7565b50909695505050505050565b60208152600061267b6020830184614c27565b604081526000614d456040830185614c27565b8281036020840152614d578185614c27565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602f908201527f4e543a20436f6e74726163742061646472657373206973206e6f7420696e207460408201526e1a1948185b1b1bddd959081b1a5cdd608a1b606082015260800190565b60208082526022908201527f4e543a204c697374206f662061646472657373657320697320746f6f206c6172604082015261676560f01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526019908201527f4e543a2050726573616c65206973206e6f742061637469766500000000000000604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614f2857614f2861510b565b604052919050565b60006001600160401b03821115614f4957614f4961510b565b5060051b60200190565b60008219821115614f6657614f666150b3565b500190565b600060ff821660ff84168060ff03821115614f8857614f886150b3565b019392505050565b600082614f9f57614f9f6150c9565b500490565b6000816000190483118215151615614fbe57614fbe6150b3565b500290565b600082821015614fd557614fd56150b3565b500390565b600060ff821660ff841680821015614ff457614ff46150b3565b90039392505050565b60005b83811015615018578181015183820152602001615000565b838111156125a15750506000910152565b600181811c9082168061503d57607f821691505b6020821081141561505e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615078576150786150b3565b5060010190565b600060ff821660ff811415615096576150966150b3565b60010192915050565b6000826150ae576150ae6150c9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612e1957600080fd5b6001600160e01b031981168114612e1957600080fdfea26469706673582212203804a4fd0e4a39e66ea54138c94511e728528b14776a143e4c482b34ad777d2064736f6c63430008060033

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

0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000320000000000000000000000000c9eef4c46abcb11002c9bb8a47445c96cdbcaffb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000074e616d657461670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6e616d657461672e6f72672f6170692f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Nametag
Arg [1] : symbol_ (string): NT
Arg [2] : baseURI_ (string): https://nametag.org/api/metadata/
Arg [3] : allowListPrice_ (uint256): 0
Arg [4] : allowListLimit_ (uint256): 1
Arg [5] : addToAllowListLimit_ (uint16): 500
Arg [6] : removeFromAllowListLimit_ (uint16): 800
Arg [7] : token_ (address): 0xc9EEf4c46ABcb11002c9bB8A47445C96CDBcAffb
Arg [8] : validateNameTagV1_ (bool): True

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [7] : 000000000000000000000000c9eef4c46abcb11002c9bb8a47445c96cdbcaffb
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [10] : 4e616d6574616700000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 4e54000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [14] : 68747470733a2f2f6e616d657461672e6f72672f6170692f6d65746164617461
Arg [15] : 2f00000000000000000000000000000000000000000000000000000000000000


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.