ETH Price: $2,867.36 (-9.82%)
Gas: 14 Gwei

Token

ratDAO (RDAO)
 

Overview

Max Total Supply

0 RDAO

Holders

809

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
15 RDAO
0xfa951187d3521e5dbe8d734d9416f965413a0929
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A community-driven DAO buying real world art. Tokenizing the physical art world one vote at a time.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ratDAO

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : ratDAO.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/// @title A contract for ratDAO
/// @author Phillip
/// @notice NFT Minting
contract ratDAO is ERC721, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeMath for uint16;
    using SafeMath for uint8;
    uint16 private _tokenId;
    
    // Team wallet
    address [] teamWalletList = [
       0x0CC494215f952b7cD96378D803a0D3a6CAb282b0,         // Wallet 1 address
       0x214Fe0B10F0b2C4ea182F25DDdA95130C250C3e1,         // Wallet 2 address
       0xcC27e870C2ee553c60f51582433E80D1A4ed79da,         // Wallet 3 address
       0x1418a130132379b99f6E3871bef9507389b2972C,         // Wallet 4 address
       0x77fc746a68bFa56812b96f9686495efFF6F39364          // Wallet 5 address
    ];
    
    mapping (address => uint8) teamWalletPercent;
    
    // Mint Counter for Each Wallet
    mapping (address => uint8) addressFreeMintCountMap;      // Up to 2
    mapping (address => uint8) addressPreSaleCountMap;       // Up to 2
    mapping (address => uint8) addressPublicSaleCountMap;    // Up to 5
    
    // Minting Limitation
    uint16 public secretFreeMintLimit = 600;
    uint16 public normalFreeMintLimit = 400;
    uint16 public preSaleDiscountLimit = 2000;
    uint16 public preSaleNormalLimit = 1000;
    uint16 public totalLimit = 8888;
    
    /**
     * Mint Step flag
     * 0:   freeMint, 
     * 1:   preSale - discount, 
     * 2:   preSale - normal,
     * 3:   publicSale,
     * 4:   reveal,
     * 5:   paused
     */ 
    uint8 public mintStep = 0;

    // Merkle Tree Root
    bytes32 private merkleRoot;
    
    // Mint Price
    uint public mintPriceDiscount = 0.048 ether;
    uint public mintPrice = 0.06 ether;

    // BaseURI (real, placeholder)
    string private realBaseURI = "https://gateway.pinata.cloud/ipfs/QmWvVa8sUuRuTYLHNXPUVH7CmoDvXx7Ura8gVQBBn3zXcQ/";
    string private placeholderBaseURI  = "https://ratdao.mypinata.cloud/ipfs/QmabSngCR5cztRiSemNnjXcv9KPtWYuBZ1Rg4ciHKfV4GN/";

    uint8 private LIMIT5 = 5;
    uint8 private LIMIT2 = 2;

    constructor() ERC721("ratDAO", "RDAO") {
        teamWalletPercent[teamWalletList[0]] = 29;         // Wallet 1 percent
        teamWalletPercent[teamWalletList[1]] = 29;         // Wallet 2 percent
        teamWalletPercent[teamWalletList[2]] = 20;         // Wallet 3 percent
        teamWalletPercent[teamWalletList[3]] = 10;         // Wallet 4 percent
        teamWalletPercent[teamWalletList[4]] = 12;         // Wallet 5 percent
    }

    event Mint (address indexed _from, 
                uint8 _mintStep, 
                uint _tokenId, 
                uint _mintPrice,    
                uint8 _mintCount, 
                uint8 _freeMintCount, 
                uint8 _preSaleCount,
                uint8 _publicSaleCount);

    event Setting ( uint8 _mintStep,
                    uint256 _mintPrice,
                    uint256 _mintPriceDiscount,
                    uint16 _totalLimit,
                    uint8 _limit5,
                    uint8 _limit2);

    /**
     * Override _baseURI
     * mintStep:    0~3 - Unreveal
     *              4 - Reveal
     */
    function _baseURI() internal view override returns (string memory) {
        if (mintStep == 4)           // Reveal
            return realBaseURI;
        return placeholderBaseURI;
    }

    /**
     * Override tokenURI
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "Token does not exist");
        return string(abi.encodePacked(_baseURI(), Strings.toString(tokenId), ".json"));
    }

    /**
     * Address -> leaf for MerkleTree
     */
    function _leaf(address account) private pure returns (bytes32) {
        return keccak256(abi.encodePacked(account));
    }

    /**
     * Verify WhiteList using MerkleTree
     */
    function verifyWhitelist(bytes32 leaf, bytes32[] memory proof) private view returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash < proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == merkleRoot;
    }

    /**
     * Secret Free Mint
     * mintStep:    0
     * mintCount:   Up to 2
     */
    function mintFreeSecret(uint8 _mintCount) external nonReentrant returns (uint256) {
        
        require(mintStep == 0 && _mintCount > 0 && _mintCount <= LIMIT2);
        require(msg.sender != address(0));
        require(addressFreeMintCountMap[msg.sender] + _mintCount <= LIMIT2);
        require(_mintCount <= secretFreeMintLimit);

        for (uint8 i = 0; i < _mintCount; i++) {
            _tokenId++;
            _safeMint(msg.sender, _tokenId);
        }
        
        addressFreeMintCountMap[msg.sender] += _mintCount;
        secretFreeMintLimit -= _mintCount;
        totalLimit -= _mintCount;

        emit Mint(msg.sender,
                    mintStep, 
                    _tokenId,
                    0,  // _mintPrice
                    _mintCount,
                    addressFreeMintCountMap[msg.sender],
                    addressPreSaleCountMap[msg.sender],
                    addressPublicSaleCountMap[msg.sender]);

        return _tokenId;
    }

    /**
     * Secret Free Mint
     * mintStep:    0
     * mintCount:   Up to 2
     */
    function mintFreeNormal(uint8 _mintCount, bytes32[] memory _proof) external nonReentrant returns (uint256) {
        
        require(mintStep == 0 && _mintCount > 0 && _mintCount <= LIMIT2);
        require(msg.sender != address(0));
        require(addressFreeMintCountMap[msg.sender] + _mintCount <= LIMIT2);
        require(_mintCount <= normalFreeMintLimit);
        require(verifyWhitelist(_leaf(msg.sender), _proof) == true);

        for (uint8 i = 0; i < _mintCount; i++) {
            _tokenId++;
            _safeMint(msg.sender, _tokenId);
        }

        addressFreeMintCountMap[msg.sender] += _mintCount;
        normalFreeMintLimit -= _mintCount;
        totalLimit -= _mintCount;

        emit Mint(msg.sender, 
                    mintStep, 
                    _tokenId,
                    0,  // _mintPrice
                    _mintCount,
                    addressFreeMintCountMap[msg.sender],
                    addressPreSaleCountMap[msg.sender],
                    addressPublicSaleCountMap[msg.sender]);

        return _tokenId;
    }

    /**
     * Presale with WhiteList
     * mintStep:    1: discount
     *              2: normal
     * mintCount:   Up to 2
     */
    function mintPresale(uint8 _mintCount, bytes32[] memory _proof) external payable nonReentrant returns (uint256) {
        
        require(_mintCount > 0 && _mintCount <= LIMIT2);
        require(msg.sender != address(0));
        require(addressPreSaleCountMap[msg.sender] + _mintCount <= LIMIT2);
        require((       // Presale 1
                    mintStep == 1 
                    && (_mintCount <= preSaleDiscountLimit)
                    && (msg.value == (mintPriceDiscount * _mintCount))
                ) || (  // Presale 2
                    mintStep == 2 
                    && (_mintCount <= preSaleNormalLimit)
                    && (msg.value == (mintPrice * _mintCount))
                ));
            
        require(verifyWhitelist(_leaf(msg.sender), _proof) == true);

        for (uint8 i = 0; i < _mintCount; i++) {
            _tokenId++;
            _safeMint(msg.sender, _tokenId);
        }
        
        addressPreSaleCountMap[msg.sender] += _mintCount;
        if (mintStep == 1) {
            preSaleDiscountLimit -= _mintCount;
        } else {
            preSaleNormalLimit -= _mintCount;
        }
        totalLimit -= _mintCount;

        emit Mint(msg.sender, 
                    mintStep, 
                    _tokenId,
                    mintPrice,
                    _mintCount,
                    addressFreeMintCountMap[msg.sender],
                    addressPreSaleCountMap[msg.sender],
                    addressPublicSaleCountMap[msg.sender]);
        
        return _tokenId;
    }

    /**
     * Public Sale
     * mintStep:    3
     * mintCount:   Up to 5
     */
    function mintPublic(uint8 _mintCount) external payable nonReentrant returns (uint256) {
        
        require(mintStep == 3 && _mintCount > 0 && _mintCount <= LIMIT5);
        require(msg.sender != address(0));
        require(msg.value == (mintPrice * _mintCount));
        require(addressPublicSaleCountMap[msg.sender] + _mintCount <= LIMIT5);
        require(_mintCount <= totalLimit);

        for (uint8 i = 0; i < _mintCount; i++) {
            _tokenId++;
            _safeMint(msg.sender, _tokenId);
        }
        
        addressPublicSaleCountMap[msg.sender] += _mintCount;
        totalLimit -= _mintCount;

        emit Mint(msg.sender, 
                    mintStep, 
                    _tokenId,
                    mintPrice,
                    _mintCount,
                    addressFreeMintCountMap[msg.sender],
                    addressPreSaleCountMap[msg.sender],
                    addressPublicSaleCountMap[msg.sender]);
        
        return _tokenId;
    }

    /**
     * Set status of mintStep
     * mintStep:    0 - freeMint, 
     *              1 - preSale 1: discount,
     *              2 - preSale 2: normal,
     *              3 - publicSale,
     *              4 - reveal,
     *              5 - paused
     */
    function setMintStep(uint8 _mintStep) external onlyOwner returns (uint8) {
        require(_mintStep >= 0 && _mintStep <= 5);
        mintStep = _mintStep;
        emit Setting(mintStep, mintPrice, mintPriceDiscount, totalLimit, LIMIT5, LIMIT2);
        return mintStep;
    }

    // Get Balance
    function getBalance() external view onlyOwner returns (uint256) {
        return address(this).balance;
    }
    
    // Withdraw
    function withdraw() external onlyOwner {
        require(address(this).balance != 0);
        
        uint256 balance = address(this).balance;

        for (uint8 i = 0; i < teamWalletList.length; i++) {
            payable(teamWalletList[i]).transfer(balance.div(100).mul(teamWalletPercent[teamWalletList[i]]));
        }
    }

    /// Set Methods
    function setRealBaseURI(string memory _realBaseURI) external onlyOwner returns (string memory) {
        realBaseURI = _realBaseURI;
        return realBaseURI;
    }

    function setPlaceholderBaseURI(string memory _placeholderBaseURI) external onlyOwner returns (string memory) {
        placeholderBaseURI = _placeholderBaseURI;
        return placeholderBaseURI;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner returns (bytes32) {
        merkleRoot = _merkleRoot;
        return merkleRoot;
    }

    /**
     * Get TokenList by sender
     */
    function getTokenList(address account) external view returns (uint256[] memory) {
        require(msg.sender != address(0));
        require(account != address(0));

        address selectedAccount = msg.sender;
        if (owner() == msg.sender)
            selectedAccount = account;

        uint256 count = balanceOf(selectedAccount);
        uint256[] memory tokenIdList = new uint256[](count);

        if (count == 0)
            return tokenIdList;

        uint256 cnt = 0;
        for (uint256 i = 1; i < (_tokenId + 1); i++) {

            if (_exists(i) && (ownerOf(i) == selectedAccount)) {
                tokenIdList[cnt++] = i;
            }

            if (cnt == count)
                break;
        }

        return tokenIdList;
    }

    /**
     * Get Setting
     *  0 :     mintStep
     *  1 :     mintPrice
     *  2 :     mintPriceDiscount
     *  3 :     totalLimit
     *  4 :     LIMIT5
     *  5 :     LIMIT2
     */
    function getSetting() external view returns (uint256[] memory) {
        uint256[] memory setting = new uint256[](6);
        setting[0] = mintStep;
        setting[1] = mintPrice;
        setting[2] = mintPriceDiscount;
        setting[3] = totalLimit;
        setting[4] = LIMIT5;
        setting[5] = LIMIT2;
        return setting;
    }

    /**
     * Get Status by sender
     *  0 :     freeMintCount
     *  1 :     presaleCount
     *  2 :     publicSaleCount
     */
    function getAccountStatus(address account) external view returns (uint8[] memory) {
        require(msg.sender != address(0));
        require(account != address(0));

        address selectedAccount = msg.sender;
        if (owner() == msg.sender)
            selectedAccount = account;

        uint8[] memory status = new uint8[](3);

        if(balanceOf(selectedAccount) == 0)
            return status;
        
        status[0] = addressFreeMintCountMap[selectedAccount];
        status[1] = addressPreSaleCountMap[selectedAccount];
        status[2] = addressPublicSaleCountMap[selectedAccount];

        return status;
    }
}

