ETH Price: $3,107.30 (-0.27%)

Token

AES Apes (AES1)
 

Overview

Max Total Supply

430 AES1

Holders

134

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
thebunk.eth
Balance
10 AES1
0x002a5920e786596381dc318544ed77047f54d56a
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:
AES1

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : AES1.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

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

contract AES1 is ERC721Enumerable, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;
    
    Counters.Counter private _tokenIds;
    
    uint public constant MAX_SUPPLY = 10435;
    uint public constant PRICE = 0.07 ether;
    uint public constant MAX_PER_MINT = 50;
    
    string public baseTokenURI;
    
    constructor(string memory baseURI) ERC721("AES Apes", "AES1") {
        setBaseURI(baseURI);
    }
    
    function reserveNFTs() public onlyOwner {
        uint totalMinted = _tokenIds.current();

        require(totalMinted.add(30) < MAX_SUPPLY, "Not enough NFTs left to reserve");

        for (uint i = 0; i < 30; i++) {
            _mintSingleNFT();
        }
    }
    
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
    
    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }
    
    function mintNFTs(uint _count) public payable {
        uint totalMinted = _tokenIds.current();

        require(totalMinted.add(_count) <= MAX_SUPPLY, "Not enough NFTs left!");
        require(_count >0 && _count <= MAX_PER_MINT, "Cannot mint specified number of NFTs.");
        require(msg.value >= PRICE.mul(_count), "Not enough ether to purchase NFTs.");

        for (uint i = 0; i < _count; i++) {
            _mintSingleNFT();
        }
    }
    
    function _mintSingleNFT() private {
        uint newTokenID = _tokenIds.current();
        _safeMint(msg.sender, newTokenID);
        _tokenIds.increment();
    }
    
    function tokensOfOwner(address _owner) external view returns (uint[] memory) {

        uint tokenCount = balanceOf(_owner);
        uint[] memory tokensId = new uint256[](tokenCount);

        for (uint i = 0; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }
    
     address private constant payoutAddress1 =
        0xa0e17E640fA14677b455349d03c93F94A0ebcA9f;
    address private constant payoutAddress2 =
        0xb613FB04cE314B401E9A3b226A29a47d293E7E19;
    address private constant payoutAddress3 =
        0x7DF1Ce077D75709A0fC0E0A61f1E157c2b226BFd;


    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(payoutAddress1), balance / 3);
        Address.sendValue(payable(payoutAddress2), balance / 3);
        Address.sendValue(payable(payoutAddress3), balance / 3);
    }
    
}

