ETH Price: $3,341.59 (-1.14%)

Contract

0x4f387f1918dd12B8Fc10cC1c9DcE59a8F62F0055
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint142633602022-02-23 16:13:241038 days ago1645632804IN
0x4f387f19...8F62F0055
0.01 ETH0.007737789.12761836

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
142633602022-02-23 16:13:241038 days ago1645632804
0x4f387f19...8F62F0055
0.01 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Thubbycats

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 12 : Thubbycats.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "./Base64.sol";

contract Thubbycats is ERC721, Ownable {
    using Strings for uint256;
    using Address for address;
    using Address for address payable;

    /**
     * Constants
     */

    uint256 public constant MINTING_TIP = 0.01 ether;
    address public constant TUBBY_CONTRACT =
        0xCa7cA7BcC765F77339bE2d648BA53ce9c8a262bD;
    address public constant TUBBY_TREASURY =
        0x5FE038640E440006e1002EbE69b22E12C5c055aD;

    /**
     * Variables
     */

    string public baseURI;

    constructor(string memory _baseURI) ERC721("Thubby Cats", "THUBBY") {
        baseURI = _baseURI;
    }

    /**
     * Public functions
     */

    /// @dev Mint a thubby cat
    function mint(uint256 _tokenId) external payable {
        require(msg.value >= MINTING_TIP, "Not enough ether");

        _mint(msg.sender, _tokenId);

        IERC721 tubbies = IERC721(TUBBY_CONTRACT);
        address tubbyOwner = tubbies.ownerOf(_tokenId);

        // If the original tubby cat has an owner
        // and it's an EOA, forward minting fees to them
        if (tubbyOwner != address(0) && !tubbyOwner.isContract()) {
            payable(tubbyOwner).sendValue(MINTING_TIP);
        }
    }

    /// @dev Check if the thubby cat is still available
    function isMintable(uint _tokenId) external view returns (bool) {
        return !_exists(_tokenId);
    }

    /// @dev Get token metadata URI
    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        return string(abi.encodePacked(baseURI, _tokenId.toString()));
    }

    /// @dev Get base64-encoded contract metadata
    function contractURI() external pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name":"thubby cats",',
                                    '"description":"thubby cats is a flipped tubby cats derivative with a twist. All secondary sale royalties go to the tubby cats treasury and minting fees to OG tubby cat holders. Note that thubby cats are in no way affiliated with the tubby cats project or the tubby collective.",',
                                    // Same 2.5% royalties as tubby cats
                                    '"seller_fee_basis_points": 250,'
                                    // Send royalties to the tubby cats treasury
                                    '"fee_recipient": "',
                                    uint256(uint160(TUBBY_TREASURY))
                                        .toHexString(),
                                    '"}'
                                )
                            )
                        )
                    )
                )
            );
    }

    /**
     * Admin functions
     */

    /// @dev Withdraw minting fees
    function withdraw(address payable _destination) external onlyOwner {
        _destination.sendValue(address(this).balance);
    }

    /// @dev Update baseURI
    function setBaseURI(string memory _newURI) external onlyOwner {
        baseURI = _newURI;
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 12 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 6 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 9 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 12 of 12 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINTING_TIP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TUBBY_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TUBBY_TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isMintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":[{"internalType":"address payable","name":"_destination","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200253f3803806200253f8339810160408190526200003491620001e7565b604080518082018252600b81526a546875626279204361747360a81b60208083019182528351808501909452600684526554485542425960d01b90840152815191929162000085916000916200012b565b5080516200009b9060019060208401906200012b565b505050620000b8620000b2620000d560201b60201c565b620000d9565b8051620000cd9060079060208401906200012b565b505062000300565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013990620002c3565b90600052602060002090601f0160209004810192826200015d5760008555620001a8565b82601f106200017857805160ff1916838001178555620001a8565b82800160010185558215620001a8579182015b82811115620001a85782518255916020019190600101906200018b565b50620001b6929150620001ba565b5090565b5b80821115620001b65760008155600101620001bb565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620001fb57600080fd5b82516001600160401b03808211156200021357600080fd5b818501915085601f8301126200022857600080fd5b8151818111156200023d576200023d620001d1565b604051601f8201601f19908116603f01168101908382118183101715620002685762000268620001d1565b8160405282815288868487010111156200028157600080fd5b600093505b82841015620002a5578484018601518185018701529285019262000286565b82841115620002b75760008684830101525b98975050505050505050565b600181811c90821680620002d857607f821691505b60208210811415620002fa57634e487b7160e01b600052602260045260246000fd5b50919050565b61222f80620003106000396000f3fe6080604052600436106101665760003560e01c80636c0360eb116100d1578063a0712d681161008a578063c87b56dd11610064578063c87b56dd1461043c578063e8a3d4851461045c578063e985e9c514610471578063f2fde38b146104ba57600080fd5b8063a0712d68146103e9578063a22cb465146103fc578063b88d4fde1461041c57600080fd5b80636c0360eb1461034457806370a0823114610359578063715018a6146103795780638da5cb5b1461038e5780639150bb7d146103ac57806395d89b41146103d457600080fd5b806342842e0e1161012357806342842e0e146102655780634a3716211461028557806351cff8d9146102ad57806355f804b3146102cd5780635b31cb36146102ed5780636352211e1461032457600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806323b872dd1461021c5780633ad433831461023c575b600080fd5b34801561017757600080fd5b5061018b61018636600461196d565b6104da565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b561052c565b60405161019791906119e2565b3480156101ce57600080fd5b506101e26101dd3660046119f5565b6105be565b6040516001600160a01b039091168152602001610197565b34801561020657600080fd5b5061021a610215366004611a23565b610658565b005b34801561022857600080fd5b5061021a610237366004611a4f565b61076e565b34801561024857600080fd5b50610257662386f26fc1000081565b604051908152602001610197565b34801561027157600080fd5b5061021a610280366004611a4f565b61079f565b34801561029157600080fd5b506101e273ca7ca7bcc765f77339be2d648ba53ce9c8a262bd81565b3480156102b957600080fd5b5061021a6102c8366004611a90565b6107ba565b3480156102d957600080fd5b5061021a6102e8366004611b39565b6107fa565b3480156102f957600080fd5b5061018b6103083660046119f5565b6000908152600260205260409020546001600160a01b03161590565b34801561033057600080fd5b506101e261033f3660046119f5565b61083b565b34801561035057600080fd5b506101b56108b2565b34801561036557600080fd5b50610257610374366004611a90565b610940565b34801561038557600080fd5b5061021a6109c7565b34801561039a57600080fd5b506006546001600160a01b03166101e2565b3480156103b857600080fd5b506101e2735fe038640e440006e1002ebe69b22e12c5c055ad81565b3480156103e057600080fd5b506101b56109fd565b61021a6103f73660046119f5565b610a0c565b34801561040857600080fd5b5061021a610417366004611b82565b610b29565b34801561042857600080fd5b5061021a610437366004611bc0565b610b34565b34801561044857600080fd5b506101b56104573660046119f5565b610b6c565b34801561046857600080fd5b506101b5610ba0565b34801561047d57600080fd5b5061018b61048c366004611c40565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104c657600080fd5b5061021a6104d5366004611a90565b610c0a565b60006001600160e01b031982166380ac58cd60e01b148061050b57506001600160e01b03198216635b5e139f60e01b145b8061052657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461053b90611c6e565b80601f016020809104026020016040519081016040528092919081815260200182805461056790611c6e565b80156105b45780601f10610589576101008083540402835291602001916105b4565b820191906000526020600020905b81548152906001019060200180831161059757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661063c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106638261083b565b9050806001600160a01b0316836001600160a01b031614156106d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610633565b336001600160a01b03821614806106ed57506106ed813361048c565b61075f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610633565b6107698383610ca2565b505050565b6107783382610d10565b6107945760405162461bcd60e51b815260040161063390611ca9565b610769838383610e07565b61076983838360405180602001604052806000815250610b34565b6006546001600160a01b031633146107e45760405162461bcd60e51b815260040161063390611cfa565b6107f76001600160a01b03821647610fa7565b50565b6006546001600160a01b031633146108245760405162461bcd60e51b815260040161063390611cfa565b80516108379060079060208401906118be565b5050565b6000818152600260205260408120546001600160a01b0316806105265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610633565b600780546108bf90611c6e565b80601f01602080910402602001604051908101604052809291908181526020018280546108eb90611c6e565b80156109385780601f1061090d57610100808354040283529160200191610938565b820191906000526020600020905b81548152906001019060200180831161091b57829003601f168201915b505050505081565b60006001600160a01b0382166109ab5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610633565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109f15760405162461bcd60e51b815260040161063390611cfa565b6109fb60006110c0565b565b60606001805461053b90611c6e565b662386f26fc10000341015610a565760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610633565b610a603382611112565b6040516331a9108f60e11b81526004810182905273ca7ca7bcc765f77339be2d648ba53ce9c8a262bd906000908290636352211e9060240160206040518083038186803b158015610ab057600080fd5b505afa158015610ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae89190611d2f565b90506001600160a01b03811615801590610b0a57506001600160a01b0381163b155b15610769576107696001600160a01b038216662386f26fc10000610fa7565b610837338383611254565b610b3e3383610d10565b610b5a5760405162461bcd60e51b815260040161063390611ca9565b610b6684848484611323565b50505050565b60606007610b7983611356565b604051602001610b8a929190611d68565b6040516020818303038152906040529050919050565b6060610be6610bc2735fe038640e440006e1002ebe69b22e12c5c055ad611454565b604051602001610bd29190611e0f565b6040516020818303038152906040526114a8565b604051602001610bf69190611fde565b604051602081830303815290604052905090565b6006546001600160a01b03163314610c345760405162461bcd60e51b815260040161063390611cfa565b6001600160a01b038116610c995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610633565b6107f7816110c0565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610cd78261083b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610d895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610633565b6000610d948361083b565b9050806001600160a01b0316846001600160a01b03161480610dcf5750836001600160a01b0316610dc4846105be565b6001600160a01b0316145b80610dff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610e1a8261083b565b6001600160a01b031614610e825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610633565b6001600160a01b038216610ee45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610633565b610eef600082610ca2565b6001600160a01b0383166000908152600360205260408120805460019290610f18908490612039565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f46908490612050565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80471015610ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610633565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611044576040519150601f19603f3d011682016040523d82523d6000602084013e611049565b606091505b50509050806107695760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610633565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166111685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610633565b6000818152600260205260409020546001600160a01b0316156111cd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610633565b6001600160a01b03821660009081526003602052604081208054600192906111f6908490612050565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031614156112b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610633565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61132e848484610e07565b61133a8484848461160e565b610b665760405162461bcd60e51b815260040161063390612068565b60608161137a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113a4578061138e816120ba565b915061139d9050600a836120eb565b915061137e565b60008167ffffffffffffffff8111156113bf576113bf611aad565b6040519080825280601f01601f1916602001820160405280156113e9576020820181803683370190505b5090505b8415610dff576113fe600183612039565b915061140b600a866120ff565b611416906030612050565b60f81b81838151811061142b5761142b612113565b60200101906001600160f81b031916908160001a90535061144d600a866120eb565b94506113ed565b60608161147b5750506040805180820190915260048152630307830360e41b602082015290565b8160005b811561149e578061148f816120ba565b915050600882901c915061147f565b610dff848261171b565b8051606090806114c8575050604080516020810190915260008152919050565b600060036114d7836002612050565b6114e191906120eb565b6114ec906004612129565b905060006114fb826020612050565b67ffffffffffffffff81111561151357611513611aad565b6040519080825280601f01601f19166020018201604052801561153d576020820181803683370190505b50905060006040518060600160405280604081526020016121ba604091399050600181016020830160005b868110156115c9576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611568565b5060038606600181146115e357600281146115f457611600565b613d3d60f01b600119830152611600565b603d60f81b6000198301525b505050918152949350505050565b60006001600160a01b0384163b1561171057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611652903390899088908890600401612148565b602060405180830381600087803b15801561166c57600080fd5b505af192505050801561169c575060408051601f3d908101601f1916820190925261169991810190612185565b60015b6116f6573d8080156116ca576040519150601f19603f3d011682016040523d82523d6000602084013e6116cf565b606091505b5080516116ee5760405162461bcd60e51b815260040161063390612068565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610dff565b506001949350505050565b6060600061172a836002612129565b611735906002612050565b67ffffffffffffffff81111561174d5761174d611aad565b6040519080825280601f01601f191660200182016040528015611777576020820181803683370190505b509050600360fc1b8160008151811061179257611792612113565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106117c1576117c1612113565b60200101906001600160f81b031916908160001a90535060006117e5846002612129565b6117f0906001612050565b90505b6001811115611868576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061182457611824612113565b1a60f81b82828151811061183a5761183a612113565b60200101906001600160f81b031916908160001a90535060049490941c93611861816121a2565b90506117f3565b5083156118b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610633565b9392505050565b8280546118ca90611c6e565b90600052602060002090601f0160209004810192826118ec5760008555611932565b82601f1061190557805160ff1916838001178555611932565b82800160010185558215611932579182015b82811115611932578251825591602001919060010190611917565b5061193e929150611942565b5090565b5b8082111561193e5760008155600101611943565b6001600160e01b0319811681146107f757600080fd5b60006020828403121561197f57600080fd5b81356118b781611957565b60005b838110156119a557818101518382015260200161198d565b83811115610b665750506000910152565b600081518084526119ce81602086016020860161198a565b601f01601f19169290920160200192915050565b6020815260006118b760208301846119b6565b600060208284031215611a0757600080fd5b5035919050565b6001600160a01b03811681146107f757600080fd5b60008060408385031215611a3657600080fd5b8235611a4181611a0e565b946020939093013593505050565b600080600060608486031215611a6457600080fd5b8335611a6f81611a0e565b92506020840135611a7f81611a0e565b929592945050506040919091013590565b600060208284031215611aa257600080fd5b81356118b781611a0e565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611ade57611ade611aad565b604051601f8501601f19908116603f01168101908282118183101715611b0657611b06611aad565b81604052809350858152868686011115611b1f57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611b4b57600080fd5b813567ffffffffffffffff811115611b6257600080fd5b8201601f81018413611b7357600080fd5b610dff84823560208401611ac3565b60008060408385031215611b9557600080fd5b8235611ba081611a0e565b915060208301358015158114611bb557600080fd5b809150509250929050565b60008060008060808587031215611bd657600080fd5b8435611be181611a0e565b93506020850135611bf181611a0e565b925060408501359150606085013567ffffffffffffffff811115611c1457600080fd5b8501601f81018713611c2557600080fd5b611c3487823560208401611ac3565b91505092959194509250565b60008060408385031215611c5357600080fd5b8235611c5e81611a0e565b91506020830135611bb581611a0e565b600181811c90821680611c8257607f821691505b60208210811415611ca357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611d4157600080fd5b81516118b781611a0e565b60008151611d5e81856020860161198a565b9290920192915050565b600080845481600182811c915080831680611d8457607f831692505b6020808410821415611da457634e487b7160e01b86526022600452602486fd5b818015611db85760018114611dc957611df6565b60ff19861689528489019650611df6565b60008b81526020902060005b86811015611dee5781548b820152908501908301611dd5565b505084890196505b505050505050611e068185611d4c565b95945050505050565b751ec89b985b59488e889d1a1d58989e4818d85d1cc88b60521b81527f226465736372697074696f6e223a22746875626279206361747320697320612060168201527f666c69707065642074756262792063617473206465726976617469766520776960368201527f746820612074776973742e20416c6c207365636f6e646172792073616c65207260568201527f6f79616c7469657320676f20746f20746865207475626279206361747320747260768201527f65617375727920616e64206d696e74696e67206665657320746f204f4720747560968201527f6262792063617420686f6c646572732e204e6f7465207468617420746875626260b68201527f7920636174732061726520696e206e6f2077617920616666696c69617465642060d68201527f776974682074686520747562627920636174732070726f6a656374206f72207460f6820152751a19481d1d58989e4818dbdb1b1958dd1a5d994b888b60521b6101168201527f2273656c6c65725f6665655f62617369735f706f696e7473223a203235302c2261012c820152703332b2afb932b1b4b834b2b73a111d101160791b61014c82015260006118b7611fd061015d840185611d4c565b61227d60f01b815260020190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161201681601d85016020870161198a565b91909101601d0192915050565b634e487b7160e01b600052601160045260246000fd5b60008282101561204b5761204b612023565b500390565b6000821982111561206357612063612023565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156120ce576120ce612023565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826120fa576120fa6120d5565b500490565b60008261210e5761210e6120d5565b500690565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561214357612143612023565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061217b908301846119b6565b9695505050505050565b60006020828403121561219757600080fd5b81516118b781611957565b6000816121b1576121b1612023565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b89b01ec5920c4493c5c205fc0b16c4f2cab6226da2d50565cea7b83a23f4ca864736f6c634300080900330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f75732d63656e7472616c312d746875626279636174732e636c6f756466756e6374696f6e732e6e65742f6d65746861646174613f746f6b656e49643d00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101665760003560e01c80636c0360eb116100d1578063a0712d681161008a578063c87b56dd11610064578063c87b56dd1461043c578063e8a3d4851461045c578063e985e9c514610471578063f2fde38b146104ba57600080fd5b8063a0712d68146103e9578063a22cb465146103fc578063b88d4fde1461041c57600080fd5b80636c0360eb1461034457806370a0823114610359578063715018a6146103795780638da5cb5b1461038e5780639150bb7d146103ac57806395d89b41146103d457600080fd5b806342842e0e1161012357806342842e0e146102655780634a3716211461028557806351cff8d9146102ad57806355f804b3146102cd5780635b31cb36146102ed5780636352211e1461032457600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806323b872dd1461021c5780633ad433831461023c575b600080fd5b34801561017757600080fd5b5061018b61018636600461196d565b6104da565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b561052c565b60405161019791906119e2565b3480156101ce57600080fd5b506101e26101dd3660046119f5565b6105be565b6040516001600160a01b039091168152602001610197565b34801561020657600080fd5b5061021a610215366004611a23565b610658565b005b34801561022857600080fd5b5061021a610237366004611a4f565b61076e565b34801561024857600080fd5b50610257662386f26fc1000081565b604051908152602001610197565b34801561027157600080fd5b5061021a610280366004611a4f565b61079f565b34801561029157600080fd5b506101e273ca7ca7bcc765f77339be2d648ba53ce9c8a262bd81565b3480156102b957600080fd5b5061021a6102c8366004611a90565b6107ba565b3480156102d957600080fd5b5061021a6102e8366004611b39565b6107fa565b3480156102f957600080fd5b5061018b6103083660046119f5565b6000908152600260205260409020546001600160a01b03161590565b34801561033057600080fd5b506101e261033f3660046119f5565b61083b565b34801561035057600080fd5b506101b56108b2565b34801561036557600080fd5b50610257610374366004611a90565b610940565b34801561038557600080fd5b5061021a6109c7565b34801561039a57600080fd5b506006546001600160a01b03166101e2565b3480156103b857600080fd5b506101e2735fe038640e440006e1002ebe69b22e12c5c055ad81565b3480156103e057600080fd5b506101b56109fd565b61021a6103f73660046119f5565b610a0c565b34801561040857600080fd5b5061021a610417366004611b82565b610b29565b34801561042857600080fd5b5061021a610437366004611bc0565b610b34565b34801561044857600080fd5b506101b56104573660046119f5565b610b6c565b34801561046857600080fd5b506101b5610ba0565b34801561047d57600080fd5b5061018b61048c366004611c40565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104c657600080fd5b5061021a6104d5366004611a90565b610c0a565b60006001600160e01b031982166380ac58cd60e01b148061050b57506001600160e01b03198216635b5e139f60e01b145b8061052657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461053b90611c6e565b80601f016020809104026020016040519081016040528092919081815260200182805461056790611c6e565b80156105b45780601f10610589576101008083540402835291602001916105b4565b820191906000526020600020905b81548152906001019060200180831161059757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661063c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106638261083b565b9050806001600160a01b0316836001600160a01b031614156106d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610633565b336001600160a01b03821614806106ed57506106ed813361048c565b61075f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610633565b6107698383610ca2565b505050565b6107783382610d10565b6107945760405162461bcd60e51b815260040161063390611ca9565b610769838383610e07565b61076983838360405180602001604052806000815250610b34565b6006546001600160a01b031633146107e45760405162461bcd60e51b815260040161063390611cfa565b6107f76001600160a01b03821647610fa7565b50565b6006546001600160a01b031633146108245760405162461bcd60e51b815260040161063390611cfa565b80516108379060079060208401906118be565b5050565b6000818152600260205260408120546001600160a01b0316806105265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610633565b600780546108bf90611c6e565b80601f01602080910402602001604051908101604052809291908181526020018280546108eb90611c6e565b80156109385780601f1061090d57610100808354040283529160200191610938565b820191906000526020600020905b81548152906001019060200180831161091b57829003601f168201915b505050505081565b60006001600160a01b0382166109ab5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610633565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109f15760405162461bcd60e51b815260040161063390611cfa565b6109fb60006110c0565b565b60606001805461053b90611c6e565b662386f26fc10000341015610a565760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610633565b610a603382611112565b6040516331a9108f60e11b81526004810182905273ca7ca7bcc765f77339be2d648ba53ce9c8a262bd906000908290636352211e9060240160206040518083038186803b158015610ab057600080fd5b505afa158015610ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae89190611d2f565b90506001600160a01b03811615801590610b0a57506001600160a01b0381163b155b15610769576107696001600160a01b038216662386f26fc10000610fa7565b610837338383611254565b610b3e3383610d10565b610b5a5760405162461bcd60e51b815260040161063390611ca9565b610b6684848484611323565b50505050565b60606007610b7983611356565b604051602001610b8a929190611d68565b6040516020818303038152906040529050919050565b6060610be6610bc2735fe038640e440006e1002ebe69b22e12c5c055ad611454565b604051602001610bd29190611e0f565b6040516020818303038152906040526114a8565b604051602001610bf69190611fde565b604051602081830303815290604052905090565b6006546001600160a01b03163314610c345760405162461bcd60e51b815260040161063390611cfa565b6001600160a01b038116610c995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610633565b6107f7816110c0565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610cd78261083b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610d895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610633565b6000610d948361083b565b9050806001600160a01b0316846001600160a01b03161480610dcf5750836001600160a01b0316610dc4846105be565b6001600160a01b0316145b80610dff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610e1a8261083b565b6001600160a01b031614610e825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610633565b6001600160a01b038216610ee45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610633565b610eef600082610ca2565b6001600160a01b0383166000908152600360205260408120805460019290610f18908490612039565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f46908490612050565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80471015610ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610633565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611044576040519150601f19603f3d011682016040523d82523d6000602084013e611049565b606091505b50509050806107695760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610633565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166111685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610633565b6000818152600260205260409020546001600160a01b0316156111cd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610633565b6001600160a01b03821660009081526003602052604081208054600192906111f6908490612050565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031614156112b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610633565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61132e848484610e07565b61133a8484848461160e565b610b665760405162461bcd60e51b815260040161063390612068565b60608161137a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113a4578061138e816120ba565b915061139d9050600a836120eb565b915061137e565b60008167ffffffffffffffff8111156113bf576113bf611aad565b6040519080825280601f01601f1916602001820160405280156113e9576020820181803683370190505b5090505b8415610dff576113fe600183612039565b915061140b600a866120ff565b611416906030612050565b60f81b81838151811061142b5761142b612113565b60200101906001600160f81b031916908160001a90535061144d600a866120eb565b94506113ed565b60608161147b5750506040805180820190915260048152630307830360e41b602082015290565b8160005b811561149e578061148f816120ba565b915050600882901c915061147f565b610dff848261171b565b8051606090806114c8575050604080516020810190915260008152919050565b600060036114d7836002612050565b6114e191906120eb565b6114ec906004612129565b905060006114fb826020612050565b67ffffffffffffffff81111561151357611513611aad565b6040519080825280601f01601f19166020018201604052801561153d576020820181803683370190505b50905060006040518060600160405280604081526020016121ba604091399050600181016020830160005b868110156115c9576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611568565b5060038606600181146115e357600281146115f457611600565b613d3d60f01b600119830152611600565b603d60f81b6000198301525b505050918152949350505050565b60006001600160a01b0384163b1561171057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611652903390899088908890600401612148565b602060405180830381600087803b15801561166c57600080fd5b505af192505050801561169c575060408051601f3d908101601f1916820190925261169991810190612185565b60015b6116f6573d8080156116ca576040519150601f19603f3d011682016040523d82523d6000602084013e6116cf565b606091505b5080516116ee5760405162461bcd60e51b815260040161063390612068565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610dff565b506001949350505050565b6060600061172a836002612129565b611735906002612050565b67ffffffffffffffff81111561174d5761174d611aad565b6040519080825280601f01601f191660200182016040528015611777576020820181803683370190505b509050600360fc1b8160008151811061179257611792612113565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106117c1576117c1612113565b60200101906001600160f81b031916908160001a90535060006117e5846002612129565b6117f0906001612050565b90505b6001811115611868576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061182457611824612113565b1a60f81b82828151811061183a5761183a612113565b60200101906001600160f81b031916908160001a90535060049490941c93611861816121a2565b90506117f3565b5083156118b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610633565b9392505050565b8280546118ca90611c6e565b90600052602060002090601f0160209004810192826118ec5760008555611932565b82601f1061190557805160ff1916838001178555611932565b82800160010185558215611932579182015b82811115611932578251825591602001919060010190611917565b5061193e929150611942565b5090565b5b8082111561193e5760008155600101611943565b6001600160e01b0319811681146107f757600080fd5b60006020828403121561197f57600080fd5b81356118b781611957565b60005b838110156119a557818101518382015260200161198d565b83811115610b665750506000910152565b600081518084526119ce81602086016020860161198a565b601f01601f19169290920160200192915050565b6020815260006118b760208301846119b6565b600060208284031215611a0757600080fd5b5035919050565b6001600160a01b03811681146107f757600080fd5b60008060408385031215611a3657600080fd5b8235611a4181611a0e565b946020939093013593505050565b600080600060608486031215611a6457600080fd5b8335611a6f81611a0e565b92506020840135611a7f81611a0e565b929592945050506040919091013590565b600060208284031215611aa257600080fd5b81356118b781611a0e565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611ade57611ade611aad565b604051601f8501601f19908116603f01168101908282118183101715611b0657611b06611aad565b81604052809350858152868686011115611b1f57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611b4b57600080fd5b813567ffffffffffffffff811115611b6257600080fd5b8201601f81018413611b7357600080fd5b610dff84823560208401611ac3565b60008060408385031215611b9557600080fd5b8235611ba081611a0e565b915060208301358015158114611bb557600080fd5b809150509250929050565b60008060008060808587031215611bd657600080fd5b8435611be181611a0e565b93506020850135611bf181611a0e565b925060408501359150606085013567ffffffffffffffff811115611c1457600080fd5b8501601f81018713611c2557600080fd5b611c3487823560208401611ac3565b91505092959194509250565b60008060408385031215611c5357600080fd5b8235611c5e81611a0e565b91506020830135611bb581611a0e565b600181811c90821680611c8257607f821691505b60208210811415611ca357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611d4157600080fd5b81516118b781611a0e565b60008151611d5e81856020860161198a565b9290920192915050565b600080845481600182811c915080831680611d8457607f831692505b6020808410821415611da457634e487b7160e01b86526022600452602486fd5b818015611db85760018114611dc957611df6565b60ff19861689528489019650611df6565b60008b81526020902060005b86811015611dee5781548b820152908501908301611dd5565b505084890196505b505050505050611e068185611d4c565b95945050505050565b751ec89b985b59488e889d1a1d58989e4818d85d1cc88b60521b81527f226465736372697074696f6e223a22746875626279206361747320697320612060168201527f666c69707065642074756262792063617473206465726976617469766520776960368201527f746820612074776973742e20416c6c207365636f6e646172792073616c65207260568201527f6f79616c7469657320676f20746f20746865207475626279206361747320747260768201527f65617375727920616e64206d696e74696e67206665657320746f204f4720747560968201527f6262792063617420686f6c646572732e204e6f7465207468617420746875626260b68201527f7920636174732061726520696e206e6f2077617920616666696c69617465642060d68201527f776974682074686520747562627920636174732070726f6a656374206f72207460f6820152751a19481d1d58989e4818dbdb1b1958dd1a5d994b888b60521b6101168201527f2273656c6c65725f6665655f62617369735f706f696e7473223a203235302c2261012c820152703332b2afb932b1b4b834b2b73a111d101160791b61014c82015260006118b7611fd061015d840185611d4c565b61227d60f01b815260020190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161201681601d85016020870161198a565b91909101601d0192915050565b634e487b7160e01b600052601160045260246000fd5b60008282101561204b5761204b612023565b500390565b6000821982111561206357612063612023565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156120ce576120ce612023565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826120fa576120fa6120d5565b500490565b60008261210e5761210e6120d5565b500690565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561214357612143612023565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061217b908301846119b6565b9695505050505050565b60006020828403121561219757600080fd5b81516118b781611957565b6000816121b1576121b1612023565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b89b01ec5920c4493c5c205fc0b16c4f2cab6226da2d50565cea7b83a23f4ca864736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f75732d63656e7472616c312d746875626279636174732e636c6f756466756e6374696f6e732e6e65742f6d65746861646174613f746f6b656e49643d00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): https://us-central1-thubbycats.cloudfunctions.net/methadata?tokenId=

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [2] : 68747470733a2f2f75732d63656e7472616c312d746875626279636174732e63
Arg [3] : 6c6f756466756e6374696f6e732e6e65742f6d65746861646174613f746f6b65
Arg [4] : 6e49643d00000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.