ETH Price: $2,925.47 (+4.71%)
 

Overview

TokenID

5195

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Wrapper

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.9;

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

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

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

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

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

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

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

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

pragma solidity ^0.8.9;

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

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

    bool private _paused;

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

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

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

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

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

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

/**
 * @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: @openzeppelin/contracts/utils/Context.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/utils/introspection/IERC165.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/utils/introspection/ERC165.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721.sol

pragma solidity ^0.8.9;

/**
 * @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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol

pragma solidity ^0.8.9;

/**
 * @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);
}

pragma solidity ^0.8.9;

// to enable certain compiler features

//import '@openzeppelin/contracts/token/ERC721/ERC721.sol';

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;

    //Mapping para atribuirle un URI para cada token
    mapping(uint256 => string) internal id_to_URI;

    /**
     * @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)
    {}

    /**
     * @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 {}
}

/****************************************************************************************************************
 *                                     Rug Redemption Wrapper Contract                                           *
 *                                               LordLabz                                                        *
 *   Designed: JoeSoap8308 (Dev of the Wrapped Companions - https://opensea.io/collection/wrappedcompanion-1)    *
 *                                 Modified: Dustin Turska | KronicLabz LLC                                      *
 *                                          https://kroniclabz.com                                               *
 *                                      https://twitter.com/KronicLabz                                           *
 *                               Securtiy contact: [email protected]                                  *
 ****************************************************************************************************************/
///Interfaces
interface wrapperdb {
    function isBlockedNFT(uint256 _tokenID)
        external
        view
        returns (bool, uint256);

    function isHolder(address _address) external view returns (bool);

    function getWrappedStatus(address _migrator) external view returns (bool);

    function getArtStatus(uint256 _tokenid) external view returns (uint256);

    function setUserStatus(address _wrapper, bool _haswrapped) external;

    function manageNumHolders(uint256 _option) external;

    function manageHolderAddresses(bool status, address _holder) external;
}

