ETH Price: $3,143.20 (-4.16%)

DracoNFT (DRACO)
 

Overview

TokenID

106

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DracoNFT

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 20000 runs

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

pragma solidity 0.8.11;


import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract DracoNFT is ERC721Enumerable, Ownable, ReentrancyGuard {

  using Counters for Counters.Counter;
  Counters.Counter private _tokenIds;

  // Smart contract status
  enum MintStatus {
    CLOSED,
    PRESALE1,
    PRESALE2,
    PUBLIC
  }
  MintStatus public status = MintStatus.CLOSED;

  // ERC721 params
  string private _name = "DracoNFT";
  string private _symbol = "DRACO";
  string private _baseTokenURI = "https://mint.draconft.io/api/metadata/";

  // Collection params
  uint256 public TOTAL_SUPPLY = 10333;
  uint256 public RESERVED = 333;
  uint256 public PRESALE1_SUPPLY = 500;
  uint256 public PRESALE2_SUPPLY = 4500;
  uint256 public remaining_supply = TOTAL_SUPPLY - RESERVED;
  uint256 public remaining_reserved = RESERVED;
  uint256 public presale1_supply = PRESALE1_SUPPLY;
  uint256 public presale2_supply = PRESALE2_SUPPLY;

  uint256 private price = 0.09 ether;
  uint256[4] private MAX_PER_STATUS = [0, 2, 3, 20];

  address payable public addr1 = payable(0x59966F2590Cd638c351f8541d082d109603a465D); // 20%
  address payable public addr2 = payable(0xF42C7AECA097Aff686792db174f1B1E35996d3b7); // 2%
  address payable public addr3 = payable(0x48850Bad2D26eb1416E5d58B93403a66f186A992); // 78%

  // Amount minted
  mapping(address => uint256[4]) private _amountMinted;

  // Merkle tree
  bytes32 public merkleRoot1 =
    0x6d40b0662761b50c41b6b007692c06df798da8bae345ad2161be3ff55b2677da;
  bytes32 public merkleRoot2 =
    0x6d40b0662761b50c41b6b007692c06df798da8bae345ad2161be3ff55b2677da;

  // Event declaration
  event ChangedStatusEvent(uint256 newStatus);
  event ChangedBaseURIEvent(string newURI);
  event ChangedMerkleRoot(bytes32 newMerkleRoot1,bytes32 newMerkleRoot2);

  // Modifier to check claiming requirements
  modifier qtyValidation(uint256 _qty) {
    require(msg.sender == tx.origin);
    require(status != MintStatus.CLOSED, "Minting is closed");
    require(remaining_supply > 0, "Collection is sold out");
    require(_qty <= remaining_supply, "Not enough NFTs available");
    require(_qty > 0, "NFTs amount must be greater than zero");
    require(
      _qty <=
        MAX_PER_STATUS[uint256(status)],
      "Exceeded the max amount of mintable NFT"
    );
    require(msg.value == price * _qty, "Ether sent is not correct");
    _;
  }

  // Constructor
  constructor()
    ERC721(_name, _symbol)
  {
    ownerMint(7);
  }

  function ownerMint(uint256 _qty) public onlyOwner{
    require(_qty <= remaining_reserved, "Not enough NFTs available");
    remaining_reserved -= _qty;
    for (uint256 i = 0; i< _qty; i++){
      _tokenIds.increment();
      _safeMint(msg.sender, _tokenIds.current());
    }
  }

  // Pre-sale mint
  function presaleMint(uint256 _qty, bytes32[] calldata _proof)
    external
    payable
    nonReentrant
    qtyValidation(_qty)
  {
    require(status == MintStatus.PRESALE1 || status == MintStatus.PRESALE2, "Status is not presale");
    require(
      _qty + _amountMinted[msg.sender][uint256(status)] <=
        MAX_PER_STATUS[uint256(status)],
      "Exceeded the max amount of mintable NFT"
    );

    if(status == MintStatus.PRESALE1){
        require(
          MerkleProof.verify(
            _proof,
            merkleRoot1,
            keccak256(abi.encodePacked(msg.sender))
          ),
          "You are not in the first phase of the presale"
        );
        require(_qty <= presale1_supply, "Not enough NFTs available");
        presale1_supply -= _qty;
    } else if (status == MintStatus.PRESALE2){
        require(
          MerkleProof.verify(
            _proof,
            merkleRoot2,
            keccak256(abi.encodePacked(msg.sender))
          ),
          "You are not in the second phase of the presale"
        );
        require(_qty <= presale2_supply, "Not enough NFTs available");
        presale2_supply -= _qty;
    }
    
    _privateMint(_qty);
  }

  //  Public Mint
  function publicMint(uint256 _qty)
    external
    payable
    nonReentrant
    qtyValidation(_qty)
  {
    require(status == MintStatus.PUBLIC, "Status is not public");
    _privateMint(_qty);
  }

  function _privateMint(uint256 _qty) private {
    _amountMinted[msg.sender][uint256(status)] += _qty;
    remaining_supply -= _qty;
    for (uint256 i = 0; i< _qty; i++){
      _tokenIds.increment();
      _safeMint(msg.sender, _tokenIds.current());
    }
  }

  // Burn
  function burn(uint256 tokenId) public {
    require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
    _burn(tokenId);
  }

  // Getters
  function tokenExists(uint256 _id) public view returns (bool) {
    return _exists(_id);
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 tokenCount = balanceOf(_owner);
    uint256[] memory tokensId = new uint256[](tokenCount);

    for (uint256 i; i < tokenCount; i++) {
      tokensId[i] = tokenOfOwnerByIndex(_owner, i);
    }
    return tokensId;
  }

  function getStatus()
    external
    view
    returns (
      string memory status_,
      uint256 qty_,
      uint256 price_,
      uint256 counter_
    )
  {
    uint256 mintedInStatus = _amountMinted[msg.sender][uint256(status)];
    uint256 maxStatus = MAX_PER_STATUS[uint256(status)];
    uint256 _remainingToMint = maxStatus - mintedInStatus;
    uint256 _price = price;

    if (remaining_supply == 0) {
      return ("SOLD_OUT", 0, _price, 0);
    }

    if (status == MintStatus.PUBLIC) {
      return ("PUBLIC", maxStatus, _price, remaining_supply);
    } else if (status == MintStatus.PRESALE1) {
      return ("PRESALE1", _remainingToMint, _price, presale1_supply);
    } else if (status == MintStatus.PRESALE2) {
      return ("PRESALE2", _remainingToMint, _price, presale2_supply);
    } else {
      return ("CLOSED", _remainingToMint, _price, remaining_supply);
    }
  }

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

  // Setters
  function setStatus(uint8 _status) external onlyOwner {
    // _status -> 0: CLOSED, 1: PRESALE1, 2: PRESALE2, 3: PUBLIC
    require(
      _status >= 0 && _status <= 3,
      "Mint status must be between 0 and 3"
    );
    status = MintStatus(_status);
    emit ChangedStatusEvent(_status);
  }

  function setBaseURI(string memory _URI) external onlyOwner {
    _baseTokenURI = _URI;
    emit ChangedBaseURIEvent(_URI);
  }

  function setMerkleRoot(bytes32 _merkleRoot1, bytes32 _merkleRoot2) external onlyOwner {
    merkleRoot1 = _merkleRoot1;
    merkleRoot2 = _merkleRoot2;
    emit ChangedMerkleRoot(_merkleRoot1, _merkleRoot2);
  }

  function setAddr(address _addr1, address _addr2, address _addr3) external onlyOwner{
    require(_addr1 != address(0) && _addr2 != address(0) && _addr3 != address(0), "One of the address is the butn address");
    addr1 = payable(_addr1);
    addr2 = payable(_addr2);
    addr3 = payable(_addr3);
  }

  // Withdraw function
  function withdrawAll()
    external
    payable
    nonReentrant
    onlyOwner
  {
    require(address(this).balance != 0, "Balance is zero");
    uint balance = address(this).balance;
    payable(addr1).transfer(balance*20/100);
    payable(addr2).transfer(balance*2/100);
    payable(addr3).transfer(address(this).balance);
  }
}

