ETH Price: $3,730.22 (+3.80%)

Token

AV Yacht Club (AVYC)
 

Overview

Max Total Supply

10,000 AVYC

Holders

2,317

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
web3three.eth
Balance
2 AVYC
0x2d157fe19a23418011bd3f4984fb8f7bd1ad0d78
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

AVYC is a collection of 10,000 NFTs—unique digital collectibles living on the Ethereum blockchain. Each NFT is an art, programmatically generated randomly by AV related traits, composed of legendary JAV idols.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AVYC

Compiler Version
v0.8.8+commit.dddeac2f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 24 : AVYC.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./ERC721Namable.sol";
import "./AVGLToken.sol";

contract AVYC is ERC721Namable {
    using Strings for uint256;

    uint256 public constant MAX_ARTS = 10000;
    uint256 public price = 0.1 ether;
    uint256 public constant MAX_PER_MINT = 20;
    uint256 public presaleMaxMint = 20;
    uint256 public constant MAX_ARTS_MINT = 100;

    string public baseTokenURI;

    bool public publicSaleStarted;
    bool public presaleStarted;

    address private signer;

    mapping(address => uint256) private _totalClaimed;

    event BaseURIChanged(string baseURI);
    event PresaleMint(address minter, uint256 amountOfArts);
    event PublicSaleMint(address minter, uint256 amountOfArts);
    event AirdropMint(address receiver, uint256 amountOfArts);

    modifier whenPresaleStarted() {
        require(presaleStarted, "XStart");
        _;
    }

    modifier whenPublicSaleStarted() {
        require(publicSaleStarted, "XStart");
        _;
    }

    constructor(address _signer, string memory baseURI, address tokenAddress)
        ERC721Namable("AV Yacht Club", "AVYC")
    {
        baseTokenURI = baseURI;
        signer = _signer;
        if (tokenAddress != address(0)) {
            setYieldToken(tokenAddress);
        }
    }

    function checkPresaleEligibility(bytes32 hash, bytes memory signature)
        public
        view
        returns (bool)
    {
        require(
            ECDSA.toEthSignedMessageHash(
                keccak256(abi.encodePacked(msg.sender))
            ) == hash,
            "XHash"
        );
        return ECDSA.recover(hash, signature) == signer;
    }

    function amountClaimedBy(address owner) external view returns (uint256) {
        require(owner != address(0), "nullAddr");
        return _totalClaimed[owner];
    }

    function airdrop(address receiver, uint256 amountOfArts)
        external
        onlyOwner {
        require(initializedYieldToken, "TNI");
        uint256 _nextTokenId = totalSupply();
        for (uint256 i = 0; i < amountOfArts; i++) {
            _safeMint(receiver, _nextTokenId++);
        }
        yieldToken.updateRewardOnMint(receiver);
        emit AirdropMint(receiver, amountOfArts);
    }

    function mintPresale(
        uint256 amountOfArts,
        bytes32 hash,
        bytes memory signature
    ) external payable whenPresaleStarted {
        require(initializedYieldToken, "TNI");
        require(
            checkPresaleEligibility(hash, signature),
            "NotEligible"
        );
        require(totalSupply() < MAX_ARTS, "AllMinted");
        require(
            amountOfArts <= presaleMaxMint,
            "exceeds max"
        );
        require(
            totalSupply() + amountOfArts <= MAX_ARTS,
            "exceed supply"
        );
        require(
            _totalClaimed[msg.sender] + amountOfArts <= presaleMaxMint,
            "exceed per address"
        );
        require(amountOfArts > 0, "at least 1");
        require(price * amountOfArts == msg.value, "wrong ETH amount");
        uint256 _nextTokenId = totalSupply();
        for (uint256 i = 0; i < amountOfArts; i++) {
            _safeMint(msg.sender, _nextTokenId++);
        }
        _totalClaimed[msg.sender] += amountOfArts;
        yieldToken.updateRewardOnMint(msg.sender);
        emit PresaleMint(msg.sender, amountOfArts);
    }

    function mint(uint256 amountOfArts) external payable whenPublicSaleStarted {
        require(initializedYieldToken, "TNI");
        require(totalSupply() < MAX_ARTS, "All tokens have been minted");
        require(
            amountOfArts <= MAX_PER_MINT,
            "exceeds max"
        );
        require(
            totalSupply() + amountOfArts <= MAX_ARTS,
            "exceed supply"
        );
        require(
            _totalClaimed[msg.sender] + amountOfArts <= MAX_ARTS_MINT,
            "exceed per address"
        );
        require(amountOfArts > 0, "at least 1");
        require(price * amountOfArts == msg.value, "wrong ETH amount");
        uint256 _nextTokenId = totalSupply();
        for (uint256 i = 0; i < amountOfArts; i++) {
            _safeMint(msg.sender, _nextTokenId++);
        }
        _totalClaimed[msg.sender] += amountOfArts;
        yieldToken.updateRewardOnMint(msg.sender);
        emit PublicSaleMint(msg.sender, amountOfArts);
    }

    function setSigner(address addr) external onlyOwner {
        signer = addr;
    }

    function setPrice(uint256 p) external onlyOwner {
        price = p;
    }

    function setPresaleMaxMint(uint256 p) external onlyOwner {
        presaleMaxMint = p;
    }

    function togglePresaleStarted() external onlyOwner {
        presaleStarted = !presaleStarted;
    }

    function togglePublicSaleStarted() external onlyOwner {
        publicSaleStarted = !publicSaleStarted;
    }

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

    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
        emit BaseURIChanged(baseURI);
    }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "no balance");
        _widthdraw(owner(), address(this).balance);
    }

    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "failed withdraw");
    }

    AVGLToken public yieldToken;
    bool initializedYieldToken;

    function setYieldToken(address _yield) public onlyOwner {
        yieldToken = AVGLToken(_yield);
        initializedYieldToken = true;
    }

    function changeNamePrice(uint256 _price) external onlyOwner {
        nameChangePrice = _price;
    }

    function getReward() external {
        require(initializedYieldToken, "TNI");
        yieldToken.updateReward(msg.sender, address(0));
        yieldToken.getReward(msg.sender);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        require(initializedYieldToken, "TNI");
        yieldToken.updateReward(from, to);
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        require(initializedYieldToken, "TNI");
        yieldToken.updateReward(from, to);
        super.safeTransferFrom(from, to, tokenId, _data);
    }

    function changeName(uint256 tokenId, string memory newName)
        public
        override
    {
        require(initializedYieldToken, "TNI");
        yieldToken.burn(msg.sender, nameChangePrice);
        super.changeName(tokenId, newName);
    }

    function changeBio(uint256 tokenId, string memory _bio) public override {
        require(initializedYieldToken, "TNI");
        yieldToken.burn(msg.sender, bioChangePrice);
        super.changeBio(tokenId, _bio);
    }

    function changeBioPrice(uint256 _price) external onlyOwner {
        bioChangePrice = _price;
    }
}

