ETH Price: $2,614.20 (+1.61%)

Contract

0x193E6199c2DF28820664ddadAF7256Ffcff680a2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...154369032022-08-29 23:08:34778 days ago1661814514IN
0x193E6199...fcff680a2
0 ETH0.0011679820.40653267
Safe Transfer Fr...153960372022-08-23 10:27:37785 days ago1661250457IN
0x193E6199...fcff680a2
0 ETH0.000447097.20694543
Safe Transfer Fr...153582232022-08-17 10:34:45791 days ago1660732485IN
0x193E6199...fcff680a2
0 ETH0.000270336.73747642
Transfer From153111252022-08-10 0:15:05798 days ago1660090505IN
0x193E6199...fcff680a2
0 ETH0.0006351711.65503696
Set Approval For...151247282022-07-12 0:55:25827 days ago1657587325IN
0x193E6199...fcff680a2
0 ETH0.0006508114.12392158
Set Approval For...151053822022-07-09 1:07:14830 days ago1657328834IN
0x193E6199...fcff680a2
0 ETH0.0007212115.68033435
Transfer From151019692022-07-08 12:38:24831 days ago1657283904IN
0x193E6199...fcff680a2
0 ETH0.0012249320.65733238
_set Token URI150508082022-06-30 14:24:15839 days ago1656599055IN
0x193E6199...fcff680a2
0 ETH0.0038706142.12271402
Transfer Ownersh...150507932022-06-30 14:20:43839 days ago1656598843IN
0x193E6199...fcff680a2
0 ETH0.0013821748.19985175
0x60a06040150403802022-06-28 15:37:05840 days ago1656430625IN
 Create: SharkStreet
0 ETH0.0554853732

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SharkStreet

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : SharkStreet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./extensions/Purchasable/SlicerPurchasable.sol";
import "@rari-capital/solmate/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";

contract SharkStreet is ERC721, SlicerPurchasable, Ownable {
    /// ============ Errors ============

    // Thrown when max supply set is reached
    error MaxSupply();

    /// ============ Constructor ============

    constructor(
        address productsModuleAddress_,
        uint256 slicerId_,
        string memory name_,
        string memory symbol_
    ) ERC721(name_, symbol_) SlicerPurchasable(productsModuleAddress_, slicerId_) {
        _mint(0x728A4DDe804aeDaF93AC839C9B0Fce031e0361af); // Marxist
        _mint(0x728A4DDe804aeDaF93AC839C9B0Fce031e0361af); // Marxist
        _mint(0xDEAD753f9B1eb8F2f7372E8587e7C6e342daac89); // Maty
        _mint(0x643e9a6158feaAdbe46c96a5a990DAFc4E746EB2); // Cryptasha
        _mint(0xE3f27DEFf96fe178e87559F36Cbf868B9E75967D); // Sasquatch
    }

    /// ============ Storage ============

    IERC20 private constant SHARK = IERC20(0x232AFcE9f1b3AAE7cb408e482E847250843DB931);
    IERC721 private constant GNARS = IERC721(0x494715B2a3C75DaDd24929835B658a1c19bd4552);
    IERC721 private constant BONEY_BATZ = IERC721(0x4d2bb7D45bBe10E43Ad1Ba569Ce85F19e85812A3);
    IERC721 private constant BULLFRUG_MUTANT_CLUB =
        IERC721(0x327d2E8bb8ac6F4b3E79f8c12609Cf9bcf9ac3F0);
    address private constant TREASURY_ADDRESS = 0xAe7f458667f1B30746354aBC3157907d9F6FD15E;
    uint8 private constant MAX_SUPPLY = 100;

    string private _tokenURI;
    uint256 private tokenId;

    /// ============ Functions ============

    /**
     * @notice Overridable function containing the requirements for an account to be eligible for the purchase.
     *
     * @dev Used on the Slice interface to check whether a user is able to buy a product. See {ISlicerPurchasable}.
     * @dev Max quantity purchasable per address and total mint amount is handled on Slicer product logic
     */
    function isPurchaseAllowed(
        uint256,
        uint256,
        address buyer,
        uint256,
        bytes memory,
        bytes memory
    ) public view override returns (bool isAllowed) {
        // Add all requirements related to product purchase here
        // Return true if account is allowed to buy product
        if (tokenId == MAX_SUPPLY) revert MaxSupply();
        isAllowed =
            SHARK.balanceOf(buyer) >= 10**22 ||
            GNARS.balanceOf(buyer) != 0 ||
            BONEY_BATZ.balanceOf(buyer) != 0 ||
            BULLFRUG_MUTANT_CLUB.balanceOf(buyer) != 0;
    }

    /**
     * @notice Overridable function to handle external calls on product purchases from slicers. See {ISlicerPurchasable}
     */
    function onProductPurchase(
        uint256 slicerId,
        uint256 productId,
        address account,
        uint256 quantity,
        bytes memory slicerCustomData,
        bytes memory buyerCustomData
    ) external payable override onlyOnPurchaseFrom(slicerId) {
        // Check whether the account is allowed to buy a product.
        if (
            !isPurchaseAllowed(
                slicerId,
                productId,
                account,
                quantity,
                slicerCustomData,
                buyerCustomData
            )
        ) revert NotAllowed();

        // Mint 1 NFT
        _mint(account);
    }

    /**
     * @notice Returns URI of tokenId
     */
    function tokenURI(uint256) public view override returns (string memory) {
        return _tokenURI;
    }

    /**
     * @notice Returns totalSupply
     */
    function totalSupply() external view returns (uint256) {
        return tokenId;
    }

    /**
     * @dev See {IERC165-royaltyInfo}.
     */
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        return (TREASURY_ADDRESS, salePrice / 10);
    }

    /**
     * Mint 1 token to `account` and increases tokenId
     */
    function _mint(address account) private {
        tokenId++;
        _safeMint(account, tokenId);
    }

    /**
     * Set tokenURI
     *
     * @dev Only accessible to contract owner
     */
    function _setTokenURI(string memory tokenURI_) external onlyOwner {
        _tokenURI = tokenURI_;
    }
}