File 2 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 5 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        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 = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 11 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ChangedBaseURIEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot1","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot2","type":"bytes32"}],"name":"ChangedMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStatus","type":"uint256"}],"name":"ChangedStatusEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PRESALE1_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE2_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addr1","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addr2","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addr3","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStatus","outputs":[{"internalType":"string","name":"status_","type":"string"},{"internalType":"uint256","name":"qty_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"counter_","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":[],"name":"merkleRoot1","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot2","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale1_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale2_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"remaining_reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remaining_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr1","type":"address"},{"internalType":"address","name":"_addr2","type":"address"},{"internalType":"address","name":"_addr3","type":"address"}],"name":"setAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot1","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRoot2","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum DracoNFT.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

600d805460ff1916905560c06040526008608081905267111c9858dbd3919560c21b60a09081526200003591600e919062000b3c565b5060408051808201909152600580825264445241434f60d81b60209092019182526200006491600f9162000b3c565b5060405180606001604052806026815260200162004fa2602691398051620000959160109160209091019062000b3c565b5061285d601181905561014d60128190556101f4601355611194601455620000bd9162000c2e565b6015556012546016556013546017556014805460185567013fbe85edc9000060195560408051608081018252600081526002602082015260039181019190915260608101919091526200011590601a90600462000bcb565b50601e80546001600160a01b03199081167359966f2590cd638c351f8541d082d109603a465d17909155601f8054821673f42c7aeca097aff686792db174f1b1e35996d3b7179055602080549091167348850bad2d26eb1416e5d58b93403a66f186a9921790557f6d40b0662761b50c41b6b007692c06df798da8bae345ad2161be3ff55b2677da6022819055602355348015620001b257600080fd5b50600e8054620001c29062000c48565b80601f0160208091040260200160405190810160405280929190818152602001828054620001f09062000c48565b8015620002415780601f10620002155761010080835404028352916020019162000241565b820191906000526020600020905b8154815290600101906020018083116200022357829003601f168201915b5050505050600f8054620002559062000c48565b80601f0160208091040260200160405190810160405280929190818152602001828054620002839062000c48565b8015620002d45780601f10620002a857610100808354040283529160200191620002d4565b820191906000526020600020905b815481529060010190602001808311620002b657829003601f168201915b50508451620002ee93506000925060208601915062000b3c565b5080516200030490600190602084019062000b3c565b505050620003216200031b6200033860201b60201c565b6200033c565b6001600b556200033260076200038e565b62000d98565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620003ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601654811115620004425760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401620003e5565b806016600082825462000456919062000c2e565b90915550600090505b81811015620004b6576200047f600c620004ba60201b620027e11760201c565b620004a1336200049b600c620004c360201b620027ea1760201c565b620004c7565b80620004ad8162000c85565b9150506200045f565b5050565b80546001019055565b5490565b620004b6828260405180602001604052806000815250620004e960201b60201c565b620004f5838362000561565b620005046000848484620006b7565b6200055c5760405162461bcd60e51b8152602060048201526032602482015260008051602062004fc883398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620003e5565b505050565b6001600160a01b038216620005b95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620003e5565b6000818152600260205260409020546001600160a01b031615620006205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620003e5565b6200062e6000838362000810565b6001600160a01b03821660009081526003602052604081208054600192906200065990849062000ca3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620006d8846001600160a01b0316620008ec60201b620027ee1760201c565b156200080457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200071290339089908890889060040162000cbe565b6020604051808303816000875af192505050801562000750575060408051601f3d908101601f191682019092526200074d9181019062000d39565b60015b620007e9573d80801562000781576040519150601f19603f3d011682016040523d82523d6000602084013e62000786565b606091505b508051620007e15760405162461bcd60e51b8152602060048201526032602482015260008051602062004fc883398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620003e5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000808565b5060015b949350505050565b620008288383836200055c60201b62000bd71760201c565b6001600160a01b03831662000886576200088081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b620008ac565b816001600160a01b0316836001600160a01b031614620008ac57620008ac8382620008fb565b6001600160a01b038216620008c6576200055c81620009a8565b826001600160a01b0316826001600160a01b0316146200055c576200055c828262000a62565b6001600160a01b03163b151590565b60006001620009158462000ab360201b620019011760201c565b62000921919062000c2e565b60008381526007602052604090205490915080821462000975576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090620009bc9060019062000c2e565b60008381526009602052604081205460088054939450909284908110620009e757620009e762000d6c565b90600052602060002001549050806008838154811062000a0b5762000a0b62000d6c565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548062000a465762000a4662000d82565b6001900381819060005260206000200160009055905550505050565b600062000a7a8362000ab360201b620019011760201c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b03821662000b205760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401620003e5565b506001600160a01b031660009081526003602052604090205490565b82805462000b4a9062000c48565b90600052602060002090601f01602090048101928262000b6e576000855562000bb9565b82601f1062000b8957805160ff191683800117855562000bb9565b8280016001018555821562000bb9579182015b8281111562000bb957825182559160200191906001019062000b9c565b5062000bc792915062000c01565b5090565b826004810192821562000bb9579160200282015b8281111562000bb9578251829060ff1690559160200191906001019062000bdf565b5b8082111562000bc7576000815560010162000c02565b634e487b7160e01b600052601160045260246000fd5b60008282101562000c435762000c4362000c18565b500390565b600181811c9082168062000c5d57607f821691505b6020821081141562000c7f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000c9c5762000c9c62000c18565b5060010190565b6000821982111562000cb95762000cb962000c18565b500190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b8281101562000d0d5785810182015185820160a00152810162000cef565b8281111562000d2057600060a084870101525b5050601f01601f19169190910160a00195945050505050565b60006020828403121562000d4c57600080fd5b81516001600160e01b03198116811462000d6557600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6141fa8062000da86000396000f3fe6080604052600436106102f15760003560e01c806383a431cb1161018f578063b88d4fde116100e1578063e64710e61161008a578063f19e75d411610064578063f19e75d414610852578063f2fde38b14610872578063f987a6b31461089257600080fd5b8063e64710e6146107b9578063e985e9c5146107cf578063eabe09ad1461082557600080fd5b8063ca34adf0116100bb578063ca34adf01461077a578063e0a1f43814610790578063e3e1e8ef146107a657600080fd5b8063b88d4fde14610724578063ba750d6114610744578063c87b56dd1461075a57600080fd5b8063902d55a511610143578063a22cb4651161011d578063a22cb465146106d8578063aa592f25146106f8578063b050954a1461070e57600080fd5b8063902d55a5146106805780639347e6d71461069657806395d89b41146106c357600080fd5b80638da5cb5b116101745780638da5cb5b146106125780638de38f981461063d5780638e3d78e21461066a57600080fd5b806383a431cb146105f4578063853828b61461060a57600080fd5b806342842e0e1161024857806355f804b3116101fc57806370a08231116101d657806370a082311461059f578063715018a6146105bf57806375edcbe0146105d457600080fd5b806355f804b31461053f5780636153c8c11461055f5780636352211e1461057f57600080fd5b8063438b63001161022d578063438b6300146104cd5780634e69d560146104fa5780634f6ccce71461051f57600080fd5b806342842e0e1461048d57806342966c68146104ad57600080fd5b806318160ddd116102aa5780632db11544116102845780632db115441461043a5780632e49d78b1461044d5780632f745c591461046d57600080fd5b806318160ddd146103d4578063200d2ed2146103f357806323b872dd1461041a57600080fd5b806306fdde03116102db57806306fdde031461034b578063081812fc1461036d578063095ea7b3146103b257600080fd5b8062923f9e146102f657806301ffc9a71461032b575b600080fd5b34801561030257600080fd5b506103166103113660046139da565b6108a8565b60405190151581526020015b60405180910390f35b34801561033757600080fd5b50610316610346366004613a21565b6108d6565b34801561035757600080fd5b5061036061092c565b6040516103229190613ab4565b34801561037957600080fd5b5061038d6103883660046139da565b6109be565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610322565b3480156103be57600080fd5b506103d26103cd366004613af0565b610a83565b005b3480156103e057600080fd5b506008545b604051908152602001610322565b3480156103ff57600080fd5b50600d5461040d9060ff1681565b6040516103229190613b49565b34801561042657600080fd5b506103d2610435366004613b8a565b610bdc565b6103d26104483660046139da565b610c64565b34801561045957600080fd5b506103d2610468366004613bc6565b610fbf565b34801561047957600080fd5b506103e5610488366004613af0565b61112e565b34801561049957600080fd5b506103d26104a8366004613b8a565b6111e3565b3480156104b957600080fd5b506103d26104c83660046139da565b6111fe565b3480156104d957600080fd5b506104ed6104e8366004613be9565b611285565b6040516103229190613c04565b34801561050657600080fd5b5061050f611327565b6040516103229493929190613c48565b34801561052b57600080fd5b506103e561053a3660046139da565b611583565b34801561054b57600080fd5b506103d261055a366004613d3a565b611627565b34801561056b57600080fd5b506103d261057a366004613d83565b6116d1565b34801561058b57600080fd5b5061038d61059a3660046139da565b611869565b3480156105ab57600080fd5b506103e56105ba366004613be9565b611901565b3480156105cb57600080fd5b506103d26119b5565b3480156105e057600080fd5b506103d26105ef366004613dc6565b611a28565b34801561060057600080fd5b506103e560155481565b6103d2611ad6565b34801561061e57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661038d565b34801561064957600080fd5b50601f5461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561067657600080fd5b506103e560135481565b34801561068c57600080fd5b506103e560115481565b3480156106a257600080fd5b5060205461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106cf57600080fd5b50610360611ce2565b3480156106e457600080fd5b506103d26106f3366004613de8565b611cf1565b34801561070457600080fd5b506103e560125481565b34801561071a57600080fd5b506103e560185481565b34801561073057600080fd5b506103d261073f366004613e24565b611d00565b34801561075057600080fd5b506103e560145481565b34801561076657600080fd5b506103606107753660046139da565b611d8e565b34801561078657600080fd5b506103e560235481565b34801561079c57600080fd5b506103e560165481565b6103d26107b4366004613ea0565b611e84565b3480156107c557600080fd5b506103e560225481565b3480156107db57600080fd5b506103166107ea366004613f1f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561083157600080fd5b50601e5461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561085e57600080fd5b506103d261086d3660046139da565b6125da565b34801561087e57600080fd5b506103d261088d366004613be9565b6126e8565b34801561089e57600080fd5b506103e560175481565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1615155b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108d057506108d08261280a565b60606000805461093b90613f52565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613f52565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a8e82611869565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a51565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b5b5750610b5b81336107ea565b610bcd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a51565b610bd783836128ed565b505050565b610be7335b8261298d565b610c595760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a51565b610bd7838383612ae3565b6002600b541415610cb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b5580333214610cc957600080fd5b6000600d5460ff166003811115610ce257610ce2613b1a565b1415610d305760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610a51565b600060155411610d825760405162461bcd60e51b815260206004820152601660248201527f436f6c6c656374696f6e20697320736f6c64206f7574000000000000000000006044820152606401610a51565b601554811115610dd45760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b60008111610e4a5760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e60448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a51565b600d54601a9060ff166003811115610e6457610e64613b1a565b60048110610e7457610e74613fa6565b0154811115610eeb5760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b80601954610ef99190614004565b3414610f475760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610a51565b6003600d5460ff166003811115610f6057610f60613b1a565b14610fad5760405162461bcd60e51b815260206004820152601460248201527f537461747573206973206e6f74207075626c69630000000000000000000000006044820152606401610a51565b610fb682612d21565b50506001600b55565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146110265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b60038160ff1611156110a05760405162461bcd60e51b815260206004820152602360248201527f4d696e7420737461747573206d757374206265206265747765656e203020616e60448201527f64203300000000000000000000000000000000000000000000000000000000006064820152608401610a51565b8060ff1660038111156110b5576110b5613b1a565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360038111156110ef576110ef613b1a565b021790555060405160ff821681527f4cc5ea37df50e6ca53a9b0b7897785aac7fbd6e69b095d62b7df79f291a0a678906020015b60405180910390a150565b600061113983611901565b82106111ad5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610a51565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b610bd783838360405180602001604052806000815250611d00565b61120733610be1565b6112795760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610a51565b61128281612dc1565b50565b6060600061129283611901565b905060008167ffffffffffffffff8111156112af576112af613c77565b6040519080825280602002602001820160405280156112d8578160200160208202803683370190505b50905060005b8281101561131f576112f0858261112e565b82828151811061130257611302613fa6565b60209081029190910101528061131781614041565b9150506112de565b509392505050565b336000908152602160205260408120600d546060929182918291829160ff16600381111561135757611357613b1a565b6004811061136757611367613fa6565b0154600d54909150600090601a9060ff16600381111561138957611389613b1a565b6004811061139957611399613fa6565b0154905060006113a9838361407a565b601954601554919250906113ff5760408051808201909152600881527f534f4c445f4f55540000000000000000000000000000000000000000000000006020820152975060009650945085935061157d92505050565b6003600d5460ff16600381111561141857611418613b1a565b14156114675760155460408051808201909152600681527f5055424c4943000000000000000000000000000000000000000000000000000060208201529850929650945090925061157d915050565b6001600d5460ff16600381111561148057611480613b1a565b14156114ce5760175460408051808201909152600881527f50524553414c4531000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b6002600d5460ff1660038111156114e7576114e7613b1a565b14156115355760185460408051808201909152600881527f50524553414c4532000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b60155460408051808201909152600681527f434c4f5345440000000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b90919293565b600061158e60085490565b82106116025760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610a51565b6008828154811061161557611615613fa6565b90600052602060002001549050919050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461168e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b80516116a1906010906020840190613941565b507f744d1924de3e532e3230010491d50f9d3a13f8cf2f675452046ec3cee64a02dd816040516111239190613ab4565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146117385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff831615801590611772575073ffffffffffffffffffffffffffffffffffffffff821615155b8015611793575073ffffffffffffffffffffffffffffffffffffffff811615155b6118055760405162461bcd60e51b815260206004820152602660248201527f4f6e65206f6620746865206164647265737320697320746865206275746e206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a51565b601e805473ffffffffffffffffffffffffffffffffffffffff9485167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155601f80549385169382169390931790925560208054919093169116179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a51565b600073ffffffffffffffffffffffffffffffffffffffff821661198c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a51565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a1c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b611a266000612e9a565b565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b6022829055602381905560408051838152602081018390527ffc62dec71bf18767efd3058bd1cdbce9c7860df1c7910604e924b70f87bc6976910160405180910390a15050565b6002600b541415611b295760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b55600a5473ffffffffffffffffffffffffffffffffffffffff163314611b955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b47611be25760405162461bcd60e51b815260206004820152600f60248201527f42616c616e6365206973207a65726f00000000000000000000000000000000006044820152606401610a51565b601e54479073ffffffffffffffffffffffffffffffffffffffff166108fc6064611c0d846014614004565b611c1791906140c0565b6040518115909202916000818181858888f19350505050158015611c3f573d6000803e3d6000fd5b50601f5473ffffffffffffffffffffffffffffffffffffffff166108fc6064611c69846002614004565b611c7391906140c0565b6040518115909202916000818181858888f19350505050158015611c9b573d6000803e3d6000fd5b5060205460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610fb6573d6000803e3d6000fd5b60606001805461093b90613f52565b611cfc338383612f11565b5050565b611d0a338361298d565b611d7c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a51565b611d8884848484613025565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611e285760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a51565b6000611e326130ae565b90506000815111611e525760405180602001604052806000815250611e7d565b80611e5c846130bd565b604051602001611e6d9291906140d4565b6040516020818303038152906040525b9392505050565b6002600b541415611ed75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b5582333214611ee957600080fd5b6000600d5460ff166003811115611f0257611f02613b1a565b1415611f505760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610a51565b600060155411611fa25760405162461bcd60e51b815260206004820152601660248201527f436f6c6c656374696f6e20697320736f6c64206f7574000000000000000000006044820152606401610a51565b601554811115611ff45760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b6000811161206a5760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e60448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a51565b600d54601a9060ff16600381111561208457612084613b1a565b6004811061209457612094613fa6565b015481111561210b5760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b806019546121199190614004565b34146121675760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610a51565b6001600d5460ff16600381111561218057612180613b1a565b14806121a257506002600d5460ff1660038111156121a0576121a0613b1a565b145b6121ee5760405162461bcd60e51b815260206004820152601560248201527f537461747573206973206e6f742070726573616c6500000000000000000000006044820152606401610a51565b600d54601a9060ff16600381111561220857612208613b1a565b6004811061221857612218613fa6565b0154336000908152602160205260409020600d5460ff16600381111561224057612240613b1a565b6004811061225057612250613fa6565b015461225c9086614103565b11156122d05760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b6001600d5460ff1660038111156122e9576122e9613b1a565b141561245957612378838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506022546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015290925060340190505b604051602081830303815290604052805190602001206131ef565b6123ea5760405162461bcd60e51b815260206004820152602d60248201527f596f7520617265206e6f7420696e20746865206669727374207068617365206f60448201527f66207468652070726573616c65000000000000000000000000000000000000006064820152608401610a51565b60175484111561243c5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b836017600082825461244e919061407a565b909155506125c69050565b6002600d5460ff16600381111561247257612472613b1a565b14156125c6576124ea838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506023546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152909250603401905061235d565b61255c5760405162461bcd60e51b815260206004820152602e60248201527f596f7520617265206e6f7420696e20746865207365636f6e642070686173652060448201527f6f66207468652070726573616c650000000000000000000000000000000000006064820152608401610a51565b6018548411156125ae5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b83601860008282546125c0919061407a565b90915550505b6125cf84612d21565b50506001600b555050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146126415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b6016548111156126935760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b80601660008282546126a5919061407a565b90915550600090505b81811015611cfc576126c4600c80546001019055565b6126d6336126d1600c5490565b613205565b806126e081614041565b9150506126ae565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461274f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff81166127d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a51565b61128281612e9a565b80546001019055565b5490565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061289d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108d0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061294782611869565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a51565b6000612a2f83611869565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9e57508373ffffffffffffffffffffffffffffffffffffffff16612a86846109be565b73ffffffffffffffffffffffffffffffffffffffff16145b80612adb575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612b0382611869565b73ffffffffffffffffffffffffffffffffffffffff1614612b8c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a51565b73ffffffffffffffffffffffffffffffffffffffff8216612c145760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a51565b612c1f83838361321f565b612c2a6000826128ed565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612c6090849061407a565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612c9b908490614103565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b336000908152602160205260409020600d5482919060ff166003811115612d4a57612d4a613b1a565b60048110612d5a57612d5a613fa6565b016000828254612d6a9190614103565b925050819055508060156000828254612d83919061407a565b90915550600090505b81811015611cfc57612da2600c80546001019055565b612daf336126d1600c5490565b80612db981614041565b915050612d8c565b6000612dcc82611869565b9050612dda8160008461321f565b612de56000836128ed565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612e1b90849061407a565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f8d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613030848484612ae3565b61303c84848484613325565b611d885760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b60606010805461093b90613f52565b6060816130fd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613127578061311181614041565b91506131209050600a836140c0565b9150613101565b60008167ffffffffffffffff81111561314257613142613c77565b6040519080825280601f01601f19166020018201604052801561316c576020820181803683370190505b5090505b8415612adb5761318160018361407a565b915061318e600a8661411b565b613199906030614103565b60f81b8183815181106131ae576131ae613fa6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131e8600a866140c0565b9450613170565b6000826131fc85846134fb565b14949350505050565b611cfc828260405180602001604052806000815250613567565b73ffffffffffffffffffffffffffffffffffffffff83166132875761328281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6132c4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132c4576132c483826135f0565b73ffffffffffffffffffffffffffffffffffffffff82166132e857610bd7816136a7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610bd757610bd78282613756565b600073ffffffffffffffffffffffffffffffffffffffff84163b156134f0576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061339c90339089908890889060040161412f565b6020604051808303816000875af19250505080156133f5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526133f291810190614178565b60015b6134a5573d808015613423576040519150601f19603f3d011682016040523d82523d6000602084013e613428565b606091505b50805161349d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612adb565b506001949350505050565b600081815b845181101561131f57600085828151811061351d5761351d613fa6565b602002602001015190508083116135435760008381526020829052604090209250613554565b600081815260208490526040902092505b508061355f81614041565b915050613500565b61357183836137a7565b61357e6000848484613325565b610bd75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b600060016135fd84611901565b613607919061407a565b6000838152600760205260409020549091508082146136675773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906136b99060019061407a565b600083815260096020526040812054600880549394509092849081106136e1576136e1613fa6565b90600052602060002001549050806008838154811061370257613702613fa6565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061373a5761373a614195565b6001900381819060005260206000200160009055905550505050565b600061376183611901565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff821661380a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a51565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561387c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a51565b6138886000838361321f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906138be908490614103565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461394d90613f52565b90600052602060002090601f01602090048101928261396f57600085556139b5565b82601f1061398857805160ff19168380011785556139b5565b828001600101855582156139b5579182015b828111156139b557825182559160200191906001019061399a565b506139c19291506139c5565b5090565b5b808211156139c157600081556001016139c6565b6000602082840312156139ec57600080fd5b5035919050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461128257600080fd5b600060208284031215613a3357600080fd5b8135611e7d816139f3565b60005b83811015613a59578181015183820152602001613a41565b83811115611d885750506000910152565b60008151808452613a82816020860160208601613a3e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611e7d6020830184613a6a565b803573ffffffffffffffffffffffffffffffffffffffff81168114613aeb57600080fd5b919050565b60008060408385031215613b0357600080fd5b613b0c83613ac7565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613b84577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600060608486031215613b9f57600080fd5b613ba884613ac7565b9250613bb660208501613ac7565b9150604084013590509250925092565b600060208284031215613bd857600080fd5b813560ff81168114611e7d57600080fd5b600060208284031215613bfb57600080fd5b611e7d82613ac7565b6020808252825182820181905260009190848201906040850190845b81811015613c3c57835183529284019291840191600101613c20565b50909695505050505050565b608081526000613c5b6080830187613a6a565b6020830195909552506040810192909252606090910152919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613cc157613cc1613c77565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613d0757613d07613c77565b81604052809350858152868686011115613d2057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613d4c57600080fd5b813567ffffffffffffffff811115613d6357600080fd5b8201601f81018413613d7457600080fd5b612adb84823560208401613ca6565b600080600060608486031215613d9857600080fd5b613da184613ac7565b9250613daf60208501613ac7565b9150613dbd60408501613ac7565b90509250925092565b60008060408385031215613dd957600080fd5b50508035926020909101359150565b60008060408385031215613dfb57600080fd5b613e0483613ac7565b915060208301358015158114613e1957600080fd5b809150509250929050565b60008060008060808587031215613e3a57600080fd5b613e4385613ac7565b9350613e5160208601613ac7565b925060408501359150606085013567ffffffffffffffff811115613e7457600080fd5b8501601f81018713613e8557600080fd5b613e9487823560208401613ca6565b91505092959194509250565b600080600060408486031215613eb557600080fd5b83359250602084013567ffffffffffffffff80821115613ed457600080fd5b818601915086601f830112613ee857600080fd5b813581811115613ef757600080fd5b8760208260051b8501011115613f0c57600080fd5b6020830194508093505050509250925092565b60008060408385031215613f3257600080fd5b613f3b83613ac7565b9150613f4960208401613ac7565b90509250929050565b600181811c90821680613f6657607f821691505b60208210811415613fa0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561403c5761403c613fd5565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561407357614073613fd5565b5060010190565b60008282101561408c5761408c613fd5565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826140cf576140cf614091565b500490565b600083516140e6818460208801613a3e565b8351908301906140fa818360208801613a3e565b01949350505050565b6000821982111561411657614116613fd5565b500190565b60008261412a5761412a614091565b500690565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261416e6080830184613a6a565b9695505050505050565b60006020828403121561418a57600080fd5b8151611e7d816139f3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203dfaf0e457a131f49f5a76906cd660285e85fcd9c958f8d362e9d0268736be4d64736f6c634300080b003368747470733a2f2f6d696e742e647261636f6e66742e696f2f6170692f6d657461646174612f4552433732313a207472616e7366657220746f206e6f6e204552433732315265

