ETH Price: $2,083.12 (-2.56%)
Gas: 0.03 Gwei

Contract

0xb35e02C10dA1D7740dc46fBEC48E65e5d2E810b8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Ipfs Cid240748512025-12-23 10:55:2372 days ago1766487323IN
0xb35e02C1...5d2E810b8
0 ETH0.000087812.02875183
Set Ipfs Cid240699182025-12-22 18:23:3573 days ago1766427815IN
0xb35e02C1...5d2E810b8
0 ETH0.00009352.02908132
Set Ipfs Cid207922122024-09-20 13:51:11531 days ago1726840271IN
0xb35e02C1...5d2E810b8
0 ETH0.0015094835
Set Ipfs Cid201752052024-06-26 10:16:11617 days ago1719396971IN
0xb35e02C1...5d2E810b8
0 ETH0.00017113.96749119
Set Ipfs Cid199905282024-05-31 14:52:59643 days ago1717167179IN
0xb35e02C1...5d2E810b8
0 ETH0.001078225
Set Ipfs Cid199837812024-05-30 16:14:59644 days ago1717085699IN
0xb35e02C1...5d2E810b8
0 ETH0.0008346819.35362906
Set Ipfs Cid199626322024-05-27 17:14:59647 days ago1716830099IN
0xb35e02C1...5d2E810b8
0 ETH0.0010035223.26843359
Set Ipfs Cid197756742024-05-01 13:47:47673 days ago1714571267IN
0xb35e02C1...5d2E810b8
0 ETH0.0043128100
Set Ipfs Cid196190062024-04-09 15:34:11695 days ago1712676851IN
0xb35e02C1...5d2E810b8
0 ETH0.0021363649.53540762
Set Ipfs Cid194256922024-03-13 10:55:47722 days ago1710327347IN
0xb35e02C1...5d2E810b8
0 ETH0.0028188465.35989385
Set Ipfs Cid191987572024-02-10 16:02:47754 days ago1707580967IN
0xb35e02C1...5d2E810b8
0 ETH0.0020658647.90071648
Set Ipfs Cid191916462024-02-09 16:05:11755 days ago1707494711IN
0xb35e02C1...5d2E810b8
0 ETH0.0029857769.23063982
Set Ipfs Cid190115352024-01-15 9:57:47780 days ago1705312667IN
0xb35e02C1...5d2E810b8
0 ETH0.0009294321.55058732
Set Ipfs Cid189753652024-01-10 8:29:59785 days ago1704875399IN
0xb35e02C1...5d2E810b8
0 ETH0.0010514424.37967611
Set Ipfs Cid188908202023-12-29 11:04:11797 days ago1703847851IN
0xb35e02C1...5d2E810b8
0 ETH0.0008306919.26124604
Set Ipfs Cid186709762023-11-28 15:20:35828 days ago1701184835IN
0xb35e02C1...5d2E810b8
0 ETH0.0016062442.80124908
Set Ipfs Cid186709522023-11-28 15:15:47828 days ago1701184547IN
0xb35e02C1...5d2E810b8
0 ETH0.0018864543.74082184
Set Ipfs Cid184416962023-10-27 12:59:23860 days ago1698411563IN
0xb35e02C1...5d2E810b8
0 ETH0.0010657524.71155327
Set Ipfs Cid184202662023-10-24 12:58:11863 days ago1698152291IN
0xb35e02C1...5d2E810b8
0 ETH0.001327930.78982481
Set Ipfs Cid184201872023-10-24 12:41:59863 days ago1698151319IN
0xb35e02C1...5d2E810b8
0 ETH0.0012817529.71987323
Set Ipfs Cid181406442023-09-15 9:10:59902 days ago1694769059IN
0xb35e02C1...5d2E810b8
0 ETH0.0004498310.43015521
Set Ipfs Cid180714442023-09-05 16:23:23912 days ago1693931003IN
0xb35e02C1...5d2E810b8
0 ETH0.0006519515.11675538
Set Ipfs Cid180069492023-08-27 15:39:35921 days ago1693150775IN
0xb35e02C1...5d2E810b8
0 ETH0.0007298916.92392392
Set Ipfs Cid180069232023-08-27 15:34:23921 days ago1693150463IN
0xb35e02C1...5d2E810b8
0 ETH0.0006724817.9195813
Set Ipfs Cid179291602023-08-16 18:25:23932 days ago1692210323IN
0xb35e02C1...5d2E810b8
0 ETH0.0018020841.78457491
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60806040172814952023-05-17 19:46:231023 days ago1684352783  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SequelsMetadata

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 4: SequelsMetadata.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Fellowship
// contract by steviep.eth