///////Start of contract/////
contract Wrapper is ERC721, IERC721Receiver, Pausable, Ownable {
    //Events
    event Wrapped(uint256 indexed tokenId);
    event Unwrapped(uint256 indexed tokenId);
    //Variables
    address public ruggedproject = 0x3D0830aA84daE5Bb64eA091A943DFbEB0719eC52; //address of Rugged NFT
    address public dbcontract = 0xFbbA42cf92f215eb8f791dAF71762bB679fDEDD5; //address if the DB contract
    address public currentowner; //used to open methods and restrict via address
    address public upgradecontract; //External smart contract to upgrade artwork to future proof the art
    IERC721 immutable ruggednft;
    uint256 public numwraps; //total wraps
    bool public wrapenabled = true; //Enable/Disable Wrapping
    bool public dynamicart = true; //Bool to enable dynamic art
    string public defaulturi =
        "ipfs://QmNVaoVbnS2CccsKsDDJEmAFRSKd9JPzRQZEr8AbY6Sz4f/"; //Default URI
    string private artpath1 =
        "ipfs://QmNVaoVbnS2CccsKsDDJEmAFRSKd9JPzRQZEr8AbY6Sz4f/"; //Global path 1
    string private artpath2; //Global path 2
    ////Mappings/////
    mapping(address => bool) internal artapproved; //Whether a holder has approved their art to be modded
    mapping(uint256 => string) internal artpathfortoken; //Path for individual tokens
    mapping(uint256 => bool) internal customtoken; //Used to ad a single ad-hoc artwork update
    /////////////////
    ////Used to get uint256 -> String
    using Strings for uint256;

    /////////////////////////////////
    constructor() ERC721("illaz", "ILLAZ") {
        ruggednft = IERC721(ruggedproject);
        currentowner = msg.sender;
    }

    function _baseURI() internal pure override returns (string memory) {
        ///Base URI is the location of the JSON files
        ///As part of the design of the contracts this Base URI Might need to get updated dynamically///
        return "ipfs://QmNVaoVbnS2CccsKsDDJEmAFRSKd9JPzRQZEr8AbY6Sz4f/";
    }

    //////Sets the IPFS/Arweave stores for each area
    //////Supports 2 custom Metadata stores,the default and the Custom one
    function setStringArtPaths(
        uint256 _pathno,
        string memory _path,
        uint256 _tokenid,
        address _holder
    ) external {
        require(
            msg.sender == currentowner ||
                msg.sender == upgradecontract ||
                msg.sender == dbcontract,
            "Not Auth!"
        );

        if (_pathno == 0) {
            defaulturi = _path;
        }
        if (_pathno == 1) {
            artpath1 = _path;
        }
        if (_pathno == 2) {
            artpath2 = _path;
        }
        if (_pathno == 3) ////Specify dedicated path for token
        {
            bool temp;
            temp = getArtApproval(_tokenid, _holder);
            require(temp == true, "Not Approved!");
            artpathfortoken[_tokenid] = _path;
            customtoken[_tokenid] = true; //User has unique art
        }
        if (_pathno == 4) //resets to default
        {
            customtoken[_tokenid] = false; //Resets user to the global
        }
    }

    ///This is being overridder to be able to pass in custom URI's etc
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string memory tempstring;
        string memory tempstring2;
        if (dynamicart == true) //If disabled...URI reverts to default
        {
            uint256 temp = wrapperdb(dbcontract).getArtStatus(tokenId);
            //Verify if user has unique art
            bool isunique = customtoken[tokenId];
            ///////////////////////////////////////
            if (isunique == true) ///This is the custom are for 1 token!
            {
                tempstring2 = artpathfortoken[tokenId];
                tempstring = string(
                    abi.encodePacked(tempstring2, tokenId.toString(), ".json")
                );
            }
            if (isunique == false) {
                if (temp == 0) {
                    tempstring = string(
                        abi.encodePacked(
                            defaulturi,
                            tokenId.toString(),
                            ".json"
                        )
                    );
                }
                if (temp == 1) {
                    tempstring = string(
                        abi.encodePacked(artpath1, tokenId.toString(), ".json")
                    );
                }
                if (temp == 2) {
                    tempstring = string(
                        abi.encodePacked(artpath2, tokenId.toString(), ".json")
                    );
                }
            }
        }
        if (dynamicart == false) {
            tempstring = string(
                abi.encodePacked(defaulturi, tokenId.toString(), ".json")
            );
        }
        return tempstring;
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    //Function to allow the user to approve the modification of the the art URI for their token
    function approveArtUpdate(bool _yesorno, uint256 _tokennumber) external {
        require(msg.sender == ownerOf(_tokennumber), "Not Authorized");
        artapproved[msg.sender] = _yesorno; //Mapping to ensure its not at a global level
    }

    ///Return the value of the approval status for the DB
    function getArtApproval(uint256 _tokennumber, address _wallet)
        public
        view
        returns (bool)
    {
        address temp = ownerOf(_tokennumber);
        require(temp == _wallet, "ERR(P)");
        bool temp2;
        temp2 = artapproved[temp];
        return temp2;
    }

    //Configure the various options/addresses for the contract
    function setOptions(
        uint256 _option,
        bool _onoroff,
        address _address
    ) external onlyOwner {
        if (_option == 1) {
            ruggedproject = _address;
        }
        if (_option == 2) {
            dbcontract = _address;
        }
        if (_option == 3) {
            wrapenabled = _onoroff;
        }
        if (_option == 4) {
            dynamicart = _onoroff;
        }
        if (_option == 5) {
            upgradecontract = _address; //Contract address to adjust the art
        }
        if (_option == 6) {
            currentowner = _address; //Change the current Owner!
        }
    }

    /// Wrap the original rugged NFT to get the new NFT.
    function wrap(uint256[] calldata tokenIds_) external {
        uint256 templength = tokenIds_.length; //Number of tokens to be wrapped
        bool _isblocked;
        bool _isholder;
        uint256 s;
        require(wrapenabled == true, "Wrapping is not enabled!");
        for (uint256 i = 0; i < templength; i++) {
            //Add method in to verify banned ID's (Founders)
            (_isblocked, s) = wrapperdb(dbcontract).isBlockedNFT(tokenIds_[i]);
            require(_isblocked != true, "Banned Token_ID!");
            ruggednft.safeTransferFrom(msg.sender, address(this), tokenIds_[i]);
        }
        _isholder = wrapperdb(dbcontract).isHolder(msg.sender); //Determines if user is a new holder and puts in the DB contract
        if (_isholder == false) {
            wrapperdb(dbcontract).manageHolderAddresses(true, msg.sender); ///Sets user as a holder!
            wrapperdb(dbcontract).manageNumHolders(2); ///Bump the holder value
        }
        numwraps += 1;
    }

    /// Unwrap to get the original back
    function unwrap(uint256[] calldata tokenIds_) external {
        uint256 _balance;
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            _safeTransfer(msg.sender, address(this), tokenIds_[i], "");
        }
        ////We track the balance of the msg.sender///
        ////If they now own 0 NFT's we remove them as a holder
        _balance = balanceOf(msg.sender);
        if (_balance == 0) {
            ///They no longer hold,we remove///
            wrapperdb(dbcontract).manageHolderAddresses(false, msg.sender); //Remove user as a holder
            wrapperdb(dbcontract).manageNumHolders(1); ///Dump the holder value
        }
    }

    function _flip(
        address who_,
        bool isWrapping_,
        uint256 tokenId_
    ) private {
        if (isWrapping_) {
            // Mint wrapped NFT of same tokenID if not yet minted, otherwise swap for existing rugged NFT
            if (_exists(tokenId_) && ownerOf(tokenId_) == address(this)) {
                _safeTransfer(address(this), who_, tokenId_, "");
            } else {
                _safeMint(who_, tokenId_);
            }
            emit Wrapped(tokenId_);
        } else {
            ruggednft.safeTransferFrom(address(this), who_, tokenId_);
            emit Unwrapped(tokenId_);
        }
    }

    // Notice: You must use safeTransferFrom in order to properly wrap/unwrap your rugged NFT
    function onERC721Received(
        address operator_,
        address from_,
        uint256 tokenId_,
        bytes memory data_
    ) external override returns (bytes4) {
        // Only supports callback from the original rugged contract and this contract
        require(
            msg.sender == address(ruggedproject) || msg.sender == address(this),
            "must be XXXXX or Wrapped XXXXX"
        );

        bool isWrapping = msg.sender == address(ruggedproject);
        _flip(from_, isWrapping, tokenId_);

        return this.onERC721Received.selector;
    }

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

    fallback() external payable {}

    receive() external payable {}

    ////This is incase ETH is in the contract
    function withdrawETH() external onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    ////This is incase an ERc20 token is in the contract
    function withdrawERC20(address token) external onlyOwner {
        bool success = IERC20(token).transfer(
            owner(),
            IERC20(token).balanceOf(address(this))
        );
        require(success, "Transfer failed");
    }

    //Emergency NFT recovery
    function emergencyMintWrapped(uint256 tokenId_) external onlyOwner {
        if (ruggednft.ownerOf(tokenId_) == address(this)) {
            // Contract owns the Companion.
            if (_exists(tokenId_) && ownerOf(tokenId_) == address(this)) {
                // Wrapped nft is also trapped in contract.
                _safeTransfer(address(this), owner(), tokenId_, "");
                emit Wrapped(tokenId_);
            } else if (!_exists(tokenId_)) {
                // Wrapped nft hasn't ever been minted.
                _safeMint(owner(), tokenId_);
                emit Wrapped(tokenId_);
            } else {
                revert("Wrapped NFT minted and distributed already");
            }
        } else {
            revert("Rugged NFT is not locked in contract");
        }
    }

    //Mint the Tokens that Founders of the XXXXXXX owned
    //Requires any minted tokens to be blocked
    //Mints to another user or the owner
    function mintFoundersBlockedNfts(
        uint256[] calldata tokenIds_,
        uint256 _mintoption,
        address _to
    ) external onlyOwner {
        uint256 templength = tokenIds_.length;
        for (uint256 i = 0; i < templength; i++) {
            //Add method in to verify banned ID's (Founders)
            (bool _isblocked, uint256 s) = wrapperdb(dbcontract).isBlockedNFT(
                tokenIds_[i]
            );
            require(_isblocked == true, "Not a Banned Token!");
            if (_mintoption == 1) //Mint to Owner
            {
                _safeMint(owner(), tokenIds_[i]);
            }
            if (_mintoption == 2) //Mint to User
            {
                _safeMint(_to, tokenIds_[i]);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Wrapped","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_yesorno","type":"bool"},{"internalType":"uint256","name":"_tokennumber","type":"uint256"}],"name":"approveArtUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentowner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dbcontract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaulturi","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"emergencyMintWrapped","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":"uint256","name":"_tokennumber","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getArtApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256","name":"_mintoption","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintFoundersBlockedNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numwraps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"address","name":"from_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ruggedproject","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"_option","type":"uint256"},{"internalType":"bool","name":"_onoroff","type":"bool"},{"internalType":"address","name":"_address","type":"address"}],"name":"setOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pathno","type":"uint256"},{"internalType":"string","name":"_path","type":"string"},{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"address","name":"_holder","type":"address"}],"name":"setStringArtPaths","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradecontract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapenabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

