ETH Price: $2,413.65 (+2.52%)

Contract

0x648cCBB8968724e01fF0629a94f63392e8df6aa4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...204105182024-07-29 6:47:1147 days ago1722235631IN
0x648cCBB8...2e8df6aa4
0 ETH0.000107381.82327645
Set Approval For...198224402024-05-08 2:43:47129 days ago1715136227IN
0x648cCBB8...2e8df6aa4
0 ETH0.000248434.80410295
Set Approval For...195935532024-04-06 1:57:47161 days ago1712368667IN
0x648cCBB8...2e8df6aa4
0 ETH0.0002971810
Set Approval For...195555582024-03-31 18:10:35166 days ago1711908635IN
0x648cCBB8...2e8df6aa4
0 ETH0.0006051620.30621932
Set Approval For...191322892024-02-01 8:06:23226 days ago1706774783IN
0x648cCBB8...2e8df6aa4
0 ETH0.0005517918.56754786
Set Approval For...189859252024-01-11 20:01:35246 days ago1705003295IN
0x648cCBB8...2e8df6aa4
0 ETH0.0013373725.86103707
Set Approval For...188795502023-12-27 21:05:35261 days ago1703711135IN
0x648cCBB8...2e8df6aa4
0 ETH0.0008042627.06329407
Set Approval For...183730172023-10-17 22:17:11332 days ago1697581031IN
0x648cCBB8...2e8df6aa4
0 ETH0.000248928.35266166
Set Approval For...183558382023-10-15 12:40:35334 days ago1697373635IN
0x648cCBB8...2e8df6aa4
0 ETH0.000338016.5469087
Transfer From182255632023-09-27 7:18:47353 days ago1695799127IN
0x648cCBB8...2e8df6aa4
0 ETH0.000748329.75576719
Transfer From182255572023-09-27 7:17:35353 days ago1695799055IN
0x648cCBB8...2e8df6aa4
0 ETH0.0007697810.03556366
Transfer From182255422023-09-27 7:14:23353 days ago1695798863IN
0x648cCBB8...2e8df6aa4
0 ETH0.000741059.6609923
Transfer From182255352023-09-27 7:12:59353 days ago1695798779IN
0x648cCBB8...2e8df6aa4
0 ETH0.00091399.74247939
Set Approval For...181663722023-09-19 0:23:59361 days ago1695083039IN
0x648cCBB8...2e8df6aa4
0 ETH0.000284359.56852812
Set Approval For...181042862023-09-10 6:48:23370 days ago1694328503IN
0x648cCBB8...2e8df6aa4
0 ETH0.000459688.9033517
Set Approval For...179417482023-08-18 12:43:47392 days ago1692362627IN
0x648cCBB8...2e8df6aa4
0 ETH0.0005976720.05470235
Safe Transfer Fr...179341952023-08-17 11:18:59393 days ago1692271139IN
0x648cCBB8...2e8df6aa4
0 ETH0.0013045416.9601926
Safe Transfer Fr...179273002023-08-16 12:09:59394 days ago1692187799IN
0x648cCBB8...2e8df6aa4
0 ETH0.0016624121.61275971
Safe Transfer Fr...179272852023-08-16 12:06:59394 days ago1692187619IN
0x648cCBB8...2e8df6aa4
0 ETH0.0017675222.98292447
Safe Transfer Fr...173058052023-05-21 5:54:59482 days ago1684648499IN
0x648cCBB8...2e8df6aa4
0 ETH0.0021502227.954763
Set Approval For...171525982023-04-29 15:19:35503 days ago1682781575IN
0x648cCBB8...2e8df6aa4
0 ETH0.0021206541.05495346
Safe Transfer Fr...171082362023-04-23 9:51:47510 days ago1682243507IN
0x648cCBB8...2e8df6aa4
0 ETH0.002899437.70066873
Set Approval For...170970162023-04-21 20:06:11511 days ago1682107571IN
0x648cCBB8...2e8df6aa4
0 ETH0.0013541161.46698469
Set Approval For...170970072023-04-21 20:04:23511 days ago1682107463IN
0x648cCBB8...2e8df6aa4
0 ETH0.0010401747.48769507
Set Approval For...170088412023-04-09 6:00:11524 days ago1681020011IN
0x648cCBB8...2e8df6aa4
0 ETH0.0005854319.69953998
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
204105182024-07-29 6:47:1147 days ago1722235631
0x648cCBB8...2e8df6aa4
0 ETH
204105102024-07-29 6:45:3547 days ago1722235535
0x648cCBB8...2e8df6aa4
0 ETH
204105102024-07-29 6:45:3547 days ago1722235535
0x648cCBB8...2e8df6aa4
0 ETH
198224402024-05-08 2:43:47129 days ago1715136227
0x648cCBB8...2e8df6aa4
0 ETH
196471572024-04-13 14:10:47153 days ago1713017447
0x648cCBB8...2e8df6aa4
0 ETH
196471572024-04-13 14:10:47153 days ago1713017447
0x648cCBB8...2e8df6aa4
0 ETH
195935532024-04-06 1:57:47161 days ago1712368667
0x648cCBB8...2e8df6aa4
0 ETH
195555582024-03-31 18:10:35166 days ago1711908635
0x648cCBB8...2e8df6aa4
0 ETH
191322892024-02-01 8:06:23226 days ago1706774783
0x648cCBB8...2e8df6aa4
0 ETH
189859252024-01-11 20:01:35246 days ago1705003295
0x648cCBB8...2e8df6aa4
0 ETH
188795502023-12-27 21:05:35261 days ago1703711135
0x648cCBB8...2e8df6aa4
0 ETH
186837982023-11-30 10:22:35289 days ago1701339755
0x648cCBB8...2e8df6aa4
0 ETH
186837982023-11-30 10:22:35289 days ago1701339755
0x648cCBB8...2e8df6aa4
0 ETH
183730172023-10-17 22:17:11332 days ago1697581031
0x648cCBB8...2e8df6aa4
0 ETH
183558382023-10-15 12:40:35334 days ago1697373635
0x648cCBB8...2e8df6aa4
0 ETH
182255632023-09-27 7:18:47353 days ago1695799127
0x648cCBB8...2e8df6aa4
0 ETH
182255572023-09-27 7:17:35353 days ago1695799055
0x648cCBB8...2e8df6aa4
0 ETH
182255422023-09-27 7:14:23353 days ago1695798863
0x648cCBB8...2e8df6aa4
0 ETH
182255352023-09-27 7:12:59353 days ago1695798779
0x648cCBB8...2e8df6aa4
0 ETH
181663722023-09-19 0:23:59361 days ago1695083039
0x648cCBB8...2e8df6aa4
0 ETH
181042862023-09-10 6:48:23370 days ago1694328503
0x648cCBB8...2e8df6aa4
0 ETH
179417482023-08-18 12:43:47392 days ago1692362627
0x648cCBB8...2e8df6aa4
0 ETH
179341952023-08-17 11:18:59393 days ago1692271139
0x648cCBB8...2e8df6aa4
0 ETH
179273002023-08-16 12:09:59394 days ago1692187799
0x648cCBB8...2e8df6aa4
0 ETH
179272852023-08-16 12:06:59394 days ago1692187619
0x648cCBB8...2e8df6aa4
0 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xdeC7fFFb...Fc0f61259
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Diamond

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : Diamond.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import {LibDiamond} from "./libraries/LibDiamond.sol";
import {IDiamondCut} from "./interfaces/IDiamondCut.sol";
import {IERC165} from "./interfaces/IERC165.sol";
import {IERC721} from "../NFT/interfaces/IERC721.sol";
import {IERC2981} from "../NFT/interfaces/IERC2981.sol";