/*

███████ ███████  ██████  ██    ██ ███████ ██      ███████
██      ██      ██    ██ ██    ██ ██      ██      ██
███████ █████   ██    ██ ██    ██ █████   ██      ███████
     ██ ██      ██ ▄▄ ██ ██    ██ ██      ██           ██
███████ ███████  ██████   ██████  ███████ ███████ ███████
                    ▀▀

███    ███ ███████ ████████  █████  ██████   █████  ████████  █████
████  ████ ██         ██    ██   ██ ██   ██ ██   ██    ██    ██   ██
██ ████ ██ █████      ██    ███████ ██   ██ ███████    ██    ███████
██  ██  ██ ██         ██    ██   ██ ██   ██ ██   ██    ██    ██   ██
██      ██ ███████    ██    ██   ██ ██████  ██   ██    ██    ██   ██

*/

import "./SequelsBase.sol";
import "./Dependencies.sol";

pragma solidity ^0.8.17;

contract SequelsMetadata {
  using Strings for uint256;

  SequelsBase public sequelsBase;
  string public ipfsCid;

  constructor(SequelsBase _sequelsBase) {
    sequelsBase = _sequelsBase;
  }

  function owner() public view returns (address) {
    return sequelsBase.owner();
  }

  function setIpfsCid(string calldata cid) external {
    require(msg.sender == owner(), "Ownable: caller is not the owner");
    ipfsCid = cid;
  }

  function tokenURI(uint256 tokenId) external view returns (string memory) {
    return string(abi.encodePacked('ipfs://', ipfsCid, '/', tokenId.toString()));
  }
}

File 2 of 4: Dependencies.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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



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



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


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



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

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


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

    // Don't need these

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



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



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

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

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

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

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

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

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

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




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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).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 3 of 4: OperatorFiltererDependencies.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;


interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}


/**
 * @title  UpdatableOperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the
 *         OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address,
 *         which will bypass registry checks.
 *         Note that OpenSea will still disable creator earnings enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract UpdatableOperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);
    /// @dev Emitted when someone other than the owner is trying to call an only owner function.
    error OnlyOwner();

    event OperatorFilterRegistryAddressUpdated(address newRegistry);

    IOperatorFilterRegistry public operatorFilterRegistry;

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
        IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
        operatorFilterRegistry = registry;
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(registry).code.length > 0) {
            if (subscribe) {
                registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    registry.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if the operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
        emit OperatorFilterRegistryAddressUpdated(newRegistry);
    }

    /**
     * @dev Assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract.
     */
    function owner() public view virtual returns (address);

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        IOperatorFilterRegistry registry = operatorFilterRegistry;
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(registry) != address(0) && address(registry).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!registry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}


File 4 of 4: SequelsBase.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Fellowship
// contract by steviep.eth

/*

███████ ███████  ██████  ██    ██ ███████ ██      ███████
██      ██      ██    ██ ██    ██ ██      ██      ██
███████ █████   ██    ██ ██    ██ █████   ██      ███████
     ██ ██      ██ ▄▄ ██ ██    ██ ██      ██           ██
███████ ███████  ██████   ██████  ███████ ███████ ███████
                    ▀▀

*/

import "./Dependencies.sol";
import "./SequelsMetadata.sol";
import "./OperatorFiltererDependencies.sol";

pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

abstract contract OperatorFilterer is UpdatableOperatorFilterer {
  constructor() UpdatableOperatorFilterer(
    CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS,
    CANONICAL_CORI_SUBSCRIPTION,
    true
  ) {}
}