File 2 of 11 : SlicerPurchasable.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import "../../interfaces/extensions/Purchasable/ISlicerPurchasable.sol";

/**
 * @title SlicerPurchasable
 * @author jjranalli
 *
 * @notice Extension enabling basic usage of external calls by slicers upon product purchase.
 */
abstract contract SlicerPurchasable is ISlicerPurchasable {
    /// ============ Errors ============

    /// @notice Thrown if not called from the correct slicer
    error WrongSlicer();
    /// @notice Thrown if not called during product purchase
    error NotPurchase();
    /// @notice Thrown when account is not allowed to buy product
    error NotAllowed();
    /// @notice Thrown when a critical request was not successful
    error NotSuccessful();

    /// ============ Storage ============

    /// ProductsModule contract address
    address internal _productsModuleAddress;
    /// Id of the slicer able to call the functions with the `OnlyOnPurchaseFrom` function
    uint256 internal immutable _slicerId;

    /// ============ Constructor ============

    /**
     * @notice Initializes the contract.
     *
     * @param productsModuleAddress_ {ProductsModule} address
     * @param slicerId_ ID of the slicer linked to this contract
     */
    constructor(address productsModuleAddress_, uint256 slicerId_) {
        _productsModuleAddress = productsModuleAddress_;
        _slicerId = slicerId_;
    }

    /// ============ Modifiers ============

    /**
     * @notice Checks product purchases are accepted only from correct slicer (modifier)
     */
    modifier onlyOnPurchaseFrom(uint256 slicerId) {
        _onlyOnPurchaseFrom(slicerId);
        _;
    }

    /// ============ Functions ============

    /**
     * @notice Checks product purchases are accepted only from correct slicer (function)
     */
    function _onlyOnPurchaseFrom(uint256 slicerId) internal view virtual {
        if (_slicerId != slicerId) revert WrongSlicer();
        if (msg.sender != _productsModuleAddress) revert NotPurchase();
    }

    /**
     * @notice Overridable function containing the requirements for an account to be eligible for the purchase.
     *
     * @dev Used on the Slice interface to check whether a user is able to buy a product. See {ISlicerPurchasable}.
     */
    function isPurchaseAllowed(
        uint256,
        uint256,
        address,
        uint256,
        bytes memory,
        bytes memory
    ) public view virtual override returns (bool) {
        // Add all requirements related to product purchase here
        // Return true if account is allowed to buy product
        return true;
    }

    /**
     * @notice Overridable function to handle external calls on product purchases from slicers. See {ISlicerPurchasable}
     *
     * @dev Can be inherited by child contracts to add custom logic on product purchases.
     */
    function onProductPurchase(
        uint256 slicerId,
        uint256 productId,
        address account,
        uint256 quantity,
        bytes memory slicerCustomData,
        bytes memory buyerCustomData
    ) external payable virtual override onlyOnPurchaseFrom(slicerId) {
        // Check whether the account is allowed to buy a product.
        if (
            !isPurchaseAllowed(
                slicerId,
                productId,
                account,
                quantity,
                slicerCustomData,
                buyerCustomData
            )
        ) revert NotAllowed();

        // Add product purchase logic here
    }
}