contract Diamond {
    constructor(address _contractOwner, address _diamondCutFacet) payable {
        LibDiamond.setContractOwner(_contractOwner);

        LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();
        ds.supportedInterfaces[type(IERC721).interfaceId] = true;
        ds.supportedInterfaces[type(IERC2981).interfaceId] = true;

        // Add the diamondCut external function from the diamondCutFacet
        IDiamondCut.FacetCut[] memory cut = new IDiamondCut.FacetCut[](1);
        bytes4[] memory functionSelectors = new bytes4[](1);
        functionSelectors[0] = IDiamondCut.diamondCut.selector;
        cut[0] = IDiamondCut.FacetCut({facetAddress: _diamondCutFacet, action: IDiamondCut.FacetCutAction.Add, functionSelectors: functionSelectors});
        LibDiamond.diamondCut(cut, address(0), "");
    }

    // This implements ERC-165.
    function supportsInterface(bytes4 _interfaceId) external view returns (bool) {
        LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();
        return ds.supportedInterfaces[_interfaceId];
    }

    // Find facet for function that is called and execute the
    // function if a facet is found and return any value.
    fallback() external payable {
        LibDiamond.DiamondStorage storage ds;
        bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;
        // get diamond storage
        assembly {
            ds.slot := position
        }
        // get facet from function selector
        address facet = address(bytes20(ds.facets[msg.sig]));
        require(facet != address(0), "Diamond: Function does not exist");
        // Execute external function from facet using delegatecall and return any value.
        assembly {
            // copy function selector and any arguments
            calldatacopy(0, 0, calldatasize())
            // execute function call using the facet
            let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0)
            // get any return value
            returndatacopy(0, 0, returndatasize())
            // return any return value or error back to the caller
            switch result
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    receive() external payable {}
}

File 2 of 6 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/
import { IDiamondCut } from "../interfaces/IDiamondCut.sol";

library LibDiamond {
    bytes32 constant DIAMOND_STORAGE_POSITION = keccak256("diamond.standard.diamond.storage");

    struct DiamondStorage {
        // maps function selectors to the facets that execute the functions.
        // and maps the selectors to their position in the selectorSlots array.
        // func selector => address facet, selector position
        mapping(bytes4 => bytes32) facets;
        // array of slots of function selectors.
        // each slot holds 8 function selectors.
        mapping(uint256 => bytes32) selectorSlots;
        // The number of function selectors in selectorSlots
        uint16 selectorCount;
        // Used to query if a contract implements an interface.
        // Used to implement ERC-165.
        mapping(bytes4 => bool) supportedInterfaces;
        // owner of the contract
        address contractOwner;
    }

    function diamondStorage() internal pure returns (DiamondStorage storage ds) {
        bytes32 position = DIAMOND_STORAGE_POSITION;
        assembly {
            ds.slot := position
        }
    }

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

    function setContractOwner(address _newOwner) internal {
        DiamondStorage storage ds = diamondStorage();
        address previousOwner = ds.contractOwner;
        ds.contractOwner = _newOwner;
        emit OwnershipTransferred(previousOwner, _newOwner);
    }

    function contractOwner() internal view returns (address contractOwner_) {
        contractOwner_ = diamondStorage().contractOwner;
    }

    function enforceIsContractOwner() internal view {
        require(msg.sender == diamondStorage().contractOwner, "LibDiamond: Must be contract owner");
    }

    event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata);

    bytes32 constant CLEAR_ADDRESS_MASK = bytes32(uint256(0xffffffffffffffffffffffff));
    bytes32 constant CLEAR_SELECTOR_MASK = bytes32(uint256(0xffffffff << 224));

    // Internal function version of diamondCut
    // This code is almost the same as the external diamondCut,
    // except it is using 'Facet[] memory _diamondCut' instead of
    // 'Facet[] calldata _diamondCut'.
    // The code is duplicated to prevent copying calldata to memory which
    // causes an error for a two dimensional array.
    function diamondCut(
        IDiamondCut.FacetCut[] memory _diamondCut,
        address _init,
        bytes memory _calldata
    ) internal {
        DiamondStorage storage ds = diamondStorage();
        uint256 originalSelectorCount = ds.selectorCount;
        uint256 selectorCount = originalSelectorCount;
        bytes32 selectorSlot;
        // Check if last selector slot is not full
        // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" 
        if (selectorCount & 7 > 0) {
            // get last selectorSlot
            // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8"
            selectorSlot = ds.selectorSlots[selectorCount >> 3];
        }
        // loop through diamond cut
        for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) {
            (selectorCount, selectorSlot) = addReplaceRemoveFacetSelectors(
                selectorCount,
                selectorSlot,
                _diamondCut[facetIndex].facetAddress,
                _diamondCut[facetIndex].action,
                _diamondCut[facetIndex].functionSelectors
            );
        }
        if (selectorCount != originalSelectorCount) {
            ds.selectorCount = uint16(selectorCount);
        }
        // If last selector slot is not full
        // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" 
        if (selectorCount & 7 > 0) {
            // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8"
            ds.selectorSlots[selectorCount >> 3] = selectorSlot;
        }
        emit DiamondCut(_diamondCut, _init, _calldata);
        initializeDiamondCut(_init, _calldata);
    }

    function addReplaceRemoveFacetSelectors(
        uint256 _selectorCount,
        bytes32 _selectorSlot,
        address _newFacetAddress,
        IDiamondCut.FacetCutAction _action,
        bytes4[] memory _selectors
    ) internal returns (uint256, bytes32) {
        DiamondStorage storage ds = diamondStorage();
        require(_selectors.length > 0, "LibDiamondCut: No selectors in facet to cut");
        if (_action == IDiamondCut.FacetCutAction.Add) {
            enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Add facet has no code");
            for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) {
                bytes4 selector = _selectors[selectorIndex];
                bytes32 oldFacet = ds.facets[selector];
                require(address(bytes20(oldFacet)) == address(0), "LibDiamondCut: Can't add function that already exists");
                // add facet for selector
                ds.facets[selector] = bytes20(_newFacetAddress) | bytes32(_selectorCount);
                // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" 
                uint256 selectorInSlotPosition = (_selectorCount & 7) << 5;
                // clear selector position in slot and add selector
                _selectorSlot = (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> selectorInSlotPosition)) | (bytes32(selector) >> selectorInSlotPosition);
                // if slot is full then write it to storage
                if (selectorInSlotPosition == 224) {
                    // "_selectorSlot >> 3" is a gas efficient division by 8 "_selectorSlot / 8"
                    ds.selectorSlots[_selectorCount >> 3] = _selectorSlot;
                    _selectorSlot = 0;
                }
                _selectorCount++;
            }
        } else if (_action == IDiamondCut.FacetCutAction.Replace) {
            enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Replace facet has no code");
            for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) {
                bytes4 selector = _selectors[selectorIndex];
                bytes32 oldFacet = ds.facets[selector];
                address oldFacetAddress = address(bytes20(oldFacet));
                // only useful if immutable functions exist
                require(oldFacetAddress != address(this), "LibDiamondCut: Can't replace immutable function");
                require(oldFacetAddress != _newFacetAddress, "LibDiamondCut: Can't replace function with same function");
                require(oldFacetAddress != address(0), "LibDiamondCut: Can't replace function that doesn't exist");
                // replace old facet address
                ds.facets[selector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(_newFacetAddress);
            }
        } else if (_action == IDiamondCut.FacetCutAction.Remove) {
            require(_newFacetAddress == address(0), "LibDiamondCut: Remove facet address must be address(0)");
            // "_selectorCount >> 3" is a gas efficient division by 8 "_selectorCount / 8"
            uint256 selectorSlotCount = _selectorCount >> 3;
            // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" 
            uint256 selectorInSlotIndex = _selectorCount & 7;
            for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) {
                if (_selectorSlot == 0) {
                    // get last selectorSlot
                    selectorSlotCount--;
                    _selectorSlot = ds.selectorSlots[selectorSlotCount];
                    selectorInSlotIndex = 7;
                } else {
                    selectorInSlotIndex--;
                }
                bytes4 lastSelector;
                uint256 oldSelectorsSlotCount;
                uint256 oldSelectorInSlotPosition;
                // adding a block here prevents stack too deep error
                {
                    bytes4 selector = _selectors[selectorIndex];
                    bytes32 oldFacet = ds.facets[selector];
                    require(address(bytes20(oldFacet)) != address(0), "LibDiamondCut: Can't remove function that doesn't exist");
                    // only useful if immutable functions exist
                    require(address(bytes20(oldFacet)) != address(this), "LibDiamondCut: Can't remove immutable function");
                    // replace selector with last selector in ds.facets
                    // gets the last selector
                    lastSelector = bytes4(_selectorSlot << (selectorInSlotIndex << 5));
                    if (lastSelector != selector) {
                        // update last selector slot position info
                        ds.facets[lastSelector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(ds.facets[lastSelector]);
                    }
                    delete ds.facets[selector];
                    uint256 oldSelectorCount = uint16(uint256(oldFacet));
                    // "oldSelectorCount >> 3" is a gas efficient division by 8 "oldSelectorCount / 8"
                    oldSelectorsSlotCount = oldSelectorCount >> 3;
                    // "oldSelectorCount & 7" is a gas efficient modulo by eight "oldSelectorCount % 8" 
                    oldSelectorInSlotPosition = (oldSelectorCount & 7) << 5;
                }
                if (oldSelectorsSlotCount != selectorSlotCount) {
                    bytes32 oldSelectorSlot = ds.selectorSlots[oldSelectorsSlotCount];
                    // clears the selector we are deleting and puts the last selector in its place.
                    oldSelectorSlot =
                        (oldSelectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) |
                        (bytes32(lastSelector) >> oldSelectorInSlotPosition);
                    // update storage with the modified slot
                    ds.selectorSlots[oldSelectorsSlotCount] = oldSelectorSlot;
                } else {
                    // clears the selector we are deleting and puts the last selector in its place.
                    _selectorSlot =
                        (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) |
                        (bytes32(lastSelector) >> oldSelectorInSlotPosition);
                }
                if (selectorInSlotIndex == 0) {
                    delete ds.selectorSlots[selectorSlotCount];
                    _selectorSlot = 0;
                }
            }
            _selectorCount = selectorSlotCount * 8 + selectorInSlotIndex;
        } else {
            revert("LibDiamondCut: Incorrect FacetCutAction");
        }
        return (_selectorCount, _selectorSlot);
    }

    function initializeDiamondCut(address _init, bytes memory _calldata) internal {
        if (_init == address(0)) {
            require(_calldata.length == 0, "LibDiamondCut: _init is address(0) but_calldata is not empty");
        } else {
            require(_calldata.length > 0, "LibDiamondCut: _calldata is empty but _init is not address(0)");
            if (_init != address(this)) {
                enforceHasContractCode(_init, "LibDiamondCut: _init address has no code");
            }
            (bool success, bytes memory error) = _init.delegatecall(_calldata);
            if (!success) {
                if (error.length > 0) {
                    // bubble up the error
                    revert(string(error));
                } else {
                    revert("LibDiamondCut: _init function reverted");
                }
            }
        }
    }

    function enforceHasContractCode(address _contract, string memory _errorMessage) internal view {
        uint256 contractSize;
        assembly {
            contractSize := extcodesize(_contract)
        }
        require(contractSize > 0, _errorMessage);
    }
}