contract SequelsBase is ERC721, Ownable, OperatorFilterer {
  uint256 public constant maxSupply = 3652;
  uint256 private _totalSupply = 0;
  SequelsMetadata private _metadataContract;
  address public minter;

  address private royaltyBenificiary;
  uint16 private royaltyBasisPoints = 500;

  constructor() ERC721('Sequels', 'JMS') {
    royaltyBenificiary = msg.sender;
    _metadataContract = new SequelsMetadata(this);
  }

  function mint(address to, uint256 tokenId) external {
    require(minter == msg.sender, 'Caller is not the minting address');
    require(_totalSupply <= maxSupply, 'Cannot exceed max supply');
    _mint(to, tokenId);
    _totalSupply++;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    return _metadataContract.tokenURI(tokenId);
  }

  function totalSupply() external view returns (uint256) {
    return _totalSupply;
  }

  function exists(uint256 tokenId) external view returns (bool) {
    return _exists(tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) {
    // ERC2981
    return interfaceId == bytes4(0x2a55205a) || super.supportsInterface(interfaceId);
  }

  function metadataContract() external view returns (address) {
    return address(_metadataContract);
  }

  function setMetadataContract(address _addr) external onlyOwner {
    _metadataContract = SequelsMetadata(_addr);
  }

  function setMinter(address _addr) external onlyOwner {
    minter = _addr;
  }

  function setRoyaltyInfo(
    address _royaltyBenificiary,
    uint16 _royaltyBasisPoints
  ) external onlyOwner {
    royaltyBenificiary = _royaltyBenificiary;
    royaltyBasisPoints = _royaltyBasisPoints;
  }

  function royaltyInfo(uint256, uint256 _salePrice) external view returns (address, uint256) {
    return (royaltyBenificiary, _salePrice * royaltyBasisPoints / 10000);
  }


  event ProjectEvent(
    address indexed poster,
    string indexed eventType,
    string content
  );
  event TokenEvent(
    address indexed poster,
    uint256 indexed tokenId,
    string indexed eventType,
    string content
  );

  function emitProjectEvent(string calldata eventType, string calldata content) external onlyOwner {
    emit ProjectEvent(_msgSender(), eventType, content);
  }

  function emitTokenEvent(uint256 tokenId, string calldata eventType, string calldata content) external {
    require(
      owner() == _msgSender() || ERC721.ownerOf(tokenId) == _msgSender(),
      'Only project or token owner can emit token event'
    );
    emit TokenEvent(_msgSender(), tokenId, eventType, content);
  }


  /// Operator Filterer

  function owner() public view virtual override(UpdatableOperatorFilterer, Ownable) returns (address) {
    return super.owner();
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
   */
  function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
    super.setApprovalForAll(operator, approved);
  }

  /**
   * @dev See {IERC721-approve}.
   *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
   */
  function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
    super.approve(operator, tokenId);
  }

  /**
   * @dev See {IERC721-transferFrom}.
   *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
   */
  function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
    super.transferFrom(from, to, tokenId);
  }

  /**
   * @dev See {IERC721-safeTransferFrom}.
   *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
   */
  function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
    super.safeTransferFrom(from, to, tokenId);
  }

  /**
   * @dev See {IERC721-safeTransferFrom}.
   *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
   */
  function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
    public
    override
    onlyAllowedOperator(from)
  {
    super.safeTransferFrom(from, to, tokenId, data);
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract SequelsBase","name":"_sequelsBase","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ipfsCid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sequelsBase","outputs":[{"internalType":"contract SequelsBase","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"cid","type":"string"}],"name":"setIpfsCid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161084338038061084383398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6107b0806100936000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80637b9146741461005c5780638d1cc6401461007a5780638da5cb5b146100a5578063c87b56dd146100ad578063d16830f1146100c0575b600080fd5b6100646100d5565b60405161007191906103bf565b60405180910390f35b60005461008d906001600160a01b031681565b6040516001600160a01b039091168152602001610071565b61008d610163565b6100646100bb3660046103f2565b6101e0565b6100d36100ce36600461040b565b610214565b005b600180546100e29061047d565b80601f016020809104026020016040519081016040528092919081815260200182805461010e9061047d565b801561015b5780601f106101305761010080835404028352916020019161015b565b820191906000526020600020905b81548152906001019060200180831161013e57829003601f168201915b505050505081565b60008060009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101db91906104b7565b905090565b606060016101ed83610292565b6040516020016101fe929190610503565b6040516020818303038152906040529050919050565b61021c610163565b6001600160a01b0316336001600160a01b0316146102805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600161028d82848361060a565b505050565b6060816000036102b95750506040805180820190915260018152600360fc1b602082015290565b8160005b81156102e357806102cd816106e1565b91506102dc9050600a83610710565b91506102bd565b60008167ffffffffffffffff8111156102fe576102fe6105a6565b6040519080825280601f01601f191660200182016040528015610328576020820181803683370190505b5090505b84156103935761033d600183610724565b915061034a600a8661073d565b610355906030610751565b60f81b81838151811061036a5761036a610764565b60200101906001600160f81b031916908160001a90535061038c600a86610710565b945061032c565b949350505050565b60005b838110156103b657818101518382015260200161039e565b50506000910152565b60208152600082518060208401526103de81604085016020870161039b565b601f01601f19169190910160400192915050565b60006020828403121561040457600080fd5b5035919050565b6000806020838503121561041e57600080fd5b823567ffffffffffffffff8082111561043657600080fd5b818501915085601f83011261044a57600080fd5b81358181111561045957600080fd5b86602082850101111561046b57600080fd5b60209290920196919550909350505050565b600181811c9082168061049157607f821691505b6020821081036104b157634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156104c957600080fd5b81516001600160a01b03811681146104e057600080fd5b9392505050565b600081516104f981856020860161039b565b9290920192915050565b66697066733a2f2f60c81b815260006007600085546105218161047d565b60018281168015610539576001811461055257610585565b60ff198416888701528215158302880186019450610585565b8960005260208060002060005b8581101561057a5781548b82018a015290840190820161055f565b505050858389010194505b50602f60f81b8452610599818501896104e7565b9998505050505050505050565b634e487b7160e01b600052604160045260246000fd5b601f82111561028d57600081815260208120601f850160051c810160208610156105e35750805b601f850160051c820191505b81811015610602578281556001016105ef565b505050505050565b67ffffffffffffffff831115610622576106226105a6565b61063683610630835461047d565b836105bc565b6000601f84116001811461066a57600085156106525750838201355b600019600387901b1c1916600186901b1783556106c4565b600083815260209020601f19861690835b8281101561069b578685013582556020948501946001909201910161067b565b50868210156106b85760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016106f3576106f36106cb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261071f5761071f6106fa565b500490565b81810381811115610737576107376106cb565b92915050565b60008261074c5761074c6106fa565b500690565b80820180821115610737576107376106cb565b634e487b7160e01b600052603260045260246000fdfea264697066735822122018fbbfef2a78ad3851c8da78f4d5d6720882b8b84670ccc0bae028ac5eedd62964736f6c63430008120033000000000000000000000000766edd602ce72fa5737a92e50d4a5e192b57aef4

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80637b9146741461005c5780638d1cc6401461007a5780638da5cb5b146100a5578063c87b56dd146100ad578063d16830f1146100c0575b600080fd5b6100646100d5565b60405161007191906103bf565b60405180910390f35b60005461008d906001600160a01b031681565b6040516001600160a01b039091168152602001610071565b61008d610163565b6100646100bb3660046103f2565b6101e0565b6100d36100ce36600461040b565b610214565b005b600180546100e29061047d565b80601f016020809104026020016040519081016040528092919081815260200182805461010e9061047d565b801561015b5780601f106101305761010080835404028352916020019161015b565b820191906000526020600020905b81548152906001019060200180831161013e57829003601f168201915b505050505081565b60008060009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101db91906104b7565b905090565b606060016101ed83610292565b6040516020016101fe929190610503565b6040516020818303038152906040529050919050565b61021c610163565b6001600160a01b0316336001600160a01b0316146102805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600161028d82848361060a565b505050565b6060816000036102b95750506040805180820190915260018152600360fc1b602082015290565b8160005b81156102e357806102cd816106e1565b91506102dc9050600a83610710565b91506102bd565b60008167ffffffffffffffff8111156102fe576102fe6105a6565b6040519080825280601f01601f191660200182016040528015610328576020820181803683370190505b5090505b84156103935761033d600183610724565b915061034a600a8661073d565b610355906030610751565b60f81b81838151811061036a5761036a610764565b60200101906001600160f81b031916908160001a90535061038c600a86610710565b945061032c565b949350505050565b60005b838110156103b657818101518382015260200161039e565b50506000910152565b60208152600082518060208401526103de81604085016020870161039b565b601f01601f19169190910160400192915050565b60006020828403121561040457600080fd5b5035919050565b6000806020838503121561041e57600080fd5b823567ffffffffffffffff8082111561043657600080fd5b818501915085601f83011261044a57600080fd5b81358181111561045957600080fd5b86602082850101111561046b57600080fd5b60209290920196919550909350505050565b600181811c9082168061049157607f821691505b6020821081036104b157634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156104c957600080fd5b81516001600160a01b03811681146104e057600080fd5b9392505050565b600081516104f981856020860161039b565b9290920192915050565b66697066733a2f2f60c81b815260006007600085546105218161047d565b60018281168015610539576001811461055257610585565b60ff198416888701528215158302880186019450610585565b8960005260208060002060005b8581101561057a5781548b82018a015290840190820161055f565b505050858389010194505b50602f60f81b8452610599818501896104e7565b9998505050505050505050565b634e487b7160e01b600052604160045260246000fd5b601f82111561028d57600081815260208120601f850160051c810160208610156105e35750805b601f850160051c820191505b81811015610602578281556001016105ef565b505050505050565b67ffffffffffffffff831115610622576106226105a6565b61063683610630835461047d565b836105bc565b6000601f84116001811461066a57600085156106525750838201355b600019600387901b1c1916600186901b1783556106c4565b600083815260209020601f19861690835b8281101561069b578685013582556020948501946001909201910161067b565b50868210156106b85760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016106f3576106f36106cb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261071f5761071f6106fa565b500490565b81810381811115610737576107376106cb565b92915050565b60008261074c5761074c6106fa565b500690565b80820180821115610737576107376106cb565b634e487b7160e01b600052603260045260246000fdfea264697066735822122018fbbfef2a78ad3851c8da78f4d5d6720882b8b84670ccc0bae028ac5eedd62964736f6c63430008120033

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