File 2 of 24 : AVGLToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract AVGLToken is ERC20("AVGL", "AVGL"), AccessControl {
    using SafeMath for uint256;

    uint256 public constant BASE_RATE = 1 ether;
    uint256 public constant INITIAL_ISSUANCE = 10 ether;

    mapping(address => uint256) public rewards;
    mapping(address => uint256) public lastUpdate;

    IERC721 public avgleCollectionContract;

    event RewardPaid(address indexed user, uint256 reward);

    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

    function addBurnerRole(address addr) external {
		grantRole(BURNER_ROLE, addr);
	}

    modifier onlyAdmin() {
        _checkRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _;
    }

    function setCollectionContractAddress(address _avgleCollection) external onlyAdmin {
        avgleCollectionContract = IERC721(_avgleCollection);
    }

    constructor(address _avgleCollection) {
        avgleCollectionContract = IERC721(_avgleCollection);
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    // called when minting many NFTs
    function updateRewardOnMint(address _user) external {
        require(
            msg.sender == address(avgleCollectionContract),
            "Can't call this"
        );
        uint256 time = block.timestamp;
        uint256 timerUser = lastUpdate[_user];
        if (timerUser > 0) {
            rewards[_user] = rewards[_user].add(avgleCollectionContract
                    .balanceOf(_user)
                    .mul(BASE_RATE.mul((time.sub(timerUser))))
                    .div(86400));
        }
        lastUpdate[_user] = time;
    }

    // called on transfers
    function updateReward(address _from, address _to) external {
        require(msg.sender == address(avgleCollectionContract));
        uint256 time = block.timestamp;
        uint256 timerFrom = lastUpdate[_from];
        if (timerFrom > 0)
            rewards[_from] += avgleCollectionContract
                .balanceOf(_from)
                .mul(BASE_RATE.mul((time.sub(timerFrom))))
                .div(86400);
        lastUpdate[_from] = time;
        if (_to != address(0)) {
            uint256 timerTo = lastUpdate[_to];
            if (timerTo > 0)
                rewards[_to] += avgleCollectionContract
                    .balanceOf(_to)
                    .mul(BASE_RATE.mul((time.sub(timerTo))))
                    .div(86400);
            lastUpdate[_to] = time;
        }
    }

    function getReward(address _to) external {
        require(msg.sender == address(avgleCollectionContract));
        uint256 reward = rewards[_to];
        if (reward > 0) {
            rewards[_to] = 0;
            _mint(_to, reward);
            emit RewardPaid(_to, reward);
        }
    }

    function burn(address _from, uint256 _amount) external {
        require(msg.sender == address(avgleCollectionContract) || hasRole(BURNER_ROLE, _msgSender()));
        _burn(_from, _amount);
    }

    function getTotalClaimable(address _user) external view returns (uint256) {
        uint256 time = block.timestamp;
        uint256 pending = avgleCollectionContract
            .balanceOf(_user)
            .mul(BASE_RATE.mul((time.sub(lastUpdate[_user]))))
            .div(86400);
        return rewards[_user] + pending;
    }
}

File 3 of 24 : ERC721Namable.sol
pragma solidity ^0.8.8;

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

abstract contract ERC721Namable is ERC721Enumerable, Ownable {
    uint256 public nameChangePrice = 300 ether;
    uint256 public bioChangePrice = 100 ether;

    mapping(uint256 => string) private bio;

    // Mapping from token ID to name
    mapping(uint256 => string) private _tokenName;

    // Mapping if certain name string has already been reserved
    mapping(string => bool) private _nameReserved;

    event NameChange(uint256 indexed tokenId, string newName);
    event BioChange(uint256 indexed tokenId, string bio);

    constructor(string memory _name, string memory _symbol)
        ERC721(_name, _symbol)
    {}

    function setChangeNamePrice(uint256 p) external onlyOwner {
        nameChangePrice = p;
    }

    function changeName(uint256 tokenId, string memory newName) public virtual {
        address owner = ownerOf(tokenId);

        require(_msgSender() == owner, "ERC721: caller is not the owner");
        require(validateName(newName) == true, "Not a valid new name");
        require(
            sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])),
            "New name is same as the current one"
        );
        require(isNameReserved(newName) == false, "Name already reserved");

        // If already named, dereserve old name
        if (bytes(_tokenName[tokenId]).length > 0) {
            toggleReserveName(_tokenName[tokenId], false);
        }
        toggleReserveName(newName, true);
        _tokenName[tokenId] = newName;
        emit NameChange(tokenId, newName);
    }

    function changeBio(uint256 _tokenId, string memory _bio) public virtual {
		address owner = ownerOf(_tokenId);
		require(_msgSender() == owner, "ERC721: caller is not the owner");

		bio[_tokenId] = _bio;
		emit BioChange(_tokenId, _bio);
	}

    /**
     * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
     */
    function toggleReserveName(string memory str, bool isReserve) internal {
        _nameReserved[toLower(str)] = isReserve;
    }

    /**
     * @dev Returns name of the NFT at index.
     */
    function tokenNameByIndex(uint256 index)
        public
        view
        returns (string memory)
    {
        return _tokenName[index];
    }

    /**
     * @dev Returns bio of the NFT at index.
     */
    function tokenBioByIndex(uint256 index)
        public
        view
        returns (string memory)
    {
        return bio[index];
    }

    /**
     * @dev Returns if the name has been reserved.
     */
    function isNameReserved(string memory nameString)
        public
        view
        returns (bool)
    {
        return _nameReserved[toLower(nameString)];
    }

    function validateName(string memory str) public pure returns (bool) {
        bytes memory b = bytes(str);
        if (b.length < 1) return false;
        if (b.length > 25) return false; // Cannot be longer than 25 characters
        if (b[0] == 0x20) return false; // Leading space
        if (b[b.length - 1] == 0x20) return false; // Trailing space

        bytes1 lastChar = b[0];

        for (uint256 i; i < b.length; i++) {
            bytes1 char = b[i];

            if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

            if (
                !(char >= 0x30 && char <= 0x39) && //9-0
                !(char >= 0x41 && char <= 0x5A) && //A-Z
                !(char >= 0x61 && char <= 0x7A) && //a-z
                !(char == 0x20) //space
            ) return false;

            lastChar = char;
        }

        return true;
    }

    /**
     * @dev Converts the string to lowercase
     */
    function toLower(string memory str) public pure returns (string memory) {
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint256 i = 0; i < bStr.length; i++) {
            // Uppercase character
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }
}