600880546001600160a01b0319908116733d0830aa84dae5bb64ea091a943dfbeb0719ec52179091556009805490911673fbba42cf92f215eb8f791daf71762bb679fdedd5179055600d805461010161ffff19909116179055610100604052603660a0818152906200348360c03980516200008391600e91602090910190620001c6565b5060405180606001604052806036815260200162003483603691398051620000b491600f91602090910190620001c6565b50348015620000c257600080fd5b506040518060400160405280600581526020016434b63630bd60d91b8152506040518060400160405280600581526020016424a62620ad60d91b815250816000908051906020019062000117929190620001c6565b5080516200012d906001906020840190620001c6565b50506007805460ff191690555062000145336200016c565b6008546001600160a01b0316608052600a80546001600160a01b03191633179055620002a9565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001d4906200026c565b90600052602060002090601f016020900481019282620001f8576000855562000243565b82601f106200021357805160ff191683800117855562000243565b8280016001018555821562000243579182015b828111156200024357825182559160200191906001019062000226565b506200025192915062000255565b5090565b5b8082111562000251576000815560010162000256565b600181811c908216806200028157607f821691505b60208210811415620002a357634e487b7160e01b600052602260045260246000fd5b50919050565b6080516131b0620002d360003960008181610cab015281816117c1015261203f01526131b06000f3fe6080604052600436106102115760003560e01c80638456cb5911610117578063d1e21407116100a5578063e817bb751161006c578063e817bb751461063e578063e985e9c514610658578063eb5416fa146106a1578063f2fde38b146106c1578063f4f3b200146106e157005b8063d1e21407146105aa578063ddd93cc9146105ca578063dde06f74146105ea578063e086e5ec14610609578063e633a5671461061e57005b8063b6e7a9e8116100e9578063b6e7a9e81461050a578063b82527fa1461052a578063b88d4fde1461054a578063c87b56dd1461056a578063cc17a5bf1461058a57005b80638456cb591461049d5780638da5cb5b146104b257806395d89b41146104d5578063a22cb465146104ea57005b80633f4ba83a1161019f5780636352211e116101665780636352211e1461040857806363ac2a4c1461042857806370a0823114610448578063715018a61461046857806376f68ff51461047d57005b80633f4ba83a1461037757806342842e0e1461038c57806352b207c0146103ac5780635c975abb146103d05780635f743a05146103e857005b80630bf11f4f116101e35780630bf11f4f146102c9578063150b7a02146102de57806323b872dd1461031757806331c44b25146103375780633f44f32c1461035757005b806301ffc9a71461021a57806306fdde031461024f578063081812fc14610271578063095ea7b3146102a957005b3661021857005b005b34801561022657600080fd5b5061023a61023536600461291c565b610701565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b50610264610753565b6040516102469190612998565b34801561027d57600080fd5b5061029161028c3660046129ab565b6107e5565b6040516001600160a01b039091168152602001610246565b3480156102b557600080fd5b506102186102c43660046129d9565b610872565b3480156102d557600080fd5b50610264610988565b3480156102ea57600080fd5b506102fe6102f9366004612a91565b610a16565b6040516001600160e01b03199091168152602001610246565b34801561032357600080fd5b50610218610332366004612b11565b610aaa565b34801561034357600080fd5b50610218610352366004612b52565b610adb565b34801561036357600080fd5b506102186103723660046129ab565b610c5b565b34801561038357600080fd5b50610218610e98565b34801561039857600080fd5b506102186103a7366004612b11565b610ed2565b3480156103b857600080fd5b506103c2600c5481565b604051908152602001610246565b3480156103dc57600080fd5b5060075460ff1661023a565b3480156103f457600080fd5b50600954610291906001600160a01b031681565b34801561041457600080fd5b506102916104233660046129ab565b610eed565b34801561043457600080fd5b50610218610443366004612c15565b610f64565b34801561045457600080fd5b506103c2610463366004612c57565b61108d565b34801561047457600080fd5b50610218611114565b34801561048957600080fd5b50600854610291906001600160a01b031681565b3480156104a957600080fd5b5061021861114e565b3480156104be57600080fd5b5060075461010090046001600160a01b0316610291565b3480156104e157600080fd5b50610264611186565b3480156104f657600080fd5b50610218610505366004612c82565b611195565b34801561051657600080fd5b5061023a610525366004612cbb565b61125a565b34801561053657600080fd5b50610218610545366004612ce0565b6112d4565b34801561055657600080fd5b50610218610565366004612a91565b6113d3565b34801561057657600080fd5b506102646105853660046129ab565b611405565b34801561059657600080fd5b506102186105a5366004612c15565b611672565b3480156105b657600080fd5b506102186105c5366004612d22565b6119ea565b3480156105d657600080fd5b506102186105e5366004612d76565b611b87565b3480156105f657600080fd5b50600d5461023a90610100900460ff1681565b34801561061557600080fd5b50610218611c02565b34801561062a57600080fd5b50600b54610291906001600160a01b031681565b34801561064a57600080fd5b50600d5461023a9060ff1681565b34801561066457600080fd5b5061023a610673366004612d94565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106ad57600080fd5b50600a54610291906001600160a01b031681565b3480156106cd57600080fd5b506102186106dc366004612c57565b611ccd565b3480156106ed57600080fd5b506102186106fc366004612c57565b611d6b565b60006001600160e01b031982166380ac58cd60e01b148061073257506001600160e01b03198216635b5e139f60e01b145b8061074d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461076290612dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461078e90612dc2565b80156107db5780601f106107b0576101008083540402835291602001916107db565b820191906000526020600020905b8154815290600101906020018083116107be57829003601f168201915b5050505050905090565b60006107f082611efe565b6108565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061087d82610eed565b9050806001600160a01b0316836001600160a01b031614156108eb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084d565b336001600160a01b038216148061090757506109078133610673565b6109795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084d565b6109838383611f1b565b505050565b600e805461099590612dc2565b80601f01602080910402602001604051908101604052809291908181526020018280546109c190612dc2565b8015610a0e5780601f106109e357610100808354040283529160200191610a0e565b820191906000526020600020905b8154815290600101906020018083116109f157829003601f168201915b505050505081565b6008546000906001600160a01b0316331480610a3157503330145b610a7d5760405162461bcd60e51b815260206004820152601e60248201527f6d757374206265205858585858206f7220577261707065642058585858580000604482015260640161084d565b6008546001600160a01b03163314610a96858286611f89565b50630a85bd0160e11b90505b949350505050565b610ab433826120cb565b610ad05760405162461bcd60e51b815260040161084d90612dfd565b6109838383836121b1565b600a546001600160a01b0316331480610afe5750600b546001600160a01b031633145b80610b1357506009546001600160a01b031633145b610b4b5760405162461bcd60e51b81526020600482015260096024820152684e6f7420417574682160b81b604482015260640161084d565b83610b65578251610b6390600e90602086019061286d565b505b8360011415610b83578251610b8190600f90602086019061286d565b505b8360021415610ba1578251610b9f90601090602086019061286d565b505b8360031415610c35576000610bb6838361125a565b9050600181151514610bfa5760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420417070726f7665642160981b604482015260640161084d565b60008381526012602090815260409091208551610c199287019061286d565b50506000828152601360205260409020805460ff191660011790555b8360041415610c55576000828152601360205260409020805460ff191690555b50505050565b6007546001600160a01b03610100909104163314610c8b5760405162461bcd60e51b815260040161084d90612e4e565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b158015610ced57600080fd5b505afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190612e83565b6001600160a01b03161415610e4157610d3d81611efe565b8015610d59575030610d4e82610eed565b6001600160a01b0316145b15610dbe57610d9030610d7a6007546001600160a01b036101009091041690565b836040518060200160405280600081525061235c565b60405181907f5b8cd8f3a67af1dee11ad4321a05f79a76cc7ea517810fc56d6d96c1e60d368690600090a250565b610dc781611efe565b610de657600754610d909061010090046001600160a01b03168261238f565b60405162461bcd60e51b815260206004820152602a60248201527f57726170706564204e4654206d696e74656420616e6420646973747269627574604482015269656420616c726561647960b01b606482015260840161084d565b60405162461bcd60e51b8152602060048201526024808201527f527567676564204e4654206973206e6f74206c6f636b656420696e20636f6e746044820152631c9858dd60e21b606482015260840161084d565b50565b6007546001600160a01b03610100909104163314610ec85760405162461bcd60e51b815260040161084d90612e4e565b610ed06123a9565b565b610983838383604051806020016040528060008152506113d3565b6000818152600260205260408120546001600160a01b03168061074d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084d565b6000805b82811015610fb557610fa33330868685818110610f8757610f87612ea0565b905060200201356040518060200160405280600081525061235c565b80610fad81612ecc565b915050610f68565b50610fbf3361108d565b9050806109835760095460405163315ca80d60e21b8152600060048201523360248201526001600160a01b039091169063c572a03490604401600060405180830381600087803b15801561101257600080fd5b505af1158015611026573d6000803e3d6000fd5b5050600954604051632b7ce36160e21b8152600160048201526001600160a01b03909116925063adf38d849150602401600060405180830381600087803b15801561107057600080fd5b505af1158015611084573d6000803e3d6000fd5b50505050505050565b60006001600160a01b0382166110f85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161084d565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b036101009091041633146111445760405162461bcd60e51b815260040161084d90612e4e565b610ed060006123fe565b6007546001600160a01b0361010090910416331461117e5760405162461bcd60e51b815260040161084d90612e4e565b610ed0612458565b60606001805461076290612dc2565b6001600160a01b0382163314156111ee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061126684610eed565b9050826001600160a01b0316816001600160a01b0316146112b25760405162461bcd60e51b815260206004820152600660248201526545525228502960d01b604482015260640161084d565b6001600160a01b031660009081526011602052604090205460ff169392505050565b6007546001600160a01b036101009091041633146113045760405162461bcd60e51b815260040161084d90612e4e565b826001141561132957600880546001600160a01b0319166001600160a01b0383161790555b826002141561134e57600980546001600160a01b0319166001600160a01b0383161790555b826003141561136657600d805460ff19168315151790555b826004141561138357600d805461ff001916610100841515021790555b82600514156113a857600b80546001600160a01b0319166001600160a01b0383161790555b826006141561098357600a80546001600160a01b0383166001600160a01b0319909116179055505050565b6113dd33836120cb565b6113f95760405162461bcd60e51b815260040161084d90612dfd565b610c558484848461235c565b600d546060908190819060ff6101009091041615156001141561162e5760095460405163257b4bb760e11b8152600481018690526000916001600160a01b031690634af6976e9060240160206040518083038186803b15801561146757600080fd5b505afa15801561147b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149f9190612ee7565b60008681526013602052604090205490915060ff168015156001141561158557600086815260126020526040902080546114d890612dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461150490612dc2565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b5050505050925082611562876124ad565b604051602001611573929190612f1c565b60405160208183030381529060405293505b8061162b57816115bd57600e61159a876124ad565b6040516020016115ab929190612f5b565b60405160208183030381529060405293505b81600114156115f457600f6115d1876124ad565b6040516020016115e2929190612f5b565b60405160208183030381529060405293505b816002141561162b576010611608876124ad565b604051602001611619929190612f5b565b60405160208183030381529060405293505b50505b600d54610100900460ff1661166b57600e611648856124ad565b604051602001611659929190612f5b565b60405160208183030381529060405291505b5092915050565b600d5481906000908190819060ff1615156001146116d25760405162461bcd60e51b815260206004820152601860248201527f5772617070696e67206973206e6f7420656e61626c6564210000000000000000604482015260640161084d565b60005b84811015611884576009546001600160a01b031663fb74a54b88888481811061170057611700612ea0565b905060200201356040518263ffffffff1660e01b815260040161172591815260200190565b604080518083038186803b15801561173c57600080fd5b505afa158015611750573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117749190613016565b9094509150600184151514156117bf5760405162461bcd60e51b815260206004820152601060248201526f42616e6e656420546f6b656e5f49442160801b604482015260640161084d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e33308a8a8681811061180257611802612ea0565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b50505050808061187c90612ecc565b9150506116d5565b50600954604051636a6bd8cd60e11b81523360048201526001600160a01b039091169063d4d7b19a9060240160206040518083038186803b1580156118c857600080fd5b505afa1580156118dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119009190613044565b9150816119ca5760095460405163315ca80d60e21b8152600160048201523360248201526001600160a01b039091169063c572a03490604401600060405180830381600087803b15801561195357600080fd5b505af1158015611967573d6000803e3d6000fd5b5050600954604051632b7ce36160e21b8152600260048201526001600160a01b03909116925063adf38d849150602401600060405180830381600087803b1580156119b157600080fd5b505af11580156119c5573d6000803e3d6000fd5b505050505b6001600c60008282546119dd9190613061565b9091555050505050505050565b6007546001600160a01b03610100909104163314611a1a5760405162461bcd60e51b815260040161084d90612e4e565b8260005b81811015611b7f5760095460009081906001600160a01b031663fb74a54b898986818110611a4e57611a4e612ea0565b905060200201356040518263ffffffff1660e01b8152600401611a7391815260200190565b604080518083038186803b158015611a8a57600080fd5b505afa158015611a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac29190613016565b9092509050600182151514611b0f5760405162461bcd60e51b81526020600482015260136024820152724e6f7420612042616e6e656420546f6b656e2160681b604482015260640161084d565b8560011415611b4b57600754611b4b9061010090046001600160a01b0316898986818110611b3f57611b3f612ea0565b9050602002013561238f565b8560021415611b6a57611b6a85898986818110611b3f57611b3f612ea0565b50508080611b7790612ecc565b915050611a1e565b505050505050565b611b9081610eed565b6001600160a01b0316336001600160a01b031614611be15760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161084d565b50336000908152601160205260409020805460ff1916911515919091179055565b6007546001600160a01b03610100909104163314611c325760405162461bcd60e51b815260040161084d90612e4e565b60075460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114611c84576040519150601f19603f3d011682016040523d82523d6000602084013e611c89565b606091505b5050905080610e955760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161084d565b6007546001600160a01b03610100909104163314611cfd5760405162461bcd60e51b815260040161084d90612e4e565b6001600160a01b038116611d625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084d565b610e95816123fe565b6007546001600160a01b03610100909104163314611d9b5760405162461bcd60e51b815260040161084d90612e4e565b6000816001600160a01b031663a9059cbb611dc46007546001600160a01b036101009091041690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015611e0357600080fd5b505afa158015611e17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3b9190612ee7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611e8157600080fd5b505af1158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613044565b905080611efa5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161084d565b5050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f5082610eed565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b811561201357611f9881611efe565b8015611fb4575030611fa982610eed565b6001600160a01b0316145b15611fd957611fd43084836040518060200160405280600081525061235c565b611fe3565b611fe3838261238f565b60405181907f5b8cd8f3a67af1dee11ad4321a05f79a76cc7ea517810fc56d6d96c1e60d368690600090a2505050565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b50506040518392507fbeaa92c6354c6dcf375d2c514352b2c11bc865784722e5dd9b267e606eb5fc5f9150600090a2505050565b60006120d682611efe565b6121375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b600061214283610eed565b9050806001600160a01b0316846001600160a01b0316148061217d5750836001600160a01b0316612172846107e5565b6001600160a01b0316145b80610aa257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610aa2565b826001600160a01b03166121c482610eed565b6001600160a01b03161461222c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084d565b6001600160a01b03821661228e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b6122998383836125ab565b6122a4600082611f1b565b6001600160a01b03831660009081526003602052604081208054600192906122cd908490613079565b90915550506001600160a01b03821660009081526003602052604081208054600192906122fb908490613061565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6123678484846121b1565b612373848484846125f1565b610c555760405162461bcd60e51b815260040161084d90613090565b611efa8282604051806020016040528060008152506126fb565b60075460ff166123f25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084d565b6007805460ff19169055565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff161561249e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b6007805460ff19166001179055565b6060816124d15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156124fb57806124e581612ecc565b91506124f49050600a836130f8565b91506124d5565b60008167ffffffffffffffff81111561251657612516612a05565b6040519080825280601f01601f191660200182016040528015612540576020820181803683370190505b5090505b8415610aa257612555600183613079565b9150612562600a8661310c565b61256d906030613061565b60f81b81838151811061258257612582612ea0565b60200101906001600160f81b031916908160001a9053506125a4600a866130f8565b9450612544565b60075460ff16156109835760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b60006001600160a01b0384163b156126f357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612635903390899088908890600401613120565b602060405180830381600087803b15801561264f57600080fd5b505af192505050801561267f575060408051601f3d908101601f1916820190925261267c9181019061315d565b60015b6126d9573d8080156126ad576040519150601f19603f3d011682016040523d82523d6000602084013e6126b2565b606091505b5080516126d15760405162461bcd60e51b815260040161084d90613090565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610aa2565b506001610aa2565b612705838361272e565b61271260008484846125f1565b6109835760405162461bcd60e51b815260040161084d90613090565b6001600160a01b0382166127845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084d565b61278d81611efe565b156127da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084d565b6127e6600083836125ab565b6001600160a01b038216600090815260036020526040812080546001929061280f908490613061565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461287990612dc2565b90600052602060002090601f01602090048101928261289b57600085556128e1565b82601f106128b457805160ff19168380011785556128e1565b828001600101855582156128e1579182015b828111156128e15782518255916020019190600101906128c6565b506128ed9291506128f1565b5090565b5b808211156128ed57600081556001016128f2565b6001600160e01b031981168114610e9557600080fd5b60006020828403121561292e57600080fd5b813561293981612906565b9392505050565b60005b8381101561295b578181015183820152602001612943565b83811115610c555750506000910152565b60008151808452612984816020860160208601612940565b601f01601f19169290920160200192915050565b602081526000612939602083018461296c565b6000602082840312156129bd57600080fd5b5035919050565b6001600160a01b0381168114610e9557600080fd5b600080604083850312156129ec57600080fd5b82356129f7816129c4565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a3657612a36612a05565b604051601f8501601f19908116603f01168101908282118183101715612a5e57612a5e612a05565b81604052809350858152868686011115612a7757600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215612aa757600080fd5b8435612ab2816129c4565b93506020850135612ac2816129c4565b925060408501359150606085013567ffffffffffffffff811115612ae557600080fd5b8501601f81018713612af657600080fd5b612b0587823560208401612a1b565b91505092959194509250565b600080600060608486031215612b2657600080fd5b8335612b31816129c4565b92506020840135612b41816129c4565b929592945050506040919091013590565b60008060008060808587031215612b6857600080fd5b84359350602085013567ffffffffffffffff811115612b8657600080fd5b8501601f81018713612b9757600080fd5b612ba687823560208401612a1b565b935050604085013591506060850135612bbe816129c4565b939692955090935050565b60008083601f840112612bdb57600080fd5b50813567ffffffffffffffff811115612bf357600080fd5b6020830191508360208260051b8501011115612c0e57600080fd5b9250929050565b60008060208385031215612c2857600080fd5b823567ffffffffffffffff811115612c3f57600080fd5b612c4b85828601612bc9565b90969095509350505050565b600060208284031215612c6957600080fd5b8135612939816129c4565b8015158114610e9557600080fd5b60008060408385031215612c9557600080fd5b8235612ca0816129c4565b91506020830135612cb081612c74565b809150509250929050565b60008060408385031215612cce57600080fd5b823591506020830135612cb0816129c4565b600080600060608486031215612cf557600080fd5b833592506020840135612d0781612c74565b91506040840135612d17816129c4565b809150509250925092565b60008060008060608587031215612d3857600080fd5b843567ffffffffffffffff811115612d4f57600080fd5b612d5b87828801612bc9565b909550935050602085013591506040850135612bbe816129c4565b60008060408385031215612d8957600080fd5b82356129f781612c74565b60008060408385031215612da757600080fd5b8235612db2816129c4565b91506020830135612cb0816129c4565b600181811c90821680612dd657607f821691505b60208210811415612df757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612e9557600080fd5b8151612939816129c4565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ee057612ee0612eb6565b5060010190565b600060208284031215612ef957600080fd5b5051919050565b60008151612f12818560208601612940565b9290920192915050565b60008351612f2e818460208801612940565b835190830190612f42818360208801612940565b64173539b7b760d91b9101908152600501949350505050565b600080845481600182811c915080831680612f7757607f831692505b6020808410821415612f9757634e487b7160e01b86526022600452602486fd5b818015612fab5760018114612fbc57612fe9565b60ff19861689528489019650612fe9565b60008b81526020902060005b86811015612fe15781548b820152908501908301612fc8565b505084890196505b50505050505061300d612ffc8286612f00565b64173539b7b760d91b815260050190565b95945050505050565b6000806040838503121561302957600080fd5b825161303481612c74565b6020939093015192949293505050565b60006020828403121561305657600080fd5b815161293981612c74565b6000821982111561307457613074612eb6565b500190565b60008282101561308b5761308b612eb6565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613107576131076130e2565b500490565b60008261311b5761311b6130e2565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131539083018461296c565b9695505050505050565b60006020828403121561316f57600080fd5b81516129398161290656fea264697066735822122020fff172922a1db8ec02ab8280020f9344469365cfef012cabc66fceae2bf82d64736f6c63430008090033697066733a2f2f516d4e56616f56626e5332436363734b7344444a456d414652534b64394a507a52515a45723841625936537a34662f