File 2 of 15 : 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 3 of 15 : 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 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 15 : 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 6 of 15 : 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 7 of 15 : 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 15 : 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 15 : 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 15 : 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 15 : 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 15 : 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 15 : 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 14 of 15 : 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 15 of 15 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620048e4380380620048e48339818101604052810190620000379190620004ff565b6040518060400160405280600881526020017f41455320417065730000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f41455331000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb929190620002b2565b508060019080519060200190620000d4929190620002b2565b505050620000f7620000eb6200010f60201b60201c565b6200011760201b60201c565b6200010881620001dd60201b60201c565b5062000638565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001ed6200010f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002136200028860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200026c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200026390620005b1565b60405180910390fd5b80600c908051906020019062000284929190620002b2565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620002c09062000602565b90600052602060002090601f016020900481019282620002e4576000855562000330565b82601f10620002ff57805160ff191683800117855562000330565b8280016001018555821562000330579182015b828111156200032f57825182559160200191906001019062000312565b5b5090506200033f919062000343565b5090565b5b808211156200035e57600081600090555060010162000344565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003cb8262000380565b810181811067ffffffffffffffff82111715620003ed57620003ec62000391565b5b80604052505050565b60006200040262000362565b9050620004108282620003c0565b919050565b600067ffffffffffffffff82111562000433576200043262000391565b5b6200043e8262000380565b9050602081019050919050565b60005b838110156200046b5780820151818401526020810190506200044e565b838111156200047b576000848401525b50505050565b600062000498620004928462000415565b620003f6565b905082815260208101848484011115620004b757620004b66200037b565b5b620004c48482856200044b565b509392505050565b600082601f830112620004e457620004e362000376565b5b8151620004f684826020860162000481565b91505092915050565b6000602082840312156200051857620005176200036c565b5b600082015167ffffffffffffffff81111562000539576200053862000371565b5b6200054784828501620004cc565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200059960208362000550565b9150620005a68262000561565b602082019050919050565b60006020820190508181036000830152620005cc816200058a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061b57607f821691505b60208210811415620006325762000631620005d3565b5b50919050565b61429c80620006486000396000f3fe6080604052600436106101b75760003560e01c806355f804b3116100ec57806395d89b411161008a578063c87b56dd11610064578063c87b56dd146105eb578063d547cfb714610628578063e985e9c514610653578063f2fde38b14610690576101b7565b806395d89b411461056e578063a22cb46514610599578063b88d4fde146105c2576101b7565b8063715018a6116100c6578063715018a6146104c45780638462151c146104db5780638d859f3e146105185780638da5cb5b14610543576101b7565b806355f804b3146104215780636352211e1461044a57806370a0823114610487576101b7565b806323b872dd116101595780633b4b1381116101335780633b4b1381146103885780633ccfd60b146103a457806342842e0e146103bb5780634f6ccce7146103e4576101b7565b806323b872dd146102f75780632f745c591461032057806332cb6b0c1461035d576101b7565b8063095ea7b311610195578063095ea7b31461026157806309d42b301461028a578063144100c7146102b557806318160ddd146102cc576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612a6a565b6106b9565b6040516101f09190612ab2565b60405180910390f35b34801561020557600080fd5b5061020e610733565b60405161021b9190612b66565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190612bbe565b6107c5565b6040516102589190612c2c565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612c73565b61084a565b005b34801561029657600080fd5b5061029f610962565b6040516102ac9190612cc2565b60405180910390f35b3480156102c157600080fd5b506102ca610967565b005b3480156102d857600080fd5b506102e1610a73565b6040516102ee9190612cc2565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190612cdd565b610a80565b005b34801561032c57600080fd5b5061034760048036038101906103429190612c73565b610ae0565b6040516103549190612cc2565b60405180910390f35b34801561036957600080fd5b50610372610b85565b60405161037f9190612cc2565b60405180910390f35b6103a2600480360381019061039d9190612bbe565b610b8b565b005b3480156103b057600080fd5b506103b9610cc7565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612cdd565b610dc9565b005b3480156103f057600080fd5b5061040b60048036038101906104069190612bbe565b610de9565b6040516104189190612cc2565b60405180910390f35b34801561042d57600080fd5b5061044860048036038101906104439190612e65565b610e5a565b005b34801561045657600080fd5b50610471600480360381019061046c9190612bbe565b610ef0565b60405161047e9190612c2c565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190612eae565b610fa2565b6040516104bb9190612cc2565b60405180910390f35b3480156104d057600080fd5b506104d961105a565b005b3480156104e757600080fd5b5061050260048036038101906104fd9190612eae565b6110e2565b60405161050f9190612f99565b60405180910390f35b34801561052457600080fd5b5061052d611190565b60405161053a9190612cc2565b60405180910390f35b34801561054f57600080fd5b5061055861119b565b6040516105659190612c2c565b60405180910390f35b34801561057a57600080fd5b506105836111c5565b6040516105909190612b66565b60405180910390f35b3480156105a557600080fd5b506105c060048036038101906105bb9190612fe7565b611257565b005b3480156105ce57600080fd5b506105e960048036038101906105e491906130c8565b61126d565b005b3480156105f757600080fd5b50610612600480360381019061060d9190612bbe565b6112cf565b60405161061f9190612b66565b60405180910390f35b34801561063457600080fd5b5061063d611376565b60405161064a9190612b66565b60405180910390f35b34801561065f57600080fd5b5061067a6004803603810190610675919061314b565b611404565b6040516106879190612ab2565b60405180910390f35b34801561069c57600080fd5b506106b760048036038101906106b29190612eae565b611498565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072c575061072b82611590565b5b9050919050565b606060008054610742906131ba565b80601f016020809104026020016040519081016040528092919081815260200182805461076e906131ba565b80156107bb5780601f10610790576101008083540402835291602001916107bb565b820191906000526020600020905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b60006107d082611672565b61080f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108069061325e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061085582610ef0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bd906132f0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108e56116de565b73ffffffffffffffffffffffffffffffffffffffff16148061091457506109138161090e6116de565b611404565b5b610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a90613382565b60405180910390fd5b61095d83836116e6565b505050565b603281565b61096f6116de565b73ffffffffffffffffffffffffffffffffffffffff1661098d61119b565b73ffffffffffffffffffffffffffffffffffffffff16146109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da906133ee565b60405180910390fd5b60006109ef600b61179f565b90506128c3610a08601e836117ad90919063ffffffff16565b10610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f9061345a565b60405180910390fd5b60005b601e811015610a6f57610a5c6117c3565b8080610a67906134a9565b915050610a4b565b5050565b6000600880549050905090565b610a91610a8b6116de565b826117e8565b610ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac790613564565b60405180910390fd5b610adb8383836118c6565b505050565b6000610aeb83610fa2565b8210610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b23906135f6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6128c381565b6000610b97600b61179f565b90506128c3610baf83836117ad90919063ffffffff16565b1115610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790613662565b60405180910390fd5b600082118015610c01575060328211155b610c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c37906136f4565b60405180910390fd5b610c5a8266f8b0a10e470000611b2d90919063ffffffff16565b341015610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9390613786565b60405180910390fd5b60005b82811015610cc257610caf6117c3565b8080610cba906134a9565b915050610c9f565b505050565b610ccf6116de565b73ffffffffffffffffffffffffffffffffffffffff16610ced61119b565b73ffffffffffffffffffffffffffffffffffffffff1614610d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a906133ee565b60405180910390fd5b6000479050610d7273a0e17e640fa14677b455349d03c93f94a0ebca9f600383610d6d91906137d5565b611b43565b610d9c73b613fb04ce314b401e9a3b226a29a47d293e7e19600383610d9791906137d5565b611b43565b610dc6737df1ce077d75709a0fc0e0a61f1e157c2b226bfd600383610dc191906137d5565b611b43565b50565b610de48383836040518060200160405280600081525061126d565b505050565b6000610df3610a73565b8210610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90613878565b60405180910390fd5b60088281548110610e4857610e47613898565b5b90600052602060002001549050919050565b610e626116de565b73ffffffffffffffffffffffffffffffffffffffff16610e8061119b565b73ffffffffffffffffffffffffffffffffffffffff1614610ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecd906133ee565b60405180910390fd5b80600c9080519060200190610eec92919061295b565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9090613939565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a906139cb565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110626116de565b73ffffffffffffffffffffffffffffffffffffffff1661108061119b565b73ffffffffffffffffffffffffffffffffffffffff16146110d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cd906133ee565b60405180910390fd5b6110e06000611c37565b565b606060006110ef83610fa2565b905060008167ffffffffffffffff81111561110d5761110c612d3a565b5b60405190808252806020026020018201604052801561113b5781602001602082028036833780820191505090505b50905060005b82811015611185576111538582610ae0565b82828151811061116657611165613898565b5b602002602001018181525050808061117d906134a9565b915050611141565b508092505050919050565b66f8b0a10e47000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111d4906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611200906131ba565b801561124d5780601f106112225761010080835404028352916020019161124d565b820191906000526020600020905b81548152906001019060200180831161123057829003601f168201915b5050505050905090565b6112696112626116de565b8383611cfd565b5050565b61127e6112786116de565b836117e8565b6112bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b490613564565b60405180910390fd5b6112c984848484611e6a565b50505050565b60606112da82611672565b611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090613a5d565b60405180910390fd5b6000611323611ec6565b90506000815111611343576040518060200160405280600081525061136e565b8061134d84611f58565b60405160200161135e929190613ab9565b6040516020818303038152906040525b915050919050565b600c8054611383906131ba565b80601f01602080910402602001604051908101604052809291908181526020018280546113af906131ba565b80156113fc5780601f106113d1576101008083540402835291602001916113fc565b820191906000526020600020905b8154815290600101906020018083116113df57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6114a06116de565b73ffffffffffffffffffffffffffffffffffffffff166114be61119b565b73ffffffffffffffffffffffffffffffffffffffff1614611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150b906133ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157b90613b4f565b60405180910390fd5b61158d81611c37565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061165b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061166b575061166a826120b9565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661175983610ef0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b600081836117bb9190613b6f565b905092915050565b60006117cf600b61179f565b90506117db3382612123565b6117e5600b612141565b50565b60006117f382611672565b611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182990613c37565b60405180910390fd5b600061183d83610ef0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118ac57508373ffffffffffffffffffffffffffffffffffffffff16611894846107c5565b73ffffffffffffffffffffffffffffffffffffffff16145b806118bd57506118bc8185611404565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166118e682610ef0565b73ffffffffffffffffffffffffffffffffffffffff161461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390613cc9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a390613d5b565b60405180910390fd5b6119b7838383612157565b6119c26000826116e6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a129190613d7b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a699190613b6f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b2883838361226b565b505050565b60008183611b3b9190613daf565b905092915050565b80471015611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90613e55565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bac90613ea6565b60006040518083038185875af1925050503d8060008114611be9576040519150601f19603f3d011682016040523d82523d6000602084013e611bee565b606091505b5050905080611c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2990613f2d565b60405180910390fd5b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6390613f99565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e5d9190612ab2565b60405180910390a3505050565b611e758484846118c6565b611e8184848484612270565b611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb79061402b565b60405180910390fd5b50505050565b6060600c8054611ed5906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611f01906131ba565b8015611f4e5780601f10611f2357610100808354040283529160200191611f4e565b820191906000526020600020905b815481529060010190602001808311611f3157829003601f168201915b5050505050905090565b60606000821415611fa0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120b4565b600082905060005b60008214611fd2578080611fbb906134a9565b915050600a82611fcb91906137d5565b9150611fa8565b60008167ffffffffffffffff811115611fee57611fed612d3a565b5b6040519080825280601f01601f1916602001820160405280156120205781602001600182028036833780820191505090505b5090505b600085146120ad576001826120399190613d7b565b9150600a85612048919061404b565b60306120549190613b6f565b60f81b81838151811061206a57612069613898565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856120a691906137d5565b9450612024565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61213d8282604051806020016040528060008152506123f8565b5050565b6001816000016000828254019250508190555050565b612162838383612453565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121a5576121a081612458565b6121e4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146121e3576121e283826124a1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612227576122228161260e565b612266565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146122655761226482826126df565b5b5b505050565b505050565b60006122918473ffffffffffffffffffffffffffffffffffffffff1661275e565b156123eb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122ba6116de565b8786866040518563ffffffff1660e01b81526004016122dc94939291906140d1565b6020604051808303816000875af192505050801561231857506040513d601f19601f820116820180604052508101906123159190614132565b60015b61239b573d8060008114612348576040519150601f19603f3d011682016040523d82523d6000602084013e61234d565b606091505b50600081511415612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a9061402b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506123f0565b600190505b949350505050565b6124028383612781565b61240f6000848484612270565b61244e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124459061402b565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016124ae84610fa2565b6124b89190613d7b565b905060006007600084815260200190815260200160002054905081811461259d576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506126229190613d7b565b905060006009600084815260200190815260200160002054905060006008838154811061265257612651613898565b5b90600052602060002001549050806008838154811061267457612673613898565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126c3576126c261415f565b5b6001900381819060005260206000200160009055905550505050565b60006126ea83610fa2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e8906141da565b60405180910390fd5b6127fa81611672565b1561283a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283190614246565b60405180910390fd5b61284660008383612157565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128969190613b6f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129576000838361226b565b5050565b828054612967906131ba565b90600052602060002090601f01602090048101928261298957600085556129d0565b82601f106129a257805160ff19168380011785556129d0565b828001600101855582156129d0579182015b828111156129cf5782518255916020019190600101906129b4565b5b5090506129dd91906129e1565b5090565b5b808211156129fa5760008160009055506001016129e2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a4781612a12565b8114612a5257600080fd5b50565b600081359050612a6481612a3e565b92915050565b600060208284031215612a8057612a7f612a08565b5b6000612a8e84828501612a55565b91505092915050565b60008115159050919050565b612aac81612a97565b82525050565b6000602082019050612ac76000830184612aa3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612b07578082015181840152602081019050612aec565b83811115612b16576000848401525b50505050565b6000601f19601f8301169050919050565b6000612b3882612acd565b612b428185612ad8565b9350612b52818560208601612ae9565b612b5b81612b1c565b840191505092915050565b60006020820190508181036000830152612b808184612b2d565b905092915050565b6000819050919050565b612b9b81612b88565b8114612ba657600080fd5b50565b600081359050612bb881612b92565b92915050565b600060208284031215612bd457612bd3612a08565b5b6000612be284828501612ba9565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c1682612beb565b9050919050565b612c2681612c0b565b82525050565b6000602082019050612c416000830184612c1d565b92915050565b612c5081612c0b565b8114612c5b57600080fd5b50565b600081359050612c6d81612c47565b92915050565b60008060408385031215612c8a57612c89612a08565b5b6000612c9885828601612c5e565b9250506020612ca985828601612ba9565b9150509250929050565b612cbc81612b88565b82525050565b6000602082019050612cd76000830184612cb3565b92915050565b600080600060608486031215612cf657612cf5612a08565b5b6000612d0486828701612c5e565b9350506020612d1586828701612c5e565b9250506040612d2686828701612ba9565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d7282612b1c565b810181811067ffffffffffffffff82111715612d9157612d90612d3a565b5b80604052505050565b6000612da46129fe565b9050612db08282612d69565b919050565b600067ffffffffffffffff821115612dd057612dcf612d3a565b5b612dd982612b1c565b9050602081019050919050565b82818337600083830152505050565b6000612e08612e0384612db5565b612d9a565b905082815260208101848484011115612e2457612e23612d35565b5b612e2f848285612de6565b509392505050565b600082601f830112612e4c57612e4b612d30565b5b8135612e5c848260208601612df5565b91505092915050565b600060208284031215612e7b57612e7a612a08565b5b600082013567ffffffffffffffff811115612e9957612e98612a0d565b5b612ea584828501612e37565b91505092915050565b600060208284031215612ec457612ec3612a08565b5b6000612ed284828501612c5e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f1081612b88565b82525050565b6000612f228383612f07565b60208301905092915050565b6000602082019050919050565b6000612f4682612edb565b612f508185612ee6565b9350612f5b83612ef7565b8060005b83811015612f8c578151612f738882612f16565b9750612f7e83612f2e565b925050600181019050612f5f565b5085935050505092915050565b60006020820190508181036000830152612fb38184612f3b565b905092915050565b612fc481612a97565b8114612fcf57600080fd5b50565b600081359050612fe181612fbb565b92915050565b60008060408385031215612ffe57612ffd612a08565b5b600061300c85828601612c5e565b925050602061301d85828601612fd2565b9150509250929050565b600067ffffffffffffffff82111561304257613041612d3a565b5b61304b82612b1c565b9050602081019050919050565b600061306b61306684613027565b612d9a565b90508281526020810184848401111561308757613086612d35565b5b613092848285612de6565b509392505050565b600082601f8301126130af576130ae612d30565b5b81356130bf848260208601613058565b91505092915050565b600080600080608085870312156130e2576130e1612a08565b5b60006130f087828801612c5e565b945050602061310187828801612c5e565b935050604061311287828801612ba9565b925050606085013567ffffffffffffffff81111561313357613132612a0d565b5b61313f8782880161309a565b91505092959194509250565b6000806040838503121561316257613161612a08565b5b600061317085828601612c5e565b925050602061318185828601612c5e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131d257607f821691505b602082108114156131e6576131e561318b565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613248602c83612ad8565b9150613253826131ec565b604082019050919050565b600060208201905081810360008301526132778161323b565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006132da602183612ad8565b91506132e58261327e565b604082019050919050565b60006020820190508181036000830152613309816132cd565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061336c603883612ad8565b915061337782613310565b604082019050919050565b6000602082019050818103600083015261339b8161335f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133d8602083612ad8565b91506133e3826133a2565b602082019050919050565b60006020820190508181036000830152613407816133cb565b9050919050565b7f4e6f7420656e6f756768204e465473206c65667420746f207265736572766500600082015250565b6000613444601f83612ad8565b915061344f8261340e565b602082019050919050565b6000602082019050818103600083015261347381613437565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134b482612b88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134e7576134e661347a565b5b600182019050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061354e603183612ad8565b9150613559826134f2565b604082019050919050565b6000602082019050818103600083015261357d81613541565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006135e0602b83612ad8565b91506135eb82613584565b604082019050919050565b6000602082019050818103600083015261360f816135d3565b9050919050565b7f4e6f7420656e6f756768204e465473206c656674210000000000000000000000600082015250565b600061364c601583612ad8565b915061365782613616565b602082019050919050565b6000602082019050818103600083015261367b8161363f565b9050919050565b7f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060008201527f4e4654732e000000000000000000000000000000000000000000000000000000602082015250565b60006136de602583612ad8565b91506136e982613682565b604082019050919050565b6000602082019050818103600083015261370d816136d1565b9050919050565b7f4e6f7420656e6f75676820657468657220746f207075726368617365204e465460008201527f732e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613770602283612ad8565b915061377b82613714565b604082019050919050565b6000602082019050818103600083015261379f81613763565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006137e082612b88565b91506137eb83612b88565b9250826137fb576137fa6137a6565b5b828204905092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613862602c83612ad8565b915061386d82613806565b604082019050919050565b6000602082019050818103600083015261389181613855565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613923602983612ad8565b915061392e826138c7565b604082019050919050565b6000602082019050818103600083015261395281613916565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006139b5602a83612ad8565b91506139c082613959565b604082019050919050565b600060208201905081810360008301526139e4816139a8565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613a47602f83612ad8565b9150613a52826139eb565b604082019050919050565b60006020820190508181036000830152613a7681613a3a565b9050919050565b600081905092915050565b6000613a9382612acd565b613a9d8185613a7d565b9350613aad818560208601612ae9565b80840191505092915050565b6000613ac58285613a88565b9150613ad18284613a88565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b39602683612ad8565b9150613b4482613add565b604082019050919050565b60006020820190508181036000830152613b6881613b2c565b9050919050565b6000613b7a82612b88565b9150613b8583612b88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613bba57613bb961347a565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613c21602c83612ad8565b9150613c2c82613bc5565b604082019050919050565b60006020820190508181036000830152613c5081613c14565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613cb3602583612ad8565b9150613cbe82613c57565b604082019050919050565b60006020820190508181036000830152613ce281613ca6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613d45602483612ad8565b9150613d5082613ce9565b604082019050919050565b60006020820190508181036000830152613d7481613d38565b9050919050565b6000613d8682612b88565b9150613d9183612b88565b925082821015613da457613da361347a565b5b828203905092915050565b6000613dba82612b88565b9150613dc583612b88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613dfe57613dfd61347a565b5b828202905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613e3f601d83612ad8565b9150613e4a82613e09565b602082019050919050565b60006020820190508181036000830152613e6e81613e32565b9050919050565b600081905092915050565b50565b6000613e90600083613e75565b9150613e9b82613e80565b600082019050919050565b6000613eb182613e83565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613f17603a83612ad8565b9150613f2282613ebb565b604082019050919050565b60006020820190508181036000830152613f4681613f0a565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613f83601983612ad8565b9150613f8e82613f4d565b602082019050919050565b60006020820190508181036000830152613fb281613f76565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614015603283612ad8565b915061402082613fb9565b604082019050919050565b6000602082019050818103600083015261404481614008565b9050919050565b600061405682612b88565b915061406183612b88565b925082614071576140706137a6565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006140a38261407c565b6140ad8185614087565b93506140bd818560208601612ae9565b6140c681612b1c565b840191505092915050565b60006080820190506140e66000830187612c1d565b6140f36020830186612c1d565b6141006040830185612cb3565b81810360608301526141128184614098565b905095945050505050565b60008151905061412c81612a3e565b92915050565b60006020828403121561414857614147612a08565b5b60006141568482850161411d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006141c4602083612ad8565b91506141cf8261418e565b602082019050919050565b600060208201905081810360008301526141f3816141b7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614230601c83612ad8565b915061423b826141fa565b602082019050919050565b6000602082019050818103600083015261425f81614223565b905091905056fea26469706673582212204fd45bf33ceca905389edb462353a09192eeb9f2bc03d2bf61784204454701e664736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d59634c645966744c583453574b39526a6f6d4e6d70717167635072474d4c324d7879327058794d39445139422f00000000000000000000