000000000000000000000000766edd602ce72fa5737a92e50d4a5e192b57aef4

-----Decoded View---------------
Arg [0] : _sequelsBase (address): 0x766eDD602ce72FA5737A92e50d4A5e192B57aeF4

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000766edd602ce72fa5737a92e50d4a5e192b57aef4


Deployed Bytecode Sourcemap

1527:598:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1620:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1586:30;;;;;-1:-1:-1;;;;;1586:30:3;;;;;;-1:-1:-1;;;;;854:32:4;;;836:51;;824:2;809:18;1586:30:3;670:223:4;1725:84:3;;;:::i;1963:160::-;;;;;;:::i;:::-;;:::i;1813:146::-;;;;;;:::i;:::-;;:::i;:::-;;1620:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1725:84::-;1763:7;1785:11;;;;;;;;;-1:-1:-1;;;;;1785:11:3;-1:-1:-1;;;;;1785:17:3;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1778:26;;1725:84;:::o;1963:160::-;2021:13;2084:7;2098:18;:7;:16;:18::i;:::-;2056:61;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2042:76;;1963:160;;;:::o;1813:146::-;1891:7;:5;:7::i;:::-;-1:-1:-1;;;;;1877:21:3;:10;-1:-1:-1;;;;;1877:21:3;;1869:66;;;;-1:-1:-1;;;1869:66:3;;4344:2:4;1869:66:3;;;4326:21:4;;;4363:18;;;4356:30;4422:34;4402:18;;;4395:62;4474:18;;1869:66:3;;;;;;;;1941:7;:13;1951:3;;1941:7;:13;:::i;:::-;;1813:146;;:::o;15802:703:0:-;15858:13;16075:5;16084:1;16075:10;16071:51;;-1:-1:-1;;16101:10:0;;;;;;;;;;;;-1:-1:-1;;;16101:10:0;;;;;15802:703::o;16071:51::-;16146:5;16131:12;16185:75;16192:9;;16185:75;;16217:8;;;;:::i;:::-;;-1:-1:-1;16239:10:0;;-1:-1:-1;16247:2:0;16239:10;;:::i;:::-;;;16185:75;;;16269:19;16301:6;16291:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16291:17:0;;16269:39;;16318:150;16325:10;;16318:150;;16351:11;16361:1;16351:11;;:::i;:::-;;-1:-1:-1;16419:10:0;16427:2;16419:5;:10;:::i;:::-;16406:24;;:2;:24;:::i;:::-;16393:39;;16376:6;16383;16376:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;16376:56:0;;;;;;;;-1:-1:-1;16446:11:0;16455:2;16446:11;;:::i;:::-;;;16318:150;;;16491:6;15802:703;-1:-1:-1;;;;15802:703:0:o;14:250:4:-;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:4;238:16;;231:27;14:250::o;269:396::-;418:2;407:9;400:21;381:4;450:6;444:13;493:6;488:2;477:9;473:18;466:34;509:79;581:6;576:2;565:9;561:18;556:2;548:6;544:15;509:79;:::i;:::-;649:2;628:15;-1:-1:-1;;624:29:4;609:45;;;;656:2;605:54;;269:396;-1:-1:-1;;269:396:4:o;1106:180::-;1165:6;1218:2;1206:9;1197:7;1193:23;1189:32;1186:52;;;1234:1;1231;1224:12;1186:52;-1:-1:-1;1257:23:4;;1106:180;-1:-1:-1;1106:180:4:o;1291:592::-;1362:6;1370;1423:2;1411:9;1402:7;1398:23;1394:32;1391:52;;;1439:1;1436;1429:12;1391:52;1479:9;1466:23;1508:18;1549:2;1541:6;1538:14;1535:34;;;1565:1;1562;1555:12;1535:34;1603:6;1592:9;1588:22;1578:32;;1648:7;1641:4;1637:2;1633:13;1629:27;1619:55;;1670:1;1667;1660:12;1619:55;1710:2;1697:16;1736:2;1728:6;1725:14;1722:34;;;1752:1;1749;1742:12;1722:34;1797:7;1792:2;1783:6;1779:2;1775:15;1771:24;1768:37;1765:57;;;1818:1;1815;1808:12;1765:57;1849:2;1841:11;;;;;1871:6;;-1:-1:-1;1291:592:4;;-1:-1:-1;;;;1291:592:4:o;1888:380::-;1967:1;1963:12;;;;2010;;;2031:61;;2085:4;2077:6;2073:17;2063:27;;2031:61;2138:2;2130:6;2127:14;2107:18;2104:38;2101:161;;2184:10;2179:3;2175:20;2172:1;2165:31;2219:4;2216:1;2209:15;2247:4;2244:1;2237:15;2101:161;;1888:380;;;:::o;2273:290::-;2343:6;2396:2;2384:9;2375:7;2371:23;2367:32;2364:52;;;2412:1;2409;2402:12;2364:52;2438:16;;-1:-1:-1;;;;;2483:31:4;;2473:42;;2463:70;;2529:1;2526;2519:12;2463:70;2552:5;2273:290;-1:-1:-1;;;2273:290:4:o;2694:198::-;2736:3;2774:5;2768:12;2789:65;2847:6;2842:3;2835:4;2828:5;2824:16;2789:65;:::i;:::-;2870:16;;;;;2694:198;-1:-1:-1;;2694:198:4:o;2897:1240::-;-1:-1:-1;;;3300:3:4;3293:22;3275:3;3334:1;3355;3388:6;3382:13;3418:36;3444:9;3418:36;:::i;:::-;3473:1;3490:18;;;3517:151;;;;3682:1;3677:374;;;;3483:568;;3517:151;-1:-1:-1;;3559:24:4;;3545:12;;;3538:46;3636:14;;3629:22;3617:35;;3608:45;;3604:54;;;-1:-1:-1;3517:151:4;;3677:374;3708:6;3705:1;3698:17;3738:4;3783:2;3780:1;3770:16;3808:1;3822:174;3836:6;3833:1;3830:13;3822:174;;;3923:14;;3905:11;;;3901:20;;3894:44;3966:16;;;;3851:10;;3822:174;;;3826:3;;;4038:2;4029:6;4024:3;4020:16;4016:25;4009:32;;3483:568;;-1:-1:-1;;;4067:3:4;4060:16;4092:39;4127:2;4122:3;4118:12;4110:6;4092:39;:::i;:::-;4085:46;2897:1240;-1:-1:-1;;;;;;;;;2897:1240:4:o;4503:127::-;4564:10;4559:3;4555:20;4552:1;4545:31;4595:4;4592:1;4585:15;4619:4;4616:1;4609:15;4635:545;4737:2;4732:3;4729:11;4726:448;;;4773:1;4798:5;4794:2;4787:17;4843:4;4839:2;4829:19;4913:2;4901:10;4897:19;4894:1;4890:27;4884:4;4880:38;4949:4;4937:10;4934:20;4931:47;;;-1:-1:-1;4972:4:4;4931:47;5027:2;5022:3;5018:12;5015:1;5011:20;5005:4;5001:31;4991:41;;5082:82;5100:2;5093:5;5090:13;5082:82;;;5145:17;;;5126:1;5115:13;5082:82;;;5086:3;;;4635:545;;;:::o;5356:1206::-;5480:18;5475:3;5472:27;5469:53;;;5502:18;;:::i;:::-;5531:94;5621:3;5581:38;5613:4;5607:11;5581:38;:::i;:::-;5575:4;5531:94;:::i;:::-;5651:1;5676:2;5671:3;5668:11;5693:1;5688:616;;;;6348:1;6365:3;6362:93;;;-1:-1:-1;6421:19:4;;;6408:33;6362:93;-1:-1:-1;;5313:1:4;5309:11;;;5305:24;5301:29;5291:40;5337:1;5333:11;;;5288:57;6468:78;;5661:895;;5688:616;2641:1;2634:14;;;2678:4;2665:18;;-1:-1:-1;;5724:17:4;;;5825:9;5847:229;5861:7;5858:1;5855:14;5847:229;;;5950:19;;;5937:33;5922:49;;6057:4;6042:20;;;;6010:1;5998:14;;;;5877:12;5847:229;;;5851:3;6104;6095:7;6092:16;6089:159;;;6228:1;6224:6;6218:3;6212;6209:1;6205:11;6201:21;6197:34;6193:39;6180:9;6175:3;6171:19;6158:33;6154:79;6146:6;6139:95;6089:159;;;6291:1;6285:3;6282:1;6278:11;6274:19;6268:4;6261:33;5661:895;;;5356:1206;;;:::o;6567:127::-;6628:10;6623:3;6619:20;6616:1;6609:31;6659:4;6656:1;6649:15;6683:4;6680:1;6673:15;6699:135;6738:3;6759:17;;;6756:43;;6779:18;;:::i;:::-;-1:-1:-1;6826:1:4;6815:13;;6699:135::o;6839:127::-;6900:10;6895:3;6891:20;6888:1;6881:31;6931:4;6928:1;6921:15;6955:4;6952:1;6945:15;6971:120;7011:1;7037;7027:35;;7042:18;;:::i;:::-;-1:-1:-1;7076:9:4;;6971:120::o;7096:128::-;7163:9;;;7184:11;;;7181:37;;;7198:18;;:::i;:::-;7096:128;;;;:::o;7229:112::-;7261:1;7287;7277:35;;7292:18;;:::i;:::-;-1:-1:-1;7326:9:4;;7229:112::o;7346:125::-;7411:9;;;7432:10;;;7429:36;;;7445:18;;:::i;7476:127::-;7537:10;7532:3;7528:20;7525:1;7518:31;7568:4;7565:1;7558:15;7592:4;7589:1;7582:15

Swarm Source

ipfs://18fbbfef2a78ad3851c8da78f4d5d6720882b8b84670ccc0bae028ac5eedd629

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.