File 3 of 6 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

interface IDiamondCut {
    enum FacetCutAction {Add, Replace, Remove}
    // Add=0, Replace=1, Remove=2

    struct FacetCut {
        address facetAddress;
        FacetCutAction action;
        bytes4[] functionSelectors;
    }

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(
        FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external;

    event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);
}

File 4 of 6 : IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceId The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 6 : IERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://eips.ethereum.org/EIPS/eip-721
///  Note: the ERC-165 identifier for this interface is 0x80ac58cd.
/* is ERC165 */
interface IERC721 {
    /// @notice Count all NFTs assigned to an owner
    /// @dev NFTs assigned to the zero address are considered invalid, and this
    ///  function throws for queries about the zero address.
    /// @param _owner An address for whom to query the balance
    /// @return The number of NFTs owned by `_owner`, possibly zero
    function balanceOf(address _owner) external view returns (uint256);

    /// @notice Find the owner of an NFT
    /// @dev NFTs assigned to zero address are considered invalid, and queries
    ///  about them do throw.
    /// @param _tokenId The identifier for an NFT
    /// @return The address of the owner of the NFT
    function ownerOf(uint256 _tokenId) external view returns (address);

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///  operator, or the approved address for this NFT. Throws if `_from` is
    ///  not the current owner. Throws if `_to` is the zero address. Throws if
    ///  `_tokenId` is not a valid NFT. When transfer is complete, this function
    ///  checks if `_to` is a smart contract (code size > 0). If so, it calls
    ///  `onERC721Received` on `_to` and throws if the return value is not
    ///  `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    /// @param data Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId,
        bytes calldata data
    ) external;

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    ///  except this function just sets data to "".
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    ) external;

    /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE
    ///  TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE
    ///  THEY MAY BE PERMANENTLY LOST
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///  operator, or the approved address for this NFT. Throws if `_from` is
    ///  not the current owner. Throws if `_to` is the zero address. Throws if
    ///  `_tokenId` is not a valid NFT.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function transferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    ) external;

    /// @notice Change or reaffirm the approved address for an NFT
    /// @dev The zero address indicates there is no approved address.
    ///  Throws unless `msg.sender` is the current NFT owner, or an authorized
    ///  operator of the current owner.
    /// @param _approved The new approved NFT controller
    /// @param _tokenId The NFT to approve
    function approve(address _approved, uint256 _tokenId) external;

    /// @notice Enable or disable approval for a third party ("operator") to manage
    ///  all of `msg.sender`'s assets
    /// @dev Emits the ApprovalForAll event. The contract MUST allow
    ///  multiple operators per owner.
    /// @param _operator Address to add to the set of authorized operators
    /// @param _approved True if the operator is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved) external;

    /// @notice Get the approved address for a single NFT
    /// @dev Throws if `_tokenId` is not a valid NFT.
    /// @param _tokenId The NFT to find the approved address for
    /// @return The approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId) external view returns (address);

    /// @notice Query if an address is an authorized operator for another address
    /// @param _owner The address that owns the NFTs
    /// @param _operator The address that acts on behalf of the owner
    /// @return True if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