Deployed Bytecode

0x6080604052600436106102115760003560e01c80638456cb5911610117578063d1e21407116100a5578063e817bb751161006c578063e817bb751461063e578063e985e9c514610658578063eb5416fa146106a1578063f2fde38b146106c1578063f4f3b200146106e157005b8063d1e21407146105aa578063ddd93cc9146105ca578063dde06f74146105ea578063e086e5ec14610609578063e633a5671461061e57005b8063b6e7a9e8116100e9578063b6e7a9e81461050a578063b82527fa1461052a578063b88d4fde1461054a578063c87b56dd1461056a578063cc17a5bf1461058a57005b80638456cb591461049d5780638da5cb5b146104b257806395d89b41146104d5578063a22cb465146104ea57005b80633f4ba83a1161019f5780636352211e116101665780636352211e1461040857806363ac2a4c1461042857806370a0823114610448578063715018a61461046857806376f68ff51461047d57005b80633f4ba83a1461037757806342842e0e1461038c57806352b207c0146103ac5780635c975abb146103d05780635f743a05146103e857005b80630bf11f4f116101e35780630bf11f4f146102c9578063150b7a02146102de57806323b872dd1461031757806331c44b25146103375780633f44f32c1461035757005b806301ffc9a71461021a57806306fdde031461024f578063081812fc14610271578063095ea7b3146102a957005b3661021857005b005b34801561022657600080fd5b5061023a61023536600461291c565b610701565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b50610264610753565b6040516102469190612998565b34801561027d57600080fd5b5061029161028c3660046129ab565b6107e5565b6040516001600160a01b039091168152602001610246565b3480156102b557600080fd5b506102186102c43660046129d9565b610872565b3480156102d557600080fd5b50610264610988565b3480156102ea57600080fd5b506102fe6102f9366004612a91565b610a16565b6040516001600160e01b03199091168152602001610246565b34801561032357600080fd5b50610218610332366004612b11565b610aaa565b34801561034357600080fd5b50610218610352366004612b52565b610adb565b34801561036357600080fd5b506102186103723660046129ab565b610c5b565b34801561038357600080fd5b50610218610e98565b34801561039857600080fd5b506102186103a7366004612b11565b610ed2565b3480156103b857600080fd5b506103c2600c5481565b604051908152602001610246565b3480156103dc57600080fd5b5060075460ff1661023a565b3480156103f457600080fd5b50600954610291906001600160a01b031681565b34801561041457600080fd5b506102916104233660046129ab565b610eed565b34801561043457600080fd5b50610218610443366004612c15565b610f64565b34801561045457600080fd5b506103c2610463366004612c57565b61108d565b34801561047457600080fd5b50610218611114565b34801561048957600080fd5b50600854610291906001600160a01b031681565b3480156104a957600080fd5b5061021861114e565b3480156104be57600080fd5b5060075461010090046001600160a01b0316610291565b3480156104e157600080fd5b50610264611186565b3480156104f657600080fd5b50610218610505366004612c82565b611195565b34801561051657600080fd5b5061023a610525366004612cbb565b61125a565b34801561053657600080fd5b50610218610545366004612ce0565b6112d4565b34801561055657600080fd5b50610218610565366004612a91565b6113d3565b34801561057657600080fd5b506102646105853660046129ab565b611405565b34801561059657600080fd5b506102186105a5366004612c15565b611672565b3480156105b657600080fd5b506102186105c5366004612d22565b6119ea565b3480156105d657600080fd5b506102186105e5366004612d76565b611b87565b3480156105f657600080fd5b50600d5461023a90610100900460ff1681565b34801561061557600080fd5b50610218611c02565b34801561062a57600080fd5b50600b54610291906001600160a01b031681565b34801561064a57600080fd5b50600d5461023a9060ff1681565b34801561066457600080fd5b5061023a610673366004612d94565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106ad57600080fd5b50600a54610291906001600160a01b031681565b3480156106cd57600080fd5b506102186106dc366004612c57565b611ccd565b3480156106ed57600080fd5b506102186106fc366004612c57565b611d6b565b60006001600160e01b031982166380ac58cd60e01b148061073257506001600160e01b03198216635b5e139f60e01b145b8061074d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461076290612dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461078e90612dc2565b80156107db5780601f106107b0576101008083540402835291602001916107db565b820191906000526020600020905b8154815290600101906020018083116107be57829003601f168201915b5050505050905090565b60006107f082611efe565b6108565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061087d82610eed565b9050806001600160a01b0316836001600160a01b031614156108eb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084d565b336001600160a01b038216148061090757506109078133610673565b6109795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084d565b6109838383611f1b565b505050565b600e805461099590612dc2565b80601f01602080910402602001604051908101604052809291908181526020018280546109c190612dc2565b8015610a0e5780601f106109e357610100808354040283529160200191610a0e565b820191906000526020600020905b8154815290600101906020018083116109f157829003601f168201915b505050505081565b6008546000906001600160a01b0316331480610a3157503330145b610a7d5760405162461bcd60e51b815260206004820152601e60248201527f6d757374206265205858585858206f7220577261707065642058585858580000604482015260640161084d565b6008546001600160a01b03163314610a96858286611f89565b50630a85bd0160e11b90505b949350505050565b610ab433826120cb565b610ad05760405162461bcd60e51b815260040161084d90612dfd565b6109838383836121b1565b600a546001600160a01b0316331480610afe5750600b546001600160a01b031633145b80610b1357506009546001600160a01b031633145b610b4b5760405162461bcd60e51b81526020600482015260096024820152684e6f7420417574682160b81b604482015260640161084d565b83610b65578251610b6390600e90602086019061286d565b505b8360011415610b83578251610b8190600f90602086019061286d565b505b8360021415610ba1578251610b9f90601090602086019061286d565b505b8360031415610c35576000610bb6838361125a565b9050600181151514610bfa5760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420417070726f7665642160981b604482015260640161084d565b60008381526012602090815260409091208551610c199287019061286d565b50506000828152601360205260409020805460ff191660011790555b8360041415610c55576000828152601360205260409020805460ff191690555b50505050565b6007546001600160a01b03610100909104163314610c8b5760405162461bcd60e51b815260040161084d90612e4e565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f0000000000000000000000003d0830aa84dae5bb64ea091a943dfbeb0719ec521690636352211e9060240160206040518083038186803b158015610ced57600080fd5b505afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190612e83565b6001600160a01b03161415610e4157610d3d81611efe565b8015610d59575030610d4e82610eed565b6001600160a01b0316145b15610dbe57610d9030610d7a6007546001600160a01b036101009091041690565b836040518060200160405280600081525061235c565b60405181907f5b8cd8f3a67af1dee11ad4321a05f79a76cc7ea517810fc56d6d96c1e60d368690600090a250565b610dc781611efe565b610de657600754610d909061010090046001600160a01b03168261238f565b60405162461bcd60e51b815260206004820152602a60248201527f57726170706564204e4654206d696e74656420616e6420646973747269627574604482015269656420616c726561647960b01b606482015260840161084d565b60405162461bcd60e51b8152602060048201526024808201527f527567676564204e4654206973206e6f74206c6f636b656420696e20636f6e746044820152631c9858dd60e21b606482015260840161084d565b50565b6007546001600160a01b03610100909104163314610ec85760405162461bcd60e51b815260040161084d90612e4e565b610ed06123a9565b565b610983838383604051806020016040528060008152506113d3565b6000818152600260205260408120546001600160a01b03168061074d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084d565b6000805b82811015610fb557610fa33330868685818110610f8757610f87612ea0565b905060200201356040518060200160405280600081525061235c565b80610fad81612ecc565b915050610f68565b50610fbf3361108d565b9050806109835760095460405163315ca80d60e21b8152600060048201523360248201526001600160a01b039091169063c572a03490604401600060405180830381600087803b15801561101257600080fd5b505af1158015611026573d6000803e3d6000fd5b5050600954604051632b7ce36160e21b8152600160048201526001600160a01b03909116925063adf38d849150602401600060405180830381600087803b15801561107057600080fd5b505af1158015611084573d6000803e3d6000fd5b50505050505050565b60006001600160a01b0382166110f85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161084d565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b036101009091041633146111445760405162461bcd60e51b815260040161084d90612e4e565b610ed060006123fe565b6007546001600160a01b0361010090910416331461117e5760405162461bcd60e51b815260040161084d90612e4e565b610ed0612458565b60606001805461076290612dc2565b6001600160a01b0382163314156111ee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061126684610eed565b9050826001600160a01b0316816001600160a01b0316146112b25760405162461bcd60e51b815260206004820152600660248201526545525228502960d01b604482015260640161084d565b6001600160a01b031660009081526011602052604090205460ff169392505050565b6007546001600160a01b036101009091041633146113045760405162461bcd60e51b815260040161084d90612e4e565b826001141561132957600880546001600160a01b0319166001600160a01b0383161790555b826002141561134e57600980546001600160a01b0319166001600160a01b0383161790555b826003141561136657600d805460ff19168315151790555b826004141561138357600d805461ff001916610100841515021790555b82600514156113a857600b80546001600160a01b0319166001600160a01b0383161790555b826006141561098357600a80546001600160a01b0383166001600160a01b0319909116179055505050565b6113dd33836120cb565b6113f95760405162461bcd60e51b815260040161084d90612dfd565b610c558484848461235c565b600d546060908190819060ff6101009091041615156001141561162e5760095460405163257b4bb760e11b8152600481018690526000916001600160a01b031690634af6976e9060240160206040518083038186803b15801561146757600080fd5b505afa15801561147b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149f9190612ee7565b60008681526013602052604090205490915060ff168015156001141561158557600086815260126020526040902080546114d890612dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461150490612dc2565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b5050505050925082611562876124ad565b604051602001611573929190612f1c565b60405160208183030381529060405293505b8061162b57816115bd57600e61159a876124ad565b6040516020016115ab929190612f5b565b60405160208183030381529060405293505b81600114156115f457600f6115d1876124ad565b6040516020016115e2929190612f5b565b60405160208183030381529060405293505b816002141561162b576010611608876124ad565b604051602001611619929190612f5b565b60405160208183030381529060405293505b50505b600d54610100900460ff1661166b57600e611648856124ad565b604051602001611659929190612f5b565b60405160208183030381529060405291505b5092915050565b600d5481906000908190819060ff1615156001146116d25760405162461bcd60e51b815260206004820152601860248201527f5772617070696e67206973206e6f7420656e61626c6564210000000000000000604482015260640161084d565b60005b84811015611884576009546001600160a01b031663fb74a54b88888481811061170057611700612ea0565b905060200201356040518263ffffffff1660e01b815260040161172591815260200190565b604080518083038186803b15801561173c57600080fd5b505afa158015611750573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117749190613016565b9094509150600184151514156117bf5760405162461bcd60e51b815260206004820152601060248201526f42616e6e656420546f6b656e5f49442160801b604482015260640161084d565b7f0000000000000000000000003d0830aa84dae5bb64ea091a943dfbeb0719ec526001600160a01b03166342842e0e33308a8a8681811061180257611802612ea0565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b50505050808061187c90612ecc565b9150506116d5565b50600954604051636a6bd8cd60e11b81523360048201526001600160a01b039091169063d4d7b19a9060240160206040518083038186803b1580156118c857600080fd5b505afa1580156118dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119009190613044565b9150816119ca5760095460405163315ca80d60e21b8152600160048201523360248201526001600160a01b039091169063c572a03490604401600060405180830381600087803b15801561195357600080fd5b505af1158015611967573d6000803e3d6000fd5b5050600954604051632b7ce36160e21b8152600260048201526001600160a01b03909116925063adf38d849150602401600060405180830381600087803b1580156119b157600080fd5b505af11580156119c5573d6000803e3d6000fd5b505050505b6001600c60008282546119dd9190613061565b9091555050505050505050565b6007546001600160a01b03610100909104163314611a1a5760405162461bcd60e51b815260040161084d90612e4e565b8260005b81811015611b7f5760095460009081906001600160a01b031663fb74a54b898986818110611a4e57611a4e612ea0565b905060200201356040518263ffffffff1660e01b8152600401611a7391815260200190565b604080518083038186803b158015611a8a57600080fd5b505afa158015611a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac29190613016565b9092509050600182151514611b0f5760405162461bcd60e51b81526020600482015260136024820152724e6f7420612042616e6e656420546f6b656e2160681b604482015260640161084d565b8560011415611b4b57600754611b4b9061010090046001600160a01b0316898986818110611b3f57611b3f612ea0565b9050602002013561238f565b8560021415611b6a57611b6a85898986818110611b3f57611b3f612ea0565b50508080611b7790612ecc565b915050611a1e565b505050505050565b611b9081610eed565b6001600160a01b0316336001600160a01b031614611be15760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161084d565b50336000908152601160205260409020805460ff1916911515919091179055565b6007546001600160a01b03610100909104163314611c325760405162461bcd60e51b815260040161084d90612e4e565b60075460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114611c84576040519150601f19603f3d011682016040523d82523d6000602084013e611c89565b606091505b5050905080610e955760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161084d565b6007546001600160a01b03610100909104163314611cfd5760405162461bcd60e51b815260040161084d90612e4e565b6001600160a01b038116611d625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084d565b610e95816123fe565b6007546001600160a01b03610100909104163314611d9b5760405162461bcd60e51b815260040161084d90612e4e565b6000816001600160a01b031663a9059cbb611dc46007546001600160a01b036101009091041690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015611e0357600080fd5b505afa158015611e17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3b9190612ee7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611e8157600080fd5b505af1158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613044565b905080611efa5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161084d565b5050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f5082610eed565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b811561201357611f9881611efe565b8015611fb4575030611fa982610eed565b6001600160a01b0316145b15611fd957611fd43084836040518060200160405280600081525061235c565b611fe3565b611fe3838261238f565b60405181907f5b8cd8f3a67af1dee11ad4321a05f79a76cc7ea517810fc56d6d96c1e60d368690600090a2505050565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390527f0000000000000000000000003d0830aa84dae5bb64ea091a943dfbeb0719ec5216906342842e0e90606401600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b50506040518392507fbeaa92c6354c6dcf375d2c514352b2c11bc865784722e5dd9b267e606eb5fc5f9150600090a2505050565b60006120d682611efe565b6121375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b600061214283610eed565b9050806001600160a01b0316846001600160a01b0316148061217d5750836001600160a01b0316612172846107e5565b6001600160a01b0316145b80610aa257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610aa2565b826001600160a01b03166121c482610eed565b6001600160a01b03161461222c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084d565b6001600160a01b03821661228e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b6122998383836125ab565b6122a4600082611f1b565b6001600160a01b03831660009081526003602052604081208054600192906122cd908490613079565b90915550506001600160a01b03821660009081526003602052604081208054600192906122fb908490613061565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6123678484846121b1565b612373848484846125f1565b610c555760405162461bcd60e51b815260040161084d90613090565b611efa8282604051806020016040528060008152506126fb565b60075460ff166123f25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084d565b6007805460ff19169055565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff161561249e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b6007805460ff19166001179055565b6060816124d15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156124fb57806124e581612ecc565b91506124f49050600a836130f8565b91506124d5565b60008167ffffffffffffffff81111561251657612516612a05565b6040519080825280601f01601f191660200182016040528015612540576020820181803683370190505b5090505b8415610aa257612555600183613079565b9150612562600a8661310c565b61256d906030613061565b60f81b81838151811061258257612582612ea0565b60200101906001600160f81b031916908160001a9053506125a4600a866130f8565b9450612544565b60075460ff16156109835760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b60006001600160a01b0384163b156126f357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612635903390899088908890600401613120565b602060405180830381600087803b15801561264f57600080fd5b505af192505050801561267f575060408051601f3d908101601f1916820190925261267c9181019061315d565b60015b6126d9573d8080156126ad576040519150601f19603f3d011682016040523d82523d6000602084013e6126b2565b606091505b5080516126d15760405162461bcd60e51b815260040161084d90613090565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610aa2565b506001610aa2565b612705838361272e565b61271260008484846125f1565b6109835760405162461bcd60e51b815260040161084d90613090565b6001600160a01b0382166127845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084d565b61278d81611efe565b156127da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084d565b6127e6600083836125ab565b6001600160a01b038216600090815260036020526040812080546001929061280f908490613061565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461287990612dc2565b90600052602060002090601f01602090048101928261289b57600085556128e1565b82601f106128b457805160ff19168380011785556128e1565b828001600101855582156128e1579182015b828111156128e15782518255916020019190600101906128c6565b506128ed9291506128f1565b5090565b5b808211156128ed57600081556001016128f2565b6001600160e01b031981168114610e9557600080fd5b60006020828403121561292e57600080fd5b813561293981612906565b9392505050565b60005b8381101561295b578181015183820152602001612943565b83811115610c555750506000910152565b60008151808452612984816020860160208601612940565b601f01601f19169290920160200192915050565b602081526000612939602083018461296c565b6000602082840312156129bd57600080fd5b5035919050565b6001600160a01b0381168114610e9557600080fd5b600080604083850312156129ec57600080fd5b82356129f7816129c4565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a3657612a36612a05565b604051601f8501601f19908116603f01168101908282118183101715612a5e57612a5e612a05565b81604052809350858152868686011115612a7757600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215612aa757600080fd5b8435612ab2816129c4565b93506020850135612ac2816129c4565b925060408501359150606085013567ffffffffffffffff811115612ae557600080fd5b8501601f81018713612af657600080fd5b612b0587823560208401612a1b565b91505092959194509250565b600080600060608486031215612b2657600080fd5b8335612b31816129c4565b92506020840135612b41816129c4565b929592945050506040919091013590565b60008060008060808587031215612b6857600080fd5b84359350602085013567ffffffffffffffff811115612b8657600080fd5b8501601f81018713612b9757600080fd5b612ba687823560208401612a1b565b935050604085013591506060850135612bbe816129c4565b939692955090935050565b60008083601f840112612bdb57600080fd5b50813567ffffffffffffffff811115612bf357600080fd5b6020830191508360208260051b8501011115612c0e57600080fd5b9250929050565b60008060208385031215612c2857600080fd5b823567ffffffffffffffff811115612c3f57600080fd5b612c4b85828601612bc9565b90969095509350505050565b600060208284031215612c6957600080fd5b8135612939816129c4565b8015158114610e9557600080fd5b60008060408385031215612c9557600080fd5b8235612ca0816129c4565b91506020830135612cb081612c74565b809150509250929050565b60008060408385031215612cce57600080fd5b823591506020830135612cb0816129c4565b600080600060608486031215612cf557600080fd5b833592506020840135612d0781612c74565b91506040840135612d17816129c4565b809150509250925092565b60008060008060608587031215612d3857600080fd5b843567ffffffffffffffff811115612d4f57600080fd5b612d5b87828801612bc9565b909550935050602085013591506040850135612bbe816129c4565b60008060408385031215612d8957600080fd5b82356129f781612c74565b60008060408385031215612da757600080fd5b8235612db2816129c4565b91506020830135612cb0816129c4565b600181811c90821680612dd657607f821691505b60208210811415612df757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612e9557600080fd5b8151612939816129c4565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ee057612ee0612eb6565b5060010190565b600060208284031215612ef957600080fd5b5051919050565b60008151612f12818560208601612940565b9290920192915050565b60008351612f2e818460208801612940565b835190830190612f42818360208801612940565b64173539b7b760d91b9101908152600501949350505050565b600080845481600182811c915080831680612f7757607f831692505b6020808410821415612f9757634e487b7160e01b86526022600452602486fd5b818015612fab5760018114612fbc57612fe9565b60ff19861689528489019650612fe9565b60008b81526020902060005b86811015612fe15781548b820152908501908301612fc8565b505084890196505b50505050505061300d612ffc8286612f00565b64173539b7b760d91b815260050190565b95945050505050565b6000806040838503121561302957600080fd5b825161303481612c74565b6020939093015192949293505050565b60006020828403121561305657600080fd5b815161293981612c74565b6000821982111561307457613074612eb6565b500190565b60008282101561308b5761308b612eb6565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613107576131076130e2565b500490565b60008261311b5761311b6130e2565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131539083018461296c565b9695505050505050565b60006020828403121561316f57600080fd5b81516129398161290656fea264697066735822122020fff172922a1db8ec02ab8280020f9344469365cfef012cabc66fceae2bf82d64736f6c63430008090033

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

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