ETH Price: $3,532.81 (+4.30%)

Ethernal Inscriptions (INSCRIPTION)
 

Overview

TokenID

16008

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Ethernals

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Inscription.sol";
import "./Base64.sol";

contract Ethernals is Inscription, Ownable {
    using Counters for Counters.Counter;

    string public constant ETHERNAL_HEAER = "eth";
    uint8 public constant ETHERNAL_VER = 1;

    string private baseURL;
    Counters.Counter private _inscriptionIdTracker;

    constructor(
        string memory _baseURL
    ) Inscription("Ethernal Inscriptions", "INSCRIPTION") {
        baseURL = _baseURL;
        _inscriptionIdTracker.increment(); // default inscription ID 1
    }

    /**
     * @dev inscribe an inscription.
     * The inscribing function solely validates the format of the calldata and does not verify its content. 
     * The correct content data should be prepared.
     * The inscribing function does not check for content duplication.
     *
     * Ethernals are inscribed by sending a transaction to the contract, the calldata must encoded as follows:
     *  - 3 bytes: header, must be "eth"
     *  - 1 byte: version, must be 1
     *  - 1 byte: content type length
     *  - content type bytes with length of content type length
     *  - 4 byte: content length
     *  - content bytes with length of content length
     *
     * @param input the calldata to be inscribed
     * @return bytes inscription ID encoded by abi.encode(uint256)
     */
    fallback(bytes calldata input) external returns (bytes memory) {
        require(msg.sender == tx.origin, "only EOA");
        require(keccak256(abi.encodePacked(string(input[0:3]))) == keccak256(abi.encodePacked(ETHERNAL_HEAER)), "invalid header");
        require(uint8(input[3]) == ETHERNAL_VER, "invalid version");
        uint8 ctlen = uint8(input[4]);
        uint32 clen = uint32(bytes4(input[5+ctlen:9+ctlen]));
        require(ctlen > 0 && clen > 0 && input.length == 9 + ctlen + clen, "invalid calldata length");

        uint256 id = _inscriptionIdTracker.current();
        _inscriptionIdTracker.increment();
        _inscribe(msg.sender, id, new bytes(0));
        return abi.encode(id);
    }

    receive() external payable {
        revert();
    }

    function tokenURI(uint256 inscriptionId) override public view returns (string memory) {
        string[17] memory parts;
        parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 300 300"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="30" class="base">';
        parts[1] = string(abi.encodePacked('Ethernals Protocol'));
        parts[2] = '</text><text x="10" y="60" class="base">';
        parts[3] = string(abi.encodePacked('Inscription #', toString(inscriptionId)));
        parts[4] = '</text><text x="10" y="90" class="base">';
        parts[5] = string(abi.encodePacked(baseURL, '/inscription/', toString(inscriptionId)));
        parts[6] = '</text></svg>';

        string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6]));
        
        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Inscription #', toString(inscriptionId), '", "description": "The Ethernals protocol is a new way of inscribing inscriptions on the Ethereum blockchain. The content of the inscription is immutable, and the data is permanently stored on the Ethereum blockchain. Inscription supports a variety of content formats, including text, images, HTMLs, and videos.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    function inscriptionURL(uint256 inscriptionId) override public view returns (string memory) {
        return string(abi.encodePacked(baseURL, '/preview/', toString(inscriptionId)));
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";

import "./interfaces/IInscription.sol";
import "./interfaces/IInscriptionMetadata.sol";
import "./interfaces/IInscriptionReceiver.sol";

