ETH Price: $3,178.78 (+3.00%)

Token

Polyverse Art by Idriss B. (PABI)
 

Overview

Max Total Supply

2,554 PABI

Holders

1,313

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 PABI
0x6cc8e69b0bf1d336519b87f1f13985229fc62ead
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Polyverse Art is a unique collection launched on the Ethereum blockchain, created by the renowned artist Idriss B, his statues can be seen all over the globe in places like Dubai, Miami and New York City.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PABI

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : PABI.sol
// PABI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract PABI is ERC721Enumerable, Ownable {

	using SafeMath for uint256;

	using Counters for Counters.Counter;
	Counters.Counter private tokenIds;
	
	uint256 public maxSupply = 11001;
	uint256 public maxPresaleSupply = 700;
	uint256 public mintedPresaleSupply = 0;
	string private baseUri = "https://polyverseart.mypinata.cloud/ipfs/Qme7ALw4X1ygyDgDTMF1uvVwr8RPgkbgyPZJMkvfBCHDAc/";
	string private contractUri = "https://polyverseart.mypinata.cloud/ipfs/QmUWVASv8uBzh1ANA9Kh7yoTMr2koAxtKvdCCx59nuVY7M";
	string private beforeRevealUri = "https://polyverseart.mypinata.cloud/ipfs/QmSUu7yyFEeb6ezxYtrtHHnMdhbmRRFCNzqZPpBAdA7TrK";
	bool private isRevealed = false;

	enum SaleStatus { NotSale, PreSale, PublicSale }
	SaleStatus private saleStatus = SaleStatus.NotSale;

	uint256 public currentPrice = 0.2 ether;

	mapping (address => bool) private whiteList;
	
	uint256 private maxTokensWhitelistWallet = 2;
	uint256 private maxTokensPublicSaleWallet = 50;
	uint256 private mintLimit = 10;

	//bool public isSetStoreWallet; //init to false by default
	//address public storeWallet;//init to address(0) by default

	
	mapping (address => uint256) public walletMintedTokensPresale;
	mapping (address => uint256) public walletMintedTokensSale;
	mapping(uint256 => address) public whitelistTokensOwners;
	mapping(uint256 => uint256) public whitelistTokens;
    uint256 public whitelistTokensLength; //0 by default

	mapping (uint256 => address) private reservedTokensOwners;
	mapping (uint256 => bool) private tokenReserveStatus;
	mapping(uint256 => uint256) public reservedTokens;
    uint256 public reservedTokensLength; //0 by default

	event TokensMinted(address to, uint256 numOfToken);
    event TokensMintedPresale(address to, uint256 numOfToken);
   

	modifier onlyWhitelisted {
		require(whiteList[msg.sender], "not whitelisted");
		_;
	}

	constructor() ERC721("Polyverse Art by Idriss B.", "PABI") {}

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

	function reserveToken(address ownerAddr, uint256 tokenId) external onlyOwner {
		require(ownerAddr != address(0), "Reserve: Owner address invalid");
		require(tokenId > 0, "Reserve: Token Id is invalid");
		require(tokenId <= maxSupply, "Reserve: Overdue to max token Id");
		require(!_exists(tokenId), "Reserve: Token already minted");
		reservedTokensOwners[tokenId] = ownerAddr;
        reservedTokens[reservedTokensLength] = tokenId;
		reservedTokensLength++;
		tokenReserveStatus[tokenId] = true;
	}

    //all or nothing approach could fail (just can't be digested for node), and you need fall back
    //if reservedTokensLength is 100 (0..99), you can do it in 0..100, if fails do it in 
    //parts
    //0-10 (0..9)
    //10-20 (10..19)
    //and so on
    //90-100
	function airdropReservedTokens(uint256 startRange, uint256 endRange) external onlyOwner {
        require(startRange >= 0 && endRange <= reservedTokensLength,"out of range");
		for (uint256 i=startRange; i < endRange; i++) {
			uint256 tokenId = reservedTokens[i];
			address holderAddress = reservedTokensOwners[tokenId];
			if (holderAddress != address(0)) {
                _safeMint(holderAddress, tokenId);
				reservedTokensOwners[tokenId] = address(0);
			}
		}
	}


   function airdropReservedTokensByUser() external  {      
		for (uint256 i=0; i < reservedTokensLength; i++) {
			uint256 tokenId = reservedTokens[i];
			address holderAddress = reservedTokensOwners[tokenId];
			if (holderAddress == msg.sender) { //msg.sender cannot be address(0)
                _safeMint(holderAddress, tokenId);
				reservedTokensOwners[tokenId] = address(0);
			}
		}
	}

	
    function airdropReservedIsDone() external view returns(bool){
        bool status = true;
        for (uint256 i = 0; i < reservedTokensLength; i++) {
            status = status && _exists(reservedTokens[i]);
            if (!status) break;
        }
        return status;
    }

	function _availableTokenId() internal returns (uint256) {
		uint256 tokenId;
		while (tokenIds.current() < maxSupply) {
			tokenIds.increment();
			tokenId = tokenIds.current();
			if (!tokenReserveStatus[tokenId]) {
				break;
			}  
		}
		return tokenId;
	}

	function _mintToken(address to, uint256 numOfToken) internal {
		require(numOfToken > 0, "MINT: need to mint at least 1 token");
		require(numOfToken <= mintLimit, "MINT: exceed transaction limit");
		require((totalSupply() + numOfToken) <= maxSupply, "MINT: reach max supply");
		require(to != address(0), "MINT: zero address");
		for (uint256 i=0;i<numOfToken;i++) {
			uint256 tokenId = _availableTokenId();
			require(tokenId != 0, "no available token id");
			_safeMint(to, tokenId);
		}

        // we call this function from mintOwner also (not only from mintToken), 
        // mintOnwer could work at PreSale, not only at PublicSale, so we need to track this
        if (saleStatus == SaleStatus.PreSale ){
            walletMintedTokensPresale[to] += numOfToken;
        } else if (saleStatus == SaleStatus.PublicSale ) {
            walletMintedTokensSale[to] += numOfToken;
        }
		
		
		emit TokensMinted(to, numOfToken);

	}

	function mintOwner(address to, uint256 numOfToken) external onlyOwner {
		require(saleStatus != SaleStatus.NotSale, "MINT: not in Sale");
		_mintToken(to, numOfToken);
	}

	function mintPreSale(uint256 numOfToken) external payable onlyWhitelisted {
		require(saleStatus == SaleStatus.PreSale, "PreSale: not in PreSale");
		require(currentPrice.mul(numOfToken) == msg.value, "PreSale: incorrect ether amount");
		require(numOfToken > 0, "PreSale: need to mint at least 1 token");
		require(numOfToken <= mintLimit, "PreSale: exceed transaction limit");
		require(mintedPresaleSupply + numOfToken <= maxPresaleSupply, "PreSale: exceed max presale limit");
		require(walletMintedTokensPresale[msg.sender] + numOfToken <= maxTokensWhitelistWallet, "PreSale: exceed presale wallet limit");
		require((totalSupply() + numOfToken) <= maxSupply, "PreSale: reach max supply");

		for (uint256 i=0;i<numOfToken;i++) {
			uint256 tokenId = _availableTokenId();
			require(tokenId != 0, "no available token id");
			whitelistTokensOwners[tokenId] = msg.sender;
			whitelistTokens[whitelistTokensLength] = tokenId;
            whitelistTokensLength++;
		}
		walletMintedTokensPresale[msg.sender] += numOfToken;
		mintedPresaleSupply += numOfToken;
		emit TokensMintedPresale(msg.sender, numOfToken);
	}

	function mintToken(uint256 numOfToken) external payable {
		require(saleStatus == SaleStatus.PublicSale, "MINT: not in Sale");
		require(currentPrice.mul(numOfToken) == msg.value, "MINT: incorrect ether amount");
		require(walletMintedTokensSale[msg.sender] + numOfToken <= maxTokensPublicSaleWallet, "MINT: exceed wallet limit");
		_mintToken(msg.sender, numOfToken);
	}

   

    //all or nothing approach could fail (just can't be digested for node), and you need fall back
    //if whitelistTokensLength is 100 (0..99), you can do it in 0..100, if fails do it in 
    //parts
    //0-10 (0..9)
    //10-20 (10..19)
    //and so on
    //90-100
    function airdropWhitelistTokens(uint256 startRange, uint256 endRange) external onlyOwner {
		require(saleStatus == SaleStatus.PublicSale, "Public Sale is not started yet.");
        require(startRange >= 0 && endRange <= whitelistTokensLength,"out of range");
		
		for (uint256 i = startRange; i < endRange; i++) {
            _safeMint(whitelistTokensOwners[whitelistTokens[i]], whitelistTokens[i]);
		}
	}

    
    function airdropWhitelistTokensByUser() external  {
		require(saleStatus == SaleStatus.PublicSale, "Public Sale is not started yet.");
		
		for (uint256 i = 0; i < whitelistTokensLength; i++) {
			uint256 tkn = whitelistTokens[i];
			if (msg.sender == whitelistTokensOwners[tkn] && !_exists(tkn))
                _safeMint(msg.sender, tkn);
		}
	}

    function airdropWhitelistedIsDone() external view returns(bool){
        bool status = true;
        for (uint256 i = 0; i < whitelistTokensLength; i++) {
            status = status && _exists(whitelistTokens[i]);
            if (!status) break;
        }
        return status;
    }

	function getSaleStatus() public view returns (SaleStatus) {
		return saleStatus;
	}

	function getCurrentPrice() public view returns (uint256) {
		return currentPrice;
	}

	function setBaseURI(string memory newBaseURI) external onlyOwner {
		baseUri = newBaseURI;
	}

	function setSaleStatus(SaleStatus newStatus) external onlyOwner {
		saleStatus = newStatus;
	}
	
	function addToWhitelist(address addr) external onlyOwner {
		whiteList[addr] = true;
	}

	function addToWhitelistBulk(address[] calldata addr) external onlyOwner {
		for (uint256 i=0; i < addr.length; i++){
			whiteList[addr[i]] = true;
		}
		
	}

	function removeFromWhitelist(address addr) external onlyOwner {
		whiteList[addr] = false;
	}

	function isWhitelisted(address addr) external view returns(bool){
		return whiteList[addr];
	}

	function setCurrentPrice(uint256 newPrice) external onlyOwner {
		currentPrice = newPrice;
	}

	function setMintLimit(uint256 newLimit) external onlyOwner {
		mintLimit = newLimit;
	}

	function setMaxTokensWhitelistWallet(uint256 newLimit) external onlyOwner {
		maxTokensWhitelistWallet = newLimit;
	}

	function setMaxTokensPublicSaleWallet(uint256 newLimit) external onlyOwner {
		maxTokensPublicSaleWallet = newLimit;
	}

	function setMaxSupply(uint256 supply) external onlyOwner {
		maxSupply = supply;
	}

	function setMaxPresaleSupply(uint256 supply) external onlyOwner {
		require(supply < maxSupply, "maxPresaleSupply should be less than maxSupply");
		maxPresaleSupply = supply;
	}
    

	function withdraw() external onlyOwner {
		require(address(this).balance > 0, "no balance");
		bool success = false;
		(success, ) = (payable(msg.sender)).call{value: address(this).balance}("");
		require(success, "withdraw failed");
	}

	receive() external payable {
		require(msg.value == 0, "do not accept direct ether send"); //do not accept ether
	}

	function setContractURI(string memory newContractUri) external onlyOwner {
		contractUri = newContractUri;
	}

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

	function setBeforeRevealUri(string memory newUri) external onlyOwner {
		beforeRevealUri = newUri;
	}
	function getBeforeRevealUri() external view returns (string memory) {
		return beforeRevealUri;
	}

	function setRevealStatus(bool status) external onlyOwner {
		isRevealed = status;
	}
	function getRevealStatus() external view returns (bool) {
		return isRevealed;
	}

	function tokenURI(uint256 tokenId) public  view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
		if (!isRevealed){
			return beforeRevealUri;
		} else {
        	return super.tokenURI(tokenId);
		}
    }

}