File 3 of 11 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 4 of 11 : 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 5 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 6 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 7 of 11 : ISlicerPurchasable.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

interface ISlicerPurchasable {
    /**
     * @notice Overridable function containing the requirements for an account to be eligible for the purchase.
     *
     * @param slicerId ID of the slicer calling the function
     * @param productId ID of the product being purchased
     * @param account Address of the account buying the product
     * @param quantity Amount of products being purchased
     * @param slicerCustomData Custom data sent by slicer during product purchase
     * @param buyerCustomData Custom data sent by buyer during product purchase
     *
     * @dev Used on the Slice interface to check whether a user is able to buy a product.
     */
    function isPurchaseAllowed(
        uint256 slicerId,
        uint256 productId,
        address account,
        uint256 quantity,
        bytes memory slicerCustomData,
        bytes memory buyerCustomData
    ) external view returns (bool);

    /**
     * @notice Overridable function to handle external calls on product purchases from slicers.
     *
     * @param slicerId ID of the slicer calling the function
     * @param productId ID of the product being purchased
     * @param account Address of the account buying the product
     * @param quantity Amount of products being purchased
     * @param slicerCustomData Custom data sent by slicer during product purchase
     * @param buyerCustomData Custom data sent by buyer during product purchase
     *
     * @dev Can be inherited by child contracts to add custom logic on product purchases.
     */
    function onProductPurchase(
        uint256 slicerId,
        uint256 productId,
        address account,
        uint256 quantity,
        bytes memory slicerCustomData,
        bytes memory buyerCustomData
    ) external payable;
}

File 8 of 11 : 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 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