contract Inscription is Context, ERC165, IInscription, IInscriptionMetadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // 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(IInscription).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Returns the name of the inscription.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the inscription.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the URI of the inscription.
     */
    function tokenURI(uint256 inscriptionId) public view virtual override returns (string memory) {
        return "";
    }

    /**
     * @dev Returns the URL of the inscription.
     */
    function inscriptionURL(uint256 inscriptionId) public view virtual override returns (string memory) {
        return "";
    }

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

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

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

    /**
     * @dev Safely transfers `inscriptionId` inscription from `from` to `to`, checking first that contract recipients
     * are aware of the Inscription protocol to prevent inscriptions 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 inscription transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `inscriptionId` inscription must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IInscriptionReceiver-onInscriptionReceived}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 inscriptionId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, inscriptionId);
        require(_checkOnInscriptionReceived(from, to, inscriptionId, _data), "Inscription: transfer to non InscriptionReceiver implementer");
    }

    /**
     * @dev Mints `inscriptionId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `inscriptionId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IInscriptionReceiver-onInscriptionReceived}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _inscribe(
        address to,
        uint256 inscriptionId,
        bytes memory _data
    ) internal virtual {
        require(to != address(0), "Inscription: inscribe to the zero address");
        require(!_exists(inscriptionId), "Inscription: inscription already inscribed");

        _owners[inscriptionId] = to;
        emit Transfer(address(0), to, inscriptionId);

        require(
            _checkOnInscriptionReceived(address(0), to, inscriptionId, _data),
            "Inscription: transfer to non InscriptionReceiver implementer"
        );
    }

    /**
     * @dev Returns whether `inscriptionId` exists.
     *
     * Inscriptions can be managed by their owner or approved accounts via {setApprovalForAll}.
     *
     * Inscriptions start existing when they are inscribed (`_inscribe`).
     */
    function _exists(uint256 inscriptionId) internal view virtual returns (bool) {
        return _owners[inscriptionId] != address(0);
    }

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

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

        _owners[inscriptionId] = to;
        emit Transfer(from, to, inscriptionId);
    }

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

    /**
     * @dev Internal function to invoke {IInscriptionReceiver-onInscriptionReceived} 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 inscription ID
     * @param to target address that will receive the inscriptions
     * @param inscriptionId uint256 ID of the inscription 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 _checkOnInscriptionReceived(
        address from,
        address to,
        uint256 inscriptionId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IInscriptionReceiver(to).onInscriptionReceived(_msgSender(), from, inscriptionId, _data) returns (bytes4 retval) {
                return retval == IInscriptionReceiver.onInscriptionReceived.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("Inscription: transfer to non InscriptionReceiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

}

File 10 of 12 : IInscription.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

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

    /**
     * @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 owner of the `inscriptionId` inscription.
     *
     * Requirements:
     *
     * - `inscriptionId` must exist.
     */
    function ownerOf(uint256 inscriptionId) external view returns (address owner);

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


    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {safeTransferFrom} for any inscription 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);
}

File 11 of 12 : IInscriptionMetadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IInscription.sol";

interface IInscriptionMetadata is IInscription {
    /**
     * @dev Returns the inscription name.
     */
    function name() external view returns (string memory);

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

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