File 2 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 15 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 7 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = 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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    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 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 10 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 13 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"numOfToken","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"numOfToken","type":"uint256"}],"name":"TokensMintedPresale","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":"address","name":"addr","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"}],"name":"addToWhitelistBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropReservedIsDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startRange","type":"uint256"},{"internalType":"uint256","name":"endRange","type":"uint256"}],"name":"airdropReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropReservedTokensByUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startRange","type":"uint256"},{"internalType":"uint256","name":"endRange","type":"uint256"}],"name":"airdropWhitelistTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropWhitelistTokensByUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropWhitelistedIsDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBeforeRevealUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRevealStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"enum PABI.SaleStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numOfToken","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numOfToken","type":"uint256"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numOfToken","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedPresaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddr","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reserveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reservedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedTokensLength","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setBeforeRevealUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxPresaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setMaxTokensPublicSaleWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setMaxTokensWhitelistWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setRevealStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum PABI.SaleStatus","name":"newStatus","type":"uint8"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[{"internalType":"address","name":"","type":"address"}],"name":"walletMintedTokensPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMintedTokensSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistTokensOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

612af9600c556102bc600d556000600e55610100604052605860808181529062003c5b60a03980516200003b91600f91602090910190620001c2565b5060405180608001604052806057815260200162003cb36057913980516200006c91601091602090910190620001c2565b5060405180608001604052806057815260200162003c046057913980516200009d91601191602090910190620001c2565b506012805461ffff191690556702c68af0bb14000060135560026015556032601655600a601755348015620000d157600080fd5b50604080518082018252601a81527f506f6c797665727365204172742062792049647269737320422e0000000000006020808301918252835180850190945260048452635041424960e01b9084015281519192916200013391600091620001c2565b50805162000149906001906020840190620001c2565b50505062000166620001606200016c60201b60201c565b62000170565b620002a5565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001d09062000268565b90600052602060002090601f016020900481019282620001f457600085556200023f565b82601f106200020f57805160ff19168380011785556200023f565b828001600101855582156200023f579182015b828111156200023f57825182559160200191906001019062000222565b506200024d92915062000251565b5090565b5b808211156200024d576000815560010162000252565b600181811c908216806200027d57607f821691505b602082108114156200029f57634e487b7160e01b600052602260045260246000fd5b50919050565b61394f80620002b56000396000f3fe6080604052600436106103a65760003560e01c806379657870116101e7578063b98847721161010d578063e43252d7116100a0578063eb91d37e1161006f578063eb91d37e14610b2f578063f2fde38b14610b44578063f8cd1af914610b64578063fa5b6d7814610b7a57600080fd5b8063e43252d714610a9b578063e8693f3814610abb578063e8a3d48514610ad1578063e985e9c514610ae657600080fd5b8063cf7b4687116100dc578063cf7b468714610a2f578063d0ab14fb14610a4f578063d5abeb0114610a65578063d6f1c22614610a7b57600080fd5b8063b9884772146109d4578063c634d032146109e7578063c87b56dd146109fa578063cafc8c6714610a1a57600080fd5b8063938e3d7b116101855780639e6a1d7d116101545780639e6a1d7d14610954578063a22cb46514610974578063a81c804e14610994578063b88d4fde146109b457600080fd5b8063938e3d7b146108d357806395d89b41146108f35780639d19e01e146109085780639d1b464a1461093e57600080fd5b80638ab1d681116101c15780638ab1d681146108435780638c3c4b34146108635780638da5cb5b146108885780638f02a0c4146108a657600080fd5b806379657870146107ee5780637d64d3931461080e57806384c99fb41461082357600080fd5b8063408cbf94116102cc57806360b1b4381161026a5780636f8b44b0116102395780636f8b44b01461078457806370a08231146107a4578063715018a6146107c45780637295a403146107d957600080fd5b806360b1b4381461070c5780636352211e1461072c5780636844e2381461074c5780636d4c641a1461076457600080fd5b80634f6ccce7116102a65780634f6ccce71461067257806355f804b3146106925780635b28b46c146106b2578063602a70f1146106df57600080fd5b8063408cbf941461061257806342842e0e146106325780634891ad881461065257600080fd5b806318b20071116103445780632f745c59116103135780632f745c591461058f5780633054eabb146105af5780633af32abf146105c45780633ccfd60b146105fd57600080fd5b806318b200711461051957806321bdb26e1461053957806323b872dd1461054f57806324178c231461056f57600080fd5b8063081812fc11610380578063081812fc14610497578063095ea7b3146104cf57806310f582d9146104ef57806318160ddd1461050457600080fd5b806301ffc9a71461040557806303a6118c1461043a57806306fdde031461047557600080fd5b366104005734156103fe5760405162461bcd60e51b815260206004820152601f60248201527f646f206e6f7420616363657074206469726563742065746865722073656e640060448201526064015b60405180910390fd5b005b600080fd5b34801561041157600080fd5b506104256104203660046134b4565b610b9a565b60405190151581526020015b60405180910390f35b34801561044657600080fd5b50610467610455366004613558565b601f6020526000908152604090205481565b604051908152602001610431565b34801561048157600080fd5b5061048a610bc5565b6040516104319190613653565b3480156104a357600080fd5b506104b76104b2366004613558565b610c57565b6040516001600160a01b039091168152602001610431565b3480156104db57600080fd5b506103fe6104ea3660046133fa565b610cdf565b3480156104fb57600080fd5b50610425610df5565b34801561051057600080fd5b50600854610467565b34801561052557600080fd5b506103fe610534366004613558565b610e49565b34801561054557600080fd5b50610467600d5481565b34801561055b57600080fd5b506103fe61056a366004613318565b610e78565b34801561057b57600080fd5b506103fe61058a36600461350f565b610ea9565b34801561059b57600080fd5b506104676105aa3660046133fa565b610eea565b3480156105bb57600080fd5b506103fe610f80565b3480156105d057600080fd5b506104256105df3660046132ca565b6001600160a01b031660009081526014602052604090205460ff1690565b34801561060957600080fd5b506103fe610ffb565b34801561061e57600080fd5b506103fe61062d3660046133fa565b6110ee565b34801561063e57600080fd5b506103fe61064d366004613318565b611182565b34801561065e57600080fd5b506103fe61066d3660046134ee565b61119d565b34801561067e57600080fd5b5061046761068d366004613558565b6111f0565b34801561069e57600080fd5b506103fe6106ad36600461350f565b611283565b3480156106be57600080fd5b506104676106cd3660046132ca565b60196020526000908152604090205481565b3480156106eb57600080fd5b506104676106fa366004613558565b601b6020526000908152604090205481565b34801561071857600080fd5b506103fe610727366004613558565b6112c0565b34801561073857600080fd5b506104b7610747366004613558565b6112ef565b34801561075857600080fd5b5060125460ff16610425565b34801561077057600080fd5b506103fe61077f366004613571565b611366565b34801561079057600080fd5b506103fe61079f366004613558565b611444565b3480156107b057600080fd5b506104676107bf3660046132ca565b611473565b3480156107d057600080fd5b506103fe6114fa565b3480156107e557600080fd5b50610425611530565b3480156107fa57600080fd5b506103fe6108093660046133fa565b61157e565b34801561081a57600080fd5b506103fe61175a565b34801561082f57600080fd5b506103fe61083e366004613499565b61182f565b34801561084f57600080fd5b506103fe61085e3660046132ca565b61186c565b34801561086f57600080fd5b50601254610100900460ff16604051610431919061362b565b34801561089457600080fd5b50600a546001600160a01b03166104b7565b3480156108b257600080fd5b506104676108c13660046132ca565b60186020526000908152604090205481565b3480156108df57600080fd5b506103fe6108ee36600461350f565b6118b7565b3480156108ff57600080fd5b5061048a6118f4565b34801561091457600080fd5b506104b7610923366004613558565b601a602052600090815260409020546001600160a01b031681565b34801561094a57600080fd5b5061046760135481565b34801561096057600080fd5b506103fe61096f366004613558565b611903565b34801561098057600080fd5b506103fe61098f3660046133d0565b611932565b3480156109a057600080fd5b506103fe6109af366004613424565b61193d565b3480156109c057600080fd5b506103fe6109cf366004613354565b6119d9565b6103fe6109e2366004613558565b611a11565b6103fe6109f5366004613558565b611e56565b348015610a0657600080fd5b5061048a610a15366004613558565b611f87565b348015610a2657600080fd5b5061048a612058565b348015610a3b57600080fd5b506103fe610a4a366004613558565b612067565b348015610a5b57600080fd5b50610467600e5481565b348015610a7157600080fd5b50610467600c5481565b348015610a8757600080fd5b506103fe610a96366004613571565b612096565b348015610aa757600080fd5b506103fe610ab63660046132ca565b6121bf565b348015610ac757600080fd5b50610467601c5481565b348015610add57600080fd5b5061048a61220d565b348015610af257600080fd5b50610425610b013660046132e5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3b57600080fd5b50601354610467565b348015610b5057600080fd5b506103fe610b5f3660046132ca565b61221c565b348015610b7057600080fd5b5061046760205481565b348015610b8657600080fd5b506103fe610b95366004613558565b6122b4565b60006001600160e01b0319821663780e9d6360e01b1480610bbf5750610bbf8261234b565b92915050565b606060008054610bd49061381b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c009061381b565b8015610c4d5780601f10610c2257610100808354040283529160200191610c4d565b820191906000526020600020905b815481529060010190602001808311610c3057829003601f168201915b5050505050905090565b6000610c628261239b565b610cc35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103f5565b506000908152600460205260409020546001600160a01b031690565b6000610cea826112ef565b9050806001600160a01b0316836001600160a01b03161415610d585760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103f5565b336001600160a01b0382161480610d745750610d748133610b01565b610de65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016103f5565b610df083836123b8565b505050565b60006001815b602054811015610e4357818015610e2557506000818152601f6020526040902054610e259061239b565b915081610e3157610e43565b80610e3b81613850565b915050610dfb565b50919050565b600a546001600160a01b03163314610e735760405162461bcd60e51b81526004016103f5906136b8565b601355565b610e823382612426565b610e9e5760405162461bcd60e51b81526004016103f59061373c565b610df0838383612510565b600a546001600160a01b03163314610ed35760405162461bcd60e51b81526004016103f5906136b8565b8051610ee6906011906020840190613194565b5050565b6000610ef583611473565b8210610f575760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016103f5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b60005b602054811015610ff8576000818152601f6020908152604080832054808452601d909252909120546001600160a01b031633811415610fe357610fc681836126bb565b6000828152601d6020526040902080546001600160a01b03191690555b50508080610ff090613850565b915050610f83565b50565b600a546001600160a01b031633146110255760405162461bcd60e51b81526004016103f5906136b8565b600047116110625760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b60448201526064016103f5565b604051600090339047908381818185875af1925050503d80600081146110a4576040519150601f19603f3d011682016040523d82523d6000602084013e6110a9565b606091505b50508091505080610ff85760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b60448201526064016103f5565b600a546001600160a01b031633146111185760405162461bcd60e51b81526004016103f5906136b8565b6000601254610100900460ff166002811115611136576111366138ab565b14156111785760405162461bcd60e51b81526020600482015260116024820152704d494e543a206e6f7420696e2053616c6560781b60448201526064016103f5565b610ee682826126d5565b610df0838383604051806020016040528060008152506119d9565b600a546001600160a01b031633146111c75760405162461bcd60e51b81526004016103f5906136b8565b6012805482919061ff0019166101008360028111156111e8576111e86138ab565b021790555050565b60006111fb60085490565b821061125e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016103f5565b60088281548110611271576112716138d7565b90600052602060002001549050919050565b600a546001600160a01b031633146112ad5760405162461bcd60e51b81526004016103f5906136b8565b8051610ee690600f906020840190613194565b600a546001600160a01b031633146112ea5760405162461bcd60e51b81526004016103f5906136b8565b601555565b6000818152600260205260408120546001600160a01b031680610bbf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016103f5565b600a546001600160a01b031633146113905760405162461bcd60e51b81526004016103f5906136b8565b6020548111156113d15760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016103f5565b815b81811015610df0576000818152601f6020908152604080832054808452601d909252909120546001600160a01b0316801561142f5761141281836126bb565b6000828152601d6020526040902080546001600160a01b03191690555b5050808061143c90613850565b9150506113d3565b600a546001600160a01b0316331461146e5760405162461bcd60e51b81526004016103f5906136b8565b600c55565b60006001600160a01b0382166114de5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016103f5565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115245760405162461bcd60e51b81526004016103f5906136b8565b61152e6000612995565b565b60006001815b601c54811015610e435781801561156057506000818152601b60205260409020546115609061239b565b91508161156c57610e43565b8061157681613850565b915050611536565b600a546001600160a01b031633146115a85760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b0382166115fe5760405162461bcd60e51b815260206004820152601e60248201527f526573657276653a204f776e6572206164647265737320696e76616c6964000060448201526064016103f5565b6000811161164e5760405162461bcd60e51b815260206004820152601c60248201527f526573657276653a20546f6b656e20496420697320696e76616c69640000000060448201526064016103f5565b600c548111156116a05760405162461bcd60e51b815260206004820181905260248201527f526573657276653a204f76657264756520746f206d617820746f6b656e20496460448201526064016103f5565b6116a98161239b565b156116f65760405162461bcd60e51b815260206004820152601d60248201527f526573657276653a20546f6b656e20616c7265616479206d696e74656400000060448201526064016103f5565b6000818152601d6020908152604080832080546001600160a01b0319166001600160a01b03871617905581548352601f8252822083905580549161173983613850565b90915550506000908152601e60205260409020805460ff1916600117905550565b6002601254610100900460ff166002811115611778576117786138ab565b146117c55760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632053616c65206973206e6f742073746172746564207965742e0060448201526064016103f5565b60005b601c54811015610ff8576000818152601b6020908152604080832054808452601a909252909120546001600160a01b03163314801561180d575061180b8161239b565b155b1561181c5761181c33826126bb565b508061182781613850565b9150506117c8565b600a546001600160a01b031633146118595760405162461bcd60e51b81526004016103f5906136b8565b6012805460ff1916911515919091179055565b600a546001600160a01b031633146118965760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b03166000908152601460205260409020805460ff19169055565b600a546001600160a01b031633146118e15760405162461bcd60e51b81526004016103f5906136b8565b8051610ee6906010906020840190613194565b606060018054610bd49061381b565b600a546001600160a01b0316331461192d5760405162461bcd60e51b81526004016103f5906136b8565b601755565b610ee63383836129e7565b600a546001600160a01b031633146119675760405162461bcd60e51b81526004016103f5906136b8565b60005b81811015610df05760016014600085858581811061198a5761198a6138d7565b905060200201602081019061199f91906132ca565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806119d181613850565b91505061196a565b6119e33383612426565b6119ff5760405162461bcd60e51b81526004016103f59061373c565b611a0b84848484612ab6565b50505050565b3360009081526014602052604090205460ff16611a625760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016103f5565b6001601254610100900460ff166002811115611a8057611a806138ab565b14611acd5760405162461bcd60e51b815260206004820152601760248201527f50726553616c653a206e6f7420696e2050726553616c6500000000000000000060448201526064016103f5565b6013543490611adc9083612ae9565b14611b295760405162461bcd60e51b815260206004820152601f60248201527f50726553616c653a20696e636f727265637420657468657220616d6f756e740060448201526064016103f5565b60008111611b885760405162461bcd60e51b815260206004820152602660248201527f50726553616c653a206e65656420746f206d696e74206174206c656173742031604482015265103a37b5b2b760d11b60648201526084016103f5565b601754811115611be45760405162461bcd60e51b815260206004820152602160248201527f50726553616c653a20657863656564207472616e73616374696f6e206c696d696044820152601d60fa1b60648201526084016103f5565b600d5481600e54611bf5919061378d565b1115611c4d5760405162461bcd60e51b815260206004820152602160248201527f50726553616c653a20657863656564206d61782070726573616c65206c696d696044820152601d60fa1b60648201526084016103f5565b60155433600090815260186020526040902054611c6b90839061378d565b1115611cc55760405162461bcd60e51b8152602060048201526024808201527f50726553616c653a206578636565642070726573616c652077616c6c6574206c6044820152631a5b5a5d60e21b60648201526084016103f5565b600c5481611cd260085490565b611cdc919061378d565b1115611d2a5760405162461bcd60e51b815260206004820152601960248201527f50726553616c653a207265616368206d617820737570706c790000000000000060448201526064016103f5565b60005b81811015611ddc576000611d3f612afc565b905080611d865760405162461bcd60e51b81526020600482015260156024820152741b9bc8185d985a5b18589b19481d1bdad95b881a59605a1b60448201526064016103f5565b6000818152601a6020908152604080832080546001600160a01b03191633179055601c80548452601b9092528220839055805491611dc383613850565b9190505550508080611dd490613850565b915050611d2d565b503360009081526018602052604081208054839290611dfc90849061378d565b9250508190555080600e6000828254611e15919061378d565b909155505060408051338152602081018390527f544169525ad9e4fe1c412146bae087ba62336e769aa8bb6f17d7146a6f1a14fd910160405180910390a150565b6002601254610100900460ff166002811115611e7457611e746138ab565b14611eb55760405162461bcd60e51b81526020600482015260116024820152704d494e543a206e6f7420696e2053616c6560781b60448201526064016103f5565b6013543490611ec49083612ae9565b14611f115760405162461bcd60e51b815260206004820152601c60248201527f4d494e543a20696e636f727265637420657468657220616d6f756e740000000060448201526064016103f5565b60165433600090815260196020526040902054611f2f90839061378d565b1115611f7d5760405162461bcd60e51b815260206004820152601960248201527f4d494e543a206578636565642077616c6c6574206c696d69740000000000000060448201526064016103f5565b610ff833826126d5565b6060611f928261239b565b611fae5760405162461bcd60e51b81526004016103f5906136ed565b60125460ff1661204a5760118054611fc59061381b565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff19061381b565b801561203e5780601f106120135761010080835404028352916020019161203e565b820191906000526020600020905b81548152906001019060200180831161202157829003601f168201915b50505050509050919050565b610bbf82612b3e565b919050565b606060118054610bd49061381b565b600a546001600160a01b031633146120915760405162461bcd60e51b81526004016103f5906136b8565b601655565b600a546001600160a01b031633146120c05760405162461bcd60e51b81526004016103f5906136b8565b6002601254610100900460ff1660028111156120de576120de6138ab565b1461212b5760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632053616c65206973206e6f742073746172746564207965742e0060448201526064016103f5565b601c5481111561216c5760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016103f5565b815b81811015610df0576000818152601b6020818152604080842054808552601a835290842054938590529190526121ad916001600160a01b0316906126bb565b806121b781613850565b91505061216e565b600a546001600160a01b031633146121e95760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b03166000908152601460205260409020805460ff19166001179055565b606060108054610bd49061381b565b600a546001600160a01b031633146122465760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b0381166122ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103f5565b610ff881612995565b600a546001600160a01b031633146122de5760405162461bcd60e51b81526004016103f5906136b8565b600c5481106123465760405162461bcd60e51b815260206004820152602e60248201527f6d617850726573616c65537570706c792073686f756c64206265206c6573732060448201526d7468616e206d6178537570706c7960901b60648201526084016103f5565b600d55565b60006001600160e01b031982166380ac58cd60e01b148061237c57506001600160e01b03198216635b5e139f60e01b145b80610bbf57506301ffc9a760e01b6001600160e01b0319831614610bbf565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123ed826112ef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124318261239b565b6124925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103f5565b600061249d836112ef565b9050806001600160a01b0316846001600160a01b031614806124d85750836001600160a01b03166124cd84610c57565b6001600160a01b0316145b8061250857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612523826112ef565b6001600160a01b03161461258b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016103f5565b6001600160a01b0382166125ed5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103f5565b6125f8838383612bc0565b6126036000826123b8565b6001600160a01b038316600090815260036020526040812080546001929061262c9084906137d8565b90915550506001600160a01b038216600090815260036020526040812080546001929061265a90849061378d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ee6828260405180602001604052806000815250612c78565b600081116127315760405162461bcd60e51b815260206004820152602360248201527f4d494e543a206e65656420746f206d696e74206174206c65617374203120746f60448201526235b2b760e91b60648201526084016103f5565b6017548111156127835760405162461bcd60e51b815260206004820152601e60248201527f4d494e543a20657863656564207472616e73616374696f6e206c696d6974000060448201526064016103f5565b600c548161279060085490565b61279a919061378d565b11156127e15760405162461bcd60e51b81526020600482015260166024820152754d494e543a207265616368206d617820737570706c7960501b60448201526064016103f5565b6001600160a01b03821661282c5760405162461bcd60e51b81526020600482015260126024820152714d494e543a207a65726f206164647265737360701b60448201526064016103f5565b60005b818110156128a5576000612841612afc565b9050806128885760405162461bcd60e51b81526020600482015260156024820152741b9bc8185d985a5b18589b19481d1bdad95b881a59605a1b60448201526064016103f5565b61289284826126bb565b508061289d81613850565b91505061282f565b506001601254610100900460ff1660028111156128c4576128c46138ab565b14156128fd576001600160a01b038216600090815260186020526040812080548392906128f290849061378d565b9091555061294f9050565b6002601254610100900460ff16600281111561291b5761291b6138ab565b141561294f576001600160a01b0382166000908152601960205260408120805483929061294990849061378d565b90915550505b604080516001600160a01b0384168152602081018390527f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a4273910160405180910390a15050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612a495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ac1848484612510565b612acd84848484612cab565b611a0b5760405162461bcd60e51b81526004016103f590613666565b6000612af582846137b9565b9392505050565b6000805b600c54600b54101561205357612b1a600b80546001019055565b50600b546000818152601e602052604090205460ff16612b3957919050565b612b00565b6060612b498261239b565b612b655760405162461bcd60e51b81526004016103f5906136ed565b6000612b6f612db8565b90506000815111612b8f5760405180602001604052806000815250612af5565b80612b9984612dc7565b604051602001612baa9291906135bf565b6040516020818303038152906040529392505050565b6001600160a01b038316612c1b57612c1681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c3e565b816001600160a01b0316836001600160a01b031614612c3e57612c3e8382612ec5565b6001600160a01b038216612c5557610df081612f62565b826001600160a01b0316826001600160a01b031614610df057610df08282613011565b612c828383613055565b612c8f6000848484612cab565b610df05760405162461bcd60e51b81526004016103f590613666565b60006001600160a01b0384163b15612dad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cef9033908990889088906004016135ee565b602060405180830381600087803b158015612d0957600080fd5b505af1925050508015612d39575060408051601f3d908101601f19168201909252612d36918101906134d1565b60015b612d93573d808015612d67576040519150601f19603f3d011682016040523d82523d6000602084013e612d6c565b606091505b508051612d8b5760405162461bcd60e51b81526004016103f590613666565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612508565b506001949350505050565b6060600f8054610bd49061381b565b606081612deb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e155780612dff81613850565b9150612e0e9050600a836137a5565b9150612def565b60008167ffffffffffffffff811115612e3057612e306138ed565b6040519080825280601f01601f191660200182016040528015612e5a576020820181803683370190505b5090505b841561250857612e6f6001836137d8565b9150612e7c600a8661386b565b612e8790603061378d565b60f81b818381518110612e9c57612e9c6138d7565b60200101906001600160f81b031916908160001a905350612ebe600a866137a5565b9450612e5e565b60006001612ed284611473565b612edc91906137d8565b600083815260076020526040902054909150808214612f2f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f74906001906137d8565b60008381526009602052604081205460088054939450909284908110612f9c57612f9c6138d7565b906000526020600020015490508060088381548110612fbd57612fbd6138d7565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ff557612ff56138c1565b6001900381819060005260206000200160009055905550505050565b600061301c83611473565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166130ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103f5565b6130b48161239b565b156131015760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103f5565b61310d60008383612bc0565b6001600160a01b038216600090815260036020526040812080546001929061313690849061378d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131a09061381b565b90600052602060002090601f0160209004810192826131c25760008555613208565b82601f106131db57805160ff1916838001178555613208565b82800160010185558215613208579182015b828111156132085782518255916020019190600101906131ed565b50613214929150613218565b5090565b5b808211156132145760008155600101613219565b600067ffffffffffffffff80841115613248576132486138ed565b604051601f8501601f19908116603f01168101908282118183101715613270576132706138ed565b8160405280935085815286868601111561328957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461205357600080fd5b8035801515811461205357600080fd5b6000602082840312156132dc57600080fd5b612af5826132a3565b600080604083850312156132f857600080fd5b613301836132a3565b915061330f602084016132a3565b90509250929050565b60008060006060848603121561332d57600080fd5b613336846132a3565b9250613344602085016132a3565b9150604084013590509250925092565b6000806000806080858703121561336a57600080fd5b613373856132a3565b9350613381602086016132a3565b925060408501359150606085013567ffffffffffffffff8111156133a457600080fd5b8501601f810187136133b557600080fd5b6133c48782356020840161322d565b91505092959194509250565b600080604083850312156133e357600080fd5b6133ec836132a3565b915061330f602084016132ba565b6000806040838503121561340d57600080fd5b613416836132a3565b946020939093013593505050565b6000806020838503121561343757600080fd5b823567ffffffffffffffff8082111561344f57600080fd5b818501915085601f83011261346357600080fd5b81358181111561347257600080fd5b8660208260051b850101111561348757600080fd5b60209290920196919550909350505050565b6000602082840312156134ab57600080fd5b612af5826132ba565b6000602082840312156134c657600080fd5b8135612af581613903565b6000602082840312156134e357600080fd5b8151612af581613903565b60006020828403121561350057600080fd5b813560038110612af557600080fd5b60006020828403121561352157600080fd5b813567ffffffffffffffff81111561353857600080fd5b8201601f8101841361354957600080fd5b6125088482356020840161322d565b60006020828403121561356a57600080fd5b5035919050565b6000806040838503121561358457600080fd5b50508035926020909101359150565b600081518084526135ab8160208601602086016137ef565b601f01601f19169290920160200192915050565b600083516135d18184602088016137ef565b8351908301906135e58183602088016137ef565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061362190830184613593565b9695505050505050565b602081016003831061364d57634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000612af56020830184613593565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156137a0576137a061387f565b500190565b6000826137b4576137b4613895565b500490565b60008160001904831182151516156137d3576137d361387f565b500290565b6000828210156137ea576137ea61387f565b500390565b60005b8381101561380a5781810151838201526020016137f2565b83811115611a0b5750506000910152565b600181811c9082168061382f57607f821691505b60208210811415610e4357634e487b7160e01b600052602260045260246000fd5b60006000198214156138645761386461387f565b5060010190565b60008261387a5761387a613895565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ff857600080fdfea26469706673582212209ac43a550c033365ae0db5df1111610b8a099c64d34a2fb819c22f5eca58084664736f6c6343000807003368747470733a2f2f706f6c7976657273656172742e6d7970696e6174612e636c6f75642f697066732f516d5355753779794645656236657a785974727448486e4d6468626d525246434e7a715a5070424164413754724b68747470733a2f2f706f6c7976657273656172742e6d7970696e6174612e636c6f75642f697066732f516d6537414c77345831796779446744544d46317576567772385250676b626779505a4a4d6b76664243484441632f68747470733a2f2f706f6c7976657273656172742e6d7970696e6174612e636c6f75642f697066732f516d5557564153763875427a6831414e41394b6837796f544d72326b6f4178744b766443437835396e755659374d