File 2 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint8","name":"_mintStep","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_mintCount","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_freeMintCount","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_preSaleCount","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_publicSaleCount","type":"uint8"}],"name":"Mint","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":"uint8","name":"_mintStep","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_mintPriceDiscount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"_totalLimit","type":"uint16"},{"indexed":false,"internalType":"uint8","name":"_limit5","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_limit2","type":"uint8"}],"name":"Setting","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountStatus","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSetting","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getTokenList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintCount","type":"uint8"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintFreeNormal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintCount","type":"uint8"}],"name":"mintFreeSecret","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintCount","type":"uint8"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintCount","type":"uint8"}],"name":"mintPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStep","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalFreeMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"preSaleDiscountLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleNormalLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secretFreeMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintStep","type":"uint8"}],"name":"setMintStep","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_placeholderBaseURI","type":"string"}],"name":"setPlaceholderBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_realBaseURI","type":"string"}],"name":"setRealBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610120604052730cc494215f952b7cd96378d803a0d3a6cab282b0608090815273214fe0b10f0b2c4ea182f25ddda95130c250c3e160a05273cc27e870c2ee553c60f51582433e80d1a4ed79da60c052731418a130132379b99f6e3871bef9507389b2972c60e0527377fc746a68bfa56812b96f9686495efff6f393646101005262000090906009906005620003d5565b50600e80546001600160581b0319166922b803e807d00190025817905566aa87bee538000060105566d529ae9e8600006011556040805160808101909152605180825262003bfa60208301398051620000f2916012916020909101906200043f565b5060405180608001604052806052815260200162003ba860529139805162000123916013916020909101906200043f565b506014805461ffff19166102051790553480156200014057600080fd5b50604080518082018252600681526572617444414f60d01b6020808301918252835180850190945260048452635244414f60e01b9084015281519192916200018b916000916200043f565b508051620001a19060019060208401906200043f565b505050620001be620001b86200037f60201b60201c565b62000383565b6001600781905550601d600a60006009600081548110620001e357620001e3620004d3565b6000918252602080832091909101546001600160a01b031683528201929092526040018120805460ff191660ff939093169290921790915560098054601d92600a92909160019081106200023b576200023b620004d3565b6000918252602080832091909101546001600160a01b031683528201929092526040018120805460ff191660ff939093169290921790915560098054601492600a9290916002908110620002935762000293620004d3565b6000918252602080832091909101546001600160a01b031683528201929092526040018120805460ff191660ff939093169290921790915560098054600a92839290916003908110620002ea57620002ea620004d3565b6000918252602080832091909101546001600160a01b031683528201929092526040018120805460ff191660ff939093169290921790915560098054600c92600a9290916004908110620003425762000342620004d3565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191660ff9290921691909117905562000526565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200042d579160200282015b828111156200042d57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620003f6565b506200043b929150620004bc565b5090565b8280546200044d90620004e9565b90600052602060002090601f0160209004810192826200047157600085556200042d565b82601f106200048c57805160ff19168380011785556200042d565b828001600101855582156200042d579182015b828111156200042d5782518255916020019190600101906200049f565b5b808211156200043b5760008155600101620004bd565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680620004fe57607f821691505b602082108114156200052057634e487b7160e01b600052602260045260246000fd5b50919050565b61367280620005366000396000f3fe60806040526004361061026a5760003560e01c8063715018a611610153578063a390e603116100cb578063e0e316391161007f578063f001446511610064578063f0014465146106f3578063f2fde38b1461070e578063fd4fa05a1461072e57600080fd5b8063e0e3163914610697578063e985e9c5146106aa57600080fd5b8063b88d4fde116100b0578063b88d4fde14610637578063c87b56dd14610657578063d8a307321461067757600080fd5b8063a390e603146105f6578063b6d5caf01461061757600080fd5b80638faeb78f11610122578063a22cb46511610107578063a22cb46514610599578063a2542568146105b9578063a36298c7146105cf57600080fd5b80638faeb78f1461055157806395d89b411461058457600080fd5b8063715018a6146104de5780637370b13f146104f35780637cb64759146105135780638da5cb5b1461053357600080fd5b8063425a9a27116101e657806359328fc9116101b557806367dce1ed1161019a57806367dce1ed146104955780636817c76c146104a857806370a08231146104be57600080fd5b806359328fc9146104505780636352211e1461047557600080fd5b8063425a9a27146103ce57806342842e0e146103ee5780634ed69eaf1461040e5780635056b3091461042e57600080fd5b8063098c59c41161023d57806323b872dd1161022257806323b872dd146103635780632dbc4da9146103835780633ccfd60b146103b957600080fd5b8063098c59c41461032057806312065fe01461034e57600080fd5b806301ffc9a71461026f57806306fdde03146102a4578063081812fc146102c6578063095ea7b3146102fe575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612f5e565b61075b565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102b9610840565b60405161029b9190612fd3565b3480156102d257600080fd5b506102e66102e1366004612fe6565b6108d2565b6040516001600160a01b03909116815260200161029b565b34801561030a57600080fd5b5061031e610319366004613016565b61097d565b005b34801561032c57600080fd5b5061034061033b366004613098565b610aaf565b60405190815260200161029b565b34801561035a57600080fd5b50610340610dbb565b34801561036f57600080fd5b5061031e61037e366004613151565b610e1d565b34801561038f57600080fd5b50600e546103a690640100000000900461ffff1681565b60405161ffff909116815260200161029b565b3480156103c557600080fd5b5061031e610ea4565b3480156103da57600080fd5b506103406103e936600461318d565b610fe1565b3480156103fa57600080fd5b5061031e610409366004613151565b611295565b34801561041a57600080fd5b506102b9610429366004613200565b6112b0565b34801561043a57600080fd5b506104436113b4565b60405161029b9190613249565b34801561045c57600080fd5b50600e546103a6906601000000000000900461ffff1681565b34801561048157600080fd5b506102e6610490366004612fe6565b6114e0565b6103406104a336600461318d565b61156b565b3480156104b457600080fd5b5061034060115481565b3480156104ca57600080fd5b506103406104d936600461328d565b6117f2565b3480156104ea57600080fd5b5061031e61188c565b3480156104ff57600080fd5b506102b961050e366004613200565b6118f2565b34801561051f57600080fd5b5061034061052e366004612fe6565b611970565b34801561053f57600080fd5b506006546001600160a01b03166102e6565b34801561055d57600080fd5b50600e5461057290600160501b900460ff1681565b60405160ff909116815260200161029b565b34801561059057600080fd5b506102b96119d6565b3480156105a557600080fd5b5061031e6105b43660046132a8565b6119e5565b3480156105c557600080fd5b5061034060105481565b3480156105db57600080fd5b50600e546103a69068010000000000000000900461ffff1681565b34801561060257600080fd5b50600e546103a69062010000900461ffff1681565b34801561062357600080fd5b5061057261063236600461318d565b6119f0565b34801561064357600080fd5b5061031e6106523660046132e4565b611b21565b34801561066357600080fd5b506102b9610672366004612fe6565b611baf565b34801561068357600080fd5b5061044361069236600461328d565b611c4e565b6103406106a5366004613098565b611daf565b3480156106b657600080fd5b5061028f6106c5366004613360565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106ff57600080fd5b50600e546103a69061ffff1681565b34801561071a57600080fd5b5061031e61072936600461328d565b612171565b34801561073a57600080fd5b5061074e61074936600461328d565b612253565b60405161029b9190613393565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107ee57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461084f906133ce565b80601f016020809104026020016040519081016040528092919081815260200182805461087b906133ce565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610988826114e0565b9050806001600160a01b0316836001600160a01b03161415610a125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610958565b336001600160a01b0382161480610a2e5750610a2e81336106c5565b610aa05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610958565b610aaa83836123a1565b505050565b600060026007541415610b045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff16158015610b26575060008360ff16115b8015610b40575060145460ff610100909104811690841611155b610b4957600080fd5b33610b5357600080fd5b601454336000908152600b602052604090205460ff610100909204821691610b7d9186911661341f565b60ff161115610b8b57600080fd5b600e5462010000900461ffff1660ff84161115610ba757600080fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610be9905b8361241c565b1515600114610bf757600080fd5b60005b8360ff168160ff161015610c59576008805461ffff16906000610c1c83613444565b82546101009290920a61ffff818102199093169183160217909155600854610c4792503391166124cd565b80610c5181613466565b915050610bfa565b50336000908152600b602052604081208054859290610c7c90849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508260ff16600e60028282829054906101000a900461ffff16610cb69190613486565b92506101000a81548161ffff021916908361ffff1602179055508260ff16600e60088282829054906101000a900461ffff16610cf29190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854336000818152600b6020908152604080832054600c835281842054600d8452828520548351600160501b90990460ff9081168a5297909916938801939093529086019290925289841660608601529083166080850152821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e0015b60405180910390a25060085461ffff16600160075592915050565b6006546000906001600160a01b03163314610e185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b504790565b610e2733826124e7565b610e995760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610958565b610aaa8383836125ef565b6006546001600160a01b03163314610efe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b47610f0857600080fd5b4760005b60095460ff82161015610fdd5760098160ff1681548110610f2f57610f2f6134a9565b6000918252602082200154600980546001600160a01b03909216926108fc92610fa292600a929160ff8816908110610f6957610f696134a9565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16610f9c8660646127c9565b906127dc565b6040518115909202916000818181858888f19350505050158015610fca573d6000803e3d6000fd5b5080610fd581613466565b915050610f0c565b5050565b6000600260075414156110365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff16158015611058575060008260ff16115b8015611072575060145460ff610100909104811690831611155b61107b57600080fd5b3361108557600080fd5b601454336000908152600b602052604090205460ff6101009092048216916110af9185911661341f565b60ff1611156110bd57600080fd5b600e5461ffff1660ff831611156110d357600080fd5b60005b8260ff168160ff161015611135576008805461ffff169060006110f883613444565b82546101009290920a61ffff81810219909316918316021790915560085461112392503391166124cd565b8061112d81613466565b9150506110d6565b50336000908152600b60205260408120805484929061115890849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508160ff16600e60008282829054906101000a900461ffff166111929190613486565b92506101000a81548161ffff021916908361ffff1602179055508160ff16600e60088282829054906101000a900461ffff166111ce9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854336000818152600b6020908152604080832054600c835281842054600d8452828520548351600160501b90990460ff9081168a5297909916938801939093529086019290925288841660608601529083166080850152821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e0015b60405180910390a25050600854600160075561ffff1690565b610aaa83838360405180602001604052806000815250611b21565b6006546060906001600160a01b0316331461130d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b8151611320906013906020850190612e97565b506013805461132e906133ce565b80601f016020809104026020016040519081016040528092919081815260200182805461135a906133ce565b80156113a75780601f1061137c576101008083540402835291602001916113a7565b820191906000526020600020905b81548152906001019060200180831161138a57829003601f168201915b505050505090505b919050565b60408051600680825260e08201909252606091600091906020820160c08036833701905050600e548151919250600160501b900460ff169082906000906113fd576113fd6134a9565b6020026020010181815250506011548160018151811061141f5761141f6134a9565b60200260200101818152505060105481600281518110611441576114416134a9565b602002602001018181525050600e60089054906101000a900461ffff1661ffff1681600381518110611475576114756134a9565b6020908102919091010152601454815160ff909116908290600490811061149e5761149e6134a9565b602002602001018181525050601460019054906101000a900460ff1660ff16816005815181106114d0576114d06134a9565b6020908102919091010152919050565b6000818152600260205260408120546001600160a01b03168061083a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610958565b6000600260075414156115c05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff1660031480156115e4575060008260ff16115b80156115f9575060145460ff90811690831611155b61160257600080fd5b3361160c57600080fd5b8160ff1660115461161d91906134bf565b341461162857600080fd5b601454336000908152600d602052604090205460ff9182169161164d9185911661341f565b60ff16111561165b57600080fd5b600e5468010000000000000000900461ffff1660ff8316111561167d57600080fd5b60005b8260ff168160ff1610156116df576008805461ffff169060006116a283613444565b82546101009290920a61ffff8181021990931691831602179091556008546116cd92503391166124cd565b806116d781613466565b915050611680565b50336000908152600d60205260408120805484929061170290849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508160ff16600e60088282829054906101000a900461ffff1661173c9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854601154336000818152600b6020908152604080832054600c835281842054600d845293829020548251600160501b90990460ff9081168a5297909916928801929092528601939093528884166060860152918316608085015290821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e00161127c565b60006001600160a01b0382166118705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610958565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6118f060006127e8565b565b6006546060906001600160a01b0316331461194f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b8151611962906012906020850190612e97565b506012805461132e906133ce565b6006546000906001600160a01b031633146119cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b50600f81905590565b60606001805461084f906133ce565b610fdd338383612847565b6006546000906001600160a01b03163314611a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b60058260ff161115611a5e57600080fd5b600e80547fffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffff16600160501b60ff8581168202929092179283905560115460105460145460408051948704861685526020850193909352918301526801000000000000000090930461ffff16606082015282821660808201526101009092041660a08201527f1886f5047a48a6237d8495d052128d73a30bed1c832013059ed4789812db16309060c00160405180910390a15050600e54600160501b900460ff1690565b611b2b33836124e7565b611b9d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610958565b611ba984848484612934565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c165760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610958565b611c1e6129bd565b611c27836129ef565b604051602001611c389291906134de565b6040516020818303038152906040529050919050565b606033611c5a57600080fd5b6001600160a01b038216611c6d57600080fd5b3380611c816006546001600160a01b031690565b6001600160a01b03161415611c935750815b6000611c9e826117f2565b905060008167ffffffffffffffff811115611cbb57611cbb613051565b604051908082528060200260200182016040528015611ce4578160200160208202803683370190505b50905081611cf457949350505050565b600060015b600854611d0b9061ffff166001613535565b61ffff16811015611da4576000818152600260205260409020546001600160a01b031615158015611d555750846001600160a01b0316611d4a826114e0565b6001600160a01b0316145b15611d8557808383611d668161355b565b945081518110611d7857611d786134a9565b6020026020010181815250505b83821415611d9257611da4565b80611d9c8161355b565b915050611cf9565b509095945050505050565b600060026007541415611e045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b600260075560ff831615801590611e29575060145460ff610100909104811690841611155b611e3257600080fd5b33611e3c57600080fd5b601454336000908152600c602052604090205460ff610100909204821691611e669186911661341f565b60ff161115611e7457600080fd5b600e54600160501b900460ff166001148015611ea15750600e54640100000000900461ffff1660ff841611155b8015611ebc57508260ff16601054611eb991906134bf565b34145b80611f0c5750600e54600160501b900460ff166002148015611ef15750600e546601000000000000900461ffff1660ff841611155b8015611f0c57508260ff16601154611f0991906134bf565b34145b611f1557600080fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120611f5590610be3565b1515600114611f6357600080fd5b60005b8360ff168160ff161015611fc5576008805461ffff16906000611f8883613444565b82546101009290920a61ffff818102199093169183160217909155600854611fb392503391166124cd565b80611fbd81613466565b915050611f66565b50336000908152600c602052604081208054859290611fe890849060ff1661341f565b92506101000a81548160ff021916908360ff160217905550600e600a9054906101000a900460ff1660ff166001141561205c578260ff16600e60048282829054906101000a900461ffff1661203d9190613486565b92506101000a81548161ffff021916908361ffff160217905550612099565b8260ff16600e60068282829054906101000a900461ffff1661207e9190613486565b92506101000a81548161ffff021916908361ffff1602179055505b8260ff16600e60088282829054906101000a900461ffff166120bb9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854601154336000818152600b6020908152604080832054600c835281842054600d845293829020548251600160501b90990460ff9081168a5297909916928801929092528601939093528984166060860152918316608085015290821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e001610da0565b6006546001600160a01b031633146121cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6001600160a01b0381166122475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610958565b612250816127e8565b50565b60603361225f57600080fd5b6001600160a01b03821661227257600080fd5b33806122866006546001600160a01b031690565b6001600160a01b031614156122985750815b60408051600380825260808201909252600091602082016060803683370190505090506122c4826117f2565b6122cf579392505050565b6001600160a01b0382166000908152600b6020526040812054825160ff9091169183916122fe576122fe6134a9565b60ff9283166020918202929092018101919091526001600160a01b0384166000908152600c9091526040902054825191169082906001908110612343576123436134a9565b60ff9283166020918202929092018101919091526001600160a01b0384166000908152600d9091526040902054825191169082906002908110612388576123886134a9565b60ff909216602092830291909101909101529392505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906123e3826114e0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082815b83518110156124c157600084828151811061243e5761243e6134a9565b60200260200101519050808310156124815760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506124ae565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806124b98161355b565b915050612421565b50600f54149392505050565b610fdd828260405180602001604052806000815250612b21565b6000818152600260205260408120546001600160a01b03166125715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610958565b600061257c836114e0565b9050806001600160a01b0316846001600160a01b031614806125b75750836001600160a01b03166125ac846108d2565b6001600160a01b0316145b806125e757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612602826114e0565b6001600160a01b03161461267e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610958565b6001600160a01b0382166126f95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610958565b6127046000826123a1565b6001600160a01b038316600090815260036020526040812080546001929061272d908490613576565b90915550506001600160a01b038216600090815260036020526040812080546001929061275b90849061358d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006127d582846135bb565b9392505050565b60006127d582846134bf565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156128a95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610958565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61293f8484846125ef565b61294b84848484612baa565b611ba95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b600e54606090600160501b900460ff16600414156129e2576012805461084f906133ce565b6013805461084f906133ce565b606081612a2f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a595780612a438161355b565b9150612a529050600a836135bb565b9150612a33565b60008167ffffffffffffffff811115612a7457612a74613051565b6040519080825280601f01601f191660200182016040528015612a9e576020820181803683370190505b5090505b84156125e757612ab3600183613576565b9150612ac0600a866135cf565b612acb90603061358d565b60f81b818381518110612ae057612ae06134a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b1a600a866135bb565b9450612aa2565b612b2b8383612d48565b612b386000848484612baa565b610aaa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b60006001600160a01b0384163b15612d3d576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c079033908990889088906004016135e3565b6020604051808303816000875af1925050508015612c42575060408051601f3d908101601f19168201909252612c3f9181019061361f565b60015b612cf2573d808015612c70576040519150601f19603f3d011682016040523d82523d6000602084013e612c75565b606091505b508051612cea5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125e7565b506001949350505050565b6001600160a01b038216612d9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610958565b6000818152600260205260409020546001600160a01b031615612e035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610958565b6001600160a01b0382166000908152600360205260408120805460019290612e2c90849061358d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ea3906133ce565b90600052602060002090601f016020900481019282612ec55760008555612f0b565b82601f10612ede57805160ff1916838001178555612f0b565b82800160010185558215612f0b579182015b82811115612f0b578251825591602001919060010190612ef0565b50612f17929150612f1b565b5090565b5b80821115612f175760008155600101612f1c565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461225057600080fd5b600060208284031215612f7057600080fd5b81356127d581612f30565b60005b83811015612f96578181015183820152602001612f7e565b83811115611ba95750506000910152565b60008151808452612fbf816020860160208601612f7b565b601f01601f19169290920160200192915050565b6020815260006127d56020830184612fa7565b600060208284031215612ff857600080fd5b5035919050565b80356001600160a01b03811681146113af57600080fd5b6000806040838503121561302957600080fd5b61303283612fff565b946020939093013593505050565b803560ff811681146113af57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561309057613090613051565b604052919050565b600080604083850312156130ab57600080fd5b6130b483613040565b915060208084013567ffffffffffffffff808211156130d257600080fd5b818601915086601f8301126130e657600080fd5b8135818111156130f8576130f8613051565b8060051b9150613109848301613067565b818152918301840191848101908984111561312357600080fd5b938501935b8385101561314157843582529385019390850190613128565b8096505050505050509250929050565b60008060006060848603121561316657600080fd5b61316f84612fff565b925061317d60208501612fff565b9150604084013590509250925092565b60006020828403121561319f57600080fd5b6127d582613040565b600067ffffffffffffffff8311156131c2576131c2613051565b6131d56020601f19601f86011601613067565b90508281528383830111156131e957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561321257600080fd5b813567ffffffffffffffff81111561322957600080fd5b8201601f8101841361323a57600080fd5b6125e7848235602084016131a8565b6020808252825182820181905260009190848201906040850190845b8181101561328157835183529284019291840191600101613265565b50909695505050505050565b60006020828403121561329f57600080fd5b6127d582612fff565b600080604083850312156132bb57600080fd5b6132c483612fff565b9150602083013580151581146132d957600080fd5b809150509250929050565b600080600080608085870312156132fa57600080fd5b61330385612fff565b935061331160208601612fff565b925060408501359150606085013567ffffffffffffffff81111561333457600080fd5b8501601f8101871361334557600080fd5b613354878235602084016131a8565b91505092959194509250565b6000806040838503121561337357600080fd5b61337c83612fff565b915061338a60208401612fff565b90509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561328157835160ff16835292840192918401916001016133af565b600181811c908216806133e257607f821691505b6020821081141561340357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff0382111561343c5761343c613409565b019392505050565b600061ffff8083168181141561345c5761345c613409565b6001019392505050565b600060ff821660ff81141561347d5761347d613409565b60010192915050565b600061ffff838116908316818110156134a1576134a1613409565b039392505050565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156134d9576134d9613409565b500290565b600083516134f0818460208801612f7b565b835190830190613504818360208801612f7b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600061ffff80831681851680830382111561355257613552613409565b01949350505050565b600060001982141561356f5761356f613409565b5060010190565b60008282101561358857613588613409565b500390565b600082198211156135a0576135a0613409565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826135ca576135ca6135a5565b500490565b6000826135de576135de6135a5565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526136156080830184612fa7565b9695505050505050565b60006020828403121561363157600080fd5b81516127d581612f3056fea2646970667358221220a194f192da80f0ca128e26e99465430b8673cd316620e416949d8c71e1aa7e6f64736f6c634300080a003368747470733a2f2f72617464616f2e6d7970696e6174612e636c6f75642f697066732f516d6162536e67435235637a74526953656d4e6e6a586376394b5074575975425a315267346369484b665634474e2f68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d5776566138735575527554594c484e585055564837436d6f44765878375572613867565142426e337a5863512f