Deployed Bytecode

0x6080604052600436106102f15760003560e01c806383a431cb1161018f578063b88d4fde116100e1578063e64710e61161008a578063f19e75d411610064578063f19e75d414610852578063f2fde38b14610872578063f987a6b31461089257600080fd5b8063e64710e6146107b9578063e985e9c5146107cf578063eabe09ad1461082557600080fd5b8063ca34adf0116100bb578063ca34adf01461077a578063e0a1f43814610790578063e3e1e8ef146107a657600080fd5b8063b88d4fde14610724578063ba750d6114610744578063c87b56dd1461075a57600080fd5b8063902d55a511610143578063a22cb4651161011d578063a22cb465146106d8578063aa592f25146106f8578063b050954a1461070e57600080fd5b8063902d55a5146106805780639347e6d71461069657806395d89b41146106c357600080fd5b80638da5cb5b116101745780638da5cb5b146106125780638de38f981461063d5780638e3d78e21461066a57600080fd5b806383a431cb146105f4578063853828b61461060a57600080fd5b806342842e0e1161024857806355f804b3116101fc57806370a08231116101d657806370a082311461059f578063715018a6146105bf57806375edcbe0146105d457600080fd5b806355f804b31461053f5780636153c8c11461055f5780636352211e1461057f57600080fd5b8063438b63001161022d578063438b6300146104cd5780634e69d560146104fa5780634f6ccce71461051f57600080fd5b806342842e0e1461048d57806342966c68146104ad57600080fd5b806318160ddd116102aa5780632db11544116102845780632db115441461043a5780632e49d78b1461044d5780632f745c591461046d57600080fd5b806318160ddd146103d4578063200d2ed2146103f357806323b872dd1461041a57600080fd5b806306fdde03116102db57806306fdde031461034b578063081812fc1461036d578063095ea7b3146103b257600080fd5b8062923f9e146102f657806301ffc9a71461032b575b600080fd5b34801561030257600080fd5b506103166103113660046139da565b6108a8565b60405190151581526020015b60405180910390f35b34801561033757600080fd5b50610316610346366004613a21565b6108d6565b34801561035757600080fd5b5061036061092c565b6040516103229190613ab4565b34801561037957600080fd5b5061038d6103883660046139da565b6109be565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610322565b3480156103be57600080fd5b506103d26103cd366004613af0565b610a83565b005b3480156103e057600080fd5b506008545b604051908152602001610322565b3480156103ff57600080fd5b50600d5461040d9060ff1681565b6040516103229190613b49565b34801561042657600080fd5b506103d2610435366004613b8a565b610bdc565b6103d26104483660046139da565b610c64565b34801561045957600080fd5b506103d2610468366004613bc6565b610fbf565b34801561047957600080fd5b506103e5610488366004613af0565b61112e565b34801561049957600080fd5b506103d26104a8366004613b8a565b6111e3565b3480156104b957600080fd5b506103d26104c83660046139da565b6111fe565b3480156104d957600080fd5b506104ed6104e8366004613be9565b611285565b6040516103229190613c04565b34801561050657600080fd5b5061050f611327565b6040516103229493929190613c48565b34801561052b57600080fd5b506103e561053a3660046139da565b611583565b34801561054b57600080fd5b506103d261055a366004613d3a565b611627565b34801561056b57600080fd5b506103d261057a366004613d83565b6116d1565b34801561058b57600080fd5b5061038d61059a3660046139da565b611869565b3480156105ab57600080fd5b506103e56105ba366004613be9565b611901565b3480156105cb57600080fd5b506103d26119b5565b3480156105e057600080fd5b506103d26105ef366004613dc6565b611a28565b34801561060057600080fd5b506103e560155481565b6103d2611ad6565b34801561061e57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661038d565b34801561064957600080fd5b50601f5461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561067657600080fd5b506103e560135481565b34801561068c57600080fd5b506103e560115481565b3480156106a257600080fd5b5060205461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106cf57600080fd5b50610360611ce2565b3480156106e457600080fd5b506103d26106f3366004613de8565b611cf1565b34801561070457600080fd5b506103e560125481565b34801561071a57600080fd5b506103e560185481565b34801561073057600080fd5b506103d261073f366004613e24565b611d00565b34801561075057600080fd5b506103e560145481565b34801561076657600080fd5b506103606107753660046139da565b611d8e565b34801561078657600080fd5b506103e560235481565b34801561079c57600080fd5b506103e560165481565b6103d26107b4366004613ea0565b611e84565b3480156107c557600080fd5b506103e560225481565b3480156107db57600080fd5b506103166107ea366004613f1f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561083157600080fd5b50601e5461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561085e57600080fd5b506103d261086d3660046139da565b6125da565b34801561087e57600080fd5b506103d261088d366004613be9565b6126e8565b34801561089e57600080fd5b506103e560175481565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1615155b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108d057506108d08261280a565b60606000805461093b90613f52565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613f52565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a8e82611869565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a51565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b5b5750610b5b81336107ea565b610bcd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a51565b610bd783836128ed565b505050565b610be7335b8261298d565b610c595760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a51565b610bd7838383612ae3565b6002600b541415610cb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b5580333214610cc957600080fd5b6000600d5460ff166003811115610ce257610ce2613b1a565b1415610d305760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610a51565b600060155411610d825760405162461bcd60e51b815260206004820152601660248201527f436f6c6c656374696f6e20697320736f6c64206f7574000000000000000000006044820152606401610a51565b601554811115610dd45760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b60008111610e4a5760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e60448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a51565b600d54601a9060ff166003811115610e6457610e64613b1a565b60048110610e7457610e74613fa6565b0154811115610eeb5760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b80601954610ef99190614004565b3414610f475760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610a51565b6003600d5460ff166003811115610f6057610f60613b1a565b14610fad5760405162461bcd60e51b815260206004820152601460248201527f537461747573206973206e6f74207075626c69630000000000000000000000006044820152606401610a51565b610fb682612d21565b50506001600b55565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146110265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b60038160ff1611156110a05760405162461bcd60e51b815260206004820152602360248201527f4d696e7420737461747573206d757374206265206265747765656e203020616e60448201527f64203300000000000000000000000000000000000000000000000000000000006064820152608401610a51565b8060ff1660038111156110b5576110b5613b1a565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360038111156110ef576110ef613b1a565b021790555060405160ff821681527f4cc5ea37df50e6ca53a9b0b7897785aac7fbd6e69b095d62b7df79f291a0a678906020015b60405180910390a150565b600061113983611901565b82106111ad5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610a51565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b610bd783838360405180602001604052806000815250611d00565b61120733610be1565b6112795760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610a51565b61128281612dc1565b50565b6060600061129283611901565b905060008167ffffffffffffffff8111156112af576112af613c77565b6040519080825280602002602001820160405280156112d8578160200160208202803683370190505b50905060005b8281101561131f576112f0858261112e565b82828151811061130257611302613fa6565b60209081029190910101528061131781614041565b9150506112de565b509392505050565b336000908152602160205260408120600d546060929182918291829160ff16600381111561135757611357613b1a565b6004811061136757611367613fa6565b0154600d54909150600090601a9060ff16600381111561138957611389613b1a565b6004811061139957611399613fa6565b0154905060006113a9838361407a565b601954601554919250906113ff5760408051808201909152600881527f534f4c445f4f55540000000000000000000000000000000000000000000000006020820152975060009650945085935061157d92505050565b6003600d5460ff16600381111561141857611418613b1a565b14156114675760155460408051808201909152600681527f5055424c4943000000000000000000000000000000000000000000000000000060208201529850929650945090925061157d915050565b6001600d5460ff16600381111561148057611480613b1a565b14156114ce5760175460408051808201909152600881527f50524553414c4531000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b6002600d5460ff1660038111156114e7576114e7613b1a565b14156115355760185460408051808201909152600881527f50524553414c4532000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b60155460408051808201909152600681527f434c4f5345440000000000000000000000000000000000000000000000000000602082015298509196509450925061157d915050565b90919293565b600061158e60085490565b82106116025760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610a51565b6008828154811061161557611615613fa6565b90600052602060002001549050919050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461168e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b80516116a1906010906020840190613941565b507f744d1924de3e532e3230010491d50f9d3a13f8cf2f675452046ec3cee64a02dd816040516111239190613ab4565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146117385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff831615801590611772575073ffffffffffffffffffffffffffffffffffffffff821615155b8015611793575073ffffffffffffffffffffffffffffffffffffffff811615155b6118055760405162461bcd60e51b815260206004820152602660248201527f4f6e65206f6620746865206164647265737320697320746865206275746e206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a51565b601e805473ffffffffffffffffffffffffffffffffffffffff9485167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155601f80549385169382169390931790925560208054919093169116179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a51565b600073ffffffffffffffffffffffffffffffffffffffff821661198c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a51565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a1c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b611a266000612e9a565b565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b6022829055602381905560408051838152602081018390527ffc62dec71bf18767efd3058bd1cdbce9c7860df1c7910604e924b70f87bc6976910160405180910390a15050565b6002600b541415611b295760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b55600a5473ffffffffffffffffffffffffffffffffffffffff163314611b955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b47611be25760405162461bcd60e51b815260206004820152600f60248201527f42616c616e6365206973207a65726f00000000000000000000000000000000006044820152606401610a51565b601e54479073ffffffffffffffffffffffffffffffffffffffff166108fc6064611c0d846014614004565b611c1791906140c0565b6040518115909202916000818181858888f19350505050158015611c3f573d6000803e3d6000fd5b50601f5473ffffffffffffffffffffffffffffffffffffffff166108fc6064611c69846002614004565b611c7391906140c0565b6040518115909202916000818181858888f19350505050158015611c9b573d6000803e3d6000fd5b5060205460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610fb6573d6000803e3d6000fd5b60606001805461093b90613f52565b611cfc338383612f11565b5050565b611d0a338361298d565b611d7c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a51565b611d8884848484613025565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611e285760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a51565b6000611e326130ae565b90506000815111611e525760405180602001604052806000815250611e7d565b80611e5c846130bd565b604051602001611e6d9291906140d4565b6040516020818303038152906040525b9392505050565b6002600b541415611ed75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a51565b6002600b5582333214611ee957600080fd5b6000600d5460ff166003811115611f0257611f02613b1a565b1415611f505760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610a51565b600060155411611fa25760405162461bcd60e51b815260206004820152601660248201527f436f6c6c656374696f6e20697320736f6c64206f7574000000000000000000006044820152606401610a51565b601554811115611ff45760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b6000811161206a5760405162461bcd60e51b815260206004820152602560248201527f4e46547320616d6f756e74206d7573742062652067726561746572207468616e60448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a51565b600d54601a9060ff16600381111561208457612084613b1a565b6004811061209457612094613fa6565b015481111561210b5760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b806019546121199190614004565b34146121675760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610a51565b6001600d5460ff16600381111561218057612180613b1a565b14806121a257506002600d5460ff1660038111156121a0576121a0613b1a565b145b6121ee5760405162461bcd60e51b815260206004820152601560248201527f537461747573206973206e6f742070726573616c6500000000000000000000006044820152606401610a51565b600d54601a9060ff16600381111561220857612208613b1a565b6004811061221857612218613fa6565b0154336000908152602160205260409020600d5460ff16600381111561224057612240613b1a565b6004811061225057612250613fa6565b015461225c9086614103565b11156122d05760405162461bcd60e51b815260206004820152602760248201527f457863656564656420746865206d617820616d6f756e74206f66206d696e746160448201527f626c65204e4654000000000000000000000000000000000000000000000000006064820152608401610a51565b6001600d5460ff1660038111156122e9576122e9613b1a565b141561245957612378838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506022546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015290925060340190505b604051602081830303815290604052805190602001206131ef565b6123ea5760405162461bcd60e51b815260206004820152602d60248201527f596f7520617265206e6f7420696e20746865206669727374207068617365206f60448201527f66207468652070726573616c65000000000000000000000000000000000000006064820152608401610a51565b60175484111561243c5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b836017600082825461244e919061407a565b909155506125c69050565b6002600d5460ff16600381111561247257612472613b1a565b14156125c6576124ea838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506023546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152909250603401905061235d565b61255c5760405162461bcd60e51b815260206004820152602e60248201527f596f7520617265206e6f7420696e20746865207365636f6e642070686173652060448201527f6f66207468652070726573616c650000000000000000000000000000000000006064820152608401610a51565b6018548411156125ae5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b83601860008282546125c0919061407a565b90915550505b6125cf84612d21565b50506001600b555050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146126415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b6016548111156126935760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204e46547320617661696c61626c65000000000000006044820152606401610a51565b80601660008282546126a5919061407a565b90915550600090505b81811015611cfc576126c4600c80546001019055565b6126d6336126d1600c5490565b613205565b806126e081614041565b9150506126ae565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461274f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff81166127d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a51565b61128281612e9a565b80546001019055565b5490565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061289d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108d0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061294782611869565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a51565b6000612a2f83611869565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9e57508373ffffffffffffffffffffffffffffffffffffffff16612a86846109be565b73ffffffffffffffffffffffffffffffffffffffff16145b80612adb575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612b0382611869565b73ffffffffffffffffffffffffffffffffffffffff1614612b8c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a51565b73ffffffffffffffffffffffffffffffffffffffff8216612c145760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a51565b612c1f83838361321f565b612c2a6000826128ed565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612c6090849061407a565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612c9b908490614103565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b336000908152602160205260409020600d5482919060ff166003811115612d4a57612d4a613b1a565b60048110612d5a57612d5a613fa6565b016000828254612d6a9190614103565b925050819055508060156000828254612d83919061407a565b90915550600090505b81811015611cfc57612da2600c80546001019055565b612daf336126d1600c5490565b80612db981614041565b915050612d8c565b6000612dcc82611869565b9050612dda8160008461321f565b612de56000836128ed565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612e1b90849061407a565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f8d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a51565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613030848484612ae3565b61303c84848484613325565b611d885760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b60606010805461093b90613f52565b6060816130fd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613127578061311181614041565b91506131209050600a836140c0565b9150613101565b60008167ffffffffffffffff81111561314257613142613c77565b6040519080825280601f01601f19166020018201604052801561316c576020820181803683370190505b5090505b8415612adb5761318160018361407a565b915061318e600a8661411b565b613199906030614103565b60f81b8183815181106131ae576131ae613fa6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131e8600a866140c0565b9450613170565b6000826131fc85846134fb565b14949350505050565b611cfc828260405180602001604052806000815250613567565b73ffffffffffffffffffffffffffffffffffffffff83166132875761328281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6132c4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132c4576132c483826135f0565b73ffffffffffffffffffffffffffffffffffffffff82166132e857610bd7816136a7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610bd757610bd78282613756565b600073ffffffffffffffffffffffffffffffffffffffff84163b156134f0576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061339c90339089908890889060040161412f565b6020604051808303816000875af19250505080156133f5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526133f291810190614178565b60015b6134a5573d808015613423576040519150601f19603f3d011682016040523d82523d6000602084013e613428565b606091505b50805161349d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612adb565b506001949350505050565b600081815b845181101561131f57600085828151811061351d5761351d613fa6565b602002602001015190508083116135435760008381526020829052604090209250613554565b600081815260208490526040902092505b508061355f81614041565b915050613500565b61357183836137a7565b61357e6000848484613325565b610bd75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a51565b600060016135fd84611901565b613607919061407a565b6000838152600760205260409020549091508082146136675773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906136b99060019061407a565b600083815260096020526040812054600880549394509092849081106136e1576136e1613fa6565b90600052602060002001549050806008838154811061370257613702613fa6565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061373a5761373a614195565b6001900381819060005260206000200160009055905550505050565b600061376183611901565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff821661380a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a51565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561387c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a51565b6138886000838361321f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906138be908490614103565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461394d90613f52565b90600052602060002090601f01602090048101928261396f57600085556139b5565b82601f1061398857805160ff19168380011785556139b5565b828001600101855582156139b5579182015b828111156139b557825182559160200191906001019061399a565b506139c19291506139c5565b5090565b5b808211156139c157600081556001016139c6565b6000602082840312156139ec57600080fd5b5035919050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461128257600080fd5b600060208284031215613a3357600080fd5b8135611e7d816139f3565b60005b83811015613a59578181015183820152602001613a41565b83811115611d885750506000910152565b60008151808452613a82816020860160208601613a3e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611e7d6020830184613a6a565b803573ffffffffffffffffffffffffffffffffffffffff81168114613aeb57600080fd5b919050565b60008060408385031215613b0357600080fd5b613b0c83613ac7565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613b84577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600060608486031215613b9f57600080fd5b613ba884613ac7565b9250613bb660208501613ac7565b9150604084013590509250925092565b600060208284031215613bd857600080fd5b813560ff81168114611e7d57600080fd5b600060208284031215613bfb57600080fd5b611e7d82613ac7565b6020808252825182820181905260009190848201906040850190845b81811015613c3c57835183529284019291840191600101613c20565b50909695505050505050565b608081526000613c5b6080830187613a6a565b6020830195909552506040810192909252606090910152919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613cc157613cc1613c77565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613d0757613d07613c77565b81604052809350858152868686011115613d2057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613d4c57600080fd5b813567ffffffffffffffff811115613d6357600080fd5b8201601f81018413613d7457600080fd5b612adb84823560208401613ca6565b600080600060608486031215613d9857600080fd5b613da184613ac7565b9250613daf60208501613ac7565b9150613dbd60408501613ac7565b90509250925092565b60008060408385031215613dd957600080fd5b50508035926020909101359150565b60008060408385031215613dfb57600080fd5b613e0483613ac7565b915060208301358015158114613e1957600080fd5b809150509250929050565b60008060008060808587031215613e3a57600080fd5b613e4385613ac7565b9350613e5160208601613ac7565b925060408501359150606085013567ffffffffffffffff811115613e7457600080fd5b8501601f81018713613e8557600080fd5b613e9487823560208401613ca6565b91505092959194509250565b600080600060408486031215613eb557600080fd5b83359250602084013567ffffffffffffffff80821115613ed457600080fd5b818601915086601f830112613ee857600080fd5b813581811115613ef757600080fd5b8760208260051b8501011115613f0c57600080fd5b6020830194508093505050509250925092565b60008060408385031215613f3257600080fd5b613f3b83613ac7565b9150613f4960208401613ac7565b90509250929050565b600181811c90821680613f6657607f821691505b60208210811415613fa0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561403c5761403c613fd5565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561407357614073613fd5565b5060010190565b60008282101561408c5761408c613fd5565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826140cf576140cf614091565b500490565b600083516140e6818460208801613a3e565b8351908301906140fa818360208801613a3e565b01949350505050565b6000821982111561411657614116613fd5565b500190565b60008261412a5761412a614091565b500690565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261416e6080830184613a6a565b9695505050505050565b60006020828403121561418a57600080fd5b8151611e7d816139f3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203dfaf0e457a131f49f5a76906cd660285e85fcd9c958f8d362e9d0268736be4d64736f6c634300080b0033

Loading...
Loading
Loading...
Loading
[ 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.