ETH Price: $3,083.67 (-1.55%)
Gas: 7 Gwei

Contract

0x8a1Eb5E0D189fDef3A50EA6180d68DDE04E907ff
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...192491142024-02-17 17:39:1158 days ago1708191551IN
0x8a1Eb5E0...E04E907ff
0 ETH0.0012239822.89234416
Set Approval For...192318972024-02-15 7:39:3560 days ago1707982775IN
0x8a1Eb5E0...E04E907ff
0 ETH0.0010498919.63626183
Set Approval For...192174782024-02-13 7:02:2362 days ago1707807743IN
0x8a1Eb5E0...E04E907ff
0 ETH0.0011705621.89315357
Set Approval For...192172332024-02-13 6:13:2362 days ago1707804803IN
0x8a1Eb5E0...E04E907ff
0 ETH0.0009515717.79738732
0x60806040192097572024-02-12 5:07:2363 days ago1707714443IN
 Create: DN404Mirror
0 ETH0.0182502923.08500921

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DN404Mirror

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

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

/// @title DN404Mirror
/// @notice DN404Mirror provides an interface for interacting with the
/// NFT tokens in a DN404 implementation.
///
/// @author vectorized.eth (@optimizoor)
/// @author Quit (@0xQuit)
/// @author Michael Amadi (@AmadiMichaels)
/// @author cygaar (@0xCygaar)
/// @author Thomas (@0xjustadev)
/// @author Harrison (@PopPunkOnChain)
///
/// @dev Note:
/// - The ERC721 data is stored in the base DN404 contract.
contract DN404Mirror {
    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                           EVENTS                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

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

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

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

    /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
    uint256 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CUSTOM ERRORS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Thrown when a call for an NFT function did not originate
    /// from the base DN404 contract.
    error Unauthorized();

    /// @dev Thrown when transferring an NFT to a contract address that
    /// does not implement ERC721Receiver.
    error TransferToNonERC721ReceiverImplementer();

    /// @dev Thrown when linking to the DN404 base contract and the
    /// DN404 supportsInterface check fails or the call reverts.
    error CannotLink();

    /// @dev Thrown when a linkMirrorContract call is received and the
    /// NFT mirror contract has already been linked to a DN404 base contract.
    error AlreadyLinked();

    /// @dev Thrown when retrieving the rootERC20 address when a link has not
    /// been established.
    error NotLinked();

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct contain the NFT mirror contract storage.
    struct DN404NFTStorage {
        address rootERC20;
        address deployer;
    }

    /// @dev Returns a storage pointer for DN404NFTStorage.
    function _getDN404NFTStorage() internal pure returns (DN404NFTStorage storage $) {
        /// @solidity memory-safe-assembly
        assembly {
            // keccak256(abi.encode(uint256(keccak256("dn404.nft")) - 1)) & ~bytes32(uint256(0xff))
            $.slot := 0xe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a86700
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CONSTRUCTOR                         */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    constructor(address deployer) {
        // For non-proxies, we will store the deployer so that only the deployer can
        // link the root contract.
        _getDN404NFTStorage().deployer = deployer;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     ERC721 OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the token collection name from the base DN404 contract.
    function name() public view virtual returns (string memory result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(result, 0x06fdde03) // `name()`.
            if iszero(staticcall(gas(), root, add(result, 0x1c), 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the token collection symbol from the base DN404 contract.
    function symbol() public view virtual returns (string memory result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(result, 0x95d89b41) // `symbol()`.
            if iszero(staticcall(gas(), root, add(result, 0x1c), 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the Uniform Resource Identifier (URI) for token `id` from the base DN404 contract.
    function tokenURI(uint256 id) public view virtual returns (string memory result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(result, 0xc87b56dd) // `tokenURI()`.
            mstore(add(result, 0x20), id)
            if iszero(staticcall(gas(), root, add(result, 0x1c), 0x24, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the total NFT supply from the base DN404 contract.
    function totalSupply() public view returns (uint256 result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0xe2c79281) // `totalNFTSupply()`.
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), root, 0x1c, 0x04, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the number of NFT tokens owned by `owner` from the base DN404 contract.
    ///
    /// Requirements:
    /// - `owner` must not be the zero address.
    function balanceOf(address owner) public view virtual returns (uint256 result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0xf5b100ea) // `balanceOfNFT(address)`.
            mstore(0x20, shr(96, shl(96, owner)))
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), root, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the owner of token `id` from the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function ownerOf(uint256 id) public view virtual returns (address result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x6352211e) // `ownerOf(uint256)`.
            mstore(0x20, id)
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), root, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, shl(96, mload(0x00)))
        }
    }

    /// @dev Sets `spender` as the approved account to manage token `id` in the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    /// - The caller must be the owner of the token,
    ///   or an approved operator for the token owner.
    ///
    /// Emits an {Approval} event.
    function approve(address spender, uint256 id) public virtual {
        address root = rootERC20();
        address owner;
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(0x00, 0xd10b6e0c) // `approveNFT(address,uint256,address)`.
            mstore(0x20, shr(96, shl(96, spender)))
            mstore(0x40, id)
            mstore(0x60, caller())
            if iszero(
                and(
                    gt(returndatasize(), 0x1f),
                    call(gas(), root, callvalue(), 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
            owner := shr(96, shl(96, mload(0x00)))
        }
        emit Approval(owner, spender, id);
    }

    /// @dev Returns the account approved to manage token `id` from the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function getApproved(uint256 id) public view virtual returns (address result) {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x081812fc) // `getApproved(uint256)`.
            mstore(0x20, id)
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), root, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, shl(96, mload(0x00)))
        }
    }

    /// @dev Sets whether `operator` is approved to manage the tokens of the caller in the base DN404 contract.
    ///
    /// Emits an {ApprovalForAll} event.
    function setApprovalForAll(address operator, bool approved) public virtual {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(0x00, 0x813500fc) // `setApprovalForAll(address,bool,address)`.
            mstore(0x20, shr(96, shl(96, operator)))
            mstore(0x40, iszero(iszero(approved)))
            mstore(0x60, caller())
            if iszero(
                and(
                    and(eq(mload(0x00), 1), gt(returndatasize(), 0x1f)),
                    call(gas(), root, callvalue(), 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
        }
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /// @dev Returns whether `operator` is approved to manage the tokens of `owner` from the base DN404 contract.
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        returns (bool result)
    {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(0x00, 0xe985e9c5) // `isApprovedForAll(address,address)`.
            mstore(0x20, shr(96, shl(96, owner)))
            mstore(0x40, shr(96, shl(96, operator)))
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), root, 0x1c, 0x44, 0x00, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            result := iszero(iszero(mload(0x00)))
        }
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 id) public virtual {
        address root = rootERC20();
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(m, 0xe5eb36c8) // `transferFromNFT(address,address,uint256,address)`.
            mstore(add(m, 0x20), shr(96, shl(96, from)))
            mstore(add(m, 0x40), shr(96, shl(96, to)))
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), caller())
            if iszero(
                and(
                    and(eq(mload(0x00), 1), gt(returndatasize(), 0x1f)),
                    call(gas(), root, callvalue(), add(m, 0x1c), 0x84, 0x00, 0x20)
                )
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
        }
        emit Transfer(from, to, id);
    }

    /// @dev Equivalent to `safeTransferFrom(from, to, id, "")`.
    function safeTransferFrom(address from, address to, uint256 id) public payable virtual {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, "");
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    /// - 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 id, bytes calldata data)
        public
        virtual
    {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, data);
    }

    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.
    /// See: https://eips.ethereum.org/EIPS/eip-165
    /// This function call must use less than 30000 gas.
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            let s := shr(224, interfaceId)
            // ERC165: 0x01ffc9a7, ERC721: 0x80ac58cd, ERC721Metadata: 0x5b5e139f.
            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0x80ac58cd)), eq(s, 0x5b5e139f))
        }
    }

    /// @dev Returns if `a` has bytecode of non-zero length.
    function _hasCode(address a) private view returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := extcodesize(a) // Can handle dirty upper bits.
        }
    }

    /// @dev Perform a call to invoke {IERC721Receiver-onERC721Received} on `to`.
    /// Reverts if the target does not support the function correctly.
    function _checkOnERC721Received(address from, address to, uint256 id, bytes memory data)
        private
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the calldata.
            let m := mload(0x40)
            let onERC721ReceivedSelector := 0x150b7a02
            mstore(m, onERC721ReceivedSelector)
            mstore(add(m, 0x20), caller()) // The `operator`, which is always `msg.sender`.
            mstore(add(m, 0x40), shr(96, shl(96, from)))
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), 0x80)
            let n := mload(data)
            mstore(add(m, 0xa0), n)
            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xc0), n)) }
            // Revert if the call reverts.
            if iszero(call(gas(), to, 0, add(m, 0x1c), add(n, 0xa4), m, 0x20)) {
                if returndatasize() {
                    // Bubble up the revert if the call reverts.
                    returndatacopy(m, 0x00, returndatasize())
                    revert(m, returndatasize())
                }
            }
            // Load the returndata and compare it.
            if iszero(eq(mload(m), shl(224, onERC721ReceivedSelector))) {
                mstore(0x00, 0xd1a57ed6) // `TransferToNonERC721ReceiverImplementer()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     MIRROR OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the address of the base DN404 contract.
    function rootERC20() public view returns (address root) {
        root = _getDN404NFTStorage().rootERC20;
        if (root == address(0)) revert NotLinked();
    }

    /// @dev Fallback modifier to execute calls from the base DN404 contract.
    modifier dn404NFTFallback() virtual {
        DN404NFTStorage storage $ = _getDN404NFTStorage();

        uint256 fnSelector = _calldataload(0x00) >> 224;

        // `logTransfer(uint256[])`.
        if (fnSelector == 0x263c69d6) {
            if (msg.sender != $.rootERC20) revert Unauthorized();
            /// @solidity memory-safe-assembly
            assembly {
                // When returndatacopy copies 1 or more out-of-bounds bytes, it reverts.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), 0x20))
                let o := add(0x24, calldataload(0x04)) // Packed logs offset.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), o))
                let end := add(o, shl(5, calldataload(sub(o, 0x20))))
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), end))

                for {} iszero(eq(o, end)) { o := add(0x20, o) } {
                    let d := calldataload(o) // Entry in the packed logs.
                    let a := shr(96, d) // The address.
                    let b := and(1, d) // Whether it is a burn.
                    log4(
                        codesize(),
                        0x00,
                        _TRANSFER_EVENT_SIGNATURE,
                        mul(a, b),
                        mul(a, iszero(b)),
                        shr(168, shl(160, d))
                    )
                }
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        // `linkMirrorContract(address)`.
        if (fnSelector == 0x0f4599e5) {
            if ($.deployer != address(0)) {
                if (address(uint160(_calldataload(0x04))) != $.deployer) {
                    revert Unauthorized();
                }
            }
            if ($.rootERC20 != address(0)) revert AlreadyLinked();
            $.rootERC20 = msg.sender;
            /// @solidity memory-safe-assembly
            assembly {
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        _;
    }

    /// @dev Fallback function for calls from base DN404 contract.
    fallback() external payable virtual dn404NFTFallback {}

    receive() external payable virtual {}

    /// @dev Returns the calldata value at `offset`.
    function _calldataload(uint256 offset) private pure returns (uint256 value) {
        /// @solidity memory-safe-assembly
        assembly {
            value := calldataload(offset)
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"deployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyLinked","type":"error"},{"inputs":[],"name":"CannotLink","type":"error"},{"inputs":[],"name":"NotLinked","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rootERC20","outputs":[{"internalType":"address","name":"root","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50604051610d99380380610d9983398101604081905261002f91610073565b7fe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a8670180546001600160a01b0319166001600160a01b03929092169190911790556100a1565b600060208284031215610084578081fd5b81516001600160a01b038116811461009a578182fd5b9392505050565b610ce9806100b06000396000f3fe6080604052600436106100ec5760003560e01c806342842e0e1161008a578063a22cb46511610059578063a22cb46514610433578063b88d4fde14610453578063c87b56dd14610473578063e985e9c514610493576100f3565b806342842e0e146103cb5780636352211e146103de57806370a08231146103fe57806395d89b411461041e576100f3565b8063095ea7b3116100c6578063095ea7b31461035157806318160ddd1461037357806323b872dd146103965780633d36e5e9146103b6576100f3565b806301ffc9a7146102a557806306fdde03146102f7578063081812fc14610319576100f3565b366100f357005b7fe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a8670060003560e01c63263c69d68114156101d55781546001600160a01b0316331461014f576040516282b42960e81b815260040160405180910390fd5b602036103d60003e6004356024018036103d60003e602081033560051b81018036103d60003e5b8082146101c85781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a4505050816020019150610176565b5050600160005260206000f35b80630f4599e514156102a15760018201546001600160a01b03161561022b5760018201546001600160a01b03166004356001600160a01b03161461022b576040516282b42960e81b815260040160405180910390fd5b81546001600160a01b03161561026d576040517fbf656a4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317825560016000908152602090f35b5050005b3480156102b157600080fd5b506102e26102c0366004610c08565b6301ffc9a760e09190911c9081146380ac58cd821417635b5e139f9091141790565b60405190151581526020015b60405180910390f35b34801561030357600080fd5b5061030c6104b3565b6040516102ee9190610c60565b34801561032557600080fd5b50610339610334366004610c48565b61050e565b6040516001600160a01b0390911681526020016102ee565b34801561035d57600080fd5b5061037161036c366004610bdf565b61055b565b005b34801561037f57600080fd5b506103886105f1565b6040519081526020016102ee565b3480156103a257600080fd5b506103716103b1366004610ad4565b61062f565b3480156103c257600080fd5b506103396106d8565b6103716103d9366004610ad4565b61073d565b3480156103ea57600080fd5b506103396103f9366004610c48565b61076f565b34801561040a57600080fd5b50610388610419366004610a81565b6107a9565b34801561042a57600080fd5b5061030c6107f3565b34801561043f57600080fd5b5061037161044e366004610ba5565b610826565b34801561045f57600080fd5b5061037161046e366004610b0f565b6108c2565b34801561047f57600080fd5b5061030c61048e366004610c48565b61091d565b34801561049f57600080fd5b506102e26104ae366004610aa2565b610980565b606060006104bf6106d8565b905060405191506306fdde0382526000806004601c8501845afa6104e6573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e815160208301016040525090565b6000806105196106d8565b905063081812fc60005282602052602060006024601c845afa601f3d1116610548573d60006040513e3d604051fd5b50506000516001600160a01b0316919050565b60006105656106d8565b9050600060405163d10b6e0c6000528460601b60601c6020528360405233606052602060006064601c34875af1601f3d11166105a4573d6000823e3d81fd5b60408190526000606081905280516001600160a01b03908116935085929087169184917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b6000806105fc6106d8565b905063e2c79281600052602060006004601c845afa601f3d1116610627573d60006040513e3d604051fd5b505060005190565b60006106396106d8565b905060405163e5eb36c881528460601b60601c60208201528360601b60601c6040820152826060820152336080820152602060006084601c840134865af1601f3d116001600051141616610690573d6000823e3d81fd5b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b7fe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a86700546001600160a01b03168061073a576040517f5b2a47ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b61074883838361062f565b813b1561076a5761076a838383604051806020016040528060008152506109d9565b505050565b60008061077a6106d8565b9050636352211e60005282602052602060006024601c845afa601f3d1116610548573d60006040513e3d604051fd5b6000806107b46106d8565b905063f5b100ea6000528260601b60601c602052602060006024601c845afa601f3d11166107e9573d60006040513e3d604051fd5b5050600051919050565b606060006107ff6106d8565b905060405191506395d89b4182526000806004601c8501845afa6104e6573d6000833e3d82fd5b60006108306106d8565b905060405163813500fc6000528360601b60601c60205282151560405233606052602060006064601c34865af1601f3d116001600051141616610876573d6000823e3d81fd5b604081815260006060528315158252516001600160a01b0385169133917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a3505050565b6108cd85858561062f565b833b156109165761091685858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109d992505050565b5050505050565b606060006109296106d8565b9050604051915063c87b56dd82528260208301526000806024601c8501845afa610956573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e8151602083010160405250919050565b60008061098b6106d8565b905060405163e985e9c56000528460601b60601c6020528360601b60601c604052602060006044601c855afa601f3d11166109c9573d6000823e3d81fd5b6040525050600051151592915050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610a20578060c08401826020870160045afa505b60208360a48301601c860160008a5af1610a43573d15610a43573d6000843e3d83fd5b508060e01b825114610a5d5763d1a57ed66000526004601cfd5b505050505050565b80356001600160a01b0381168114610a7c57600080fd5b919050565b600060208284031215610a92578081fd5b610a9b82610a65565b9392505050565b60008060408385031215610ab4578081fd5b610abd83610a65565b9150610acb60208401610a65565b90509250929050565b600080600060608486031215610ae8578081fd5b610af184610a65565b9250610aff60208501610a65565b9150604084013590509250925092565b600080600080600060808688031215610b26578081fd5b610b2f86610a65565b9450610b3d60208701610a65565b935060408601359250606086013567ffffffffffffffff80821115610b60578283fd5b818801915088601f830112610b73578283fd5b813581811115610b81578384fd5b896020828501011115610b92578384fd5b9699959850939650602001949392505050565b60008060408385031215610bb7578182fd5b610bc083610a65565b915060208301358015158114610bd4578182fd5b809150509250929050565b60008060408385031215610bf1578182fd5b610bfa83610a65565b946020939093013593505050565b600060208284031215610c19578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610a9b578182fd5b600060208284031215610c59578081fd5b5035919050565b6000602080835283518082850152825b81811015610c8c57858101830151858201604001528201610c70565b81811115610c9d5783604083870101525b50601f01601f191692909201604001939250505056fea26469706673582212209a798b69e591164ad2e498a23c478a091e9a0c7c449a24680fd0d742395d20f664736f6c63430008040033000000000000000000000000c9ea626921d6ad1f1bd15a98e2173f9fcb47a03d

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c806342842e0e1161008a578063a22cb46511610059578063a22cb46514610433578063b88d4fde14610453578063c87b56dd14610473578063e985e9c514610493576100f3565b806342842e0e146103cb5780636352211e146103de57806370a08231146103fe57806395d89b411461041e576100f3565b8063095ea7b3116100c6578063095ea7b31461035157806318160ddd1461037357806323b872dd146103965780633d36e5e9146103b6576100f3565b806301ffc9a7146102a557806306fdde03146102f7578063081812fc14610319576100f3565b366100f357005b7fe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a8670060003560e01c63263c69d68114156101d55781546001600160a01b0316331461014f576040516282b42960e81b815260040160405180910390fd5b602036103d60003e6004356024018036103d60003e602081033560051b81018036103d60003e5b8082146101c85781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a4505050816020019150610176565b5050600160005260206000f35b80630f4599e514156102a15760018201546001600160a01b03161561022b5760018201546001600160a01b03166004356001600160a01b03161461022b576040516282b42960e81b815260040160405180910390fd5b81546001600160a01b03161561026d576040517fbf656a4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317825560016000908152602090f35b5050005b3480156102b157600080fd5b506102e26102c0366004610c08565b6301ffc9a760e09190911c9081146380ac58cd821417635b5e139f9091141790565b60405190151581526020015b60405180910390f35b34801561030357600080fd5b5061030c6104b3565b6040516102ee9190610c60565b34801561032557600080fd5b50610339610334366004610c48565b61050e565b6040516001600160a01b0390911681526020016102ee565b34801561035d57600080fd5b5061037161036c366004610bdf565b61055b565b005b34801561037f57600080fd5b506103886105f1565b6040519081526020016102ee565b3480156103a257600080fd5b506103716103b1366004610ad4565b61062f565b3480156103c257600080fd5b506103396106d8565b6103716103d9366004610ad4565b61073d565b3480156103ea57600080fd5b506103396103f9366004610c48565b61076f565b34801561040a57600080fd5b50610388610419366004610a81565b6107a9565b34801561042a57600080fd5b5061030c6107f3565b34801561043f57600080fd5b5061037161044e366004610ba5565b610826565b34801561045f57600080fd5b5061037161046e366004610b0f565b6108c2565b34801561047f57600080fd5b5061030c61048e366004610c48565b61091d565b34801561049f57600080fd5b506102e26104ae366004610aa2565b610980565b606060006104bf6106d8565b905060405191506306fdde0382526000806004601c8501845afa6104e6573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e815160208301016040525090565b6000806105196106d8565b905063081812fc60005282602052602060006024601c845afa601f3d1116610548573d60006040513e3d604051fd5b50506000516001600160a01b0316919050565b60006105656106d8565b9050600060405163d10b6e0c6000528460601b60601c6020528360405233606052602060006064601c34875af1601f3d11166105a4573d6000823e3d81fd5b60408190526000606081905280516001600160a01b03908116935085929087169184917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b6000806105fc6106d8565b905063e2c79281600052602060006004601c845afa601f3d1116610627573d60006040513e3d604051fd5b505060005190565b60006106396106d8565b905060405163e5eb36c881528460601b60601c60208201528360601b60601c6040820152826060820152336080820152602060006084601c840134865af1601f3d116001600051141616610690573d6000823e3d81fd5b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b7fe8cb618a1de8ad2a6a7b358523c369cb09f40cc15da64205134c7e55c6a86700546001600160a01b03168061073a576040517f5b2a47ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b61074883838361062f565b813b1561076a5761076a838383604051806020016040528060008152506109d9565b505050565b60008061077a6106d8565b9050636352211e60005282602052602060006024601c845afa601f3d1116610548573d60006040513e3d604051fd5b6000806107b46106d8565b905063f5b100ea6000528260601b60601c602052602060006024601c845afa601f3d11166107e9573d60006040513e3d604051fd5b5050600051919050565b606060006107ff6106d8565b905060405191506395d89b4182526000806004601c8501845afa6104e6573d6000833e3d82fd5b60006108306106d8565b905060405163813500fc6000528360601b60601c60205282151560405233606052602060006064601c34865af1601f3d116001600051141616610876573d6000823e3d81fd5b604081815260006060528315158252516001600160a01b0385169133917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a3505050565b6108cd85858561062f565b833b156109165761091685858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109d992505050565b5050505050565b606060006109296106d8565b9050604051915063c87b56dd82528260208301526000806024601c8501845afa610956573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e8151602083010160405250919050565b60008061098b6106d8565b905060405163e985e9c56000528460601b60601c6020528360601b60601c604052602060006044601c855afa601f3d11166109c9573d6000823e3d81fd5b6040525050600051151592915050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610a20578060c08401826020870160045afa505b60208360a48301601c860160008a5af1610a43573d15610a43573d6000843e3d83fd5b508060e01b825114610a5d5763d1a57ed66000526004601cfd5b505050505050565b80356001600160a01b0381168114610a7c57600080fd5b919050565b600060208284031215610a92578081fd5b610a9b82610a65565b9392505050565b60008060408385031215610ab4578081fd5b610abd83610a65565b9150610acb60208401610a65565b90509250929050565b600080600060608486031215610ae8578081fd5b610af184610a65565b9250610aff60208501610a65565b9150604084013590509250925092565b600080600080600060808688031215610b26578081fd5b610b2f86610a65565b9450610b3d60208701610a65565b935060408601359250606086013567ffffffffffffffff80821115610b60578283fd5b818801915088601f830112610b73578283fd5b813581811115610b81578384fd5b896020828501011115610b92578384fd5b9699959850939650602001949392505050565b60008060408385031215610bb7578182fd5b610bc083610a65565b915060208301358015158114610bd4578182fd5b809150509250929050565b60008060408385031215610bf1578182fd5b610bfa83610a65565b946020939093013593505050565b600060208284031215610c19578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610a9b578182fd5b600060208284031215610c59578081fd5b5035919050565b6000602080835283518082850152825b81811015610c8c57858101830151858201604001528201610c70565b81811115610c9d5783604083870101525b50601f01601f191692909201604001939250505056fea26469706673582212209a798b69e591164ad2e498a23c478a091e9a0c7c449a24680fd0d742395d20f664736f6c63430008040033

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

000000000000000000000000c9ea626921d6ad1f1bd15a98e2173f9fcb47a03d

-----Decoded View---------------
Arg [0] : deployer (address): 0xC9eA626921d6AD1F1BD15A98E2173f9FCB47A03d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c9ea626921d6ad1f1bd15a98e2173f9fcb47a03d


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.