Deployed Bytecode

0x6080604052600436106103a65760003560e01c806379657870116101e7578063b98847721161010d578063e43252d7116100a0578063eb91d37e1161006f578063eb91d37e14610b2f578063f2fde38b14610b44578063f8cd1af914610b64578063fa5b6d7814610b7a57600080fd5b8063e43252d714610a9b578063e8693f3814610abb578063e8a3d48514610ad1578063e985e9c514610ae657600080fd5b8063cf7b4687116100dc578063cf7b468714610a2f578063d0ab14fb14610a4f578063d5abeb0114610a65578063d6f1c22614610a7b57600080fd5b8063b9884772146109d4578063c634d032146109e7578063c87b56dd146109fa578063cafc8c6714610a1a57600080fd5b8063938e3d7b116101855780639e6a1d7d116101545780639e6a1d7d14610954578063a22cb46514610974578063a81c804e14610994578063b88d4fde146109b457600080fd5b8063938e3d7b146108d357806395d89b41146108f35780639d19e01e146109085780639d1b464a1461093e57600080fd5b80638ab1d681116101c15780638ab1d681146108435780638c3c4b34146108635780638da5cb5b146108885780638f02a0c4146108a657600080fd5b806379657870146107ee5780637d64d3931461080e57806384c99fb41461082357600080fd5b8063408cbf94116102cc57806360b1b4381161026a5780636f8b44b0116102395780636f8b44b01461078457806370a08231146107a4578063715018a6146107c45780637295a403146107d957600080fd5b806360b1b4381461070c5780636352211e1461072c5780636844e2381461074c5780636d4c641a1461076457600080fd5b80634f6ccce7116102a65780634f6ccce71461067257806355f804b3146106925780635b28b46c146106b2578063602a70f1146106df57600080fd5b8063408cbf941461061257806342842e0e146106325780634891ad881461065257600080fd5b806318b20071116103445780632f745c59116103135780632f745c591461058f5780633054eabb146105af5780633af32abf146105c45780633ccfd60b146105fd57600080fd5b806318b200711461051957806321bdb26e1461053957806323b872dd1461054f57806324178c231461056f57600080fd5b8063081812fc11610380578063081812fc14610497578063095ea7b3146104cf57806310f582d9146104ef57806318160ddd1461050457600080fd5b806301ffc9a71461040557806303a6118c1461043a57806306fdde031461047557600080fd5b366104005734156103fe5760405162461bcd60e51b815260206004820152601f60248201527f646f206e6f7420616363657074206469726563742065746865722073656e640060448201526064015b60405180910390fd5b005b600080fd5b34801561041157600080fd5b506104256104203660046134b4565b610b9a565b60405190151581526020015b60405180910390f35b34801561044657600080fd5b50610467610455366004613558565b601f6020526000908152604090205481565b604051908152602001610431565b34801561048157600080fd5b5061048a610bc5565b6040516104319190613653565b3480156104a357600080fd5b506104b76104b2366004613558565b610c57565b6040516001600160a01b039091168152602001610431565b3480156104db57600080fd5b506103fe6104ea3660046133fa565b610cdf565b3480156104fb57600080fd5b50610425610df5565b34801561051057600080fd5b50600854610467565b34801561052557600080fd5b506103fe610534366004613558565b610e49565b34801561054557600080fd5b50610467600d5481565b34801561055b57600080fd5b506103fe61056a366004613318565b610e78565b34801561057b57600080fd5b506103fe61058a36600461350f565b610ea9565b34801561059b57600080fd5b506104676105aa3660046133fa565b610eea565b3480156105bb57600080fd5b506103fe610f80565b3480156105d057600080fd5b506104256105df3660046132ca565b6001600160a01b031660009081526014602052604090205460ff1690565b34801561060957600080fd5b506103fe610ffb565b34801561061e57600080fd5b506103fe61062d3660046133fa565b6110ee565b34801561063e57600080fd5b506103fe61064d366004613318565b611182565b34801561065e57600080fd5b506103fe61066d3660046134ee565b61119d565b34801561067e57600080fd5b5061046761068d366004613558565b6111f0565b34801561069e57600080fd5b506103fe6106ad36600461350f565b611283565b3480156106be57600080fd5b506104676106cd3660046132ca565b60196020526000908152604090205481565b3480156106eb57600080fd5b506104676106fa366004613558565b601b6020526000908152604090205481565b34801561071857600080fd5b506103fe610727366004613558565b6112c0565b34801561073857600080fd5b506104b7610747366004613558565b6112ef565b34801561075857600080fd5b5060125460ff16610425565b34801561077057600080fd5b506103fe61077f366004613571565b611366565b34801561079057600080fd5b506103fe61079f366004613558565b611444565b3480156107b057600080fd5b506104676107bf3660046132ca565b611473565b3480156107d057600080fd5b506103fe6114fa565b3480156107e557600080fd5b50610425611530565b3480156107fa57600080fd5b506103fe6108093660046133fa565b61157e565b34801561081a57600080fd5b506103fe61175a565b34801561082f57600080fd5b506103fe61083e366004613499565b61182f565b34801561084f57600080fd5b506103fe61085e3660046132ca565b61186c565b34801561086f57600080fd5b50601254610100900460ff16604051610431919061362b565b34801561089457600080fd5b50600a546001600160a01b03166104b7565b3480156108b257600080fd5b506104676108c13660046132ca565b60186020526000908152604090205481565b3480156108df57600080fd5b506103fe6108ee36600461350f565b6118b7565b3480156108ff57600080fd5b5061048a6118f4565b34801561091457600080fd5b506104b7610923366004613558565b601a602052600090815260409020546001600160a01b031681565b34801561094a57600080fd5b5061046760135481565b34801561096057600080fd5b506103fe61096f366004613558565b611903565b34801561098057600080fd5b506103fe61098f3660046133d0565b611932565b3480156109a057600080fd5b506103fe6109af366004613424565b61193d565b3480156109c057600080fd5b506103fe6109cf366004613354565b6119d9565b6103fe6109e2366004613558565b611a11565b6103fe6109f5366004613558565b611e56565b348015610a0657600080fd5b5061048a610a15366004613558565b611f87565b348015610a2657600080fd5b5061048a612058565b348015610a3b57600080fd5b506103fe610a4a366004613558565b612067565b348015610a5b57600080fd5b50610467600e5481565b348015610a7157600080fd5b50610467600c5481565b348015610a8757600080fd5b506103fe610a96366004613571565b612096565b348015610aa757600080fd5b506103fe610ab63660046132ca565b6121bf565b348015610ac757600080fd5b50610467601c5481565b348015610add57600080fd5b5061048a61220d565b348015610af257600080fd5b50610425610b013660046132e5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3b57600080fd5b50601354610467565b348015610b5057600080fd5b506103fe610b5f3660046132ca565b61221c565b348015610b7057600080fd5b5061046760205481565b348015610b8657600080fd5b506103fe610b95366004613558565b6122b4565b60006001600160e01b0319821663780e9d6360e01b1480610bbf5750610bbf8261234b565b92915050565b606060008054610bd49061381b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c009061381b565b8015610c4d5780601f10610c2257610100808354040283529160200191610c4d565b820191906000526020600020905b815481529060010190602001808311610c3057829003601f168201915b5050505050905090565b6000610c628261239b565b610cc35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103f5565b506000908152600460205260409020546001600160a01b031690565b6000610cea826112ef565b9050806001600160a01b0316836001600160a01b03161415610d585760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103f5565b336001600160a01b0382161480610d745750610d748133610b01565b610de65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016103f5565b610df083836123b8565b505050565b60006001815b602054811015610e4357818015610e2557506000818152601f6020526040902054610e259061239b565b915081610e3157610e43565b80610e3b81613850565b915050610dfb565b50919050565b600a546001600160a01b03163314610e735760405162461bcd60e51b81526004016103f5906136b8565b601355565b610e823382612426565b610e9e5760405162461bcd60e51b81526004016103f59061373c565b610df0838383612510565b600a546001600160a01b03163314610ed35760405162461bcd60e51b81526004016103f5906136b8565b8051610ee6906011906020840190613194565b5050565b6000610ef583611473565b8210610f575760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016103f5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b60005b602054811015610ff8576000818152601f6020908152604080832054808452601d909252909120546001600160a01b031633811415610fe357610fc681836126bb565b6000828152601d6020526040902080546001600160a01b03191690555b50508080610ff090613850565b915050610f83565b50565b600a546001600160a01b031633146110255760405162461bcd60e51b81526004016103f5906136b8565b600047116110625760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b60448201526064016103f5565b604051600090339047908381818185875af1925050503d80600081146110a4576040519150601f19603f3d011682016040523d82523d6000602084013e6110a9565b606091505b50508091505080610ff85760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b60448201526064016103f5565b600a546001600160a01b031633146111185760405162461bcd60e51b81526004016103f5906136b8565b6000601254610100900460ff166002811115611136576111366138ab565b14156111785760405162461bcd60e51b81526020600482015260116024820152704d494e543a206e6f7420696e2053616c6560781b60448201526064016103f5565b610ee682826126d5565b610df0838383604051806020016040528060008152506119d9565b600a546001600160a01b031633146111c75760405162461bcd60e51b81526004016103f5906136b8565b6012805482919061ff0019166101008360028111156111e8576111e86138ab565b021790555050565b60006111fb60085490565b821061125e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016103f5565b60088281548110611271576112716138d7565b90600052602060002001549050919050565b600a546001600160a01b031633146112ad5760405162461bcd60e51b81526004016103f5906136b8565b8051610ee690600f906020840190613194565b600a546001600160a01b031633146112ea5760405162461bcd60e51b81526004016103f5906136b8565b601555565b6000818152600260205260408120546001600160a01b031680610bbf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016103f5565b600a546001600160a01b031633146113905760405162461bcd60e51b81526004016103f5906136b8565b6020548111156113d15760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016103f5565b815b81811015610df0576000818152601f6020908152604080832054808452601d909252909120546001600160a01b0316801561142f5761141281836126bb565b6000828152601d6020526040902080546001600160a01b03191690555b5050808061143c90613850565b9150506113d3565b600a546001600160a01b0316331461146e5760405162461bcd60e51b81526004016103f5906136b8565b600c55565b60006001600160a01b0382166114de5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016103f5565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115245760405162461bcd60e51b81526004016103f5906136b8565b61152e6000612995565b565b60006001815b601c54811015610e435781801561156057506000818152601b60205260409020546115609061239b565b91508161156c57610e43565b8061157681613850565b915050611536565b600a546001600160a01b031633146115a85760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b0382166115fe5760405162461bcd60e51b815260206004820152601e60248201527f526573657276653a204f776e6572206164647265737320696e76616c6964000060448201526064016103f5565b6000811161164e5760405162461bcd60e51b815260206004820152601c60248201527f526573657276653a20546f6b656e20496420697320696e76616c69640000000060448201526064016103f5565b600c548111156116a05760405162461bcd60e51b815260206004820181905260248201527f526573657276653a204f76657264756520746f206d617820746f6b656e20496460448201526064016103f5565b6116a98161239b565b156116f65760405162461bcd60e51b815260206004820152601d60248201527f526573657276653a20546f6b656e20616c7265616479206d696e74656400000060448201526064016103f5565b6000818152601d6020908152604080832080546001600160a01b0319166001600160a01b03871617905581548352601f8252822083905580549161173983613850565b90915550506000908152601e60205260409020805460ff1916600117905550565b6002601254610100900460ff166002811115611778576117786138ab565b146117c55760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632053616c65206973206e6f742073746172746564207965742e0060448201526064016103f5565b60005b601c54811015610ff8576000818152601b6020908152604080832054808452601a909252909120546001600160a01b03163314801561180d575061180b8161239b565b155b1561181c5761181c33826126bb565b508061182781613850565b9150506117c8565b600a546001600160a01b031633146118595760405162461bcd60e51b81526004016103f5906136b8565b6012805460ff1916911515919091179055565b600a546001600160a01b031633146118965760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b03166000908152601460205260409020805460ff19169055565b600a546001600160a01b031633146118e15760405162461bcd60e51b81526004016103f5906136b8565b8051610ee6906010906020840190613194565b606060018054610bd49061381b565b600a546001600160a01b0316331461192d5760405162461bcd60e51b81526004016103f5906136b8565b601755565b610ee63383836129e7565b600a546001600160a01b031633146119675760405162461bcd60e51b81526004016103f5906136b8565b60005b81811015610df05760016014600085858581811061198a5761198a6138d7565b905060200201602081019061199f91906132ca565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806119d181613850565b91505061196a565b6119e33383612426565b6119ff5760405162461bcd60e51b81526004016103f59061373c565b611a0b84848484612ab6565b50505050565b3360009081526014602052604090205460ff16611a625760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016103f5565b6001601254610100900460ff166002811115611a8057611a806138ab565b14611acd5760405162461bcd60e51b815260206004820152601760248201527f50726553616c653a206e6f7420696e2050726553616c6500000000000000000060448201526064016103f5565b6013543490611adc9083612ae9565b14611b295760405162461bcd60e51b815260206004820152601f60248201527f50726553616c653a20696e636f727265637420657468657220616d6f756e740060448201526064016103f5565b60008111611b885760405162461bcd60e51b815260206004820152602660248201527f50726553616c653a206e65656420746f206d696e74206174206c656173742031604482015265103a37b5b2b760d11b60648201526084016103f5565b601754811115611be45760405162461bcd60e51b815260206004820152602160248201527f50726553616c653a20657863656564207472616e73616374696f6e206c696d696044820152601d60fa1b60648201526084016103f5565b600d5481600e54611bf5919061378d565b1115611c4d5760405162461bcd60e51b815260206004820152602160248201527f50726553616c653a20657863656564206d61782070726573616c65206c696d696044820152601d60fa1b60648201526084016103f5565b60155433600090815260186020526040902054611c6b90839061378d565b1115611cc55760405162461bcd60e51b8152602060048201526024808201527f50726553616c653a206578636565642070726573616c652077616c6c6574206c6044820152631a5b5a5d60e21b60648201526084016103f5565b600c5481611cd260085490565b611cdc919061378d565b1115611d2a5760405162461bcd60e51b815260206004820152601960248201527f50726553616c653a207265616368206d617820737570706c790000000000000060448201526064016103f5565b60005b81811015611ddc576000611d3f612afc565b905080611d865760405162461bcd60e51b81526020600482015260156024820152741b9bc8185d985a5b18589b19481d1bdad95b881a59605a1b60448201526064016103f5565b6000818152601a6020908152604080832080546001600160a01b03191633179055601c80548452601b9092528220839055805491611dc383613850565b9190505550508080611dd490613850565b915050611d2d565b503360009081526018602052604081208054839290611dfc90849061378d565b9250508190555080600e6000828254611e15919061378d565b909155505060408051338152602081018390527f544169525ad9e4fe1c412146bae087ba62336e769aa8bb6f17d7146a6f1a14fd910160405180910390a150565b6002601254610100900460ff166002811115611e7457611e746138ab565b14611eb55760405162461bcd60e51b81526020600482015260116024820152704d494e543a206e6f7420696e2053616c6560781b60448201526064016103f5565b6013543490611ec49083612ae9565b14611f115760405162461bcd60e51b815260206004820152601c60248201527f4d494e543a20696e636f727265637420657468657220616d6f756e740000000060448201526064016103f5565b60165433600090815260196020526040902054611f2f90839061378d565b1115611f7d5760405162461bcd60e51b815260206004820152601960248201527f4d494e543a206578636565642077616c6c6574206c696d69740000000000000060448201526064016103f5565b610ff833826126d5565b6060611f928261239b565b611fae5760405162461bcd60e51b81526004016103f5906136ed565b60125460ff1661204a5760118054611fc59061381b565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff19061381b565b801561203e5780601f106120135761010080835404028352916020019161203e565b820191906000526020600020905b81548152906001019060200180831161202157829003601f168201915b50505050509050919050565b610bbf82612b3e565b919050565b606060118054610bd49061381b565b600a546001600160a01b031633146120915760405162461bcd60e51b81526004016103f5906136b8565b601655565b600a546001600160a01b031633146120c05760405162461bcd60e51b81526004016103f5906136b8565b6002601254610100900460ff1660028111156120de576120de6138ab565b1461212b5760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632053616c65206973206e6f742073746172746564207965742e0060448201526064016103f5565b601c5481111561216c5760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016103f5565b815b81811015610df0576000818152601b6020818152604080842054808552601a835290842054938590529190526121ad916001600160a01b0316906126bb565b806121b781613850565b91505061216e565b600a546001600160a01b031633146121e95760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b03166000908152601460205260409020805460ff19166001179055565b606060108054610bd49061381b565b600a546001600160a01b031633146122465760405162461bcd60e51b81526004016103f5906136b8565b6001600160a01b0381166122ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103f5565b610ff881612995565b600a546001600160a01b031633146122de5760405162461bcd60e51b81526004016103f5906136b8565b600c5481106123465760405162461bcd60e51b815260206004820152602e60248201527f6d617850726573616c65537570706c792073686f756c64206265206c6573732060448201526d7468616e206d6178537570706c7960901b60648201526084016103f5565b600d55565b60006001600160e01b031982166380ac58cd60e01b148061237c57506001600160e01b03198216635b5e139f60e01b145b80610bbf57506301ffc9a760e01b6001600160e01b0319831614610bbf565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123ed826112ef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124318261239b565b6124925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103f5565b600061249d836112ef565b9050806001600160a01b0316846001600160a01b031614806124d85750836001600160a01b03166124cd84610c57565b6001600160a01b0316145b8061250857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612523826112ef565b6001600160a01b03161461258b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016103f5565b6001600160a01b0382166125ed5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103f5565b6125f8838383612bc0565b6126036000826123b8565b6001600160a01b038316600090815260036020526040812080546001929061262c9084906137d8565b90915550506001600160a01b038216600090815260036020526040812080546001929061265a90849061378d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ee6828260405180602001604052806000815250612c78565b600081116127315760405162461bcd60e51b815260206004820152602360248201527f4d494e543a206e65656420746f206d696e74206174206c65617374203120746f60448201526235b2b760e91b60648201526084016103f5565b6017548111156127835760405162461bcd60e51b815260206004820152601e60248201527f4d494e543a20657863656564207472616e73616374696f6e206c696d6974000060448201526064016103f5565b600c548161279060085490565b61279a919061378d565b11156127e15760405162461bcd60e51b81526020600482015260166024820152754d494e543a207265616368206d617820737570706c7960501b60448201526064016103f5565b6001600160a01b03821661282c5760405162461bcd60e51b81526020600482015260126024820152714d494e543a207a65726f206164647265737360701b60448201526064016103f5565b60005b818110156128a5576000612841612afc565b9050806128885760405162461bcd60e51b81526020600482015260156024820152741b9bc8185d985a5b18589b19481d1bdad95b881a59605a1b60448201526064016103f5565b61289284826126bb565b508061289d81613850565b91505061282f565b506001601254610100900460ff1660028111156128c4576128c46138ab565b14156128fd576001600160a01b038216600090815260186020526040812080548392906128f290849061378d565b9091555061294f9050565b6002601254610100900460ff16600281111561291b5761291b6138ab565b141561294f576001600160a01b0382166000908152601960205260408120805483929061294990849061378d565b90915550505b604080516001600160a01b0384168152602081018390527f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a4273910160405180910390a15050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612a495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ac1848484612510565b612acd84848484612cab565b611a0b5760405162461bcd60e51b81526004016103f590613666565b6000612af582846137b9565b9392505050565b6000805b600c54600b54101561205357612b1a600b80546001019055565b50600b546000818152601e602052604090205460ff16612b3957919050565b612b00565b6060612b498261239b565b612b655760405162461bcd60e51b81526004016103f5906136ed565b6000612b6f612db8565b90506000815111612b8f5760405180602001604052806000815250612af5565b80612b9984612dc7565b604051602001612baa9291906135bf565b6040516020818303038152906040529392505050565b6001600160a01b038316612c1b57612c1681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c3e565b816001600160a01b0316836001600160a01b031614612c3e57612c3e8382612ec5565b6001600160a01b038216612c5557610df081612f62565b826001600160a01b0316826001600160a01b031614610df057610df08282613011565b612c828383613055565b612c8f6000848484612cab565b610df05760405162461bcd60e51b81526004016103f590613666565b60006001600160a01b0384163b15612dad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cef9033908990889088906004016135ee565b602060405180830381600087803b158015612d0957600080fd5b505af1925050508015612d39575060408051601f3d908101601f19168201909252612d36918101906134d1565b60015b612d93573d808015612d67576040519150601f19603f3d011682016040523d82523d6000602084013e612d6c565b606091505b508051612d8b5760405162461bcd60e51b81526004016103f590613666565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612508565b506001949350505050565b6060600f8054610bd49061381b565b606081612deb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e155780612dff81613850565b9150612e0e9050600a836137a5565b9150612def565b60008167ffffffffffffffff811115612e3057612e306138ed565b6040519080825280601f01601f191660200182016040528015612e5a576020820181803683370190505b5090505b841561250857612e6f6001836137d8565b9150612e7c600a8661386b565b612e8790603061378d565b60f81b818381518110612e9c57612e9c6138d7565b60200101906001600160f81b031916908160001a905350612ebe600a866137a5565b9450612e5e565b60006001612ed284611473565b612edc91906137d8565b600083815260076020526040902054909150808214612f2f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f74906001906137d8565b60008381526009602052604081205460088054939450909284908110612f9c57612f9c6138d7565b906000526020600020015490508060088381548110612fbd57612fbd6138d7565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ff557612ff56138c1565b6001900381819060005260206000200160009055905550505050565b600061301c83611473565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166130ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103f5565b6130b48161239b565b156131015760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103f5565b61310d60008383612bc0565b6001600160a01b038216600090815260036020526040812080546001929061313690849061378d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131a09061381b565b90600052602060002090601f0160209004810192826131c25760008555613208565b82601f106131db57805160ff1916838001178555613208565b82800160010185558215613208579182015b828111156132085782518255916020019190600101906131ed565b50613214929150613218565b5090565b5b808211156132145760008155600101613219565b600067ffffffffffffffff80841115613248576132486138ed565b604051601f8501601f19908116603f01168101908282118183101715613270576132706138ed565b8160405280935085815286868601111561328957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461205357600080fd5b8035801515811461205357600080fd5b6000602082840312156132dc57600080fd5b612af5826132a3565b600080604083850312156132f857600080fd5b613301836132a3565b915061330f602084016132a3565b90509250929050565b60008060006060848603121561332d57600080fd5b613336846132a3565b9250613344602085016132a3565b9150604084013590509250925092565b6000806000806080858703121561336a57600080fd5b613373856132a3565b9350613381602086016132a3565b925060408501359150606085013567ffffffffffffffff8111156133a457600080fd5b8501601f810187136133b557600080fd5b6133c48782356020840161322d565b91505092959194509250565b600080604083850312156133e357600080fd5b6133ec836132a3565b915061330f602084016132ba565b6000806040838503121561340d57600080fd5b613416836132a3565b946020939093013593505050565b6000806020838503121561343757600080fd5b823567ffffffffffffffff8082111561344f57600080fd5b818501915085601f83011261346357600080fd5b81358181111561347257600080fd5b8660208260051b850101111561348757600080fd5b60209290920196919550909350505050565b6000602082840312156134ab57600080fd5b612af5826132ba565b6000602082840312156134c657600080fd5b8135612af581613903565b6000602082840312156134e357600080fd5b8151612af581613903565b60006020828403121561350057600080fd5b813560038110612af557600080fd5b60006020828403121561352157600080fd5b813567ffffffffffffffff81111561353857600080fd5b8201601f8101841361354957600080fd5b6125088482356020840161322d565b60006020828403121561356a57600080fd5b5035919050565b6000806040838503121561358457600080fd5b50508035926020909101359150565b600081518084526135ab8160208601602086016137ef565b601f01601f19169290920160200192915050565b600083516135d18184602088016137ef565b8351908301906135e58183602088016137ef565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061362190830184613593565b9695505050505050565b602081016003831061364d57634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000612af56020830184613593565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156137a0576137a061387f565b500190565b6000826137b4576137b4613895565b500490565b60008160001904831182151516156137d3576137d361387f565b500290565b6000828210156137ea576137ea61387f565b500390565b60005b8381101561380a5781810151838201526020016137f2565b83811115611a0b5750506000910152565b600181811c9082168061382f57607f821691505b60208210811415610e4357634e487b7160e01b600052602260045260246000fd5b60006000198214156138645761386461387f565b5060010190565b60008261387a5761387a613895565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ff857600080fdfea26469706673582212209ac43a550c033365ae0db5df1111610b8a099c64d34a2fb819c22f5eca58084664736f6c63430008070033

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.