File 4 of 24 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 24 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 24 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 8 of 24 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 9 of 24 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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 10 of 24 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 11 of 24 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 12 of 24 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 24 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 14 of 24 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 15 of 24 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 24 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 18 of 24 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 20 of 24 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 21 of 24 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 22 of 24 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 23 of 24 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 24 of 24 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfArts","type":"uint256"}],"name":"AirdropMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"bio","type":"string"}],"name":"BioChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","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":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfArts","type":"uint256"}],"name":"PresaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfArts","type":"uint256"}],"name":"PublicSaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ARTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ARTS_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amountOfArts","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"amountClaimedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bioChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_bio","type":"string"}],"name":"changeBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changeBioPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changeNamePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"checkPresaleEligibility","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","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":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOfArts","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOfArts","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"p","type":"uint256"}],"name":"setChangeNamePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"p","type":"uint256"}],"name":"setPresaleMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"p","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yield","type":"address"}],"name":"setYieldToken","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":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"togglePresaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenBioByIndex","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":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"contract AVGLToken","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052681043561a8829300000600b5568056bc75e2d63100000600c5567016345785d8a000060105560146011553480156200003c57600080fd5b50604051620043bc380380620043bc8339810160408190526200005f91620002f9565b604080518082018252600d81526c20ab102cb0b1b43a1021b63ab160991b6020808301918252835180850190945260048452634156594360e01b90840152815191929183918391620000b49160009162000220565b508051620000ca90600190602084019062000220565b505050620000e7620000e16200014460201b60201c565b62000148565b50508151620000fe90601290602085019062000220565b50601380546001600160a01b03808616620100000262010000600160b01b0319909216919091179091558116156200013b576200013b816200019a565b5050506200043b565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620001f95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b601580546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b8280546200022e90620003fe565b90600052602060002090601f0160209004810192826200025257600085556200029d565b82601f106200026d57805160ff19168380011785556200029d565b828001600101855582156200029d579182015b828111156200029d57825182559160200191906001019062000280565b50620002ab929150620002af565b5090565b5b80821115620002ab5760008155600101620002b0565b80516001600160a01b0381168114620002de57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200030f57600080fd5b6200031a84620002c6565b602085810151919450906001600160401b03808211156200033a57600080fd5b818701915087601f8301126200034f57600080fd5b815181811115620003645762000364620002e3565b604051601f8201601f19908116603f011681019083821181831017156200038f576200038f620002e3565b816040528281528a86848701011115620003a857600080fd5b600093505b82841015620003cc5784840186015181850187015292850192620003ad565b82841115620003de5760008684830101525b809750505050505050620003f560408501620002c6565b90509250925092565b600181811c908216806200041357607f821691505b602082108114156200043557634e487b7160e01b600052602260045260246000fd5b50919050565b613f71806200044b6000396000f3fe6080604052600436106103355760003560e01c80636d522418116101ab578063a035b1fe116100f7578063cc371bf311610095578063df4305d21161006f578063df4305d2146108e1578063e985e9c514610901578063ed1fc2a21461094a578063f2fde38b1461095f57600080fd5b8063cc371bf3146108ac578063cfef954f146108ac578063d547cfb7146108cc57600080fd5b8063a2e91477116100d1578063a2e9147714610832578063b88d4fde1461084c578063c39cbef11461086c578063c87b56dd1461088c57600080fd5b8063a035b1fe146107e9578063a0712d68146107ff578063a22cb4651461081257600080fd5b80638d02d86c116101645780639416b4231161013e5780639416b4231461077e578063946ef42a1461079e57806395d89b41146107b45780639ffdb65a146107c957600080fd5b80638d02d86c146107205780638da5cb5b1461074057806391b7f5ed1461075e57600080fd5b80636d5224181461067657806370a0823114610696578063715018a6146106b657806376d5de85146106cb578063853828b6146106eb5780638ba4cc3c1461070057600080fd5b806329626aa91161028557806345ca77381161022357806355f804b3116101fd57806355f804b3146105f657806359f2f897146106165780636352211e146106365780636c19e7831461065657600080fd5b806345ca7738146105a05780634d426528146105b65780634f6ccce7146105d657600080fd5b80633d18b9121161025f5780633d18b9121461053857806340488e951461054d57806342842e0e1461056d57806342f04f341461058d57600080fd5b806329626aa9146104ed5780632f745c59146105035780632f8145751461052357600080fd5b80630ebe8847116102f25780631978f469116102cc5780631978f4691461047857806323b872dd1461049857806323ffce85146104b8578063283b6654146104d857600080fd5b80630ebe88471461042d57806315b56d101461044357806318160ddd1461046357600080fd5b806301ffc9a71461033a57806304549d6f1461036f57806306fdde031461038e578063081812fc146103b0578063095ea7b3146103e857806309d42b301461040a575b600080fd5b34801561034657600080fd5b5061035a610355366004613809565b61097f565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5060135461035a90610100900460ff1681565b34801561039a57600080fd5b506103a36109aa565b604051610366919061387e565b3480156103bc57600080fd5b506103d06103cb366004613891565b610a3c565b6040516001600160a01b039091168152602001610366565b3480156103f457600080fd5b506104086104033660046138c6565b610ad6565b005b34801561041657600080fd5b5061041f601481565b604051908152602001610366565b34801561043957600080fd5b5061041f600c5481565b34801561044f57600080fd5b5061035a61045e366004613993565b610bec565b34801561046f57600080fd5b5060085461041f565b34801561048457600080fd5b5061041f6104933660046139c8565b610c1f565b3480156104a457600080fd5b506104086104b33660046139e3565b610c7e565b3480156104c457600080fd5b506104086104d33660046139c8565b610d19565b3480156104e457600080fd5b5061041f606481565b3480156104f957600080fd5b5061041f61271081565b34801561050f57600080fd5b5061041f61051e3660046138c6565b610d6a565b34801561052f57600080fd5b50610408610e00565b34801561054457600080fd5b50610408610e3e565b34801561055957600080fd5b5061035a610568366004613a1f565b610f2a565b34801561057957600080fd5b506104086105883660046139e3565b61100c565b61040861059b366004613a66565b611027565b3480156105ac57600080fd5b5061041f600b5481565b3480156105c257600080fd5b506104086105d1366004613a1f565b61139c565b3480156105e257600080fd5b5061041f6105f1366004613891565b61143b565b34801561060257600080fd5b50610408610611366004613993565b6114ce565b34801561062257600080fd5b506103a3610631366004613891565b611546565b34801561064257600080fd5b506103d0610651366004613891565b6115e8565b34801561066257600080fd5b506104086106713660046139c8565b61165f565b34801561068257600080fd5b506103a3610691366004613891565b6116b3565b3480156106a257600080fd5b5061041f6106b13660046139c8565b6116d0565b3480156106c257600080fd5b50610408611757565b3480156106d757600080fd5b506015546103d0906001600160a01b031681565b3480156106f757600080fd5b5061040861178d565b34801561070c57600080fd5b5061040861071b3660046138c6565b611810565b34801561072c57600080fd5b5061040861073b366004613891565b611943565b34801561074c57600080fd5b50600a546001600160a01b03166103d0565b34801561076a57600080fd5b50610408610779366004613891565b611972565b34801561078a57600080fd5b506103a3610799366004613993565b6119a1565b3480156107aa57600080fd5b5061041f60115481565b3480156107c057600080fd5b506103a3611b04565b3480156107d557600080fd5b5061035a6107e4366004613993565b611b13565b3480156107f557600080fd5b5061041f60105481565b61040861080d366004613891565b611d22565b34801561081e57600080fd5b5061040861082d366004613ab6565b612058565b34801561083e57600080fd5b5060135461035a9060ff1681565b34801561085857600080fd5b50610408610867366004613af2565b61211d565b34801561087857600080fd5b50610408610887366004613a1f565b6121b9565b34801561089857600080fd5b506103a36108a7366004613891565b612254565b3480156108b857600080fd5b506104086108c7366004613891565b61232f565b3480156108d857600080fd5b506103a361235e565b3480156108ed57600080fd5b506104086108fc366004613891565b6123ec565b34801561090d57600080fd5b5061035a61091c366004613b5a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561095657600080fd5b5061040861241b565b34801561096b57600080fd5b5061040861097a3660046139c8565b612462565b60006001600160e01b0319821663780e9d6360e01b14806109a457506109a4826124fa565b92915050565b6060600080546109b990613b8d565b80601f01602080910402602001604051908101604052809291908181526020018280546109e590613b8d565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610aba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ae1826115e8565b9050806001600160a01b0316836001600160a01b03161415610b4f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ab1565b336001600160a01b0382161480610b6b5750610b6b813361091c565b610bdd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ab1565b610be7838361254a565b505050565b6000600f610bf9836119a1565b604051610c069190613bc8565b9081526040519081900360200190205460ff1692915050565b60006001600160a01b038216610c625760405162461bcd60e51b8152602060048201526008602482015267373ab63620b2323960c11b6044820152606401610ab1565b506001600160a01b031660009081526014602052604090205490565b601554600160a01b900460ff16610ca75760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b81526001600160a01b03858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b50505050610be78383836125b8565b600a546001600160a01b03163314610d435760405162461bcd60e51b8152600401610ab190613c01565b601580546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b6000610d75836116d0565b8210610dd75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ab1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610e2a5760405162461bcd60e51b8152600401610ab190613c01565b6013805460ff19811660ff90911615179055565b601554600160a01b900460ff16610e675760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b8152336004820152600060248201526001600160a01b039091169063d230af3a90604401600060405180830381600087803b158015610eb357600080fd5b505af1158015610ec7573d6000803e3d6000fd5b5050601554604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b158015610f1057600080fd5b505af1158015610f24573d6000803e3d6000fd5b50505050565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605484015260708084019190915283518084039091018152609090920190925280519101206000908314610fdf5760405162461bcd60e51b81526020600482015260056024820152640b090c2e6d60db1b6044820152606401610ab1565b6013546201000090046001600160a01b0316610ffb84846125e9565b6001600160a01b0316149392505050565b610be78383836040518060200160405280600081525061211d565b601354610100900460ff166110675760405162461bcd60e51b81526020600482015260066024820152651614dd185c9d60d21b6044820152606401610ab1565b601554600160a01b900460ff166110905760405162461bcd60e51b8152600401610ab190613be4565b61109a8282610f2a565b6110d45760405162461bcd60e51b815260206004820152600b60248201526a4e6f74456c696769626c6560a81b6044820152606401610ab1565b6127106110e060085490565b106111195760405162461bcd60e51b8152602060048201526009602482015268105b1b135a5b9d195960ba1b6044820152606401610ab1565b6011548311156111595760405162461bcd60e51b815260206004820152600b60248201526a0caf0c6cacac8e640dac2f60ab1b6044820152606401610ab1565b6127108361116660085490565b6111709190613c4c565b11156111ae5760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b6044820152606401610ab1565b601154336000908152601460205260409020546111cc908590613c4c565b111561120f5760405162461bcd60e51b815260206004820152601260248201527165786365656420706572206164647265737360701b6044820152606401610ab1565b6000831161124c5760405162461bcd60e51b815260206004820152600a6024820152696174206c65617374203160b01b6044820152606401610ab1565b348360105461125b9190613c64565b1461129b5760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610ab1565b60006112a660085490565b905060005b848110156112da576112c833836112c181613c83565b9450612605565b806112d281613c83565b9150506112ab565b5033600090815260146020526040812080548692906112fa908490613c4c565b90915550506015546040516311ef30b560e31b81523360048201526001600160a01b0390911690638f7985a890602401600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b505060408051338152602081018890527ff5df7d07fef0d8ac7581015ebd1a3b7b7760da84b12f0c8174ae0dcd639cb6a3935001905060405180910390a150505050565b601554600160a01b900460ff166113c55760405162461bcd60e51b8152600401610ab190613be4565b601554600c54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561141557600080fd5b505af1158015611429573d6000803e3d6000fd5b50505050611437828261261f565b5050565b600061144660085490565b82106114a95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ab1565b600882815481106114bc576114bc613c9e565b90600052602060002001549050919050565b600a546001600160a01b031633146114f85760405162461bcd60e51b8152600401610ab190613c01565b805161150b90601290602084019061375a565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf68160405161153b919061387e565b60405180910390a150565b6000818152600d6020526040902080546060919061156390613b8d565b80601f016020809104026020016040519081016040528092919081815260200182805461158f90613b8d565b80156115dc5780601f106115b1576101008083540402835291602001916115dc565b820191906000526020600020905b8154815290600101906020018083116115bf57829003601f168201915b50505050509050919050565b6000818152600260205260408120546001600160a01b0316806109a45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ab1565b600a546001600160a01b031633146116895760405162461bcd60e51b8152600401610ab190613c01565b601380546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000818152600e6020526040902080546060919061156390613b8d565b60006001600160a01b03821661173b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ab1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117815760405162461bcd60e51b8152600401610ab190613c01565b61178b60006126e1565b565b600a546001600160a01b031633146117b75760405162461bcd60e51b8152600401610ab190613c01565b47806117f25760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b6044820152606401610ab1565b61180d611807600a546001600160a01b031690565b47612733565b50565b600a546001600160a01b0316331461183a5760405162461bcd60e51b8152600401610ab190613c01565b601554600160a01b900460ff166118635760405162461bcd60e51b8152600401610ab190613be4565b600061186e60085490565b905060005b8281101561189b5761188984836112c181613c83565b8061189381613c83565b915050611873565b506015546040516311ef30b560e31b81526001600160a01b03858116600483015290911690638f7985a890602401600060405180830381600087803b1580156118e357600080fd5b505af11580156118f7573d6000803e3d6000fd5b5050604080516001600160a01b0387168152602081018690527f7f9c9cb9137926c7f7c3bdbb971b627d14e5f95ded13be068becbd8ce8198361935001905060405180910390a1505050565b600a546001600160a01b0316331461196d5760405162461bcd60e51b8152600401610ab190613c01565b600c55565b600a546001600160a01b0316331461199c5760405162461bcd60e51b8152600401610ab190613c01565b601055565b606060008290506000815167ffffffffffffffff8111156119c4576119c46138f0565b6040519080825280601f01601f1916602001820160405280156119ee576020820181803683370190505b50905060005b8251811015611afc576041838281518110611a1157611a11613c9e565b016020015160f81c10801590611a415750605a838281518110611a3657611a36613c9e565b016020015160f81c11155b15611aa357828181518110611a5857611a58613c9e565b602001015160f81c60f81b60f81c6020611a729190613cb4565b60f81b828281518110611a8757611a87613c9e565b60200101906001600160f81b031916908160001a905350611aea565b828181518110611ab557611ab5613c9e565b602001015160f81c60f81b828281518110611ad257611ad2613c9e565b60200101906001600160f81b031916908160001a9053505b80611af481613c83565b9150506119f4565b509392505050565b6060600180546109b990613b8d565b600080829050600181511015611b2c5750600092915050565b601981511115611b3f5750600092915050565b80600081518110611b5257611b52613c9e565b6020910101516001600160f81b031916600160fd1b1415611b765750600092915050565b8060018251611b859190613cd9565b81518110611b9557611b95613c9e565b6020910101516001600160f81b031916600160fd1b1415611bb95750600092915050565b600081600081518110611bce57611bce613c9e565b01602001516001600160f81b031916905060005b8251811015611d17576000838281518110611bff57611bff613c9e565b01602001516001600160f81b0319169050600160fd1b81148015611c305750600160fd1b6001600160f81b03198416145b15611c415750600095945050505050565b600360fc1b6001600160f81b0319821610801590611c6d5750603960f81b6001600160f81b0319821611155b158015611ca35750604160f81b6001600160f81b0319821610801590611ca15750602d60f91b6001600160f81b0319821611155b155b8015611cd85750606160f81b6001600160f81b0319821610801590611cd65750603d60f91b6001600160f81b0319821611155b155b8015611cf25750600160fd1b6001600160f81b0319821614155b15611d035750600095945050505050565b915080611d0f81613c83565b915050611be2565b506001949350505050565b60135460ff16611d5d5760405162461bcd60e51b81526020600482015260066024820152651614dd185c9d60d21b6044820152606401610ab1565b601554600160a01b900460ff16611d865760405162461bcd60e51b8152600401610ab190613be4565b612710611d9260085490565b10611ddf5760405162461bcd60e51b815260206004820152601b60248201527f416c6c20746f6b656e732068617665206265656e206d696e74656400000000006044820152606401610ab1565b6014811115611e1e5760405162461bcd60e51b815260206004820152600b60248201526a0caf0c6cacac8e640dac2f60ab1b6044820152606401610ab1565b61271081611e2b60085490565b611e359190613c4c565b1115611e735760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b6044820152606401610ab1565b33600090815260146020526040902054606490611e91908390613c4c565b1115611ed45760405162461bcd60e51b815260206004820152601260248201527165786365656420706572206164647265737360701b6044820152606401610ab1565b60008111611f115760405162461bcd60e51b815260206004820152600a6024820152696174206c65617374203160b01b6044820152606401610ab1565b3481601054611f209190613c64565b14611f605760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610ab1565b6000611f6b60085490565b905060005b82811015611f9857611f8633836112c181613c83565b80611f9081613c83565b915050611f70565b503360009081526014602052604081208054849290611fb8908490613c4c565b90915550506015546040516311ef30b560e31b81523360048201526001600160a01b0390911690638f7985a890602401600060405180830381600087803b15801561200257600080fd5b505af1158015612016573d6000803e3d6000fd5b505060408051338152602081018690527f239739eec2dbaccb604ff1de6462a5eccd5f3148924696dd88f04d636ff582b5935001905060405180910390a15050565b6001600160a01b0382163314156120b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ab1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601554600160a01b900460ff166121465760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b81526001600160a01b03868116600483015285811660248301529091169063d230af3a90604401600060405180830381600087803b15801561219557600080fd5b505af11580156121a9573d6000803e3d6000fd5b50505050610f24848484846127c8565b601554600160a01b900460ff166121e25760405162461bcd60e51b8152600401610ab190613be4565b601554600b54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561223257600080fd5b505af1158015612246573d6000803e3d6000fd5b5050505061143782826127fa565b6000818152600260205260409020546060906001600160a01b03166122d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ab1565b60006122dd612b25565b905060008151116122fd5760405180602001604052806000815250612328565b8061230784612b34565b604051602001612318929190613cf0565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146123595760405162461bcd60e51b8152600401610ab190613c01565b600b55565b6012805461236b90613b8d565b80601f016020809104026020016040519081016040528092919081815260200182805461239790613b8d565b80156123e45780601f106123b9576101008083540402835291602001916123e4565b820191906000526020600020905b8154815290600101906020018083116123c757829003601f168201915b505050505081565b600a546001600160a01b031633146124165760405162461bcd60e51b8152600401610ab190613c01565b601155565b600a546001600160a01b031633146124455760405162461bcd60e51b8152600401610ab190613c01565b6013805461ff001981166101009182900460ff1615909102179055565b600a546001600160a01b0316331461248c5760405162461bcd60e51b8152600401610ab190613c01565b6001600160a01b0381166124f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab1565b61180d816126e1565b60006001600160e01b031982166380ac58cd60e01b148061252b57506001600160e01b03198216635b5e139f60e01b145b806109a457506301ffc9a760e01b6001600160e01b03198316146109a4565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257f826115e8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125c23382612c3a565b6125de5760405162461bcd60e51b8152600401610ab190613d1f565b610be7838383612d2d565b60008060006125f88585612ed8565b91509150611afc81612f48565b611437828260405180602001604052806000815250613103565b600061262a836115e8565b9050336001600160a01b038216146126845760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610ab1565b6000838152600d6020908152604090912083516126a39285019061375a565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d836040516126d4919061387e565b60405180910390a2505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612780576040519150601f19603f3d011682016040523d82523d6000602084013e612785565b606091505b5050905080610be75760405162461bcd60e51b815260206004820152600f60248201526e6661696c656420776974686472617760881b6044820152606401610ab1565b6127d23383612c3a565b6127ee5760405162461bcd60e51b8152600401610ab190613d1f565b610f2484848484613136565b6000612805836115e8565b9050336001600160a01b0382161461285f5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610ab1565b61286882611b13565b15156001146128b05760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610ab1565b6000838152600e60205260409081902090516002916128ce91613d70565b602060405180830381855afa1580156128eb573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061290e9190613e0c565b60028360405161291e9190613bc8565b602060405180830381855afa15801561293b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061295e9190613e0c565b14156129b85760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610ab1565b6129c182610bec565b15612a065760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610ab1565b6000838152600e602052604081208054612a1f90613b8d565b90501115612aca576000838152600e602052604090208054612aca9190612a4590613b8d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a7190613b8d565b8015612abe5780601f10612a9357610100808354040283529160200191612abe565b820191906000526020600020905b815481529060010190602001808311612aa157829003601f168201915b50505050506000613169565b612ad5826001613169565b6000838152600e602090815260409091208351612af49285019061375a565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516126d4919061387e565b6060601280546109b990613b8d565b606081612b585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b825780612b6c81613c83565b9150612b7b9050600a83613e3b565b9150612b5c565b60008167ffffffffffffffff811115612b9d57612b9d6138f0565b6040519080825280601f01601f191660200182016040528015612bc7576020820181803683370190505b5090505b8415612c3257612bdc600183613cd9565b9150612be9600a86613e4f565b612bf4906030613c4c565b60f81b818381518110612c0957612c09613c9e565b60200101906001600160f81b031916908160001a905350612c2b600a86613e3b565b9450612bcb565b949350505050565b6000818152600260205260408120546001600160a01b0316612cb35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ab1565b6000612cbe836115e8565b9050806001600160a01b0316846001600160a01b03161480612cf95750836001600160a01b0316612cee84610a3c565b6001600160a01b0316145b80612c3257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612c32565b826001600160a01b0316612d40826115e8565b6001600160a01b031614612da85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ab1565b6001600160a01b038216612e0a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab1565b612e158383836131a6565b612e2060008261254a565b6001600160a01b0383166000908152600360205260408120805460019290612e49908490613cd9565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e77908490613c4c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080825160411415612f0f5760208301516040840151606085015160001a612f038782858561325e565b94509450505050612f41565b825160401415612f395760208301516040840151612f2e86838361334b565b935093505050612f41565b506000905060025b9250929050565b6000816004811115612f5c57612f5c613e63565b1415612f655750565b6001816004811115612f7957612f79613e63565b1415612fc75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ab1565b6002816004811115612fdb57612fdb613e63565b14156130295760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ab1565b600381600481111561303d5761303d613e63565b14156130965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ab1565b60048160048111156130aa576130aa613e63565b141561180d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ab1565b61310d838361337a565b61311a60008484846134c8565b610be75760405162461bcd60e51b8152600401610ab190613e79565b613141848484612d2d565b61314d848484846134c8565b610f245760405162461bcd60e51b8152600401610ab190613e79565b80600f613175846119a1565b6040516131829190613bc8565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b038316613201576131fc81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613224565b816001600160a01b0316836001600160a01b0316146132245761322483826135ca565b6001600160a01b03821661323b57610be781613667565b826001600160a01b0316826001600160a01b031614610be757610be78282613716565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132955750600090506003613342565b8460ff16601b141580156132ad57508460ff16601c14155b156132be5750600090506004613342565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613312573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661333b57600060019250925050613342565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161336c8782888561325e565b935093505050935093915050565b6001600160a01b0382166133d05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ab1565b6000818152600260205260409020546001600160a01b0316156134355760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ab1565b613441600083836131a6565b6001600160a01b038216600090815260036020526040812080546001929061346a908490613c4c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611d1757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061350c903390899088908890600401613ecb565b602060405180830381600087803b15801561352657600080fd5b505af1925050508015613556575060408051601f3d908101601f1916820190925261355391810190613f08565b60015b6135b0573d808015613584576040519150601f19603f3d011682016040523d82523d6000602084013e613589565b606091505b5080516135a85760405162461bcd60e51b8152600401610ab190613e79565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c32565b600060016135d7846116d0565b6135e19190613cd9565b600083815260076020526040902054909150808214613634576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061367990600190613cd9565b600083815260096020526040812054600880549394509092849081106136a1576136a1613c9e565b9060005260206000200154905080600883815481106136c2576136c2613c9e565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136fa576136fa613f25565b6001900381819060005260206000200160009055905550505050565b6000613721836116d0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461376690613b8d565b90600052602060002090601f01602090048101928261378857600085556137ce565b82601f106137a157805160ff19168380011785556137ce565b828001600101855582156137ce579182015b828111156137ce5782518255916020019190600101906137b3565b506137da9291506137de565b5090565b5b808211156137da57600081556001016137df565b6001600160e01b03198116811461180d57600080fd5b60006020828403121561381b57600080fd5b8135612328816137f3565b60005b83811015613841578181015183820152602001613829565b83811115610f245750506000910152565b6000815180845261386a816020860160208601613826565b601f01601f19169290920160200192915050565b6020815260006123286020830184613852565b6000602082840312156138a357600080fd5b5035919050565b80356001600160a01b03811681146138c157600080fd5b919050565b600080604083850312156138d957600080fd5b6138e2836138aa565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261391757600080fd5b813567ffffffffffffffff80821115613932576139326138f0565b604051601f8301601f19908116603f0116810190828211818310171561395a5761395a6138f0565b8160405283815286602085880101111561397357600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156139a557600080fd5b813567ffffffffffffffff8111156139bc57600080fd5b612c3284828501613906565b6000602082840312156139da57600080fd5b612328826138aa565b6000806000606084860312156139f857600080fd5b613a01846138aa565b9250613a0f602085016138aa565b9150604084013590509250925092565b60008060408385031215613a3257600080fd5b82359150602083013567ffffffffffffffff811115613a5057600080fd5b613a5c85828601613906565b9150509250929050565b600080600060608486031215613a7b57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613aa057600080fd5b613aac86828701613906565b9150509250925092565b60008060408385031215613ac957600080fd5b613ad2836138aa565b915060208301358015158114613ae757600080fd5b809150509250929050565b60008060008060808587031215613b0857600080fd5b613b11856138aa565b9350613b1f602086016138aa565b925060408501359150606085013567ffffffffffffffff811115613b4257600080fd5b613b4e87828801613906565b91505092959194509250565b60008060408385031215613b6d57600080fd5b613b76836138aa565b9150613b84602084016138aa565b90509250929050565b600181811c90821680613ba157607f821691505b60208210811415613bc257634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613bda818460208701613826565b9190910192915050565b602080825260039082015262544e4960e81b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613c5f57613c5f613c36565b500190565b6000816000190483118215151615613c7e57613c7e613c36565b500290565b6000600019821415613c9757613c97613c36565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115613cd157613cd1613c36565b019392505050565b600082821015613ceb57613ceb613c36565b500390565b60008351613d02818460208801613826565b835190830190613d16818360208801613826565b01949350505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600080835481600182811c915080831680613d8c57607f831692505b6020808410821415613dac57634e487b7160e01b86526022600452602486fd5b818015613dc05760018114613dd157613dfe565b60ff19861689528489019650613dfe565b60008a81526020902060005b86811015613df65781548b820152908501908301613ddd565b505084890196505b509498975050505050505050565b600060208284031215613e1e57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082613e4a57613e4a613e25565b500490565b600082613e5e57613e5e613e25565b500690565b634e487b7160e01b600052602160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613efe90830184613852565b9695505050505050565b600060208284031215613f1a57600080fd5b8151612328816137f3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b149f0d17029f2e2002e9c477211bbb8536c8f2a307fcf037a6d8cfcd5c311f364736f6c63430008080033000000000000000000000000226e87fba91cbeb40b0cd94e18d981b9995b1b150000000000000000000000000000000000000000000000000000000000000060000000000000000000000000007caadcdd725893186d2735a055ac22b853e78a000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6e66742d6170692e6176676c652e636f6d2f612f00000000