    /**
     * @dev Returns the Inscription Uniform Resource Locator (URL) for `inscriptionId` inscription.
     */
    function inscriptionURL(uint256 inscriptionId) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

/**
 * @title IInscription inscription receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from IInscription asset contracts.
 */
interface IInscriptionReceiver {
    /**
     * @dev Whenever an {IInscription} `inscriptionId` inscription is transferred to this contract via {IInscription-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the inscription 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 `IInscriptionReceiver.onInscriptionReceived.selector`.
     */
    function onInscriptionReceived(
        address operator,
        address from,
        uint256 inscriptionId,
        bytes calldata data
    ) external returns (bytes4);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURL","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"inscriptionId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"ETHERNAL_HEAER","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHERNAL_VER","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"inscriptionId","type":"uint256"}],"name":"inscriptionURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"inscriptionId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"inscriptionId","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":"inscriptionId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234620005085762002207803803806200001d816200052d565b9283398101906020908181840312620005085780516001600160401b039182821162000508570190601f848184011215620005085782518281116200033a57601f199362000071828401861687016200052d565b968288528683830101116200050857859060005b838110620004f357505060009187010152620000a06200050d565b93601585527f45746865726e616c20496e736372697074696f6e73000000000000000000000081860152620000d46200050d565b600b81526a24a729a1a924a82a24a7a760a91b8282015285518481116200033a576000546001978882811c92168015620004e8575b858310146200031957818684931162000492575b5084908683116001146200042d5760009262000421575b5050600019600383901b1c191690871b176000555b8051908482116200033a578654908782811c9216801562000416575b8483101462000319578185849311620003c0575b5083908583116001146200035c5760009262000350575b5050600019600383901b1c191690861b1785555b60048054336001600160a01b0319821681179092556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a385519283116200033a5760059384548681811c911680156200032f575b838210146200031957838111620002d0575b508192841160011462000269575050819293946000926200025d575b5050600019600383901b1c191690831b1790555b60065401600655604051611cb39081620005548239f35b01519050388062000232565b6000858152828120918516979193925b888210620002b8575050838697969596106200029e575b505050811b01905562000246565b015160001960f88460031b161c1916905538808062000290565b80888596829496860151815501950193019062000279565b856000528260002084808701881c8201928588106200030f575b01871c019087905b8281106200030257505062000216565b60008155018790620002f2565b92508192620002ea565b634e487b7160e01b600052602260045260246000fd5b90607f169062000204565b634e487b7160e01b600052604160045260246000fd5b01519050388062000190565b90878994169184600052856000209260005b87828210620003a957505084116200038f575b505050811b018555620001a4565b015160001960f88460031b161c1916905538808062000381565b8385015186558c979095019493840193016200036e565b90915087600052836000208580850160051c8201928686106200040c575b918a91869594930160051c01915b828110620003fc57505062000179565b600081558594508a9101620003ec565b92508192620003de565b91607f169162000165565b01519050388062000134565b90888a94169160008052866000209260005b888282106200047b575050841162000461575b505050811b0160005562000149565b015160001960f88460031b161c1916905538808062000452565b8385015186558d979095019493840193016200043f565b90915060008052846000208680850160051c820192878610620004de575b918b91869594930160051c01915b828110620004ce5750506200011d565b600081558594508b9101620004be565b92508192620004b0565b91607f169162000109565b81810183015189820184015287920162000085565b600080fd5b60408051919082016001600160401b038111838210176200033a57604052565b6040519190601f01601f191682016001600160401b038111838210176200033a5760405256fe6080604052600436101561002f575b361561002a573461002a5761002236610f25565b602081519101f35b600080fd5b60003560e01c806301ffc9a71461010f57806306fdde031461010a578063448b2fcd146101055780636352211e14610100578063715018a6146100fb5780637f5631dc146100f65780638da5cb5b146100f157806395d89b41146100ec578063a22cb465146100e7578063b43d1672146100e2578063b88d4fde146100dd578063c87b56dd146100d8578063e985e9c5146100d35763f2fde38b0361000e57610bbc565b610b5f565b61074c565b6106c1565b61065a565b61056e565b61049d565b610474565b610444565b610307565b6102d7565b6102bb565b6101d8565b610126565b6001600160e01b031981160361002a57565b3461002a57602036600319011261002a57602060043561014581610114565b63ffffffff60e01b16630483b19b60e51b811490811561016b575b506040519015158152f35b6301ffc9a760e01b14905038610160565b60005b83811061018f5750506000910152565b818101518382015260200161017f565b906020916101b88151809281855285808601910161017c565b601f01601f1916010190565b9060206101d592818152019061019f565b90565b3461002a576000806003193601126102b857604051908080546101fa816112e1565b8085529160019180831690811561028e5750600114610234575b61023085610224818703826103d4565b604051918291826101c4565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b82841061027657505050810160200161022482610230610214565b8054602085870181019190915290930192810161025b565b8695506102309693506020925061022494915060ff191682840152151560051b8201019293610214565b80fd5b3461002a57600036600319011261002a57602060405160018152f35b3461002a57602036600319011261002a5760206102f5600435611617565b6040516001600160a01b039091168152f35b3461002a576000806003193601126102b857610321610c85565b600480546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761039757604052565b610365565b6040810190811067ffffffffffffffff82111761039757604052565b6060810190811067ffffffffffffffff82111761039757604052565b90601f8019910116810190811067ffffffffffffffff82111761039757604052565b67ffffffffffffffff811161039757601f01601f191660200190565b6040519061041f8261037b565b60008252565b604051906104328261039c565b60038252620cae8d60eb1b6020830152565b3461002a57600036600319011261002a57610230610460610425565b60405191829160208352602083019061019f565b3461002a57600036600319011261002a576004546040516001600160a01b039091168152602090f35b3461002a576000806003193601126102b857604051908060018054916104c2836112e1565b8086529282811690811561028e57506001146104e85761023085610224818703826103d4565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b82841061052a57505050810160200161022482610230610214565b8054602085870181019190915290930192810161050f565b600435906001600160a01b038216820361002a57565b602435906001600160a01b038216820361002a57565b3461002a57604036600319011261002a57610587610542565b602435801515810361002a576001600160a01b0382169133831461061557816105d26105e39233600052600360205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601e60248201527f496e736372697074696f6e3a20617070726f766520746f2063616c6c657200006044820152606490fd5b3461002a57602036600319011261002a57610230610679600435611574565b6104606009604051809361068f6020830161131b565b682f707265766965772f60b81b81526106b1825180936020878501910161017c565b01036016198101845201826103d4565b3461002a57608036600319011261002a576106da610542565b6106e2610558565b6064359167ffffffffffffffff831161002a573660238401121561002a5782600401359161070f836103f6565b9261071d60405194856103d4565b808452366024828701011161002a57602081600092602461074a9801838801378501015260443591611705565b005b3461002a5760208060031936011261002a576004356107696110b9565b906107726110f7565b8252604091825191828581016107a19060129071115d1a195c9b985b1cc8141c9bdd1bd8dbdb60721b81520190565b0392601f199384810182526107b690826103d4565b8583019081526107c461124d565b928581019384526107d483611574565b865180918982016107f990600d906c496e736372697074696f6e202360981b81520190565b61080291610d47565b03868101825261081290826103d4565b60608201908152610821611297565b6080830190815261083185611574565b90885180928b82016108429061131b565b6c2f696e736372697074696f6e2f60981b8152600d0161086191610d47565b03888101835261087190836103d4565b60a084019182526108806113aa565b938460c082015251945196519251905191519289519788968c88016108a491610d47565b6108ad91610d47565b6108b691610d47565b6108bf91610d47565b6108c891610d47565b6108d191610d47565b6108da91610d47565b0383810183526108ea90836103d4565b6108f390611574565b906108fd90611466565b83517f7b226e616d65223a2022496e736372697074696f6e2023000000000000000000868201908152909283929160170161093791610d47565b7f222c20226465736372697074696f6e223a20225468652045746865726e616c7381527f2070726f746f636f6c2069732061206e657720776179206f6620696e7363726960208201527f62696e6720696e736372697074696f6e73206f6e20746865204574686572657560408201527f6d20626c6f636b636861696e2e2054686520636f6e74656e74206f662074686560608201527f20696e736372697074696f6e20697320696d6d757461626c652c20616e64207460808201527f68652064617461206973207065726d616e656e746c792073746f726564206f6e60a08201527f2074686520457468657265756d20626c6f636b636861696e2e20496e7363726960c08201527f7074696f6e20737570706f72747320612076617269657479206f6620636f6e7460e08201527f656e7420666f726d6174732c20696e636c7564696e6720746578742c20696d616101008201527f6765732c2048544d4c732c20616e6420766964656f732e222c2022696d6167656101208201527f223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000061014082015261015e01610ae691610d47565b61227d60f01b8152600201038281018252610b0190826103d4565b610b0a90611466565b82517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000094810194855293849190601d01610b4391610d47565b039081018352610b5390836103d4565b516102308192826101c4565b3461002a57604036600319011261002a57602060ff610bb0610b7f610542565b610b87610558565b6001600160a01b0391821660009081526003865260408082209290931681526020919091522090565b54166040519015158152f35b3461002a57602036600319011261002a57610bd5610542565b610bdd610c85565b6001600160a01b03908116908115610c3157600454826bffffffffffffffffffffffff60a01b821617600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6004546001600160a01b03163303610c9957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610ce457565b60405162461bcd60e51b81526020600482015260086024820152676f6e6c7920454f4160c01b6044820152606490fd5b60031161002a57600090600390565b92919283821161002a57831161002a5780920390565b908092918237016000815290565b90610d5a6020928281519485920161017c565b0190565b15610d6557565b60405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b2103432b0b232b960911b6044820152606490fd5b634e487b7160e01b600052603260045260246000fd5b60031015610dbe57600390565b610d9b565b60041015610dbe57600490565b15610dd757565b60405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b2103b32b939b4b7b760891b6044820152606490fd5b634e487b7160e01b600052601160045260246000fd5b60ff166005019060ff8211610e3557565b610e0e565b60ff166009019060ff8211610e3557565b6001600160e01b03199035818116939260048110610e6857505050565b60040360031b82901b16169150565b91909163ffffffff80809416911601918211610e3557565b15610e9657565b60405162461bcd60e51b815260206004820152601760248201527f696e76616c69642063616c6c64617461206c656e6774680000000000000000006044820152606490fd5b604051610ee78161037b565b60008152906000368137565b90610efd826103f6565b610f0a60405191826103d4565b8281528092610f1b601f19916103f6565b0190602036910137565b6101d5610f5b61103361106a93610f3d323314610cdd565b610fa4610f4982610d14565b60405195602087019287928491610d39565b0394610f6f601f19968781018352826103d4565b519020610f7a610425565b604051610f9b81610f8f602082018095610d47565b038881018352826103d4565b51902014610d5e565b610fd5600160ff610fce610fc8610fba86610db1565b356001600160f81b03191690565b60f81c90565b1614610dd0565b610fe4610fc8610fba83610dc3565b9061101861101261100c610ff785610e24565b60ff8061100388610e3a565b16911685610d23565b90610e4b565b60e01c90565b60ff8316151592836110a9575b83611076575b505050610e8f565b600654611044600160065401600655565b61105661104f610edb565b82336119b6565b604051938491602083019190602083019252565b039081018352826103d4565b6110a09293509061109261108c61109793610e3a565b60ff1690565b610e77565b63ffffffff1690565b1438808061102b565b63ffffffff821615159350611025565b6040519061022080830183811067ffffffffffffffff821117610397576040528260005b8281106110e957505050565b6060828201526020016110dd565b60405190610120820182811067ffffffffffffffff8211176103975760405260fd82527f7420783d2231302220793d2233302220636c6173733d2262617365223e000000610100837f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960408201527f6e594d696e206d656574222076696577426f783d22302030203330302033303060608201527f223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f60808201527f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a2031347060a08201527f783b207d3c2f7374796c653e3c726563742077696474683d223130302522206860c08201527f65696768743d2231303025222066696c6c3d22626c61636b22202f3e3c74657860e08201520152565b6040519061125a826103b8565b602882527f3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b604051906112a4826103b8565b602882527f3c2f746578743e3c7465787420783d2231302220793d2239302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b90600182811c92168015611311575b60208310146112fb57565b634e487b7160e01b600052602260045260246000fd5b91607f16916112f0565b6005546000929161132b826112e1565b91600190818116908115611397575060011461134657505050565b909192935060056000527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0906000915b848310611384575050500190565b8181602092548587015201920191611376565b60ff191683525050811515909102019150565b604051906113b78261039c565b600d82526c1e17ba32bc3a1f1e17b9bb339f60991b6020830152565b9060028201809211610e3557565b9060208201809211610e3557565b600281901b91906001600160fe1b03811603610e3557565b60405190611414826103b8565b604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b80519081156115595761148a61148561147e846113d3565b6003900490565b6113ef565b9161149c611497846113e1565b610ef3565b906114a5611407565b92600092602081015b84848110156115125790600491600380910196850101516001603f9080828460121c168b010151918a60ff9384848488600c1c1684010151168585600894868a60061c160101511691831b01821b01901b93168a010151160160e01b8152016114ae565b50935094935050600390068060011461154557600214611533575b50815290565b603d60f81b600019909101523861152d565b50613d3d60f01b600119909101523861152d565b50506101d5610412565b908151811015610dbe570160200190565b80156115f9578060008082805b6115dd575061158f81610ef3565b935b61159b5750505090565b6000198101908111610e35578092600a9160308383068101809111610e355760f81b6001600160f81b031916841a906115d49087611563565b53049182611591565b92506000198114610e35576001600a9101920480849391611581565b506040516116068161039c565b60018152600360fc1b602082015290565b6000908152600260205260409020546001600160a01b031680156116385790565b60405162461bcd60e51b815260206004820152603460248201527f496e736372697074696f6e3a206f776e657220717565727920666f72206e6f6e60448201527332bc34b9ba32b73a1034b739b1b934b83a34b7b760611b6064820152608490fd5b156116a157565b60405162461bcd60e51b815260206004820152603660248201527f496e736372697074696f6e3a207472616e736665722063616c6c6572206973206044820152751b9bdd081bdddb995c881b9bdc88185c1c1c9bdd995960521b6064820152608490fd5b60008381526002602052604090205490939291906001600160a01b03161561177f57611756936001600160a01b0361173c84611617565b168033148015611758575b611751915061169a565b61186c565b565b5060009081526003602090815260408083203384529091529020546117519060ff16611747565b60405162461bcd60e51b815260206004820152603760248201527f496e736372697074696f6e3a206f70657261746f7220717565727920666f722060448201527f6e6f6e6578697374656e7420696e736372697074696f6e0000000000000000006064820152608490fd5b60809060208152603c60208201527f496e736372697074696f6e3a207472616e7366657220746f206e6f6e20496e7360408201527f6372697074696f6e526563656976657220696d706c656d656e7465720000000060608201520190565b1561184f57565b60405162461bcd60e51b815280611868600482016117ea565b0390fd5b9192909261187981611617565b6001600160a01b038481169591811686900361195e578116938415611907578261190295611756976118d8856118b9856000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4611c41565b611848565b60405162461bcd60e51b815260206004820152602960248201527f496e736372697074696f6e3a207472616e7366657220746f20746865207a65726044820152686f206164647265737360b81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602a60248201527f496e736372697074696f6e3a207472616e736665722066726f6d20696e636f726044820152693932b1ba1037bbb732b960b11b6064820152608490fd5b916001600160a01b038316918215611a88576000818152600260205260409020546001600160a01b0316611a3057838161190294611a05611756976118b9846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4611b80565b60405162461bcd60e51b815260206004820152602a60248201527f496e736372697074696f6e3a20696e736372697074696f6e20616c7265616479604482015269081a5b9cd8dc9a58995960b21b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f496e736372697074696f6e3a20696e73637269626520746f20746865207a65726044820152686f206164647265737360b81b6064820152608490fd5b9081602091031261002a57516101d581610114565b6101d5939260809260018060a01b03168252600060208301526040820152816060820152019061019f565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526101d59291019061019f565b3d15611b7b573d90611b61826103f6565b91611b6f60405193846103d4565b82523d6000602084013e565b606090565b909190803b15611c3957611bb2602091600093604051948580948193632b57bb6760e21b998a84523360048501611af4565b03926001600160a01b03165af160009181611c09575b50611bfb57611bd5611b50565b80519081611bf65760405162461bcd60e51b815280611868600482016117ea565b602001fd5b6001600160e01b0319161490565b611c2b91925060203d8111611c32575b611c2381836103d4565b810190611adf565b9038611bc8565b503d611c19565b505050600190565b92909190823b15611c7457611bb2926020926000604051809681958294632b57bb6760e21b9a8b85523360048601611b1f565b5050505060019056fea2646970667358221220c3a3973f4766d9c68d769903870a7bce1b0afcd5327dd5a17be9aaf965eb018d64736f6c634300081300330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001568747470733a2f2f65746865726e616c732e6f72670000000000000000000000

