ETH Price: $2,371.86 (+2.11%)

Token

CryptoonGoonzSketches (CGS)
 

Overview

Max Total Supply

25 CGS

Holders

24

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
warwren.eth
Balance
1 CGS
0x40Fa37128A7d54DAB2392ACBC4f43827bc67bBE4
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:
CryptoonGoonzSketches

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : CryptoonGoonzSketches.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

contract CryptoonGoonzSketches is ERC721Enumerable, IERC2981, ERC721URIStorage, ERC721Burnable, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private tokenIdCounter;

    string private baseURI;
    address private storeOwner;
    address private proxyRegistryAddress;
    bool public isOpenSeaProxyActive = true;
    uint16 public constant MAX_SUPPLY = 140;

    constructor(
        string memory _name,
        string memory _symbol,
        address _storeOwner,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        storeOwner = _storeOwner;
        proxyRegistryAddress = _proxyRegistryAddress;
        setBaseURI("ipfs://");
        tokenIdCounter.increment();
    }

    function mint(string memory _tokenURI) public onlyOwners {
        _mintTo(msg.sender, _tokenURI);
    }

    function mintTo(address _recipient, string memory _tokenURI) public onlyOwners {
        _mintTo(_recipient, _tokenURI);
    }

    function _mintTo(address _recipient, string memory _tokenURI) private {
        uint256 tokenId = tokenIdCounter.current();
        require(tokenId <= MAX_SUPPLY, "Mint: max supply reached");

        _safeMint(_recipient, tokenId);
        setTokenURI(tokenId, _tokenURI);
        tokenIdCounter.increment();
    }

    function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwners {
        _setTokenURI(_tokenId, _tokenURI);
    }

    function setBaseURI(string memory baseURI_) public onlyOwners {
        baseURI = baseURI_;
    }

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

    /**
     * @dev To disable OpenSea gasless listings proxy in case of an issue
     */
    function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner {
        isOpenSeaProxyActive = _isOpenSeaProxyActive;
    }

    modifier onlyOwners() {
        require(owner() == _msgSender() || storeOwner == _msgSender(), "caller is not the contract or store owner");
        _;
    }

    function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorage) returns (string memory) {
        return super.tokenURI(tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, IERC165, ERC721Enumerable)
        returns (bool)
    {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @notice enable OpenSea gasless listings
     * @dev Overriding `isApprovedForAll` to allowlist user's OpenSea proxy accounts
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * @dev See {IERC165-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "Nonexistent token");

        return (address(this), SafeMath.div(SafeMath.mul(salePrice, 15), 200));
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 19 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 7 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 19 : Counters.sol
// SPDX-License-Identifier: MIT

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 9 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

File 12 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 13 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 16 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 18 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_storeOwner","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpenSeaProxyActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600f60146101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162004ed438038062004ed48339818101604052810190620000529190620004eb565b838381600090805190602001906200006c929190620003b2565b50806001908051906020019062000085929190620003b2565b505050620000a86200009c6200019160201b60201c565b6200019960201b60201c565b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001706040518060400160405280600781526020017f697066733a2f2f000000000000000000000000000000000000000000000000008152506200025f60201b60201c565b62000187600c6200037260201b620015d61760201c565b50505050620007f0565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200026f6200019160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002956200038860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161480620003145750620002c36200019160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b62000356576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200034d90620005b0565b60405180910390fd5b80600d90805190602001906200036e929190620003b2565b5050565b6001816000016000828254019250508190555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003c090620006ac565b90600052602060002090601f016020900481019282620003e4576000855562000430565b82601f10620003ff57805160ff191683800117855562000430565b8280016001018555821562000430579182015b828111156200042f57825182559160200191906001019062000412565b5b5090506200043f919062000443565b5090565b5b808211156200045e57600081600090555060010162000444565b5090565b6000620004796200047384620005fb565b620005d2565b9050828152602081018484840111156200049257600080fd5b6200049f84828562000676565b509392505050565b600081519050620004b881620007d6565b92915050565b600082601f830112620004d057600080fd5b8151620004e284826020860162000462565b91505092915050565b600080600080608085870312156200050257600080fd5b600085015167ffffffffffffffff8111156200051d57600080fd5b6200052b87828801620004be565b945050602085015167ffffffffffffffff8111156200054957600080fd5b6200055787828801620004be565b93505060406200056a87828801620004a7565b92505060606200057d87828801620004a7565b91505092959194509250565b60006200059860298362000631565b9150620005a58262000787565b604082019050919050565b60006020820190508181036000830152620005cb8162000589565b9050919050565b6000620005de620005f1565b9050620005ec8282620006e2565b919050565b6000604051905090565b600067ffffffffffffffff82111562000619576200061862000747565b5b620006248262000776565b9050602081019050919050565b600082825260208201905092915050565b60006200064f8262000656565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200069657808201518184015260208101905062000679565b83811115620006a6576000848401525b50505050565b60006002820490506001821680620006c557607f821691505b60208210811415620006dc57620006db62000718565b5b50919050565b620006ed8262000776565b810181811067ffffffffffffffff821117156200070f576200070e62000747565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f63616c6c6572206973206e6f742074686520636f6e7472616374206f7220737460008201527f6f7265206f776e65720000000000000000000000000000000000000000000000602082015250565b620007e18162000642565b8114620007ed57600080fd5b50565b6146d480620008006000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c806355f804b3116100f9578063a22cb46511610097578063d85d3d2711610071578063d85d3d2714610503578063e43082f71461051f578063e985e9c51461053b578063f2fde38b1461056b576101c3565b8063a22cb4651461049b578063b88d4fde146104b7578063c87b56dd146104d3576101c3565b806370a08231116100d357806370a0823114610425578063715018a6146104555780638da5cb5b1461045f57806395d89b411461047d576101c3565b806355f804b3146103bb5780636352211e146103d75780636c529a2614610407576101c3565b806323b872dd1161016657806332cb6b0c1161014057806332cb6b0c1461033557806342842e0e1461035357806342966c681461036f5780634f6ccce71461038b576101c3565b806323b872dd146102b85780632a55205a146102d45780632f745c5914610305576101c3565b8063081812fc116101a2578063081812fc14610232578063095ea7b314610262578063162094c41461027e57806318160ddd1461029a576101c3565b806275a317146101c857806301ffc9a7146101e457806306fdde0314610214575b600080fd5b6101e260048036038101906101dd91906130cc565b610587565b005b6101fe60048036038101906101f99190613185565b610670565b60405161020b91906137d5565b60405180910390f35b61021c6106ea565b60405161022991906137f0565b60405180910390f35b61024c60048036038101906102479190613241565b61077c565b6040516102599190613745565b60405180910390f35b61027c60048036038101906102779190613120565b610801565b005b6102986004803603810190610293919061326a565b610919565b005b6102a2610a02565b6040516102af9190613b2d565b60405180910390f35b6102d260048036038101906102cd9190612fc6565b610a0f565b005b6102ee60048036038101906102e991906132be565b610a6f565b6040516102fc9291906137ac565b60405180910390f35b61031f600480360381019061031a9190613120565b610adb565b60405161032c9190613b2d565b60405180910390f35b61033d610b80565b60405161034a9190613b12565b60405180910390f35b61036d60048036038101906103689190612fc6565b610b85565b005b61038960048036038101906103849190613241565b610ba5565b005b6103a560048036038101906103a09190613241565b610c01565b6040516103b29190613b2d565b60405180910390f35b6103d560048036038101906103d09190613200565b610c98565b005b6103f160048036038101906103ec9190613241565b610d8d565b6040516103fe9190613745565b60405180910390f35b61040f610e3f565b60405161041c91906137d5565b60405180910390f35b61043f600480360381019061043a9190612f61565b610e52565b60405161044c9190613b2d565b60405180910390f35b61045d610f0a565b005b610467610f92565b6040516104749190613745565b60405180910390f35b610485610fbc565b60405161049291906137f0565b60405180910390f35b6104b560048036038101906104b09190613090565b61104e565b005b6104d160048036038101906104cc9190613015565b6111cf565b005b6104ed60048036038101906104e89190613241565b611231565b6040516104fa91906137f0565b60405180910390f35b61051d60048036038101906105189190613200565b611243565b005b6105396004803603810190610534919061315c565b61132b565b005b61055560048036038101906105509190612f8a565b6113c4565b60405161056291906137d5565b60405180910390f35b61058560048036038101906105809190612f61565b6114de565b005b61058f6115ec565b73ffffffffffffffffffffffffffffffffffffffff166105ad610f92565b73ffffffffffffffffffffffffffffffffffffffff16148061062357506105d26115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065990613892565b60405180910390fd5b61066c82826115f4565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e357506106e28261166d565b5b9050919050565b6060600080546106f990613dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461072590613dfd565b80156107725780601f1061074757610100808354040283529160200191610772565b820191906000526020600020905b81548152906001019060200180831161075557829003601f168201915b5050505050905090565b6000610787826116e7565b6107c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bd906139f2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061080c82610d8d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561087d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087490613a92565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661089c6115ec565b73ffffffffffffffffffffffffffffffffffffffff1614806108cb57506108ca816108c56115ec565b6113c4565b5b61090a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090190613912565b60405180910390fd5b6109148383611753565b505050565b6109216115ec565b73ffffffffffffffffffffffffffffffffffffffff1661093f610f92565b73ffffffffffffffffffffffffffffffffffffffff1614806109b557506109646115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6109f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109eb90613892565b60405180910390fd5b6109fe828261180c565b5050565b6000600880549050905090565b610a20610a1a6115ec565b82611880565b610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690613ab2565b60405180910390fd5b610a6a83838361195e565b505050565b600080610a7b846116e7565b610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190613932565b60405180910390fd5b30610ad0610ac985600f611bba565b60c8611bd0565b915091509250929050565b6000610ae683610e52565b8210610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90613812565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b608c81565b610ba0838383604051806020016040528060008152506111cf565b505050565b610bb6610bb06115ec565b82611880565b610bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bec90613af2565b60405180910390fd5b610bfe81611be6565b50565b6000610c0b610a02565b8210610c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4390613ad2565b60405180910390fd5b60088281548110610c86577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610ca06115ec565b73ffffffffffffffffffffffffffffffffffffffff16610cbe610f92565b73ffffffffffffffffffffffffffffffffffffffff161480610d345750610ce36115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a90613892565b60405180910390fd5b80600d9080519060200190610d89929190612d30565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d90613972565b60405180910390fd5b80915050919050565b600f60149054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eba90613952565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f126115ec565b73ffffffffffffffffffffffffffffffffffffffff16610f30610f92565b73ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90613a32565b60405180910390fd5b610f906000611bf2565b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fcb90613dfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff790613dfd565b80156110445780601f1061101957610100808354040283529160200191611044565b820191906000526020600020905b81548152906001019060200180831161102757829003601f168201915b5050505050905090565b6110566115ec565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb906138d2565b60405180910390fd5b80600560006110d16115ec565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661117e6115ec565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111c391906137d5565b60405180910390a35050565b6111e06111da6115ec565b83611880565b61121f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121690613ab2565b60405180910390fd5b61122b84848484611cb8565b50505050565b606061123c82611d14565b9050919050565b61124b6115ec565b73ffffffffffffffffffffffffffffffffffffffff16611269610f92565b73ffffffffffffffffffffffffffffffffffffffff1614806112df575061128e6115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590613892565b60405180910390fd5b61132833826115f4565b50565b6113336115ec565b73ffffffffffffffffffffffffffffffffffffffff16611351610f92565b73ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90613a32565b60405180910390fd5b80600f60146101000a81548160ff02191690831515021790555050565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600f60149054906101000a900460ff1680156114bb57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016114539190613745565b60206040518083038186803b15801561146b57600080fd5b505afa15801561147f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a391906131d7565b73ffffffffffffffffffffffffffffffffffffffff16145b156114ca5760019150506114d8565b6114d48484611e66565b9150505b92915050565b6114e66115ec565b73ffffffffffffffffffffffffffffffffffffffff16611504610f92565b73ffffffffffffffffffffffffffffffffffffffff161461155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190613a32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613852565b60405180910390fd5b6115d381611bf2565b50565b6001816000016000828254019250508190555050565b600033905090565b6000611600600c611efa565b9050608c61ffff1681111561164a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164190613a12565b60405180910390fd5b6116548382611f08565b61165e8183610919565b611668600c6115d6565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116e057506116df82611f26565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166117c683610d8d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611815826116e7565b611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613992565b60405180910390fd5b80600a6000848152602001908152602001600020908051906020019061187b929190612d30565b505050565b600061188b826116e7565b6118ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c1906138f2565b60405180910390fd5b60006118d583610d8d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061194457508373ffffffffffffffffffffffffffffffffffffffff1661192c8461077c565b73ffffffffffffffffffffffffffffffffffffffff16145b80611955575061195481856113c4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661197e82610d8d565b73ffffffffffffffffffffffffffffffffffffffff16146119d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cb90613a52565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906138b2565b60405180910390fd5b611a4f838383612008565b611a5a600082611753565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611aaa9190613cf3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b019190613c12565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183611bc89190613c99565b905092915050565b60008183611bde9190613c68565b905092915050565b611bef81612018565b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611cc384848461195e565b611ccf8484848461206b565b611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613832565b60405180910390fd5b50505050565b6060611d1f826116e7565b611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d55906139d2565b60405180910390fd5b6000600a60008481526020019081526020016000208054611d7e90613dfd565b80601f0160208091040260200160405190810160405280929190818152602001828054611daa90613dfd565b8015611df75780601f10611dcc57610100808354040283529160200191611df7565b820191906000526020600020905b815481529060010190602001808311611dda57829003601f168201915b505050505090506000611e08612202565b9050600081511415611e1e578192505050611e61565b600082511115611e53578082604051602001611e3b929190613721565b60405160208183030381529060405292505050611e61565b611e5c84612294565b925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081600001549050919050565b611f2282826040518060200160405280600081525061233b565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ff157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612001575061200082612396565b5b9050919050565b612013838383612400565b505050565b61202181612514565b6000600a6000838152602001908152602001600020805461204190613dfd565b90501461206857600a600082815260200190815260200160002060006120679190612db6565b5b50565b600061208c8473ffffffffffffffffffffffffffffffffffffffff16612625565b156121f5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120b56115ec565b8786866040518563ffffffff1660e01b81526004016120d79493929190613760565b602060405180830381600087803b1580156120f157600080fd5b505af192505050801561212257506040513d601f19601f8201168201806040525081019061211f91906131ae565b60015b6121a5573d8060008114612152576040519150601f19603f3d011682016040523d82523d6000602084013e612157565b606091505b5060008151141561219d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219490613832565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121fa565b600190505b949350505050565b6060600d805461221190613dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461223d90613dfd565b801561228a5780601f1061225f5761010080835404028352916020019161228a565b820191906000526020600020905b81548152906001019060200180831161226d57829003601f168201915b5050505050905090565b606061229f826116e7565b6122de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d590613a72565b60405180910390fd5b60006122e8612202565b905060008151116123085760405180602001604052806000815250612333565b8061231284612638565b604051602001612323929190613721565b6040516020818303038152906040525b915050919050565b61234583836127e5565b612352600084848461206b565b612391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238890613832565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61240b8383836129b3565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561244e57612449816129b8565b61248d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461248c5761248b8382612a01565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124d0576124cb81612b6e565b61250f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461250e5761250d8282612cb1565b5b5b505050565b600061251f82610d8d565b905061252d81600084612008565b612538600083611753565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125889190613cf3565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415612680576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127e0565b600082905060005b600082146126b257808061269b90613e60565b915050600a826126ab9190613c68565b9150612688565b60008167ffffffffffffffff8111156126f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127265781602001600182028036833780820191505090505b5090505b600085146127d95760018261273f9190613cf3565b9150600a8561274e9190613ea9565b603061275a9190613c12565b60f81b818381518110612796577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127d29190613c68565b945061272a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284c906139b2565b60405180910390fd5b61285e816116e7565b1561289e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289590613872565b60405180910390fd5b6128aa60008383612008565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128fa9190613c12565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612a0e84610e52565b612a189190613cf3565b9050600060076000848152602001908152602001600020549050818114612afd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612b829190613cf3565b9050600060096000848152602001908152602001600020549050600060088381548110612bd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612c20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612c95577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612cbc83610e52565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612d3c90613dfd565b90600052602060002090601f016020900481019282612d5e5760008555612da5565b82601f10612d7757805160ff1916838001178555612da5565b82800160010185558215612da5579182015b82811115612da4578251825591602001919060010190612d89565b5b509050612db29190612df6565b5090565b508054612dc290613dfd565b6000825580601f10612dd45750612df3565b601f016020900490600052602060002090810190612df29190612df6565b5b50565b5b80821115612e0f576000816000905550600101612df7565b5090565b6000612e26612e2184613b6d565b613b48565b905082815260208101848484011115612e3e57600080fd5b612e49848285613dbb565b509392505050565b6000612e64612e5f84613b9e565b613b48565b905082815260208101848484011115612e7c57600080fd5b612e87848285613dbb565b509392505050565b600081359050612e9e8161462b565b92915050565b600081359050612eb381614642565b92915050565b600081359050612ec881614659565b92915050565b600081519050612edd81614659565b92915050565b600082601f830112612ef457600080fd5b8135612f04848260208601612e13565b91505092915050565b600081519050612f1c81614670565b92915050565b600082601f830112612f3357600080fd5b8135612f43848260208601612e51565b91505092915050565b600081359050612f5b81614687565b92915050565b600060208284031215612f7357600080fd5b6000612f8184828501612e8f565b91505092915050565b60008060408385031215612f9d57600080fd5b6000612fab85828601612e8f565b9250506020612fbc85828601612e8f565b9150509250929050565b600080600060608486031215612fdb57600080fd5b6000612fe986828701612e8f565b9350506020612ffa86828701612e8f565b925050604061300b86828701612f4c565b9150509250925092565b6000806000806080858703121561302b57600080fd5b600061303987828801612e8f565b945050602061304a87828801612e8f565b935050604061305b87828801612f4c565b925050606085013567ffffffffffffffff81111561307857600080fd5b61308487828801612ee3565b91505092959194509250565b600080604083850312156130a357600080fd5b60006130b185828601612e8f565b92505060206130c285828601612ea4565b9150509250929050565b600080604083850312156130df57600080fd5b60006130ed85828601612e8f565b925050602083013567ffffffffffffffff81111561310a57600080fd5b61311685828601612f22565b9150509250929050565b6000806040838503121561313357600080fd5b600061314185828601612e8f565b925050602061315285828601612f4c565b9150509250929050565b60006020828403121561316e57600080fd5b600061317c84828501612ea4565b91505092915050565b60006020828403121561319757600080fd5b60006131a584828501612eb9565b91505092915050565b6000602082840312156131c057600080fd5b60006131ce84828501612ece565b91505092915050565b6000602082840312156131e957600080fd5b60006131f784828501612f0d565b91505092915050565b60006020828403121561321257600080fd5b600082013567ffffffffffffffff81111561322c57600080fd5b61323884828501612f22565b91505092915050565b60006020828403121561325357600080fd5b600061326184828501612f4c565b91505092915050565b6000806040838503121561327d57600080fd5b600061328b85828601612f4c565b925050602083013567ffffffffffffffff8111156132a857600080fd5b6132b485828601612f22565b9150509250929050565b600080604083850312156132d157600080fd5b60006132df85828601612f4c565b92505060206132f085828601612f4c565b9150509250929050565b61330381613d27565b82525050565b61331281613d39565b82525050565b600061332382613bcf565b61332d8185613be5565b935061333d818560208601613dca565b61334681613f96565b840191505092915050565b600061335c82613bda565b6133668185613bf6565b9350613376818560208601613dca565b61337f81613f96565b840191505092915050565b600061339582613bda565b61339f8185613c07565b93506133af818560208601613dca565b80840191505092915050565b60006133c8602b83613bf6565b91506133d382613fa7565b604082019050919050565b60006133eb603283613bf6565b91506133f682613ff6565b604082019050919050565b600061340e602683613bf6565b915061341982614045565b604082019050919050565b6000613431601c83613bf6565b915061343c82614094565b602082019050919050565b6000613454602983613bf6565b915061345f826140bd565b604082019050919050565b6000613477602483613bf6565b91506134828261410c565b604082019050919050565b600061349a601983613bf6565b91506134a58261415b565b602082019050919050565b60006134bd602c83613bf6565b91506134c882614184565b604082019050919050565b60006134e0603883613bf6565b91506134eb826141d3565b604082019050919050565b6000613503601183613bf6565b915061350e82614222565b602082019050919050565b6000613526602a83613bf6565b91506135318261424b565b604082019050919050565b6000613549602983613bf6565b91506135548261429a565b604082019050919050565b600061356c602e83613bf6565b9150613577826142e9565b604082019050919050565b600061358f602083613bf6565b915061359a82614338565b602082019050919050565b60006135b2603183613bf6565b91506135bd82614361565b604082019050919050565b60006135d5602c83613bf6565b91506135e0826143b0565b604082019050919050565b60006135f8601883613bf6565b9150613603826143ff565b602082019050919050565b600061361b602083613bf6565b915061362682614428565b602082019050919050565b600061363e602983613bf6565b915061364982614451565b604082019050919050565b6000613661602f83613bf6565b915061366c826144a0565b604082019050919050565b6000613684602183613bf6565b915061368f826144ef565b604082019050919050565b60006136a7603183613bf6565b91506136b28261453e565b604082019050919050565b60006136ca602c83613bf6565b91506136d58261458d565b604082019050919050565b60006136ed603083613bf6565b91506136f8826145dc565b604082019050919050565b61370c81613d83565b82525050565b61371b81613db1565b82525050565b600061372d828561338a565b9150613739828461338a565b91508190509392505050565b600060208201905061375a60008301846132fa565b92915050565b600060808201905061377560008301876132fa565b61378260208301866132fa565b61378f6040830185613712565b81810360608301526137a18184613318565b905095945050505050565b60006040820190506137c160008301856132fa565b6137ce6020830184613712565b9392505050565b60006020820190506137ea6000830184613309565b92915050565b6000602082019050818103600083015261380a8184613351565b905092915050565b6000602082019050818103600083015261382b816133bb565b9050919050565b6000602082019050818103600083015261384b816133de565b9050919050565b6000602082019050818103600083015261386b81613401565b9050919050565b6000602082019050818103600083015261388b81613424565b9050919050565b600060208201905081810360008301526138ab81613447565b9050919050565b600060208201905081810360008301526138cb8161346a565b9050919050565b600060208201905081810360008301526138eb8161348d565b9050919050565b6000602082019050818103600083015261390b816134b0565b9050919050565b6000602082019050818103600083015261392b816134d3565b9050919050565b6000602082019050818103600083015261394b816134f6565b9050919050565b6000602082019050818103600083015261396b81613519565b9050919050565b6000602082019050818103600083015261398b8161353c565b9050919050565b600060208201905081810360008301526139ab8161355f565b9050919050565b600060208201905081810360008301526139cb81613582565b9050919050565b600060208201905081810360008301526139eb816135a5565b9050919050565b60006020820190508181036000830152613a0b816135c8565b9050919050565b60006020820190508181036000830152613a2b816135eb565b9050919050565b60006020820190508181036000830152613a4b8161360e565b9050919050565b60006020820190508181036000830152613a6b81613631565b9050919050565b60006020820190508181036000830152613a8b81613654565b9050919050565b60006020820190508181036000830152613aab81613677565b9050919050565b60006020820190508181036000830152613acb8161369a565b9050919050565b60006020820190508181036000830152613aeb816136bd565b9050919050565b60006020820190508181036000830152613b0b816136e0565b9050919050565b6000602082019050613b276000830184613703565b92915050565b6000602082019050613b426000830184613712565b92915050565b6000613b52613b63565b9050613b5e8282613e2f565b919050565b6000604051905090565b600067ffffffffffffffff821115613b8857613b87613f67565b5b613b9182613f96565b9050602081019050919050565b600067ffffffffffffffff821115613bb957613bb8613f67565b5b613bc282613f96565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613c1d82613db1565b9150613c2883613db1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c5d57613c5c613eda565b5b828201905092915050565b6000613c7382613db1565b9150613c7e83613db1565b925082613c8e57613c8d613f09565b5b828204905092915050565b6000613ca482613db1565b9150613caf83613db1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ce857613ce7613eda565b5b828202905092915050565b6000613cfe82613db1565b9150613d0983613db1565b925082821015613d1c57613d1b613eda565b5b828203905092915050565b6000613d3282613d91565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613d7c82613d27565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613de8578082015181840152602081019050613dcd565b83811115613df7576000848401525b50505050565b60006002820490506001821680613e1557607f821691505b60208210811415613e2957613e28613f38565b5b50919050565b613e3882613f96565b810181811067ffffffffffffffff82111715613e5757613e56613f67565b5b80604052505050565b6000613e6b82613db1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e9e57613e9d613eda565b5b600182019050919050565b6000613eb482613db1565b9150613ebf83613db1565b925082613ecf57613ece613f09565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f63616c6c6572206973206e6f742074686520636f6e7472616374206f7220737460008201527f6f7265206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d696e743a206d617820737570706c7920726561636865640000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b61463481613d27565b811461463f57600080fd5b50565b61464b81613d39565b811461465657600080fd5b50565b61466281613d45565b811461466d57600080fd5b50565b61467981613d71565b811461468457600080fd5b50565b61469081613db1565b811461469b57600080fd5b5056fea2646970667358221220f457ae461960426eff808df027a828124adeb1375357d81661e640021dcd6fe064736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000006a0b823334e60b4397571da977f221c928f98146000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001543727970746f6f6e476f6f6e7a536b657463686573000000000000000000000000000000000000000000000000000000000000000000000000000000000000034347530000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c35760003560e01c806355f804b3116100f9578063a22cb46511610097578063d85d3d2711610071578063d85d3d2714610503578063e43082f71461051f578063e985e9c51461053b578063f2fde38b1461056b576101c3565b8063a22cb4651461049b578063b88d4fde146104b7578063c87b56dd146104d3576101c3565b806370a08231116100d357806370a0823114610425578063715018a6146104555780638da5cb5b1461045f57806395d89b411461047d576101c3565b806355f804b3146103bb5780636352211e146103d75780636c529a2614610407576101c3565b806323b872dd1161016657806332cb6b0c1161014057806332cb6b0c1461033557806342842e0e1461035357806342966c681461036f5780634f6ccce71461038b576101c3565b806323b872dd146102b85780632a55205a146102d45780632f745c5914610305576101c3565b8063081812fc116101a2578063081812fc14610232578063095ea7b314610262578063162094c41461027e57806318160ddd1461029a576101c3565b806275a317146101c857806301ffc9a7146101e457806306fdde0314610214575b600080fd5b6101e260048036038101906101dd91906130cc565b610587565b005b6101fe60048036038101906101f99190613185565b610670565b60405161020b91906137d5565b60405180910390f35b61021c6106ea565b60405161022991906137f0565b60405180910390f35b61024c60048036038101906102479190613241565b61077c565b6040516102599190613745565b60405180910390f35b61027c60048036038101906102779190613120565b610801565b005b6102986004803603810190610293919061326a565b610919565b005b6102a2610a02565b6040516102af9190613b2d565b60405180910390f35b6102d260048036038101906102cd9190612fc6565b610a0f565b005b6102ee60048036038101906102e991906132be565b610a6f565b6040516102fc9291906137ac565b60405180910390f35b61031f600480360381019061031a9190613120565b610adb565b60405161032c9190613b2d565b60405180910390f35b61033d610b80565b60405161034a9190613b12565b60405180910390f35b61036d60048036038101906103689190612fc6565b610b85565b005b61038960048036038101906103849190613241565b610ba5565b005b6103a560048036038101906103a09190613241565b610c01565b6040516103b29190613b2d565b60405180910390f35b6103d560048036038101906103d09190613200565b610c98565b005b6103f160048036038101906103ec9190613241565b610d8d565b6040516103fe9190613745565b60405180910390f35b61040f610e3f565b60405161041c91906137d5565b60405180910390f35b61043f600480360381019061043a9190612f61565b610e52565b60405161044c9190613b2d565b60405180910390f35b61045d610f0a565b005b610467610f92565b6040516104749190613745565b60405180910390f35b610485610fbc565b60405161049291906137f0565b60405180910390f35b6104b560048036038101906104b09190613090565b61104e565b005b6104d160048036038101906104cc9190613015565b6111cf565b005b6104ed60048036038101906104e89190613241565b611231565b6040516104fa91906137f0565b60405180910390f35b61051d60048036038101906105189190613200565b611243565b005b6105396004803603810190610534919061315c565b61132b565b005b61055560048036038101906105509190612f8a565b6113c4565b60405161056291906137d5565b60405180910390f35b61058560048036038101906105809190612f61565b6114de565b005b61058f6115ec565b73ffffffffffffffffffffffffffffffffffffffff166105ad610f92565b73ffffffffffffffffffffffffffffffffffffffff16148061062357506105d26115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065990613892565b60405180910390fd5b61066c82826115f4565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e357506106e28261166d565b5b9050919050565b6060600080546106f990613dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461072590613dfd565b80156107725780601f1061074757610100808354040283529160200191610772565b820191906000526020600020905b81548152906001019060200180831161075557829003601f168201915b5050505050905090565b6000610787826116e7565b6107c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bd906139f2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061080c82610d8d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561087d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087490613a92565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661089c6115ec565b73ffffffffffffffffffffffffffffffffffffffff1614806108cb57506108ca816108c56115ec565b6113c4565b5b61090a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090190613912565b60405180910390fd5b6109148383611753565b505050565b6109216115ec565b73ffffffffffffffffffffffffffffffffffffffff1661093f610f92565b73ffffffffffffffffffffffffffffffffffffffff1614806109b557506109646115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6109f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109eb90613892565b60405180910390fd5b6109fe828261180c565b5050565b6000600880549050905090565b610a20610a1a6115ec565b82611880565b610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690613ab2565b60405180910390fd5b610a6a83838361195e565b505050565b600080610a7b846116e7565b610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190613932565b60405180910390fd5b30610ad0610ac985600f611bba565b60c8611bd0565b915091509250929050565b6000610ae683610e52565b8210610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90613812565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b608c81565b610ba0838383604051806020016040528060008152506111cf565b505050565b610bb6610bb06115ec565b82611880565b610bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bec90613af2565b60405180910390fd5b610bfe81611be6565b50565b6000610c0b610a02565b8210610c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4390613ad2565b60405180910390fd5b60088281548110610c86577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610ca06115ec565b73ffffffffffffffffffffffffffffffffffffffff16610cbe610f92565b73ffffffffffffffffffffffffffffffffffffffff161480610d345750610ce36115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a90613892565b60405180910390fd5b80600d9080519060200190610d89929190612d30565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d90613972565b60405180910390fd5b80915050919050565b600f60149054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eba90613952565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f126115ec565b73ffffffffffffffffffffffffffffffffffffffff16610f30610f92565b73ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90613a32565b60405180910390fd5b610f906000611bf2565b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fcb90613dfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff790613dfd565b80156110445780601f1061101957610100808354040283529160200191611044565b820191906000526020600020905b81548152906001019060200180831161102757829003601f168201915b5050505050905090565b6110566115ec565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb906138d2565b60405180910390fd5b80600560006110d16115ec565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661117e6115ec565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111c391906137d5565b60405180910390a35050565b6111e06111da6115ec565b83611880565b61121f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121690613ab2565b60405180910390fd5b61122b84848484611cb8565b50505050565b606061123c82611d14565b9050919050565b61124b6115ec565b73ffffffffffffffffffffffffffffffffffffffff16611269610f92565b73ffffffffffffffffffffffffffffffffffffffff1614806112df575061128e6115ec565b73ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590613892565b60405180910390fd5b61132833826115f4565b50565b6113336115ec565b73ffffffffffffffffffffffffffffffffffffffff16611351610f92565b73ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90613a32565b60405180910390fd5b80600f60146101000a81548160ff02191690831515021790555050565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600f60149054906101000a900460ff1680156114bb57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016114539190613745565b60206040518083038186803b15801561146b57600080fd5b505afa15801561147f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a391906131d7565b73ffffffffffffffffffffffffffffffffffffffff16145b156114ca5760019150506114d8565b6114d48484611e66565b9150505b92915050565b6114e66115ec565b73ffffffffffffffffffffffffffffffffffffffff16611504610f92565b73ffffffffffffffffffffffffffffffffffffffff161461155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190613a32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613852565b60405180910390fd5b6115d381611bf2565b50565b6001816000016000828254019250508190555050565b600033905090565b6000611600600c611efa565b9050608c61ffff1681111561164a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164190613a12565b60405180910390fd5b6116548382611f08565b61165e8183610919565b611668600c6115d6565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116e057506116df82611f26565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166117c683610d8d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611815826116e7565b611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613992565b60405180910390fd5b80600a6000848152602001908152602001600020908051906020019061187b929190612d30565b505050565b600061188b826116e7565b6118ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c1906138f2565b60405180910390fd5b60006118d583610d8d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061194457508373ffffffffffffffffffffffffffffffffffffffff1661192c8461077c565b73ffffffffffffffffffffffffffffffffffffffff16145b80611955575061195481856113c4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661197e82610d8d565b73ffffffffffffffffffffffffffffffffffffffff16146119d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cb90613a52565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906138b2565b60405180910390fd5b611a4f838383612008565b611a5a600082611753565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611aaa9190613cf3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b019190613c12565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183611bc89190613c99565b905092915050565b60008183611bde9190613c68565b905092915050565b611bef81612018565b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611cc384848461195e565b611ccf8484848461206b565b611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613832565b60405180910390fd5b50505050565b6060611d1f826116e7565b611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d55906139d2565b60405180910390fd5b6000600a60008481526020019081526020016000208054611d7e90613dfd565b80601f0160208091040260200160405190810160405280929190818152602001828054611daa90613dfd565b8015611df75780601f10611dcc57610100808354040283529160200191611df7565b820191906000526020600020905b815481529060010190602001808311611dda57829003601f168201915b505050505090506000611e08612202565b9050600081511415611e1e578192505050611e61565b600082511115611e53578082604051602001611e3b929190613721565b60405160208183030381529060405292505050611e61565b611e5c84612294565b925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081600001549050919050565b611f2282826040518060200160405280600081525061233b565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ff157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612001575061200082612396565b5b9050919050565b612013838383612400565b505050565b61202181612514565b6000600a6000838152602001908152602001600020805461204190613dfd565b90501461206857600a600082815260200190815260200160002060006120679190612db6565b5b50565b600061208c8473ffffffffffffffffffffffffffffffffffffffff16612625565b156121f5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120b56115ec565b8786866040518563ffffffff1660e01b81526004016120d79493929190613760565b602060405180830381600087803b1580156120f157600080fd5b505af192505050801561212257506040513d601f19601f8201168201806040525081019061211f91906131ae565b60015b6121a5573d8060008114612152576040519150601f19603f3d011682016040523d82523d6000602084013e612157565b606091505b5060008151141561219d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219490613832565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121fa565b600190505b949350505050565b6060600d805461221190613dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461223d90613dfd565b801561228a5780601f1061225f5761010080835404028352916020019161228a565b820191906000526020600020905b81548152906001019060200180831161226d57829003601f168201915b5050505050905090565b606061229f826116e7565b6122de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d590613a72565b60405180910390fd5b60006122e8612202565b905060008151116123085760405180602001604052806000815250612333565b8061231284612638565b604051602001612323929190613721565b6040516020818303038152906040525b915050919050565b61234583836127e5565b612352600084848461206b565b612391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238890613832565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61240b8383836129b3565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561244e57612449816129b8565b61248d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461248c5761248b8382612a01565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124d0576124cb81612b6e565b61250f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461250e5761250d8282612cb1565b5b5b505050565b600061251f82610d8d565b905061252d81600084612008565b612538600083611753565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125889190613cf3565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415612680576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127e0565b600082905060005b600082146126b257808061269b90613e60565b915050600a826126ab9190613c68565b9150612688565b60008167ffffffffffffffff8111156126f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127265781602001600182028036833780820191505090505b5090505b600085146127d95760018261273f9190613cf3565b9150600a8561274e9190613ea9565b603061275a9190613c12565b60f81b818381518110612796577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127d29190613c68565b945061272a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284c906139b2565b60405180910390fd5b61285e816116e7565b1561289e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289590613872565b60405180910390fd5b6128aa60008383612008565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128fa9190613c12565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612a0e84610e52565b612a189190613cf3565b9050600060076000848152602001908152602001600020549050818114612afd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612b829190613cf3565b9050600060096000848152602001908152602001600020549050600060088381548110612bd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612c20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612c95577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612cbc83610e52565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612d3c90613dfd565b90600052602060002090601f016020900481019282612d5e5760008555612da5565b82601f10612d7757805160ff1916838001178555612da5565b82800160010185558215612da5579182015b82811115612da4578251825591602001919060010190612d89565b5b509050612db29190612df6565b5090565b508054612dc290613dfd565b6000825580601f10612dd45750612df3565b601f016020900490600052602060002090810190612df29190612df6565b5b50565b5b80821115612e0f576000816000905550600101612df7565b5090565b6000612e26612e2184613b6d565b613b48565b905082815260208101848484011115612e3e57600080fd5b612e49848285613dbb565b509392505050565b6000612e64612e5f84613b9e565b613b48565b905082815260208101848484011115612e7c57600080fd5b612e87848285613dbb565b509392505050565b600081359050612e9e8161462b565b92915050565b600081359050612eb381614642565b92915050565b600081359050612ec881614659565b92915050565b600081519050612edd81614659565b92915050565b600082601f830112612ef457600080fd5b8135612f04848260208601612e13565b91505092915050565b600081519050612f1c81614670565b92915050565b600082601f830112612f3357600080fd5b8135612f43848260208601612e51565b91505092915050565b600081359050612f5b81614687565b92915050565b600060208284031215612f7357600080fd5b6000612f8184828501612e8f565b91505092915050565b60008060408385031215612f9d57600080fd5b6000612fab85828601612e8f565b9250506020612fbc85828601612e8f565b9150509250929050565b600080600060608486031215612fdb57600080fd5b6000612fe986828701612e8f565b9350506020612ffa86828701612e8f565b925050604061300b86828701612f4c565b9150509250925092565b6000806000806080858703121561302b57600080fd5b600061303987828801612e8f565b945050602061304a87828801612e8f565b935050604061305b87828801612f4c565b925050606085013567ffffffffffffffff81111561307857600080fd5b61308487828801612ee3565b91505092959194509250565b600080604083850312156130a357600080fd5b60006130b185828601612e8f565b92505060206130c285828601612ea4565b9150509250929050565b600080604083850312156130df57600080fd5b60006130ed85828601612e8f565b925050602083013567ffffffffffffffff81111561310a57600080fd5b61311685828601612f22565b9150509250929050565b6000806040838503121561313357600080fd5b600061314185828601612e8f565b925050602061315285828601612f4c565b9150509250929050565b60006020828403121561316e57600080fd5b600061317c84828501612ea4565b91505092915050565b60006020828403121561319757600080fd5b60006131a584828501612eb9565b91505092915050565b6000602082840312156131c057600080fd5b60006131ce84828501612ece565b91505092915050565b6000602082840312156131e957600080fd5b60006131f784828501612f0d565b91505092915050565b60006020828403121561321257600080fd5b600082013567ffffffffffffffff81111561322c57600080fd5b61323884828501612f22565b91505092915050565b60006020828403121561325357600080fd5b600061326184828501612f4c565b91505092915050565b6000806040838503121561327d57600080fd5b600061328b85828601612f4c565b925050602083013567ffffffffffffffff8111156132a857600080fd5b6132b485828601612f22565b9150509250929050565b600080604083850312156132d157600080fd5b60006132df85828601612f4c565b92505060206132f085828601612f4c565b9150509250929050565b61330381613d27565b82525050565b61331281613d39565b82525050565b600061332382613bcf565b61332d8185613be5565b935061333d818560208601613dca565b61334681613f96565b840191505092915050565b600061335c82613bda565b6133668185613bf6565b9350613376818560208601613dca565b61337f81613f96565b840191505092915050565b600061339582613bda565b61339f8185613c07565b93506133af818560208601613dca565b80840191505092915050565b60006133c8602b83613bf6565b91506133d382613fa7565b604082019050919050565b60006133eb603283613bf6565b91506133f682613ff6565b604082019050919050565b600061340e602683613bf6565b915061341982614045565b604082019050919050565b6000613431601c83613bf6565b915061343c82614094565b602082019050919050565b6000613454602983613bf6565b915061345f826140bd565b604082019050919050565b6000613477602483613bf6565b91506134828261410c565b604082019050919050565b600061349a601983613bf6565b91506134a58261415b565b602082019050919050565b60006134bd602c83613bf6565b91506134c882614184565b604082019050919050565b60006134e0603883613bf6565b91506134eb826141d3565b604082019050919050565b6000613503601183613bf6565b915061350e82614222565b602082019050919050565b6000613526602a83613bf6565b91506135318261424b565b604082019050919050565b6000613549602983613bf6565b91506135548261429a565b604082019050919050565b600061356c602e83613bf6565b9150613577826142e9565b604082019050919050565b600061358f602083613bf6565b915061359a82614338565b602082019050919050565b60006135b2603183613bf6565b91506135bd82614361565b604082019050919050565b60006135d5602c83613bf6565b91506135e0826143b0565b604082019050919050565b60006135f8601883613bf6565b9150613603826143ff565b602082019050919050565b600061361b602083613bf6565b915061362682614428565b602082019050919050565b600061363e602983613bf6565b915061364982614451565b604082019050919050565b6000613661602f83613bf6565b915061366c826144a0565b604082019050919050565b6000613684602183613bf6565b915061368f826144ef565b604082019050919050565b60006136a7603183613bf6565b91506136b28261453e565b604082019050919050565b60006136ca602c83613bf6565b91506136d58261458d565b604082019050919050565b60006136ed603083613bf6565b91506136f8826145dc565b604082019050919050565b61370c81613d83565b82525050565b61371b81613db1565b82525050565b600061372d828561338a565b9150613739828461338a565b91508190509392505050565b600060208201905061375a60008301846132fa565b92915050565b600060808201905061377560008301876132fa565b61378260208301866132fa565b61378f6040830185613712565b81810360608301526137a18184613318565b905095945050505050565b60006040820190506137c160008301856132fa565b6137ce6020830184613712565b9392505050565b60006020820190506137ea6000830184613309565b92915050565b6000602082019050818103600083015261380a8184613351565b905092915050565b6000602082019050818103600083015261382b816133bb565b9050919050565b6000602082019050818103600083015261384b816133de565b9050919050565b6000602082019050818103600083015261386b81613401565b9050919050565b6000602082019050818103600083015261388b81613424565b9050919050565b600060208201905081810360008301526138ab81613447565b9050919050565b600060208201905081810360008301526138cb8161346a565b9050919050565b600060208201905081810360008301526138eb8161348d565b9050919050565b6000602082019050818103600083015261390b816134b0565b9050919050565b6000602082019050818103600083015261392b816134d3565b9050919050565b6000602082019050818103600083015261394b816134f6565b9050919050565b6000602082019050818103600083015261396b81613519565b9050919050565b6000602082019050818103600083015261398b8161353c565b9050919050565b600060208201905081810360008301526139ab8161355f565b9050919050565b600060208201905081810360008301526139cb81613582565b9050919050565b600060208201905081810360008301526139eb816135a5565b9050919050565b60006020820190508181036000830152613a0b816135c8565b9050919050565b60006020820190508181036000830152613a2b816135eb565b9050919050565b60006020820190508181036000830152613a4b8161360e565b9050919050565b60006020820190508181036000830152613a6b81613631565b9050919050565b60006020820190508181036000830152613a8b81613654565b9050919050565b60006020820190508181036000830152613aab81613677565b9050919050565b60006020820190508181036000830152613acb8161369a565b9050919050565b60006020820190508181036000830152613aeb816136bd565b9050919050565b60006020820190508181036000830152613b0b816136e0565b9050919050565b6000602082019050613b276000830184613703565b92915050565b6000602082019050613b426000830184613712565b92915050565b6000613b52613b63565b9050613b5e8282613e2f565b919050565b6000604051905090565b600067ffffffffffffffff821115613b8857613b87613f67565b5b613b9182613f96565b9050602081019050919050565b600067ffffffffffffffff821115613bb957613bb8613f67565b5b613bc282613f96565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613c1d82613db1565b9150613c2883613db1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c5d57613c5c613eda565b5b828201905092915050565b6000613c7382613db1565b9150613c7e83613db1565b925082613c8e57613c8d613f09565b5b828204905092915050565b6000613ca482613db1565b9150613caf83613db1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ce857613ce7613eda565b5b828202905092915050565b6000613cfe82613db1565b9150613d0983613db1565b925082821015613d1c57613d1b613eda565b5b828203905092915050565b6000613d3282613d91565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613d7c82613d27565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613de8578082015181840152602081019050613dcd565b83811115613df7576000848401525b50505050565b60006002820490506001821680613e1557607f821691505b60208210811415613e2957613e28613f38565b5b50919050565b613e3882613f96565b810181811067ffffffffffffffff82111715613e5757613e56613f67565b5b80604052505050565b6000613e6b82613db1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e9e57613e9d613eda565b5b600182019050919050565b6000613eb482613db1565b9150613ebf83613db1565b925082613ecf57613ece613f09565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f63616c6c6572206973206e6f742074686520636f6e7472616374206f7220737460008201527f6f7265206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d696e743a206d617820737570706c7920726561636865640000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b61463481613d27565b811461463f57600080fd5b50565b61464b81613d39565b811461465657600080fd5b50565b61466281613d45565b811461466d57600080fd5b50565b61467981613d71565b811461468457600080fd5b50565b61469081613db1565b811461469b57600080fd5b5056fea2646970667358221220f457ae461960426eff808df027a828124adeb1375357d81661e640021dcd6fe064736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000006a0b823334e60b4397571da977f221c928f98146000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001543727970746f6f6e476f6f6e7a536b657463686573000000000000000000000000000000000000000000000000000000000000000000000000000000000000034347530000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): CryptoonGoonzSketches
Arg [1] : _symbol (string): CGS
Arg [2] : _storeOwner (address): 0x6a0B823334E60b4397571dA977F221c928f98146
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000006a0b823334e60b4397571da977f221c928f98146
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 43727970746f6f6e476f6f6e7a536b6574636865730000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4347530000000000000000000000000000000000000000000000000000000000


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.