File 6 of 6 : IERC2981.sol
/// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.13;

interface IERC2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    ///          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_diamondCutFacet","type":"address"}],"stateMutability":"payable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100225760003560e01c806301ffc9a71461016557610029565b3661002957005b6000807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9050809150600082600001600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000205460601c9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361013f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013690611258565b60405180910390fd5b3660008037600080366000845af43d6000803e8060008114610160573d6000f35b3d6000fd5b34801561017157600080fd5b5061018c600480360381019061018791906112d5565b6101a2565b604051610199919061131d565b60405180910390f35b6000806101ad6102ef565b9050806003016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16915050919050565b60006102226102ef565b905060008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c90508091505090565b60006103266102ef565b905060008160020160009054906101000a900461ffff1661ffff169050600081905060008060078316111561037257836001016000600384901c81526020019081526020016000205490505b60005b8751811015610400576103e583838a848151811061039657610395611338565b5b6020026020010151600001518b85815181106103b5576103b4611338565b5b6020026020010151602001518c86815181106103d4576103d3611338565b5b6020026020010151604001516104a1565b809350819450505080806103f8906113a0565b915050610375565b5082821461042857818460020160006101000a81548161ffff021916908361ffff1602179055505b60006007831611156104535780846001016000600385901c8152602001908152602001600020819055505b7f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb67387878760405161048693929190611718565b60405180910390a16104988686610f97565b50505050505050565b60008060006104ae6102ef565b905060008451116104f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104eb906117cf565b60405180910390fd5b6000600281111561050857610507611455565b5b85600281111561051b5761051a611455565b5b036107595761054286604051806060016040528060248152602001611fc8602491396111a9565b60005b845181101561075357600085828151811061056357610562611338565b5b602002602001015190506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020549050600073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1614610637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062e90611861565b60405180910390fd5b8a60001b8960601b6bffffffffffffffffffffffff191617846000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020819055506000600560078d16901b905080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c817fffffffff0000000000000000000000000000000000000000000000000000000060001b901c198c16179a5060e0810361072f578a85600101600060038f901c8152602001908152602001600020819055506000801b9a505b8b8061073a906113a0565b9c5050505050808061074b906113a0565b915050610545565b50610f86565b6001600281111561076d5761076c611455565b5b8560028111156107805761077f611455565b5b03610a16576107a786604051806060016040528060288152602001612014602891396111a9565b60005b8451811015610a105760008582815181106107c8576107c7611338565b5b602002602001015190506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002054905060008160601c90503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610897906118f3565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361090e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090590611985565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490611a17565b60405180910390fd5b8960601b6bffffffffffffffffffffffff19166bffffffffffffffffffffffff60001b831617856000016000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020819055505050508080610a08906113a0565b9150506107aa565b50610f85565b600280811115610a2957610a28611455565b5b856002811115610a3c57610a3b611455565b5b03610f4957600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa790611aa9565b60405180910390fd5b6000600389901c9050600060078a16905060005b8651811015610f27576000801b8a03610b06578280610ae290611ac9565b93505083600101600084815260200190815260200160002054995060079150610b15565b8180610b1190611ac9565b9250505b6000806000808a8581518110610b2e57610b2d611338565b5b602002602001015190506000886000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020549050600073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1603610c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf990611b64565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1603610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a90611bf6565b60405180910390fd5b600587901b8f901b9450817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610d9057886000016000867bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020546bffffffffffffffffffffffff19166bffffffffffffffffffffffff60001b821617896000016000877bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020819055505b886000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000206000905560008160001c61ffff169050600381901c9450600560078216901b9350505050858214610e9857600087600101600084815260200190815260200160002054905081847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c827fffffffff0000000000000000000000000000000000000000000000000000000060001b901c198216179050808860010160008581526020019081526020016000208190555050610ee9565b80837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c817fffffffff0000000000000000000000000000000000000000000000000000000060001b901c198e16179c505b60008503610f1157866001016000878152602001908152602001600020600090556000801b9c505b5050508080610f1f906113a0565b915050610ac4565b5080600883610f369190611c16565b610f409190611c70565b99505050610f84565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7b90611d38565b60405180910390fd5b5b5b878792509250509550959350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361101457600081511461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690611dca565b60405180910390fd5b6111a5565b6000815111611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f90611e5c565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146110ae576110ad82604051806060016040528060288152602001611fec602891396111a9565b5b6000808373ffffffffffffffffffffffffffffffffffffffff16836040516110d69190611eb8565b600060405180830381855af49150503d8060008114611111576040519150601f19603f3d011682016040523d82523d6000602084013e611116565b606091505b5091509150816111a25760008151111561116757806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e9190611f13565b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119990611fa7565b60405180910390fd5b50505b5050565b6000823b90506000811182906111f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ec9190611f13565b60405180910390fd5b50505050565b600082825260208201905092915050565b7f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374600082015250565b60006112426020836111fb565b915061124d8261120c565b602082019050919050565b6000602082019050818103600083015261127181611235565b9050919050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6112b28161127d565b81146112bd57600080fd5b50565b6000813590506112cf816112a9565b92915050565b6000602082840312156112eb576112ea611278565b5b60006112f9848285016112c0565b91505092915050565b60008115159050919050565b61131781611302565b82525050565b6000602082019050611332600083018461130e565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b60006113ab82611396565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036113dd576113dc611367565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061143f82611414565b9050919050565b61144f81611434565b82525050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061149557611494611455565b5b50565b60008190506114a682611484565b919050565b60006114b682611498565b9050919050565b6114c6816114ab565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6115018161127d565b82525050565b600061151383836114f8565b60208301905092915050565b6000602082019050919050565b6000611537826114cc565b61154181856114d7565b935061154c836114e8565b8060005b8381101561157d5781516115648882611507565b975061156f8361151f565b925050600181019050611550565b5085935050505092915050565b60006060830160008301516115a26000860182611446565b5060208301516115b560208601826114bd565b50604083015184820360408601526115cd828261152c565b9150508091505092915050565b60006115e6838361158a565b905092915050565b6000602082019050919050565b6000611606826113e8565b61161081856113f3565b93508360208202850161162285611404565b8060005b8581101561165e578484038952815161163f85826115da565b945061164a836115ee565b925060208a01995050600181019050611626565b50829750879550505050505092915050565b61167981611434565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156116b957808201518184015260208101905061169e565b838111156116c8576000848401525b50505050565b6000601f19601f8301169050919050565b60006116ea8261167f565b6116f4818561168a565b935061170481856020860161169b565b61170d816116ce565b840191505092915050565b6000606082019050818103600083015261173281866115fb565b90506117416020830185611670565b818103604083015261175381846116df565b9050949350505050565b7f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660008201527f6163657420746f20637574000000000000000000000000000000000000000000602082015250565b60006117b9602b836111fb565b91506117c48261175d565b604082019050919050565b600060208201905081810360008301526117e8816117ac565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f60008201527f6e207468617420616c7265616479206578697374730000000000000000000000602082015250565b600061184b6035836111fb565b9150611856826117ef565b604082019050919050565b6000602082019050818103600083015261187a8161183e565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c61636520696d6d60008201527f757461626c652066756e6374696f6e0000000000000000000000000000000000602082015250565b60006118dd602f836111fb565b91506118e882611881565b604082019050919050565b6000602082019050818103600083015261190c816118d0565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60008201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000602082015250565b600061196f6038836111fb565b915061197a82611913565b604082019050919050565b6000602082019050818103600083015261199e81611962565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60008201527f6374696f6e207468617420646f65736e27742065786973740000000000000000602082015250565b6000611a016038836111fb565b9150611a0c826119a5565b604082019050919050565b60006020820190508181036000830152611a30816119f4565b9050919050565b7f4c69624469616d6f6e644375743a2052656d6f7665206661636574206164647260008201527f657373206d757374206265206164647265737328302900000000000000000000602082015250565b6000611a936036836111fb565b9150611a9e82611a37565b604082019050919050565b60006020820190508181036000830152611ac281611a86565b9050919050565b6000611ad482611396565b915060008203611ae757611ae6611367565b5b600182039050919050565b7f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360008201527f74696f6e207468617420646f65736e2774206578697374000000000000000000602082015250565b6000611b4e6037836111fb565b9150611b5982611af2565b604082019050919050565b60006020820190508181036000830152611b7d81611b41565b9050919050565b7f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560008201527f7461626c652066756e6374696f6e000000000000000000000000000000000000602082015250565b6000611be0602e836111fb565b9150611beb82611b84565b604082019050919050565b60006020820190508181036000830152611c0f81611bd3565b9050919050565b6000611c2182611396565b9150611c2c83611396565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c6557611c64611367565b5b828202905092915050565b6000611c7b82611396565b9150611c8683611396565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611cbb57611cba611367565b5b828201905092915050565b7f4c69624469616d6f6e644375743a20496e636f7272656374204661636574437560008201527f74416374696f6e00000000000000000000000000000000000000000000000000602082015250565b6000611d226027836111fb565b9150611d2d82611cc6565b604082019050919050565b60006020820190508181036000830152611d5181611d15565b9050919050565b7f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860008201527f3029206275745f63616c6c64617461206973206e6f7420656d70747900000000602082015250565b6000611db4603c836111fb565b9150611dbf82611d58565b604082019050919050565b60006020820190508181036000830152611de381611da7565b9050919050565b7f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460008201527f7920627574205f696e6974206973206e6f742061646472657373283029000000602082015250565b6000611e46603d836111fb565b9150611e5182611dea565b604082019050919050565b60006020820190508181036000830152611e7581611e39565b9050919050565b600081905092915050565b6000611e928261167f565b611e9c8185611e7c565b9350611eac81856020860161169b565b80840191505092915050565b6000611ec48284611e87565b915081905092915050565b600081519050919050565b6000611ee582611ecf565b611eef81856111fb565b9350611eff81856020860161169b565b611f08816116ce565b840191505092915050565b60006020820190508181036000830152611f2d8184611eda565b905092915050565b7f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e20726560008201527f7665727465640000000000000000000000000000000000000000000000000000602082015250565b6000611f916026836111fb565b9150611f9c82611f35565b604082019050919050565b60006020820190508181036000830152611fc081611f84565b905091905056fe4c69624469616d6f6e644375743a2041646420666163657420686173206e6f20636f64654c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a205265706c61636520666163657420686173206e6f20636f6465a2646970667358221220d0fdd032ecadbeb9e3843519210d92715a5f92a834082bee117ef7c8ef61353c64736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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