Deployed Bytecode

0x60806040526004361061026a5760003560e01c8063715018a611610153578063a390e603116100cb578063e0e316391161007f578063f001446511610064578063f0014465146106f3578063f2fde38b1461070e578063fd4fa05a1461072e57600080fd5b8063e0e3163914610697578063e985e9c5146106aa57600080fd5b8063b88d4fde116100b0578063b88d4fde14610637578063c87b56dd14610657578063d8a307321461067757600080fd5b8063a390e603146105f6578063b6d5caf01461061757600080fd5b80638faeb78f11610122578063a22cb46511610107578063a22cb46514610599578063a2542568146105b9578063a36298c7146105cf57600080fd5b80638faeb78f1461055157806395d89b411461058457600080fd5b8063715018a6146104de5780637370b13f146104f35780637cb64759146105135780638da5cb5b1461053357600080fd5b8063425a9a27116101e657806359328fc9116101b557806367dce1ed1161019a57806367dce1ed146104955780636817c76c146104a857806370a08231146104be57600080fd5b806359328fc9146104505780636352211e1461047557600080fd5b8063425a9a27146103ce57806342842e0e146103ee5780634ed69eaf1461040e5780635056b3091461042e57600080fd5b8063098c59c41161023d57806323b872dd1161022257806323b872dd146103635780632dbc4da9146103835780633ccfd60b146103b957600080fd5b8063098c59c41461032057806312065fe01461034e57600080fd5b806301ffc9a71461026f57806306fdde03146102a4578063081812fc146102c6578063095ea7b3146102fe575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612f5e565b61075b565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102b9610840565b60405161029b9190612fd3565b3480156102d257600080fd5b506102e66102e1366004612fe6565b6108d2565b6040516001600160a01b03909116815260200161029b565b34801561030a57600080fd5b5061031e610319366004613016565b61097d565b005b34801561032c57600080fd5b5061034061033b366004613098565b610aaf565b60405190815260200161029b565b34801561035a57600080fd5b50610340610dbb565b34801561036f57600080fd5b5061031e61037e366004613151565b610e1d565b34801561038f57600080fd5b50600e546103a690640100000000900461ffff1681565b60405161ffff909116815260200161029b565b3480156103c557600080fd5b5061031e610ea4565b3480156103da57600080fd5b506103406103e936600461318d565b610fe1565b3480156103fa57600080fd5b5061031e610409366004613151565b611295565b34801561041a57600080fd5b506102b9610429366004613200565b6112b0565b34801561043a57600080fd5b506104436113b4565b60405161029b9190613249565b34801561045c57600080fd5b50600e546103a6906601000000000000900461ffff1681565b34801561048157600080fd5b506102e6610490366004612fe6565b6114e0565b6103406104a336600461318d565b61156b565b3480156104b457600080fd5b5061034060115481565b3480156104ca57600080fd5b506103406104d936600461328d565b6117f2565b3480156104ea57600080fd5b5061031e61188c565b3480156104ff57600080fd5b506102b961050e366004613200565b6118f2565b34801561051f57600080fd5b5061034061052e366004612fe6565b611970565b34801561053f57600080fd5b506006546001600160a01b03166102e6565b34801561055d57600080fd5b50600e5461057290600160501b900460ff1681565b60405160ff909116815260200161029b565b34801561059057600080fd5b506102b96119d6565b3480156105a557600080fd5b5061031e6105b43660046132a8565b6119e5565b3480156105c557600080fd5b5061034060105481565b3480156105db57600080fd5b50600e546103a69068010000000000000000900461ffff1681565b34801561060257600080fd5b50600e546103a69062010000900461ffff1681565b34801561062357600080fd5b5061057261063236600461318d565b6119f0565b34801561064357600080fd5b5061031e6106523660046132e4565b611b21565b34801561066357600080fd5b506102b9610672366004612fe6565b611baf565b34801561068357600080fd5b5061044361069236600461328d565b611c4e565b6103406106a5366004613098565b611daf565b3480156106b657600080fd5b5061028f6106c5366004613360565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106ff57600080fd5b50600e546103a69061ffff1681565b34801561071a57600080fd5b5061031e61072936600461328d565b612171565b34801561073a57600080fd5b5061074e61074936600461328d565b612253565b60405161029b9190613393565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107ee57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461084f906133ce565b80601f016020809104026020016040519081016040528092919081815260200182805461087b906133ce565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610988826114e0565b9050806001600160a01b0316836001600160a01b03161415610a125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610958565b336001600160a01b0382161480610a2e5750610a2e81336106c5565b610aa05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610958565b610aaa83836123a1565b505050565b600060026007541415610b045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff16158015610b26575060008360ff16115b8015610b40575060145460ff610100909104811690841611155b610b4957600080fd5b33610b5357600080fd5b601454336000908152600b602052604090205460ff610100909204821691610b7d9186911661341f565b60ff161115610b8b57600080fd5b600e5462010000900461ffff1660ff84161115610ba757600080fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610be9905b8361241c565b1515600114610bf757600080fd5b60005b8360ff168160ff161015610c59576008805461ffff16906000610c1c83613444565b82546101009290920a61ffff818102199093169183160217909155600854610c4792503391166124cd565b80610c5181613466565b915050610bfa565b50336000908152600b602052604081208054859290610c7c90849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508260ff16600e60028282829054906101000a900461ffff16610cb69190613486565b92506101000a81548161ffff021916908361ffff1602179055508260ff16600e60088282829054906101000a900461ffff16610cf29190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854336000818152600b6020908152604080832054600c835281842054600d8452828520548351600160501b90990460ff9081168a5297909916938801939093529086019290925289841660608601529083166080850152821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e0015b60405180910390a25060085461ffff16600160075592915050565b6006546000906001600160a01b03163314610e185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b504790565b610e2733826124e7565b610e995760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610958565b610aaa8383836125ef565b6006546001600160a01b03163314610efe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b47610f0857600080fd5b4760005b60095460ff82161015610fdd5760098160ff1681548110610f2f57610f2f6134a9565b6000918252602082200154600980546001600160a01b03909216926108fc92610fa292600a929160ff8816908110610f6957610f696134a9565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16610f9c8660646127c9565b906127dc565b6040518115909202916000818181858888f19350505050158015610fca573d6000803e3d6000fd5b5080610fd581613466565b915050610f0c565b5050565b6000600260075414156110365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff16158015611058575060008260ff16115b8015611072575060145460ff610100909104811690831611155b61107b57600080fd5b3361108557600080fd5b601454336000908152600b602052604090205460ff6101009092048216916110af9185911661341f565b60ff1611156110bd57600080fd5b600e5461ffff1660ff831611156110d357600080fd5b60005b8260ff168160ff161015611135576008805461ffff169060006110f883613444565b82546101009290920a61ffff81810219909316918316021790915560085461112392503391166124cd565b8061112d81613466565b9150506110d6565b50336000908152600b60205260408120805484929061115890849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508160ff16600e60008282829054906101000a900461ffff166111929190613486565b92506101000a81548161ffff021916908361ffff1602179055508160ff16600e60088282829054906101000a900461ffff166111ce9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854336000818152600b6020908152604080832054600c835281842054600d8452828520548351600160501b90990460ff9081168a5297909916938801939093529086019290925288841660608601529083166080850152821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e0015b60405180910390a25050600854600160075561ffff1690565b610aaa83838360405180602001604052806000815250611b21565b6006546060906001600160a01b0316331461130d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b8151611320906013906020850190612e97565b506013805461132e906133ce565b80601f016020809104026020016040519081016040528092919081815260200182805461135a906133ce565b80156113a75780601f1061137c576101008083540402835291602001916113a7565b820191906000526020600020905b81548152906001019060200180831161138a57829003601f168201915b505050505090505b919050565b60408051600680825260e08201909252606091600091906020820160c08036833701905050600e548151919250600160501b900460ff169082906000906113fd576113fd6134a9565b6020026020010181815250506011548160018151811061141f5761141f6134a9565b60200260200101818152505060105481600281518110611441576114416134a9565b602002602001018181525050600e60089054906101000a900461ffff1661ffff1681600381518110611475576114756134a9565b6020908102919091010152601454815160ff909116908290600490811061149e5761149e6134a9565b602002602001018181525050601460019054906101000a900460ff1660ff16816005815181106114d0576114d06134a9565b6020908102919091010152919050565b6000818152600260205260408120546001600160a01b03168061083a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610958565b6000600260075414156115c05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b6002600755600e54600160501b900460ff1660031480156115e4575060008260ff16115b80156115f9575060145460ff90811690831611155b61160257600080fd5b3361160c57600080fd5b8160ff1660115461161d91906134bf565b341461162857600080fd5b601454336000908152600d602052604090205460ff9182169161164d9185911661341f565b60ff16111561165b57600080fd5b600e5468010000000000000000900461ffff1660ff8316111561167d57600080fd5b60005b8260ff168160ff1610156116df576008805461ffff169060006116a283613444565b82546101009290920a61ffff8181021990931691831602179091556008546116cd92503391166124cd565b806116d781613466565b915050611680565b50336000908152600d60205260408120805484929061170290849060ff1661341f565b92506101000a81548160ff021916908360ff1602179055508160ff16600e60088282829054906101000a900461ffff1661173c9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854601154336000818152600b6020908152604080832054600c835281842054600d845293829020548251600160501b90990460ff9081168a5297909916928801929092528601939093528884166060860152918316608085015290821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e00161127c565b60006001600160a01b0382166118705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610958565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6118f060006127e8565b565b6006546060906001600160a01b0316331461194f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b8151611962906012906020850190612e97565b506012805461132e906133ce565b6006546000906001600160a01b031633146119cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b50600f81905590565b60606001805461084f906133ce565b610fdd338383612847565b6006546000906001600160a01b03163314611a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b60058260ff161115611a5e57600080fd5b600e80547fffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffff16600160501b60ff8581168202929092179283905560115460105460145460408051948704861685526020850193909352918301526801000000000000000090930461ffff16606082015282821660808201526101009092041660a08201527f1886f5047a48a6237d8495d052128d73a30bed1c832013059ed4789812db16309060c00160405180910390a15050600e54600160501b900460ff1690565b611b2b33836124e7565b611b9d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610958565b611ba984848484612934565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c165760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610958565b611c1e6129bd565b611c27836129ef565b604051602001611c389291906134de565b6040516020818303038152906040529050919050565b606033611c5a57600080fd5b6001600160a01b038216611c6d57600080fd5b3380611c816006546001600160a01b031690565b6001600160a01b03161415611c935750815b6000611c9e826117f2565b905060008167ffffffffffffffff811115611cbb57611cbb613051565b604051908082528060200260200182016040528015611ce4578160200160208202803683370190505b50905081611cf457949350505050565b600060015b600854611d0b9061ffff166001613535565b61ffff16811015611da4576000818152600260205260409020546001600160a01b031615158015611d555750846001600160a01b0316611d4a826114e0565b6001600160a01b0316145b15611d8557808383611d668161355b565b945081518110611d7857611d786134a9565b6020026020010181815250505b83821415611d9257611da4565b80611d9c8161355b565b915050611cf9565b509095945050505050565b600060026007541415611e045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610958565b600260075560ff831615801590611e29575060145460ff610100909104811690841611155b611e3257600080fd5b33611e3c57600080fd5b601454336000908152600c602052604090205460ff610100909204821691611e669186911661341f565b60ff161115611e7457600080fd5b600e54600160501b900460ff166001148015611ea15750600e54640100000000900461ffff1660ff841611155b8015611ebc57508260ff16601054611eb991906134bf565b34145b80611f0c5750600e54600160501b900460ff166002148015611ef15750600e546601000000000000900461ffff1660ff841611155b8015611f0c57508260ff16601154611f0991906134bf565b34145b611f1557600080fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120611f5590610be3565b1515600114611f6357600080fd5b60005b8360ff168160ff161015611fc5576008805461ffff16906000611f8883613444565b82546101009290920a61ffff818102199093169183160217909155600854611fb392503391166124cd565b80611fbd81613466565b915050611f66565b50336000908152600c602052604081208054859290611fe890849060ff1661341f565b92506101000a81548160ff021916908360ff160217905550600e600a9054906101000a900460ff1660ff166001141561205c578260ff16600e60048282829054906101000a900461ffff1661203d9190613486565b92506101000a81548161ffff021916908361ffff160217905550612099565b8260ff16600e60068282829054906101000a900461ffff1661207e9190613486565b92506101000a81548161ffff021916908361ffff1602179055505b8260ff16600e60088282829054906101000a900461ffff166120bb9190613486565b82546101009290920a61ffff818102199093169183160217909155600e54600854601154336000818152600b6020908152604080832054600c835281842054600d845293829020548251600160501b90990460ff9081168a5297909916928801929092528601939093528984166060860152918316608085015290821660a0840152921660c08201529091507f02bff8f895487249846d7d04cf3d83e25bdb471e28e7b6a8ec48c6f45b98cb8f9060e001610da0565b6006546001600160a01b031633146121cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6001600160a01b0381166122475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610958565b612250816127e8565b50565b60603361225f57600080fd5b6001600160a01b03821661227257600080fd5b33806122866006546001600160a01b031690565b6001600160a01b031614156122985750815b60408051600380825260808201909252600091602082016060803683370190505090506122c4826117f2565b6122cf579392505050565b6001600160a01b0382166000908152600b6020526040812054825160ff9091169183916122fe576122fe6134a9565b60ff9283166020918202929092018101919091526001600160a01b0384166000908152600c9091526040902054825191169082906001908110612343576123436134a9565b60ff9283166020918202929092018101919091526001600160a01b0384166000908152600d9091526040902054825191169082906002908110612388576123886134a9565b60ff909216602092830291909101909101529392505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906123e3826114e0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082815b83518110156124c157600084828151811061243e5761243e6134a9565b60200260200101519050808310156124815760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506124ae565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806124b98161355b565b915050612421565b50600f54149392505050565b610fdd828260405180602001604052806000815250612b21565b6000818152600260205260408120546001600160a01b03166125715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610958565b600061257c836114e0565b9050806001600160a01b0316846001600160a01b031614806125b75750836001600160a01b03166125ac846108d2565b6001600160a01b0316145b806125e757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612602826114e0565b6001600160a01b03161461267e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610958565b6001600160a01b0382166126f95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610958565b6127046000826123a1565b6001600160a01b038316600090815260036020526040812080546001929061272d908490613576565b90915550506001600160a01b038216600090815260036020526040812080546001929061275b90849061358d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006127d582846135bb565b9392505050565b60006127d582846134bf565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156128a95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610958565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61293f8484846125ef565b61294b84848484612baa565b611ba95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b600e54606090600160501b900460ff16600414156129e2576012805461084f906133ce565b6013805461084f906133ce565b606081612a2f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a595780612a438161355b565b9150612a529050600a836135bb565b9150612a33565b60008167ffffffffffffffff811115612a7457612a74613051565b6040519080825280601f01601f191660200182016040528015612a9e576020820181803683370190505b5090505b84156125e757612ab3600183613576565b9150612ac0600a866135cf565b612acb90603061358d565b60f81b818381518110612ae057612ae06134a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b1a600a866135bb565b9450612aa2565b612b2b8383612d48565b612b386000848484612baa565b610aaa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b60006001600160a01b0384163b15612d3d576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c079033908990889088906004016135e3565b6020604051808303816000875af1925050508015612c42575060408051601f3d908101601f19168201909252612c3f9181019061361f565b60015b612cf2573d808015612c70576040519150601f19603f3d011682016040523d82523d6000602084013e612c75565b606091505b508051612cea5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610958565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125e7565b506001949350505050565b6001600160a01b038216612d9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610958565b6000818152600260205260409020546001600160a01b031615612e035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610958565b6001600160a01b0382166000908152600360205260408120805460019290612e2c90849061358d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ea3906133ce565b90600052602060002090601f016020900481019282612ec55760008555612f0b565b82601f10612ede57805160ff1916838001178555612f0b565b82800160010185558215612f0b579182015b82811115612f0b578251825591602001919060010190612ef0565b50612f17929150612f1b565b5090565b5b80821115612f175760008155600101612f1c565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461225057600080fd5b600060208284031215612f7057600080fd5b81356127d581612f30565b60005b83811015612f96578181015183820152602001612f7e565b83811115611ba95750506000910152565b60008151808452612fbf816020860160208601612f7b565b601f01601f19169290920160200192915050565b6020815260006127d56020830184612fa7565b600060208284031215612ff857600080fd5b5035919050565b80356001600160a01b03811681146113af57600080fd5b6000806040838503121561302957600080fd5b61303283612fff565b946020939093013593505050565b803560ff811681146113af57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561309057613090613051565b604052919050565b600080604083850312156130ab57600080fd5b6130b483613040565b915060208084013567ffffffffffffffff808211156130d257600080fd5b818601915086601f8301126130e657600080fd5b8135818111156130f8576130f8613051565b8060051b9150613109848301613067565b818152918301840191848101908984111561312357600080fd5b938501935b8385101561314157843582529385019390850190613128565b8096505050505050509250929050565b60008060006060848603121561316657600080fd5b61316f84612fff565b925061317d60208501612fff565b9150604084013590509250925092565b60006020828403121561319f57600080fd5b6127d582613040565b600067ffffffffffffffff8311156131c2576131c2613051565b6131d56020601f19601f86011601613067565b90508281528383830111156131e957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561321257600080fd5b813567ffffffffffffffff81111561322957600080fd5b8201601f8101841361323a57600080fd5b6125e7848235602084016131a8565b6020808252825182820181905260009190848201906040850190845b8181101561328157835183529284019291840191600101613265565b50909695505050505050565b60006020828403121561329f57600080fd5b6127d582612fff565b600080604083850312156132bb57600080fd5b6132c483612fff565b9150602083013580151581146132d957600080fd5b809150509250929050565b600080600080608085870312156132fa57600080fd5b61330385612fff565b935061331160208601612fff565b925060408501359150606085013567ffffffffffffffff81111561333457600080fd5b8501601f8101871361334557600080fd5b613354878235602084016131a8565b91505092959194509250565b6000806040838503121561337357600080fd5b61337c83612fff565b915061338a60208401612fff565b90509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561328157835160ff16835292840192918401916001016133af565b600181811c908216806133e257607f821691505b6020821081141561340357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff0382111561343c5761343c613409565b019392505050565b600061ffff8083168181141561345c5761345c613409565b6001019392505050565b600060ff821660ff81141561347d5761347d613409565b60010192915050565b600061ffff838116908316818110156134a1576134a1613409565b039392505050565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156134d9576134d9613409565b500290565b600083516134f0818460208801612f7b565b835190830190613504818360208801612f7b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600061ffff80831681851680830382111561355257613552613409565b01949350505050565b600060001982141561356f5761356f613409565b5060010190565b60008282101561358857613588613409565b500390565b600082198211156135a0576135a0613409565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826135ca576135ca6135a5565b500490565b6000826135de576135de6135a5565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526136156080830184612fa7565b9695505050505050565b60006020828403121561363157600080fd5b81516127d581612f3056fea2646970667358221220a194f192da80f0ca128e26e99465430b8673cd316620e416949d8c71e1aa7e6f64736f6c634300080a0033

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.