File 10 of 11 : 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 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"productsModuleAddress_","type":"address"},{"internalType":"uint256","name":"slicerId_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotPurchase","type":"error"},{"inputs":[],"name":"NotSuccessful","type":"error"},{"inputs":[],"name":"WrongSlicer","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"_setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"isPurchaseAllowed","outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"slicerId","type":"uint256"},{"internalType":"uint256","name":"productId","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"slicerCustomData","type":"bytes"},{"internalType":"bytes","name":"buyerCustomData","type":"bytes"}],"name":"onProductPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","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":"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":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001e5b38038062001e5b833981016040819052620000349162000545565b83838383816000908051906020019062000050929190620003d2565b50805162000066906001906020840190620003d2565b5050600680546001600160a01b0319166001600160a01b039490941693909317909255608052506200009f620000993390565b62000144565b620000be73728a4dde804aedaf93ac839c9b0fce031e0361af62000196565b620000dd73728a4dde804aedaf93ac839c9b0fce031e0361af62000196565b620000fc73dead753f9b1eb8f2f7372e8587e7c6e342daac8962000196565b6200011b73643e9a6158feaadbe46c96a5a990dafc4e746eb262000196565b6200013a73e3f27deff96fe178e87559f36cbf868b9e75967d62000196565b5050505062000670565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60098054906000620001a883620005d9565b9190505550620001c181600954620001c460201b60201c565b50565b620001d08282620002c3565b6001600160a01b0382163b15806200027a5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801562000248573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026e919062000601565b6001600160e01b031916145b620002bf5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064015b60405180910390fd5b5050565b6001600160a01b0382166200030f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401620002b6565b6000818152600260205260409020546001600160a01b031615620003675760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401620002b6565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054620003e09062000634565b90600052602060002090601f0160209004810192826200040457600085556200044f565b82601f106200041f57805160ff19168380011785556200044f565b828001600101855582156200044f579182015b828111156200044f57825182559160200191906001019062000432565b506200045d92915062000461565b5090565b5b808211156200045d576000815560010162000462565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620004a057600080fd5b81516001600160401b0380821115620004bd57620004bd62000478565b604051601f8301601f19908116603f01168101908282118183101715620004e857620004e862000478565b816040528381526020925086838588010111156200050557600080fd5b600091505b838210156200052957858201830151818301840152908201906200050a565b838211156200053b5760008385830101525b9695505050505050565b600080600080608085870312156200055c57600080fd5b84516001600160a01b03811681146200057457600080fd5b6020860151604087015191955093506001600160401b03808211156200059957600080fd5b620005a7888389016200048e565b93506060870151915080821115620005be57600080fd5b50620005cd878288016200048e565b91505092959194509250565b600060018201620005fa57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156200061457600080fd5b81516001600160e01b0319811681146200062d57600080fd5b9392505050565b600181811c908216806200064957607f821691505b6020821081036200066a57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516117cf6200068c6000396000610f4001526117cf6000f3fe60806040526004361061012a5760003560e01c8063715018a6116100ab578063a22cb4651161006f578063a22cb4651461035c578063a23fffb91461037c578063b88d4fde1461038f578063c87b56dd146103af578063e985e9c5146103cf578063f2fde38b1461040a57600080fd5b8063715018a6146102d457806387f350b8146102e95780638da5cb5b1461030957806395d89b411461032757806395db93681461033c57600080fd5b806323b872dd116100f257806323b872dd146102155780632a55205a1461023557806342842e0e146102745780636352211e1461029457806370a08231146102b457600080fd5b806301ffc9a71461012f57806306fdde0314610164578063081812fc14610186578063095ea7b3146101d457806318160ddd146101f6575b600080fd5b34801561013b57600080fd5b5061014f61014a36600461124a565b61042a565b60405190151581526020015b60405180910390f35b34801561017057600080fd5b5061017961047c565b60405161015b919061126e565b34801561019257600080fd5b506101bc6101a13660046112c3565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161015b565b3480156101e057600080fd5b506101f46101ef3660046112f3565b61050a565b005b34801561020257600080fd5b506009545b60405190815260200161015b565b34801561022157600080fd5b506101f461023036600461131d565b6105f1565b34801561024157600080fd5b50610255610250366004611359565b6107b8565b604080516001600160a01b03909316835260208301919091520161015b565b34801561028057600080fd5b506101f461028f36600461131d565b6107e6565b3480156102a057600080fd5b506101bc6102af3660046112c3565b6108bb565b3480156102c057600080fd5b506102076102cf36600461137b565b610912565b3480156102e057600080fd5b506101f4610975565b3480156102f557600080fd5b506101f4610304366004611422565b6109ab565b34801561031557600080fd5b506007546001600160a01b03166101bc565b34801561033357600080fd5b506101796109ec565b34801561034857600080fd5b5061014f610357366004611493565b6109f9565b34801561036857600080fd5b506101f4610377366004611523565b610c44565b6101f461038a366004611493565b610cb0565b34801561039b57600080fd5b506101f46103aa36600461155f565b610cf7565b3480156103bb57600080fd5b506101796103ca3660046112c3565b610dbc565b3480156103db57600080fd5b5061014f6103ea3660046115fa565b600560209081526000928352604080842090915290825290205460ff1681565b34801561041657600080fd5b506101f461042536600461137b565b610e50565b60006301ffc9a760e01b6001600160e01b03198316148061045b57506380ac58cd60e01b6001600160e01b03198316145b806104765750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546104899061162d565b80601f01602080910402602001604051908101604052809291908181526020018280546104b59061162d565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061055357506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105955760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146106475760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161058c565b6001600160a01b0382166106915760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058c565b336001600160a01b03841614806106cb57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806106ec57506000818152600460205260409020546001600160a01b031633145b6107295760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161058c565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008073ae7f458667f1b30746354abc3157907d9f6fd15e6107db600a85611667565b915091509250929050565b6107f18383836105f1565b6001600160a01b0382163b158061089a5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190611689565b6001600160e01b031916145b6108b65760405162461bcd60e51b815260040161058c906116a6565b505050565b6000818152600260205260409020546001600160a01b03168061090d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058c565b919050565b60006001600160a01b0382166109595760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161058c565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b0316331461099f5760405162461bcd60e51b815260040161058c906116d0565b6109a96000610eeb565b565b6007546001600160a01b031633146109d55760405162461bcd60e51b815260040161058c906116d0565b80516109e890600890602084019061119b565b5050565b600180546104899061162d565b60095460009060631901610a2057604051632cdb04a160e21b815260040160405180910390fd5b6040516370a0823160e01b81526001600160a01b038616600482015269021e19e0c9bab24000009073232afce9f1b3aae7cb408e482e847250843db931906370a0823190602401602060405180830381865afa158015610a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa89190611705565b101580610b2f57506040516370a0823160e01b81526001600160a01b038616600482015273494715b2a3c75dadd24929835b658a1c19bd4552906370a0823190602401602060405180830381865afa158015610b08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2c9190611705565b15155b80610bb457506040516370a0823160e01b81526001600160a01b0386166004820152734d2bb7d45bbe10e43ad1ba569ce85f19e85812a3906370a0823190602401602060405180830381865afa158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb19190611705565b15155b80610c3957506040516370a0823160e01b81526001600160a01b038616600482015273327d2e8bb8ac6f4b3e79f8c12609cf9bcf9ac3f0906370a0823190602401602060405180830381865afa158015610c12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c369190611705565b15155b979650505050505050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b85610cba81610f3d565b610cc88787878787876109f9565b610ce557604051631eb49d6d60e11b815260040160405180910390fd5b610cee85610fa8565b50505050505050565b610d028585856105f1565b6001600160a01b0384163b1580610d995750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d4a9033908a9089908990899060040161171e565b6020604051808303816000875af1158015610d69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8d9190611689565b6001600160e01b031916145b610db55760405162461bcd60e51b815260040161058c906116a6565b5050505050565b606060088054610dcb9061162d565b80601f0160208091040260200160405190810160405280929190818152602001828054610df79061162d565b8015610e445780601f10610e1957610100808354040283529160200191610e44565b820191906000526020600020905b815481529060010190602001808311610e2757829003601f168201915b50505050509050919050565b6007546001600160a01b03163314610e7a5760405162461bcd60e51b815260040161058c906116d0565b6001600160a01b038116610edf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161058c565b610ee881610eeb565b50565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b807f000000000000000000000000000000000000000000000000000000000000000014610f7d57604051632eafdb6960e01b815260040160405180910390fd5b6006546001600160a01b03163314610ee8576040516347322d0360e01b815260040160405180910390fd5b60098054906000610fb883611772565b9190505550610ee881600954610fce8282611090565b6001600160a01b0382163b15806110745750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015611044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110689190611689565b6001600160e01b031916145b6109e85760405162461bcd60e51b815260040161058c906116a6565b6001600160a01b0382166110da5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058c565b6000818152600260205260409020546001600160a01b0316156111305760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546111a79061162d565b90600052602060002090601f0160209004810192826111c9576000855561120f565b82601f106111e257805160ff191683800117855561120f565b8280016001018555821561120f579182015b8281111561120f5782518255916020019190600101906111f4565b5061121b92915061121f565b5090565b5b8082111561121b5760008155600101611220565b6001600160e01b031981168114610ee857600080fd5b60006020828403121561125c57600080fd5b813561126781611234565b9392505050565b600060208083528351808285015260005b8181101561129b5785810183015185820160400152820161127f565b818111156112ad576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156112d557600080fd5b5035919050565b80356001600160a01b038116811461090d57600080fd5b6000806040838503121561130657600080fd5b61130f836112dc565b946020939093013593505050565b60008060006060848603121561133257600080fd5b61133b846112dc565b9250611349602085016112dc565b9150604084013590509250925092565b6000806040838503121561136c57600080fd5b50508035926020909101359150565b60006020828403121561138d57600080fd5b611267826112dc565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156113c7576113c7611396565b604051601f8501601f19908116603f011681019082821181831017156113ef576113ef611396565b8160405280935085815286868601111561140857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561143457600080fd5b813567ffffffffffffffff81111561144b57600080fd5b8201601f8101841361145c57600080fd5b61146b848235602084016113ac565b949350505050565b600082601f83011261148457600080fd5b611267838335602085016113ac565b60008060008060008060c087890312156114ac57600080fd5b86359550602087013594506114c3604088016112dc565b935060608701359250608087013567ffffffffffffffff808211156114e757600080fd5b6114f38a838b01611473565b935060a089013591508082111561150957600080fd5b5061151689828a01611473565b9150509295509295509295565b6000806040838503121561153657600080fd5b61153f836112dc565b91506020830135801515811461155457600080fd5b809150509250929050565b60008060008060006080868803121561157757600080fd5b611580866112dc565b945061158e602087016112dc565b935060408601359250606086013567ffffffffffffffff808211156115b257600080fd5b818801915088601f8301126115c657600080fd5b8135818111156115d557600080fd5b8960208285010111156115e757600080fd5b9699959850939650602001949392505050565b6000806040838503121561160d57600080fd5b611616836112dc565b9150611624602084016112dc565b90509250929050565b600181811c9082168061164157607f821691505b60208210810361166157634e487b7160e01b600052602260045260246000fd5b50919050565b60008261168457634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561169b57600080fd5b815161126781611234565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561171757600080fd5b5051919050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60006001820161179257634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220fbe14526c51df2c8dd529dedd987b414a58e1092fd15a3bc74556855fe79f90264736f6c634300080d0033000000000000000000000000689bba0e25c259b205ece8e6152ee1eacf307f5f000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012536861726b2053747265657420436f6d69630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c534841524b205354524545540000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061012a5760003560e01c8063715018a6116100ab578063a22cb4651161006f578063a22cb4651461035c578063a23fffb91461037c578063b88d4fde1461038f578063c87b56dd146103af578063e985e9c5146103cf578063f2fde38b1461040a57600080fd5b8063715018a6146102d457806387f350b8146102e95780638da5cb5b1461030957806395d89b411461032757806395db93681461033c57600080fd5b806323b872dd116100f257806323b872dd146102155780632a55205a1461023557806342842e0e146102745780636352211e1461029457806370a08231146102b457600080fd5b806301ffc9a71461012f57806306fdde0314610164578063081812fc14610186578063095ea7b3146101d457806318160ddd146101f6575b600080fd5b34801561013b57600080fd5b5061014f61014a36600461124a565b61042a565b60405190151581526020015b60405180910390f35b34801561017057600080fd5b5061017961047c565b60405161015b919061126e565b34801561019257600080fd5b506101bc6101a13660046112c3565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161015b565b3480156101e057600080fd5b506101f46101ef3660046112f3565b61050a565b005b34801561020257600080fd5b506009545b60405190815260200161015b565b34801561022157600080fd5b506101f461023036600461131d565b6105f1565b34801561024157600080fd5b50610255610250366004611359565b6107b8565b604080516001600160a01b03909316835260208301919091520161015b565b34801561028057600080fd5b506101f461028f36600461131d565b6107e6565b3480156102a057600080fd5b506101bc6102af3660046112c3565b6108bb565b3480156102c057600080fd5b506102076102cf36600461137b565b610912565b3480156102e057600080fd5b506101f4610975565b3480156102f557600080fd5b506101f4610304366004611422565b6109ab565b34801561031557600080fd5b506007546001600160a01b03166101bc565b34801561033357600080fd5b506101796109ec565b34801561034857600080fd5b5061014f610357366004611493565b6109f9565b34801561036857600080fd5b506101f4610377366004611523565b610c44565b6101f461038a366004611493565b610cb0565b34801561039b57600080fd5b506101f46103aa36600461155f565b610cf7565b3480156103bb57600080fd5b506101796103ca3660046112c3565b610dbc565b3480156103db57600080fd5b5061014f6103ea3660046115fa565b600560209081526000928352604080842090915290825290205460ff1681565b34801561041657600080fd5b506101f461042536600461137b565b610e50565b60006301ffc9a760e01b6001600160e01b03198316148061045b57506380ac58cd60e01b6001600160e01b03198316145b806104765750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546104899061162d565b80601f01602080910402602001604051908101604052809291908181526020018280546104b59061162d565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061055357506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105955760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146106475760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161058c565b6001600160a01b0382166106915760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058c565b336001600160a01b03841614806106cb57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806106ec57506000818152600460205260409020546001600160a01b031633145b6107295760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161058c565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008073ae7f458667f1b30746354abc3157907d9f6fd15e6107db600a85611667565b915091509250929050565b6107f18383836105f1565b6001600160a01b0382163b158061089a5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190611689565b6001600160e01b031916145b6108b65760405162461bcd60e51b815260040161058c906116a6565b505050565b6000818152600260205260409020546001600160a01b03168061090d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058c565b919050565b60006001600160a01b0382166109595760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161058c565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b0316331461099f5760405162461bcd60e51b815260040161058c906116d0565b6109a96000610eeb565b565b6007546001600160a01b031633146109d55760405162461bcd60e51b815260040161058c906116d0565b80516109e890600890602084019061119b565b5050565b600180546104899061162d565b60095460009060631901610a2057604051632cdb04a160e21b815260040160405180910390fd5b6040516370a0823160e01b81526001600160a01b038616600482015269021e19e0c9bab24000009073232afce9f1b3aae7cb408e482e847250843db931906370a0823190602401602060405180830381865afa158015610a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa89190611705565b101580610b2f57506040516370a0823160e01b81526001600160a01b038616600482015273494715b2a3c75dadd24929835b658a1c19bd4552906370a0823190602401602060405180830381865afa158015610b08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2c9190611705565b15155b80610bb457506040516370a0823160e01b81526001600160a01b0386166004820152734d2bb7d45bbe10e43ad1ba569ce85f19e85812a3906370a0823190602401602060405180830381865afa158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb19190611705565b15155b80610c3957506040516370a0823160e01b81526001600160a01b038616600482015273327d2e8bb8ac6f4b3e79f8c12609cf9bcf9ac3f0906370a0823190602401602060405180830381865afa158015610c12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c369190611705565b15155b979650505050505050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b85610cba81610f3d565b610cc88787878787876109f9565b610ce557604051631eb49d6d60e11b815260040160405180910390fd5b610cee85610fa8565b50505050505050565b610d028585856105f1565b6001600160a01b0384163b1580610d995750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d4a9033908a9089908990899060040161171e565b6020604051808303816000875af1158015610d69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8d9190611689565b6001600160e01b031916145b610db55760405162461bcd60e51b815260040161058c906116a6565b5050505050565b606060088054610dcb9061162d565b80601f0160208091040260200160405190810160405280929190818152602001828054610df79061162d565b8015610e445780601f10610e1957610100808354040283529160200191610e44565b820191906000526020600020905b815481529060010190602001808311610e2757829003601f168201915b50505050509050919050565b6007546001600160a01b03163314610e7a5760405162461bcd60e51b815260040161058c906116d0565b6001600160a01b038116610edf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161058c565b610ee881610eeb565b50565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b807f000000000000000000000000000000000000000000000000000000000000000a14610f7d57604051632eafdb6960e01b815260040160405180910390fd5b6006546001600160a01b03163314610ee8576040516347322d0360e01b815260040160405180910390fd5b60098054906000610fb883611772565b9190505550610ee881600954610fce8282611090565b6001600160a01b0382163b15806110745750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015611044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110689190611689565b6001600160e01b031916145b6109e85760405162461bcd60e51b815260040161058c906116a6565b6001600160a01b0382166110da5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058c565b6000818152600260205260409020546001600160a01b0316156111305760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546111a79061162d565b90600052602060002090601f0160209004810192826111c9576000855561120f565b82601f106111e257805160ff191683800117855561120f565b8280016001018555821561120f579182015b8281111561120f5782518255916020019190600101906111f4565b5061121b92915061121f565b5090565b5b8082111561121b5760008155600101611220565b6001600160e01b031981168114610ee857600080fd5b60006020828403121561125c57600080fd5b813561126781611234565b9392505050565b600060208083528351808285015260005b8181101561129b5785810183015185820160400152820161127f565b818111156112ad576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156112d557600080fd5b5035919050565b80356001600160a01b038116811461090d57600080fd5b6000806040838503121561130657600080fd5b61130f836112dc565b946020939093013593505050565b60008060006060848603121561133257600080fd5b61133b846112dc565b9250611349602085016112dc565b9150604084013590509250925092565b6000806040838503121561136c57600080fd5b50508035926020909101359150565b60006020828403121561138d57600080fd5b611267826112dc565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156113c7576113c7611396565b604051601f8501601f19908116603f011681019082821181831017156113ef576113ef611396565b8160405280935085815286868601111561140857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561143457600080fd5b813567ffffffffffffffff81111561144b57600080fd5b8201601f8101841361145c57600080fd5b61146b848235602084016113ac565b949350505050565b600082601f83011261148457600080fd5b611267838335602085016113ac565b60008060008060008060c087890312156114ac57600080fd5b86359550602087013594506114c3604088016112dc565b935060608701359250608087013567ffffffffffffffff808211156114e757600080fd5b6114f38a838b01611473565b935060a089013591508082111561150957600080fd5b5061151689828a01611473565b9150509295509295509295565b6000806040838503121561153657600080fd5b61153f836112dc565b91506020830135801515811461155457600080fd5b809150509250929050565b60008060008060006080868803121561157757600080fd5b611580866112dc565b945061158e602087016112dc565b935060408601359250606086013567ffffffffffffffff808211156115b257600080fd5b818801915088601f8301126115c657600080fd5b8135818111156115d557600080fd5b8960208285010111156115e757600080fd5b9699959850939650602001949392505050565b6000806040838503121561160d57600080fd5b611616836112dc565b9150611624602084016112dc565b90509250929050565b600181811c9082168061164157607f821691505b60208210810361166157634e487b7160e01b600052602260045260246000fd5b50919050565b60008261168457634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561169b57600080fd5b815161126781611234565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561171757600080fd5b5051919050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60006001820161179257634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220fbe14526c51df2c8dd529dedd987b414a58e1092fd15a3bc74556855fe79f90264736f6c634300080d0033

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

000000000000000000000000689bba0e25c259b205ece8e6152ee1eacf307f5f000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012536861726b2053747265657420436f6d69630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c534841524b205354524545540000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : productsModuleAddress_ (address): 0x689Bba0e25c259b205ECe8e6152Ee1eAcF307f5F
Arg [1] : slicerId_ (uint256): 10
Arg [2] : name_ (string): Shark Street Comic
Arg [3] : symbol_ (string): SHARK STREET

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000689bba0e25c259b205ece8e6152ee1eacf307f5f
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 536861726b2053747265657420436f6d69630000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 534841524b205354524545540000000000000000000000000000000000000000


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  ]

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.