Deployed Bytecode

0x6080604052600436101561002f575b361561002a573461002a5761002236610f25565b602081519101f35b600080fd5b60003560e01c806301ffc9a71461010f57806306fdde031461010a578063448b2fcd146101055780636352211e14610100578063715018a6146100fb5780637f5631dc146100f65780638da5cb5b146100f157806395d89b41146100ec578063a22cb465146100e7578063b43d1672146100e2578063b88d4fde146100dd578063c87b56dd146100d8578063e985e9c5146100d35763f2fde38b0361000e57610bbc565b610b5f565b61074c565b6106c1565b61065a565b61056e565b61049d565b610474565b610444565b610307565b6102d7565b6102bb565b6101d8565b610126565b6001600160e01b031981160361002a57565b3461002a57602036600319011261002a57602060043561014581610114565b63ffffffff60e01b16630483b19b60e51b811490811561016b575b506040519015158152f35b6301ffc9a760e01b14905038610160565b60005b83811061018f5750506000910152565b818101518382015260200161017f565b906020916101b88151809281855285808601910161017c565b601f01601f1916010190565b9060206101d592818152019061019f565b90565b3461002a576000806003193601126102b857604051908080546101fa816112e1565b8085529160019180831690811561028e5750600114610234575b61023085610224818703826103d4565b604051918291826101c4565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b82841061027657505050810160200161022482610230610214565b8054602085870181019190915290930192810161025b565b8695506102309693506020925061022494915060ff191682840152151560051b8201019293610214565b80fd5b3461002a57600036600319011261002a57602060405160018152f35b3461002a57602036600319011261002a5760206102f5600435611617565b6040516001600160a01b039091168152f35b3461002a576000806003193601126102b857610321610c85565b600480546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761039757604052565b610365565b6040810190811067ffffffffffffffff82111761039757604052565b6060810190811067ffffffffffffffff82111761039757604052565b90601f8019910116810190811067ffffffffffffffff82111761039757604052565b67ffffffffffffffff811161039757601f01601f191660200190565b6040519061041f8261037b565b60008252565b604051906104328261039c565b60038252620cae8d60eb1b6020830152565b3461002a57600036600319011261002a57610230610460610425565b60405191829160208352602083019061019f565b3461002a57600036600319011261002a576004546040516001600160a01b039091168152602090f35b3461002a576000806003193601126102b857604051908060018054916104c2836112e1565b8086529282811690811561028e57506001146104e85761023085610224818703826103d4565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b82841061052a57505050810160200161022482610230610214565b8054602085870181019190915290930192810161050f565b600435906001600160a01b038216820361002a57565b602435906001600160a01b038216820361002a57565b3461002a57604036600319011261002a57610587610542565b602435801515810361002a576001600160a01b0382169133831461061557816105d26105e39233600052600360205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601e60248201527f496e736372697074696f6e3a20617070726f766520746f2063616c6c657200006044820152606490fd5b3461002a57602036600319011261002a57610230610679600435611574565b6104606009604051809361068f6020830161131b565b682f707265766965772f60b81b81526106b1825180936020878501910161017c565b01036016198101845201826103d4565b3461002a57608036600319011261002a576106da610542565b6106e2610558565b6064359167ffffffffffffffff831161002a573660238401121561002a5782600401359161070f836103f6565b9261071d60405194856103d4565b808452366024828701011161002a57602081600092602461074a9801838801378501015260443591611705565b005b3461002a5760208060031936011261002a576004356107696110b9565b906107726110f7565b8252604091825191828581016107a19060129071115d1a195c9b985b1cc8141c9bdd1bd8dbdb60721b81520190565b0392601f199384810182526107b690826103d4565b8583019081526107c461124d565b928581019384526107d483611574565b865180918982016107f990600d906c496e736372697074696f6e202360981b81520190565b61080291610d47565b03868101825261081290826103d4565b60608201908152610821611297565b6080830190815261083185611574565b90885180928b82016108429061131b565b6c2f696e736372697074696f6e2f60981b8152600d0161086191610d47565b03888101835261087190836103d4565b60a084019182526108806113aa565b938460c082015251945196519251905191519289519788968c88016108a491610d47565b6108ad91610d47565b6108b691610d47565b6108bf91610d47565b6108c891610d47565b6108d191610d47565b6108da91610d47565b0383810183526108ea90836103d4565b6108f390611574565b906108fd90611466565b83517f7b226e616d65223a2022496e736372697074696f6e2023000000000000000000868201908152909283929160170161093791610d47565b7f222c20226465736372697074696f6e223a20225468652045746865726e616c7381527f2070726f746f636f6c2069732061206e657720776179206f6620696e7363726960208201527f62696e6720696e736372697074696f6e73206f6e20746865204574686572657560408201527f6d20626c6f636b636861696e2e2054686520636f6e74656e74206f662074686560608201527f20696e736372697074696f6e20697320696d6d757461626c652c20616e64207460808201527f68652064617461206973207065726d616e656e746c792073746f726564206f6e60a08201527f2074686520457468657265756d20626c6f636b636861696e2e20496e7363726960c08201527f7074696f6e20737570706f72747320612076617269657479206f6620636f6e7460e08201527f656e7420666f726d6174732c20696e636c7564696e6720746578742c20696d616101008201527f6765732c2048544d4c732c20616e6420766964656f732e222c2022696d6167656101208201527f223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000061014082015261015e01610ae691610d47565b61227d60f01b8152600201038281018252610b0190826103d4565b610b0a90611466565b82517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000094810194855293849190601d01610b4391610d47565b039081018352610b5390836103d4565b516102308192826101c4565b3461002a57604036600319011261002a57602060ff610bb0610b7f610542565b610b87610558565b6001600160a01b0391821660009081526003865260408082209290931681526020919091522090565b54166040519015158152f35b3461002a57602036600319011261002a57610bd5610542565b610bdd610c85565b6001600160a01b03908116908115610c3157600454826bffffffffffffffffffffffff60a01b821617600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6004546001600160a01b03163303610c9957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610ce457565b60405162461bcd60e51b81526020600482015260086024820152676f6e6c7920454f4160c01b6044820152606490fd5b60031161002a57600090600390565b92919283821161002a57831161002a5780920390565b908092918237016000815290565b90610d5a6020928281519485920161017c565b0190565b15610d6557565b60405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b2103432b0b232b960911b6044820152606490fd5b634e487b7160e01b600052603260045260246000fd5b60031015610dbe57600390565b610d9b565b60041015610dbe57600490565b15610dd757565b60405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b2103b32b939b4b7b760891b6044820152606490fd5b634e487b7160e01b600052601160045260246000fd5b60ff166005019060ff8211610e3557565b610e0e565b60ff166009019060ff8211610e3557565b6001600160e01b03199035818116939260048110610e6857505050565b60040360031b82901b16169150565b91909163ffffffff80809416911601918211610e3557565b15610e9657565b60405162461bcd60e51b815260206004820152601760248201527f696e76616c69642063616c6c64617461206c656e6774680000000000000000006044820152606490fd5b604051610ee78161037b565b60008152906000368137565b90610efd826103f6565b610f0a60405191826103d4565b8281528092610f1b601f19916103f6565b0190602036910137565b6101d5610f5b61103361106a93610f3d323314610cdd565b610fa4610f4982610d14565b60405195602087019287928491610d39565b0394610f6f601f19968781018352826103d4565b519020610f7a610425565b604051610f9b81610f8f602082018095610d47565b038881018352826103d4565b51902014610d5e565b610fd5600160ff610fce610fc8610fba86610db1565b356001600160f81b03191690565b60f81c90565b1614610dd0565b610fe4610fc8610fba83610dc3565b9061101861101261100c610ff785610e24565b60ff8061100388610e3a565b16911685610d23565b90610e4b565b60e01c90565b60ff8316151592836110a9575b83611076575b505050610e8f565b600654611044600160065401600655565b61105661104f610edb565b82336119b6565b604051938491602083019190602083019252565b039081018352826103d4565b6110a09293509061109261108c61109793610e3a565b60ff1690565b610e77565b63ffffffff1690565b1438808061102b565b63ffffffff821615159350611025565b6040519061022080830183811067ffffffffffffffff821117610397576040528260005b8281106110e957505050565b6060828201526020016110dd565b60405190610120820182811067ffffffffffffffff8211176103975760405260fd82527f7420783d2231302220793d2233302220636c6173733d2262617365223e000000610100837f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960408201527f6e594d696e206d656574222076696577426f783d22302030203330302033303060608201527f223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f60808201527f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a2031347060a08201527f783b207d3c2f7374796c653e3c726563742077696474683d223130302522206860c08201527f65696768743d2231303025222066696c6c3d22626c61636b22202f3e3c74657860e08201520152565b6040519061125a826103b8565b602882527f3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b604051906112a4826103b8565b602882527f3c2f746578743e3c7465787420783d2231302220793d2239302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b90600182811c92168015611311575b60208310146112fb57565b634e487b7160e01b600052602260045260246000fd5b91607f16916112f0565b6005546000929161132b826112e1565b91600190818116908115611397575060011461134657505050565b909192935060056000527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0906000915b848310611384575050500190565b8181602092548587015201920191611376565b60ff191683525050811515909102019150565b604051906113b78261039c565b600d82526c1e17ba32bc3a1f1e17b9bb339f60991b6020830152565b9060028201809211610e3557565b9060208201809211610e3557565b600281901b91906001600160fe1b03811603610e3557565b60405190611414826103b8565b604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b80519081156115595761148a61148561147e846113d3565b6003900490565b6113ef565b9161149c611497846113e1565b610ef3565b906114a5611407565b92600092602081015b84848110156115125790600491600380910196850101516001603f9080828460121c168b010151918a60ff9384848488600c1c1684010151168585600894868a60061c160101511691831b01821b01901b93168a010151160160e01b8152016114ae565b50935094935050600390068060011461154557600214611533575b50815290565b603d60f81b600019909101523861152d565b50613d3d60f01b600119909101523861152d565b50506101d5610412565b908151811015610dbe570160200190565b80156115f9578060008082805b6115dd575061158f81610ef3565b935b61159b5750505090565b6000198101908111610e35578092600a9160308383068101809111610e355760f81b6001600160f81b031916841a906115d49087611563565b53049182611591565b92506000198114610e35576001600a9101920480849391611581565b506040516116068161039c565b60018152600360fc1b602082015290565b6000908152600260205260409020546001600160a01b031680156116385790565b60405162461bcd60e51b815260206004820152603460248201527f496e736372697074696f6e3a206f776e657220717565727920666f72206e6f6e60448201527332bc34b9ba32b73a1034b739b1b934b83a34b7b760611b6064820152608490fd5b156116a157565b60405162461bcd60e51b815260206004820152603660248201527f496e736372697074696f6e3a207472616e736665722063616c6c6572206973206044820152751b9bdd081bdddb995c881b9bdc88185c1c1c9bdd995960521b6064820152608490fd5b60008381526002602052604090205490939291906001600160a01b03161561177f57611756936001600160a01b0361173c84611617565b168033148015611758575b611751915061169a565b61186c565b565b5060009081526003602090815260408083203384529091529020546117519060ff16611747565b60405162461bcd60e51b815260206004820152603760248201527f496e736372697074696f6e3a206f70657261746f7220717565727920666f722060448201527f6e6f6e6578697374656e7420696e736372697074696f6e0000000000000000006064820152608490fd5b60809060208152603c60208201527f496e736372697074696f6e3a207472616e7366657220746f206e6f6e20496e7360408201527f6372697074696f6e526563656976657220696d706c656d656e7465720000000060608201520190565b1561184f57565b60405162461bcd60e51b815280611868600482016117ea565b0390fd5b9192909261187981611617565b6001600160a01b038481169591811686900361195e578116938415611907578261190295611756976118d8856118b9856000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4611c41565b611848565b60405162461bcd60e51b815260206004820152602960248201527f496e736372697074696f6e3a207472616e7366657220746f20746865207a65726044820152686f206164647265737360b81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602a60248201527f496e736372697074696f6e3a207472616e736665722066726f6d20696e636f726044820152693932b1ba1037bbb732b960b11b6064820152608490fd5b916001600160a01b038316918215611a88576000818152600260205260409020546001600160a01b0316611a3057838161190294611a05611756976118b9846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4611b80565b60405162461bcd60e51b815260206004820152602a60248201527f496e736372697074696f6e3a20696e736372697074696f6e20616c7265616479604482015269081a5b9cd8dc9a58995960b21b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f496e736372697074696f6e3a20696e73637269626520746f20746865207a65726044820152686f206164647265737360b81b6064820152608490fd5b9081602091031261002a57516101d581610114565b6101d5939260809260018060a01b03168252600060208301526040820152816060820152019061019f565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526101d59291019061019f565b3d15611b7b573d90611b61826103f6565b91611b6f60405193846103d4565b82523d6000602084013e565b606090565b909190803b15611c3957611bb2602091600093604051948580948193632b57bb6760e21b998a84523360048501611af4565b03926001600160a01b03165af160009181611c09575b50611bfb57611bd5611b50565b80519081611bf65760405162461bcd60e51b815280611868600482016117ea565b602001fd5b6001600160e01b0319161490565b611c2b91925060203d8111611c32575b611c2381836103d4565b810190611adf565b9038611bc8565b503d611c19565b505050600190565b92909190823b15611c7457611bb2926020926000604051809681958294632b57bb6760e21b9a8b85523360048601611b1f565b5050505060019056fea2646970667358221220c3a3973f4766d9c68d769903870a7bce1b0afcd5327dd5a17be9aaf965eb018d64736f6c63430008130033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001568747470733a2f2f65746865726e616c732e6f72670000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURL (string): https://ethernals.org

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [2] : 68747470733a2f2f65746865726e616c732e6f72670000000000000000000000


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

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