Deployed Bytecode

0x6080604052600436106103355760003560e01c80636d522418116101ab578063a035b1fe116100f7578063cc371bf311610095578063df4305d21161006f578063df4305d2146108e1578063e985e9c514610901578063ed1fc2a21461094a578063f2fde38b1461095f57600080fd5b8063cc371bf3146108ac578063cfef954f146108ac578063d547cfb7146108cc57600080fd5b8063a2e91477116100d1578063a2e9147714610832578063b88d4fde1461084c578063c39cbef11461086c578063c87b56dd1461088c57600080fd5b8063a035b1fe146107e9578063a0712d68146107ff578063a22cb4651461081257600080fd5b80638d02d86c116101645780639416b4231161013e5780639416b4231461077e578063946ef42a1461079e57806395d89b41146107b45780639ffdb65a146107c957600080fd5b80638d02d86c146107205780638da5cb5b1461074057806391b7f5ed1461075e57600080fd5b80636d5224181461067657806370a0823114610696578063715018a6146106b657806376d5de85146106cb578063853828b6146106eb5780638ba4cc3c1461070057600080fd5b806329626aa91161028557806345ca77381161022357806355f804b3116101fd57806355f804b3146105f657806359f2f897146106165780636352211e146106365780636c19e7831461065657600080fd5b806345ca7738146105a05780634d426528146105b65780634f6ccce7146105d657600080fd5b80633d18b9121161025f5780633d18b9121461053857806340488e951461054d57806342842e0e1461056d57806342f04f341461058d57600080fd5b806329626aa9146104ed5780632f745c59146105035780632f8145751461052357600080fd5b80630ebe8847116102f25780631978f469116102cc5780631978f4691461047857806323b872dd1461049857806323ffce85146104b8578063283b6654146104d857600080fd5b80630ebe88471461042d57806315b56d101461044357806318160ddd1461046357600080fd5b806301ffc9a71461033a57806304549d6f1461036f57806306fdde031461038e578063081812fc146103b0578063095ea7b3146103e857806309d42b301461040a575b600080fd5b34801561034657600080fd5b5061035a610355366004613809565b61097f565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5060135461035a90610100900460ff1681565b34801561039a57600080fd5b506103a36109aa565b604051610366919061387e565b3480156103bc57600080fd5b506103d06103cb366004613891565b610a3c565b6040516001600160a01b039091168152602001610366565b3480156103f457600080fd5b506104086104033660046138c6565b610ad6565b005b34801561041657600080fd5b5061041f601481565b604051908152602001610366565b34801561043957600080fd5b5061041f600c5481565b34801561044f57600080fd5b5061035a61045e366004613993565b610bec565b34801561046f57600080fd5b5060085461041f565b34801561048457600080fd5b5061041f6104933660046139c8565b610c1f565b3480156104a457600080fd5b506104086104b33660046139e3565b610c7e565b3480156104c457600080fd5b506104086104d33660046139c8565b610d19565b3480156104e457600080fd5b5061041f606481565b3480156104f957600080fd5b5061041f61271081565b34801561050f57600080fd5b5061041f61051e3660046138c6565b610d6a565b34801561052f57600080fd5b50610408610e00565b34801561054457600080fd5b50610408610e3e565b34801561055957600080fd5b5061035a610568366004613a1f565b610f2a565b34801561057957600080fd5b506104086105883660046139e3565b61100c565b61040861059b366004613a66565b611027565b3480156105ac57600080fd5b5061041f600b5481565b3480156105c257600080fd5b506104086105d1366004613a1f565b61139c565b3480156105e257600080fd5b5061041f6105f1366004613891565b61143b565b34801561060257600080fd5b50610408610611366004613993565b6114ce565b34801561062257600080fd5b506103a3610631366004613891565b611546565b34801561064257600080fd5b506103d0610651366004613891565b6115e8565b34801561066257600080fd5b506104086106713660046139c8565b61165f565b34801561068257600080fd5b506103a3610691366004613891565b6116b3565b3480156106a257600080fd5b5061041f6106b13660046139c8565b6116d0565b3480156106c257600080fd5b50610408611757565b3480156106d757600080fd5b506015546103d0906001600160a01b031681565b3480156106f757600080fd5b5061040861178d565b34801561070c57600080fd5b5061040861071b3660046138c6565b611810565b34801561072c57600080fd5b5061040861073b366004613891565b611943565b34801561074c57600080fd5b50600a546001600160a01b03166103d0565b34801561076a57600080fd5b50610408610779366004613891565b611972565b34801561078a57600080fd5b506103a3610799366004613993565b6119a1565b3480156107aa57600080fd5b5061041f60115481565b3480156107c057600080fd5b506103a3611b04565b3480156107d557600080fd5b5061035a6107e4366004613993565b611b13565b3480156107f557600080fd5b5061041f60105481565b61040861080d366004613891565b611d22565b34801561081e57600080fd5b5061040861082d366004613ab6565b612058565b34801561083e57600080fd5b5060135461035a9060ff1681565b34801561085857600080fd5b50610408610867366004613af2565b61211d565b34801561087857600080fd5b50610408610887366004613a1f565b6121b9565b34801561089857600080fd5b506103a36108a7366004613891565b612254565b3480156108b857600080fd5b506104086108c7366004613891565b61232f565b3480156108d857600080fd5b506103a361235e565b3480156108ed57600080fd5b506104086108fc366004613891565b6123ec565b34801561090d57600080fd5b5061035a61091c366004613b5a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561095657600080fd5b5061040861241b565b34801561096b57600080fd5b5061040861097a3660046139c8565b612462565b60006001600160e01b0319821663780e9d6360e01b14806109a457506109a4826124fa565b92915050565b6060600080546109b990613b8d565b80601f01602080910402602001604051908101604052809291908181526020018280546109e590613b8d565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610aba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ae1826115e8565b9050806001600160a01b0316836001600160a01b03161415610b4f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ab1565b336001600160a01b0382161480610b6b5750610b6b813361091c565b610bdd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ab1565b610be7838361254a565b505050565b6000600f610bf9836119a1565b604051610c069190613bc8565b9081526040519081900360200190205460ff1692915050565b60006001600160a01b038216610c625760405162461bcd60e51b8152602060048201526008602482015267373ab63620b2323960c11b6044820152606401610ab1565b506001600160a01b031660009081526014602052604090205490565b601554600160a01b900460ff16610ca75760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b81526001600160a01b03858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b50505050610be78383836125b8565b600a546001600160a01b03163314610d435760405162461bcd60e51b8152600401610ab190613c01565b601580546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b6000610d75836116d0565b8210610dd75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ab1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610e2a5760405162461bcd60e51b8152600401610ab190613c01565b6013805460ff19811660ff90911615179055565b601554600160a01b900460ff16610e675760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b8152336004820152600060248201526001600160a01b039091169063d230af3a90604401600060405180830381600087803b158015610eb357600080fd5b505af1158015610ec7573d6000803e3d6000fd5b5050601554604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b158015610f1057600080fd5b505af1158015610f24573d6000803e3d6000fd5b50505050565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605484015260708084019190915283518084039091018152609090920190925280519101206000908314610fdf5760405162461bcd60e51b81526020600482015260056024820152640b090c2e6d60db1b6044820152606401610ab1565b6013546201000090046001600160a01b0316610ffb84846125e9565b6001600160a01b0316149392505050565b610be78383836040518060200160405280600081525061211d565b601354610100900460ff166110675760405162461bcd60e51b81526020600482015260066024820152651614dd185c9d60d21b6044820152606401610ab1565b601554600160a01b900460ff166110905760405162461bcd60e51b8152600401610ab190613be4565b61109a8282610f2a565b6110d45760405162461bcd60e51b815260206004820152600b60248201526a4e6f74456c696769626c6560a81b6044820152606401610ab1565b6127106110e060085490565b106111195760405162461bcd60e51b8152602060048201526009602482015268105b1b135a5b9d195960ba1b6044820152606401610ab1565b6011548311156111595760405162461bcd60e51b815260206004820152600b60248201526a0caf0c6cacac8e640dac2f60ab1b6044820152606401610ab1565b6127108361116660085490565b6111709190613c4c565b11156111ae5760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b6044820152606401610ab1565b601154336000908152601460205260409020546111cc908590613c4c565b111561120f5760405162461bcd60e51b815260206004820152601260248201527165786365656420706572206164647265737360701b6044820152606401610ab1565b6000831161124c5760405162461bcd60e51b815260206004820152600a6024820152696174206c65617374203160b01b6044820152606401610ab1565b348360105461125b9190613c64565b1461129b5760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610ab1565b60006112a660085490565b905060005b848110156112da576112c833836112c181613c83565b9450612605565b806112d281613c83565b9150506112ab565b5033600090815260146020526040812080548692906112fa908490613c4c565b90915550506015546040516311ef30b560e31b81523360048201526001600160a01b0390911690638f7985a890602401600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b505060408051338152602081018890527ff5df7d07fef0d8ac7581015ebd1a3b7b7760da84b12f0c8174ae0dcd639cb6a3935001905060405180910390a150505050565b601554600160a01b900460ff166113c55760405162461bcd60e51b8152600401610ab190613be4565b601554600c54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561141557600080fd5b505af1158015611429573d6000803e3d6000fd5b50505050611437828261261f565b5050565b600061144660085490565b82106114a95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ab1565b600882815481106114bc576114bc613c9e565b90600052602060002001549050919050565b600a546001600160a01b031633146114f85760405162461bcd60e51b8152600401610ab190613c01565b805161150b90601290602084019061375a565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf68160405161153b919061387e565b60405180910390a150565b6000818152600d6020526040902080546060919061156390613b8d565b80601f016020809104026020016040519081016040528092919081815260200182805461158f90613b8d565b80156115dc5780601f106115b1576101008083540402835291602001916115dc565b820191906000526020600020905b8154815290600101906020018083116115bf57829003601f168201915b50505050509050919050565b6000818152600260205260408120546001600160a01b0316806109a45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ab1565b600a546001600160a01b031633146116895760405162461bcd60e51b8152600401610ab190613c01565b601380546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000818152600e6020526040902080546060919061156390613b8d565b60006001600160a01b03821661173b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ab1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117815760405162461bcd60e51b8152600401610ab190613c01565b61178b60006126e1565b565b600a546001600160a01b031633146117b75760405162461bcd60e51b8152600401610ab190613c01565b47806117f25760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b6044820152606401610ab1565b61180d611807600a546001600160a01b031690565b47612733565b50565b600a546001600160a01b0316331461183a5760405162461bcd60e51b8152600401610ab190613c01565b601554600160a01b900460ff166118635760405162461bcd60e51b8152600401610ab190613be4565b600061186e60085490565b905060005b8281101561189b5761188984836112c181613c83565b8061189381613c83565b915050611873565b506015546040516311ef30b560e31b81526001600160a01b03858116600483015290911690638f7985a890602401600060405180830381600087803b1580156118e357600080fd5b505af11580156118f7573d6000803e3d6000fd5b5050604080516001600160a01b0387168152602081018690527f7f9c9cb9137926c7f7c3bdbb971b627d14e5f95ded13be068becbd8ce8198361935001905060405180910390a1505050565b600a546001600160a01b0316331461196d5760405162461bcd60e51b8152600401610ab190613c01565b600c55565b600a546001600160a01b0316331461199c5760405162461bcd60e51b8152600401610ab190613c01565b601055565b606060008290506000815167ffffffffffffffff8111156119c4576119c46138f0565b6040519080825280601f01601f1916602001820160405280156119ee576020820181803683370190505b50905060005b8251811015611afc576041838281518110611a1157611a11613c9e565b016020015160f81c10801590611a415750605a838281518110611a3657611a36613c9e565b016020015160f81c11155b15611aa357828181518110611a5857611a58613c9e565b602001015160f81c60f81b60f81c6020611a729190613cb4565b60f81b828281518110611a8757611a87613c9e565b60200101906001600160f81b031916908160001a905350611aea565b828181518110611ab557611ab5613c9e565b602001015160f81c60f81b828281518110611ad257611ad2613c9e565b60200101906001600160f81b031916908160001a9053505b80611af481613c83565b9150506119f4565b509392505050565b6060600180546109b990613b8d565b600080829050600181511015611b2c5750600092915050565b601981511115611b3f5750600092915050565b80600081518110611b5257611b52613c9e565b6020910101516001600160f81b031916600160fd1b1415611b765750600092915050565b8060018251611b859190613cd9565b81518110611b9557611b95613c9e565b6020910101516001600160f81b031916600160fd1b1415611bb95750600092915050565b600081600081518110611bce57611bce613c9e565b01602001516001600160f81b031916905060005b8251811015611d17576000838281518110611bff57611bff613c9e565b01602001516001600160f81b0319169050600160fd1b81148015611c305750600160fd1b6001600160f81b03198416145b15611c415750600095945050505050565b600360fc1b6001600160f81b0319821610801590611c6d5750603960f81b6001600160f81b0319821611155b158015611ca35750604160f81b6001600160f81b0319821610801590611ca15750602d60f91b6001600160f81b0319821611155b155b8015611cd85750606160f81b6001600160f81b0319821610801590611cd65750603d60f91b6001600160f81b0319821611155b155b8015611cf25750600160fd1b6001600160f81b0319821614155b15611d035750600095945050505050565b915080611d0f81613c83565b915050611be2565b506001949350505050565b60135460ff16611d5d5760405162461bcd60e51b81526020600482015260066024820152651614dd185c9d60d21b6044820152606401610ab1565b601554600160a01b900460ff16611d865760405162461bcd60e51b8152600401610ab190613be4565b612710611d9260085490565b10611ddf5760405162461bcd60e51b815260206004820152601b60248201527f416c6c20746f6b656e732068617665206265656e206d696e74656400000000006044820152606401610ab1565b6014811115611e1e5760405162461bcd60e51b815260206004820152600b60248201526a0caf0c6cacac8e640dac2f60ab1b6044820152606401610ab1565b61271081611e2b60085490565b611e359190613c4c565b1115611e735760405162461bcd60e51b815260206004820152600d60248201526c65786365656420737570706c7960981b6044820152606401610ab1565b33600090815260146020526040902054606490611e91908390613c4c565b1115611ed45760405162461bcd60e51b815260206004820152601260248201527165786365656420706572206164647265737360701b6044820152606401610ab1565b60008111611f115760405162461bcd60e51b815260206004820152600a6024820152696174206c65617374203160b01b6044820152606401610ab1565b3481601054611f209190613c64565b14611f605760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610ab1565b6000611f6b60085490565b905060005b82811015611f9857611f8633836112c181613c83565b80611f9081613c83565b915050611f70565b503360009081526014602052604081208054849290611fb8908490613c4c565b90915550506015546040516311ef30b560e31b81523360048201526001600160a01b0390911690638f7985a890602401600060405180830381600087803b15801561200257600080fd5b505af1158015612016573d6000803e3d6000fd5b505060408051338152602081018690527f239739eec2dbaccb604ff1de6462a5eccd5f3148924696dd88f04d636ff582b5935001905060405180910390a15050565b6001600160a01b0382163314156120b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ab1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601554600160a01b900460ff166121465760405162461bcd60e51b8152600401610ab190613be4565b601554604051636918579d60e11b81526001600160a01b03868116600483015285811660248301529091169063d230af3a90604401600060405180830381600087803b15801561219557600080fd5b505af11580156121a9573d6000803e3d6000fd5b50505050610f24848484846127c8565b601554600160a01b900460ff166121e25760405162461bcd60e51b8152600401610ab190613be4565b601554600b54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561223257600080fd5b505af1158015612246573d6000803e3d6000fd5b5050505061143782826127fa565b6000818152600260205260409020546060906001600160a01b03166122d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ab1565b60006122dd612b25565b905060008151116122fd5760405180602001604052806000815250612328565b8061230784612b34565b604051602001612318929190613cf0565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146123595760405162461bcd60e51b8152600401610ab190613c01565b600b55565b6012805461236b90613b8d565b80601f016020809104026020016040519081016040528092919081815260200182805461239790613b8d565b80156123e45780601f106123b9576101008083540402835291602001916123e4565b820191906000526020600020905b8154815290600101906020018083116123c757829003601f168201915b505050505081565b600a546001600160a01b031633146124165760405162461bcd60e51b8152600401610ab190613c01565b601155565b600a546001600160a01b031633146124455760405162461bcd60e51b8152600401610ab190613c01565b6013805461ff001981166101009182900460ff1615909102179055565b600a546001600160a01b0316331461248c5760405162461bcd60e51b8152600401610ab190613c01565b6001600160a01b0381166124f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab1565b61180d816126e1565b60006001600160e01b031982166380ac58cd60e01b148061252b57506001600160e01b03198216635b5e139f60e01b145b806109a457506301ffc9a760e01b6001600160e01b03198316146109a4565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257f826115e8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125c23382612c3a565b6125de5760405162461bcd60e51b8152600401610ab190613d1f565b610be7838383612d2d565b60008060006125f88585612ed8565b91509150611afc81612f48565b611437828260405180602001604052806000815250613103565b600061262a836115e8565b9050336001600160a01b038216146126845760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610ab1565b6000838152600d6020908152604090912083516126a39285019061375a565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d836040516126d4919061387e565b60405180910390a2505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612780576040519150601f19603f3d011682016040523d82523d6000602084013e612785565b606091505b5050905080610be75760405162461bcd60e51b815260206004820152600f60248201526e6661696c656420776974686472617760881b6044820152606401610ab1565b6127d23383612c3a565b6127ee5760405162461bcd60e51b8152600401610ab190613d1f565b610f2484848484613136565b6000612805836115e8565b9050336001600160a01b0382161461285f5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610ab1565b61286882611b13565b15156001146128b05760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610ab1565b6000838152600e60205260409081902090516002916128ce91613d70565b602060405180830381855afa1580156128eb573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061290e9190613e0c565b60028360405161291e9190613bc8565b602060405180830381855afa15801561293b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061295e9190613e0c565b14156129b85760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610ab1565b6129c182610bec565b15612a065760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610ab1565b6000838152600e602052604081208054612a1f90613b8d565b90501115612aca576000838152600e602052604090208054612aca9190612a4590613b8d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a7190613b8d565b8015612abe5780601f10612a9357610100808354040283529160200191612abe565b820191906000526020600020905b815481529060010190602001808311612aa157829003601f168201915b50505050506000613169565b612ad5826001613169565b6000838152600e602090815260409091208351612af49285019061375a565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516126d4919061387e565b6060601280546109b990613b8d565b606081612b585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b825780612b6c81613c83565b9150612b7b9050600a83613e3b565b9150612b5c565b60008167ffffffffffffffff811115612b9d57612b9d6138f0565b6040519080825280601f01601f191660200182016040528015612bc7576020820181803683370190505b5090505b8415612c3257612bdc600183613cd9565b9150612be9600a86613e4f565b612bf4906030613c4c565b60f81b818381518110612c0957612c09613c9e565b60200101906001600160f81b031916908160001a905350612c2b600a86613e3b565b9450612bcb565b949350505050565b6000818152600260205260408120546001600160a01b0316612cb35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ab1565b6000612cbe836115e8565b9050806001600160a01b0316846001600160a01b03161480612cf95750836001600160a01b0316612cee84610a3c565b6001600160a01b0316145b80612c3257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612c32565b826001600160a01b0316612d40826115e8565b6001600160a01b031614612da85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ab1565b6001600160a01b038216612e0a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab1565b612e158383836131a6565b612e2060008261254a565b6001600160a01b0383166000908152600360205260408120805460019290612e49908490613cd9565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e77908490613c4c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080825160411415612f0f5760208301516040840151606085015160001a612f038782858561325e565b94509450505050612f41565b825160401415612f395760208301516040840151612f2e86838361334b565b935093505050612f41565b506000905060025b9250929050565b6000816004811115612f5c57612f5c613e63565b1415612f655750565b6001816004811115612f7957612f79613e63565b1415612fc75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ab1565b6002816004811115612fdb57612fdb613e63565b14156130295760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ab1565b600381600481111561303d5761303d613e63565b14156130965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ab1565b60048160048111156130aa576130aa613e63565b141561180d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ab1565b61310d838361337a565b61311a60008484846134c8565b610be75760405162461bcd60e51b8152600401610ab190613e79565b613141848484612d2d565b61314d848484846134c8565b610f245760405162461bcd60e51b8152600401610ab190613e79565b80600f613175846119a1565b6040516131829190613bc8565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b038316613201576131fc81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613224565b816001600160a01b0316836001600160a01b0316146132245761322483826135ca565b6001600160a01b03821661323b57610be781613667565b826001600160a01b0316826001600160a01b031614610be757610be78282613716565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132955750600090506003613342565b8460ff16601b141580156132ad57508460ff16601c14155b156132be5750600090506004613342565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613312573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661333b57600060019250925050613342565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161336c8782888561325e565b935093505050935093915050565b6001600160a01b0382166133d05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ab1565b6000818152600260205260409020546001600160a01b0316156134355760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ab1565b613441600083836131a6565b6001600160a01b038216600090815260036020526040812080546001929061346a908490613c4c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611d1757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061350c903390899088908890600401613ecb565b602060405180830381600087803b15801561352657600080fd5b505af1925050508015613556575060408051601f3d908101601f1916820190925261355391810190613f08565b60015b6135b0573d808015613584576040519150601f19603f3d011682016040523d82523d6000602084013e613589565b606091505b5080516135a85760405162461bcd60e51b8152600401610ab190613e79565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c32565b600060016135d7846116d0565b6135e19190613cd9565b600083815260076020526040902054909150808214613634576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061367990600190613cd9565b600083815260096020526040812054600880549394509092849081106136a1576136a1613c9e565b9060005260206000200154905080600883815481106136c2576136c2613c9e565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136fa576136fa613f25565b6001900381819060005260206000200160009055905550505050565b6000613721836116d0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461376690613b8d565b90600052602060002090601f01602090048101928261378857600085556137ce565b82601f106137a157805160ff19168380011785556137ce565b828001600101855582156137ce579182015b828111156137ce5782518255916020019190600101906137b3565b506137da9291506137de565b5090565b5b808211156137da57600081556001016137df565b6001600160e01b03198116811461180d57600080fd5b60006020828403121561381b57600080fd5b8135612328816137f3565b60005b83811015613841578181015183820152602001613829565b83811115610f245750506000910152565b6000815180845261386a816020860160208601613826565b601f01601f19169290920160200192915050565b6020815260006123286020830184613852565b6000602082840312156138a357600080fd5b5035919050565b80356001600160a01b03811681146138c157600080fd5b919050565b600080604083850312156138d957600080fd5b6138e2836138aa565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261391757600080fd5b813567ffffffffffffffff80821115613932576139326138f0565b604051601f8301601f19908116603f0116810190828211818310171561395a5761395a6138f0565b8160405283815286602085880101111561397357600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156139a557600080fd5b813567ffffffffffffffff8111156139bc57600080fd5b612c3284828501613906565b6000602082840312156139da57600080fd5b612328826138aa565b6000806000606084860312156139f857600080fd5b613a01846138aa565b9250613a0f602085016138aa565b9150604084013590509250925092565b60008060408385031215613a3257600080fd5b82359150602083013567ffffffffffffffff811115613a5057600080fd5b613a5c85828601613906565b9150509250929050565b600080600060608486031215613a7b57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613aa057600080fd5b613aac86828701613906565b9150509250925092565b60008060408385031215613ac957600080fd5b613ad2836138aa565b915060208301358015158114613ae757600080fd5b809150509250929050565b60008060008060808587031215613b0857600080fd5b613b11856138aa565b9350613b1f602086016138aa565b925060408501359150606085013567ffffffffffffffff811115613b4257600080fd5b613b4e87828801613906565b91505092959194509250565b60008060408385031215613b6d57600080fd5b613b76836138aa565b9150613b84602084016138aa565b90509250929050565b600181811c90821680613ba157607f821691505b60208210811415613bc257634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613bda818460208701613826565b9190910192915050565b602080825260039082015262544e4960e81b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613c5f57613c5f613c36565b500190565b6000816000190483118215151615613c7e57613c7e613c36565b500290565b6000600019821415613c9757613c97613c36565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115613cd157613cd1613c36565b019392505050565b600082821015613ceb57613ceb613c36565b500390565b60008351613d02818460208801613826565b835190830190613d16818360208801613826565b01949350505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600080835481600182811c915080831680613d8c57607f831692505b6020808410821415613dac57634e487b7160e01b86526022600452602486fd5b818015613dc05760018114613dd157613dfe565b60ff19861689528489019650613dfe565b60008a81526020902060005b86811015613df65781548b820152908501908301613ddd565b505084890196505b509498975050505050505050565b600060208284031215613e1e57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082613e4a57613e4a613e25565b500490565b600082613e5e57613e5e613e25565b500690565b634e487b7160e01b600052602160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613efe90830184613852565b9695505050505050565b600060208284031215613f1a57600080fd5b8151612328816137f3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b149f0d17029f2e2002e9c477211bbb8536c8f2a307fcf037a6d8cfcd5c311f364736f6c63430008080033

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

000000000000000000000000226e87fba91cbeb40b0cd94e18d981b9995b1b150000000000000000000000000000000000000000000000000000000000000060000000000000000000000000007caadcdd725893186d2735a055ac22b853e78a000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6e66742d6170692e6176676c652e636f6d2f612f00000000

-----Decoded View---------------
Arg [0] : _signer (address): 0x226E87Fba91CbEb40B0cd94e18d981b9995B1B15
Arg [1] : baseURI (string): https://nft-api.avgle.com/a/
Arg [2] : tokenAddress (address): 0x007CaADcDD725893186D2735a055Ac22b853E78a

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000226e87fba91cbeb40b0cd94e18d981b9995b1b15
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 000000000000000000000000007caadcdd725893186d2735a055ac22b853e78a
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [4] : 68747470733a2f2f6e66742d6170692e6176676c652e636f6d2f612f00000000


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.