Deployed Bytecode

0x6080604052600436106101b75760003560e01c806355f804b3116100ec57806395d89b411161008a578063c87b56dd11610064578063c87b56dd146105eb578063d547cfb714610628578063e985e9c514610653578063f2fde38b14610690576101b7565b806395d89b411461056e578063a22cb46514610599578063b88d4fde146105c2576101b7565b8063715018a6116100c6578063715018a6146104c45780638462151c146104db5780638d859f3e146105185780638da5cb5b14610543576101b7565b806355f804b3146104215780636352211e1461044a57806370a0823114610487576101b7565b806323b872dd116101595780633b4b1381116101335780633b4b1381146103885780633ccfd60b146103a457806342842e0e146103bb5780634f6ccce7146103e4576101b7565b806323b872dd146102f75780632f745c591461032057806332cb6b0c1461035d576101b7565b8063095ea7b311610195578063095ea7b31461026157806309d42b301461028a578063144100c7146102b557806318160ddd146102cc576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612a6a565b6106b9565b6040516101f09190612ab2565b60405180910390f35b34801561020557600080fd5b5061020e610733565b60405161021b9190612b66565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190612bbe565b6107c5565b6040516102589190612c2c565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612c73565b61084a565b005b34801561029657600080fd5b5061029f610962565b6040516102ac9190612cc2565b60405180910390f35b3480156102c157600080fd5b506102ca610967565b005b3480156102d857600080fd5b506102e1610a73565b6040516102ee9190612cc2565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190612cdd565b610a80565b005b34801561032c57600080fd5b5061034760048036038101906103429190612c73565b610ae0565b6040516103549190612cc2565b60405180910390f35b34801561036957600080fd5b50610372610b85565b60405161037f9190612cc2565b60405180910390f35b6103a2600480360381019061039d9190612bbe565b610b8b565b005b3480156103b057600080fd5b506103b9610cc7565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612cdd565b610dc9565b005b3480156103f057600080fd5b5061040b60048036038101906104069190612bbe565b610de9565b6040516104189190612cc2565b60405180910390f35b34801561042d57600080fd5b5061044860048036038101906104439190612e65565b610e5a565b005b34801561045657600080fd5b50610471600480360381019061046c9190612bbe565b610ef0565b60405161047e9190612c2c565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190612eae565b610fa2565b6040516104bb9190612cc2565b60405180910390f35b3480156104d057600080fd5b506104d961105a565b005b3480156104e757600080fd5b5061050260048036038101906104fd9190612eae565b6110e2565b60405161050f9190612f99565b60405180910390f35b34801561052457600080fd5b5061052d611190565b60405161053a9190612cc2565b60405180910390f35b34801561054f57600080fd5b5061055861119b565b6040516105659190612c2c565b60405180910390f35b34801561057a57600080fd5b506105836111c5565b6040516105909190612b66565b60405180910390f35b3480156105a557600080fd5b506105c060048036038101906105bb9190612fe7565b611257565b005b3480156105ce57600080fd5b506105e960048036038101906105e491906130c8565b61126d565b005b3480156105f757600080fd5b50610612600480360381019061060d9190612bbe565b6112cf565b60405161061f9190612b66565b60405180910390f35b34801561063457600080fd5b5061063d611376565b60405161064a9190612b66565b60405180910390f35b34801561065f57600080fd5b5061067a6004803603810190610675919061314b565b611404565b6040516106879190612ab2565b60405180910390f35b34801561069c57600080fd5b506106b760048036038101906106b29190612eae565b611498565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072c575061072b82611590565b5b9050919050565b606060008054610742906131ba565b80601f016020809104026020016040519081016040528092919081815260200182805461076e906131ba565b80156107bb5780601f10610790576101008083540402835291602001916107bb565b820191906000526020600020905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b60006107d082611672565b61080f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108069061325e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061085582610ef0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bd906132f0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108e56116de565b73ffffffffffffffffffffffffffffffffffffffff16148061091457506109138161090e6116de565b611404565b5b610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a90613382565b60405180910390fd5b61095d83836116e6565b505050565b603281565b61096f6116de565b73ffffffffffffffffffffffffffffffffffffffff1661098d61119b565b73ffffffffffffffffffffffffffffffffffffffff16146109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da906133ee565b60405180910390fd5b60006109ef600b61179f565b90506128c3610a08601e836117ad90919063ffffffff16565b10610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f9061345a565b60405180910390fd5b60005b601e811015610a6f57610a5c6117c3565b8080610a67906134a9565b915050610a4b565b5050565b6000600880549050905090565b610a91610a8b6116de565b826117e8565b610ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac790613564565b60405180910390fd5b610adb8383836118c6565b505050565b6000610aeb83610fa2565b8210610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b23906135f6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6128c381565b6000610b97600b61179f565b90506128c3610baf83836117ad90919063ffffffff16565b1115610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790613662565b60405180910390fd5b600082118015610c01575060328211155b610c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c37906136f4565b60405180910390fd5b610c5a8266f8b0a10e470000611b2d90919063ffffffff16565b341015610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9390613786565b60405180910390fd5b60005b82811015610cc257610caf6117c3565b8080610cba906134a9565b915050610c9f565b505050565b610ccf6116de565b73ffffffffffffffffffffffffffffffffffffffff16610ced61119b565b73ffffffffffffffffffffffffffffffffffffffff1614610d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a906133ee565b60405180910390fd5b6000479050610d7273a0e17e640fa14677b455349d03c93f94a0ebca9f600383610d6d91906137d5565b611b43565b610d9c73b613fb04ce314b401e9a3b226a29a47d293e7e19600383610d9791906137d5565b611b43565b610dc6737df1ce077d75709a0fc0e0a61f1e157c2b226bfd600383610dc191906137d5565b611b43565b50565b610de48383836040518060200160405280600081525061126d565b505050565b6000610df3610a73565b8210610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90613878565b60405180910390fd5b60088281548110610e4857610e47613898565b5b90600052602060002001549050919050565b610e626116de565b73ffffffffffffffffffffffffffffffffffffffff16610e8061119b565b73ffffffffffffffffffffffffffffffffffffffff1614610ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecd906133ee565b60405180910390fd5b80600c9080519060200190610eec92919061295b565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9090613939565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a906139cb565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110626116de565b73ffffffffffffffffffffffffffffffffffffffff1661108061119b565b73ffffffffffffffffffffffffffffffffffffffff16146110d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cd906133ee565b60405180910390fd5b6110e06000611c37565b565b606060006110ef83610fa2565b905060008167ffffffffffffffff81111561110d5761110c612d3a565b5b60405190808252806020026020018201604052801561113b5781602001602082028036833780820191505090505b50905060005b82811015611185576111538582610ae0565b82828151811061116657611165613898565b5b602002602001018181525050808061117d906134a9565b915050611141565b508092505050919050565b66f8b0a10e47000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111d4906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611200906131ba565b801561124d5780601f106112225761010080835404028352916020019161124d565b820191906000526020600020905b81548152906001019060200180831161123057829003601f168201915b5050505050905090565b6112696112626116de565b8383611cfd565b5050565b61127e6112786116de565b836117e8565b6112bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b490613564565b60405180910390fd5b6112c984848484611e6a565b50505050565b60606112da82611672565b611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090613a5d565b60405180910390fd5b6000611323611ec6565b90506000815111611343576040518060200160405280600081525061136e565b8061134d84611f58565b60405160200161135e929190613ab9565b6040516020818303038152906040525b915050919050565b600c8054611383906131ba565b80601f01602080910402602001604051908101604052809291908181526020018280546113af906131ba565b80156113fc5780601f106113d1576101008083540402835291602001916113fc565b820191906000526020600020905b8154815290600101906020018083116113df57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6114a06116de565b73ffffffffffffffffffffffffffffffffffffffff166114be61119b565b73ffffffffffffffffffffffffffffffffffffffff1614611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150b906133ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157b90613b4f565b60405180910390fd5b61158d81611c37565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061165b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061166b575061166a826120b9565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661175983610ef0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b600081836117bb9190613b6f565b905092915050565b60006117cf600b61179f565b90506117db3382612123565b6117e5600b612141565b50565b60006117f382611672565b611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182990613c37565b60405180910390fd5b600061183d83610ef0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118ac57508373ffffffffffffffffffffffffffffffffffffffff16611894846107c5565b73ffffffffffffffffffffffffffffffffffffffff16145b806118bd57506118bc8185611404565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166118e682610ef0565b73ffffffffffffffffffffffffffffffffffffffff161461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390613cc9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a390613d5b565b60405180910390fd5b6119b7838383612157565b6119c26000826116e6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a129190613d7b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a699190613b6f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b2883838361226b565b505050565b60008183611b3b9190613daf565b905092915050565b80471015611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90613e55565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bac90613ea6565b60006040518083038185875af1925050503d8060008114611be9576040519150601f19603f3d011682016040523d82523d6000602084013e611bee565b606091505b5050905080611c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2990613f2d565b60405180910390fd5b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6390613f99565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e5d9190612ab2565b60405180910390a3505050565b611e758484846118c6565b611e8184848484612270565b611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb79061402b565b60405180910390fd5b50505050565b6060600c8054611ed5906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611f01906131ba565b8015611f4e5780601f10611f2357610100808354040283529160200191611f4e565b820191906000526020600020905b815481529060010190602001808311611f3157829003601f168201915b5050505050905090565b60606000821415611fa0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120b4565b600082905060005b60008214611fd2578080611fbb906134a9565b915050600a82611fcb91906137d5565b9150611fa8565b60008167ffffffffffffffff811115611fee57611fed612d3a565b5b6040519080825280601f01601f1916602001820160405280156120205781602001600182028036833780820191505090505b5090505b600085146120ad576001826120399190613d7b565b9150600a85612048919061404b565b60306120549190613b6f565b60f81b81838151811061206a57612069613898565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856120a691906137d5565b9450612024565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61213d8282604051806020016040528060008152506123f8565b5050565b6001816000016000828254019250508190555050565b612162838383612453565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121a5576121a081612458565b6121e4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146121e3576121e283826124a1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612227576122228161260e565b612266565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146122655761226482826126df565b5b5b505050565b505050565b60006122918473ffffffffffffffffffffffffffffffffffffffff1661275e565b156123eb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122ba6116de565b8786866040518563ffffffff1660e01b81526004016122dc94939291906140d1565b6020604051808303816000875af192505050801561231857506040513d601f19601f820116820180604052508101906123159190614132565b60015b61239b573d8060008114612348576040519150601f19603f3d011682016040523d82523d6000602084013e61234d565b606091505b50600081511415612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a9061402b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506123f0565b600190505b949350505050565b6124028383612781565b61240f6000848484612270565b61244e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124459061402b565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016124ae84610fa2565b6124b89190613d7b565b905060006007600084815260200190815260200160002054905081811461259d576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506126229190613d7b565b905060006009600084815260200190815260200160002054905060006008838154811061265257612651613898565b5b90600052602060002001549050806008838154811061267457612673613898565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126c3576126c261415f565b5b6001900381819060005260206000200160009055905550505050565b60006126ea83610fa2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e8906141da565b60405180910390fd5b6127fa81611672565b1561283a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283190614246565b60405180910390fd5b61284660008383612157565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128969190613b6f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129576000838361226b565b5050565b828054612967906131ba565b90600052602060002090601f01602090048101928261298957600085556129d0565b82601f106129a257805160ff19168380011785556129d0565b828001600101855582156129d0579182015b828111156129cf5782518255916020019190600101906129b4565b5b5090506129dd91906129e1565b5090565b5b808211156129fa5760008160009055506001016129e2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a4781612a12565b8114612a5257600080fd5b50565b600081359050612a6481612a3e565b92915050565b600060208284031215612a8057612a7f612a08565b5b6000612a8e84828501612a55565b91505092915050565b60008115159050919050565b612aac81612a97565b82525050565b6000602082019050612ac76000830184612aa3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612b07578082015181840152602081019050612aec565b83811115612b16576000848401525b50505050565b6000601f19601f8301169050919050565b6000612b3882612acd565b612b428185612ad8565b9350612b52818560208601612ae9565b612b5b81612b1c565b840191505092915050565b60006020820190508181036000830152612b808184612b2d565b905092915050565b6000819050919050565b612b9b81612b88565b8114612ba657600080fd5b50565b600081359050612bb881612b92565b92915050565b600060208284031215612bd457612bd3612a08565b5b6000612be284828501612ba9565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c1682612beb565b9050919050565b612c2681612c0b565b82525050565b6000602082019050612c416000830184612c1d565b92915050565b612c5081612c0b565b8114612c5b57600080fd5b50565b600081359050612c6d81612c47565b92915050565b60008060408385031215612c8a57612c89612a08565b5b6000612c9885828601612c5e565b9250506020612ca985828601612ba9565b9150509250929050565b612cbc81612b88565b82525050565b6000602082019050612cd76000830184612cb3565b92915050565b600080600060608486031215612cf657612cf5612a08565b5b6000612d0486828701612c5e565b9350506020612d1586828701612c5e565b9250506040612d2686828701612ba9565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d7282612b1c565b810181811067ffffffffffffffff82111715612d9157612d90612d3a565b5b80604052505050565b6000612da46129fe565b9050612db08282612d69565b919050565b600067ffffffffffffffff821115612dd057612dcf612d3a565b5b612dd982612b1c565b9050602081019050919050565b82818337600083830152505050565b6000612e08612e0384612db5565b612d9a565b905082815260208101848484011115612e2457612e23612d35565b5b612e2f848285612de6565b509392505050565b600082601f830112612e4c57612e4b612d30565b5b8135612e5c848260208601612df5565b91505092915050565b600060208284031215612e7b57612e7a612a08565b5b600082013567ffffffffffffffff811115612e9957612e98612a0d565b5b612ea584828501612e37565b91505092915050565b600060208284031215612ec457612ec3612a08565b5b6000612ed284828501612c5e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f1081612b88565b82525050565b6000612f228383612f07565b60208301905092915050565b6000602082019050919050565b6000612f4682612edb565b612f508185612ee6565b9350612f5b83612ef7565b8060005b83811015612f8c578151612f738882612f16565b9750612f7e83612f2e565b925050600181019050612f5f565b5085935050505092915050565b60006020820190508181036000830152612fb38184612f3b565b905092915050565b612fc481612a97565b8114612fcf57600080fd5b50565b600081359050612fe181612fbb565b92915050565b60008060408385031215612ffe57612ffd612a08565b5b600061300c85828601612c5e565b925050602061301d85828601612fd2565b9150509250929050565b600067ffffffffffffffff82111561304257613041612d3a565b5b61304b82612b1c565b9050602081019050919050565b600061306b61306684613027565b612d9a565b90508281526020810184848401111561308757613086612d35565b5b613092848285612de6565b509392505050565b600082601f8301126130af576130ae612d30565b5b81356130bf848260208601613058565b91505092915050565b600080600080608085870312156130e2576130e1612a08565b5b60006130f087828801612c5e565b945050602061310187828801612c5e565b935050604061311287828801612ba9565b925050606085013567ffffffffffffffff81111561313357613132612a0d565b5b61313f8782880161309a565b91505092959194509250565b6000806040838503121561316257613161612a08565b5b600061317085828601612c5e565b925050602061318185828601612c5e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131d257607f821691505b602082108114156131e6576131e561318b565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613248602c83612ad8565b9150613253826131ec565b604082019050919050565b600060208201905081810360008301526132778161323b565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006132da602183612ad8565b91506132e58261327e565b604082019050919050565b60006020820190508181036000830152613309816132cd565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061336c603883612ad8565b915061337782613310565b604082019050919050565b6000602082019050818103600083015261339b8161335f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133d8602083612ad8565b91506133e3826133a2565b602082019050919050565b60006020820190508181036000830152613407816133cb565b9050919050565b7f4e6f7420656e6f756768204e465473206c65667420746f207265736572766500600082015250565b6000613444601f83612ad8565b915061344f8261340e565b602082019050919050565b6000602082019050818103600083015261347381613437565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134b482612b88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134e7576134e661347a565b5b600182019050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061354e603183612ad8565b9150613559826134f2565b604082019050919050565b6000602082019050818103600083015261357d81613541565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006135e0602b83612ad8565b91506135eb82613584565b604082019050919050565b6000602082019050818103600083015261360f816135d3565b9050919050565b7f4e6f7420656e6f756768204e465473206c656674210000000000000000000000600082015250565b600061364c601583612ad8565b915061365782613616565b602082019050919050565b6000602082019050818103600083015261367b8161363f565b9050919050565b7f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060008201527f4e4654732e000000000000000000000000000000000000000000000000000000602082015250565b60006136de602583612ad8565b91506136e982613682565b604082019050919050565b6000602082019050818103600083015261370d816136d1565b9050919050565b7f4e6f7420656e6f75676820657468657220746f207075726368617365204e465460008201527f732e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613770602283612ad8565b915061377b82613714565b604082019050919050565b6000602082019050818103600083015261379f81613763565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006137e082612b88565b91506137eb83612b88565b9250826137fb576137fa6137a6565b5b828204905092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613862602c83612ad8565b915061386d82613806565b604082019050919050565b6000602082019050818103600083015261389181613855565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613923602983612ad8565b915061392e826138c7565b604082019050919050565b6000602082019050818103600083015261395281613916565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006139b5602a83612ad8565b91506139c082613959565b604082019050919050565b600060208201905081810360008301526139e4816139a8565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613a47602f83612ad8565b9150613a52826139eb565b604082019050919050565b60006020820190508181036000830152613a7681613a3a565b9050919050565b600081905092915050565b6000613a9382612acd565b613a9d8185613a7d565b9350613aad818560208601612ae9565b80840191505092915050565b6000613ac58285613a88565b9150613ad18284613a88565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b39602683612ad8565b9150613b4482613add565b604082019050919050565b60006020820190508181036000830152613b6881613b2c565b9050919050565b6000613b7a82612b88565b9150613b8583612b88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613bba57613bb961347a565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613c21602c83612ad8565b9150613c2c82613bc5565b604082019050919050565b60006020820190508181036000830152613c5081613c14565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613cb3602583612ad8565b9150613cbe82613c57565b604082019050919050565b60006020820190508181036000830152613ce281613ca6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613d45602483612ad8565b9150613d5082613ce9565b604082019050919050565b60006020820190508181036000830152613d7481613d38565b9050919050565b6000613d8682612b88565b9150613d9183612b88565b925082821015613da457613da361347a565b5b828203905092915050565b6000613dba82612b88565b9150613dc583612b88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613dfe57613dfd61347a565b5b828202905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613e3f601d83612ad8565b9150613e4a82613e09565b602082019050919050565b60006020820190508181036000830152613e6e81613e32565b9050919050565b600081905092915050565b50565b6000613e90600083613e75565b9150613e9b82613e80565b600082019050919050565b6000613eb182613e83565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613f17603a83612ad8565b9150613f2282613ebb565b604082019050919050565b60006020820190508181036000830152613f4681613f0a565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613f83601983612ad8565b9150613f8e82613f4d565b602082019050919050565b60006020820190508181036000830152613fb281613f76565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614015603283612ad8565b915061402082613fb9565b604082019050919050565b6000602082019050818103600083015261404481614008565b9050919050565b600061405682612b88565b915061406183612b88565b925082614071576140706137a6565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006140a38261407c565b6140ad8185614087565b93506140bd818560208601612ae9565b6140c681612b1c565b840191505092915050565b60006080820190506140e66000830187612c1d565b6140f36020830186612c1d565b6141006040830185612cb3565b81810360608301526141128184614098565b905095945050505050565b60008151905061412c81612a3e565b92915050565b60006020828403121561414857614147612a08565b5b60006141568482850161411d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006141c4602083612ad8565b91506141cf8261418e565b602082019050919050565b600060208201905081810360008301526141f3816141b7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614230601c83612ad8565b915061423b826141fa565b602082019050919050565b6000602082019050818103600083015261425f81614223565b905091905056fea26469706673582212204fd45bf33ceca905389edb462353a09192eeb9f2bc03d2bf61784204454701e664736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d59634c645966744c583453574b39526a6f6d4e6d70717167635072474d4c324d7879327058794d39445139422f00000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmYcLdYftLX4SWK9RjomNmpqqgcPrGML2Mxy2pXyM9DQ9B/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d59634c645966744c583453574b39526a6f6d4e6d707171
Arg [3] : 67635072474d4c324d7879327058794d39445139422f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.