Contract 0xb124f9cade06a3d50207c4566faf879c3b7c257f 1

 

Contract Overview

Shift: Router
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x12e2a435535acd8278caaa28d4b3de60c00956232f9a93a4e8201d6aac8aa94cBuy Orders Multi...752882662023-03-30 15:11:132 hrs 28 mins ago0x43c89407960a524cb8c6ce09d647423fcecc40c6 IN  Shift: Router0 ETH0.00024614 0.1
0x64c5a091868eb810691ae71c9fa594904edfb3d834d5ced9696615f0e2f1a1b4Buy Orders Multi...752507422023-03-30 12:36:495 hrs 2 mins ago0x574c30f968dc3dce3f1ec5d842b9e81ff5905000 IN  Shift: Router0 ETH0.000294770.1
0xef214bed643efd08a4d7cd3bf8d3e4bd19cd01e94da09c5edd9e8bfba9ab3b87Buy Orders Multi...752159892023-03-30 10:13:097 hrs 26 mins ago0x574c30f968dc3dce3f1ec5d842b9e81ff5905000 IN  Shift: Router0 ETH0.001190820.1
0x51b1044b6d3903a53edf9c0f6710676d3c0761cfce4efbb71bad1ec6ebbdc0e2Buy Orders Multi...752085752023-03-30 9:42:267 hrs 56 mins ago0x4fdac6164cb6c8d7224c5e7ca0038c71cfdc16a0 IN  Shift: Router0 ETH0.00025506 0.1
0xa6eeb1ace080ec656e44e05ecb7521c2df3dd78606a314fcc5c956ee6236f082Buy Orders Multi...751968972023-03-30 8:54:148 hrs 45 mins ago0x519cd1e23ec37b92cf7fb2dfca5a06bcefcfa61c IN  Shift: Router0 ETH0.00068523 0.1
0x3207be4e36337841a49c013fb3c6e3799fc2a490ebf33ec3375c742c08f72596Buy Orders Multi...751634042023-03-30 6:36:1011 hrs 3 mins ago0x3897eeff99435b115ccb975984ce2bba96c92679 IN  Shift: Router0 ETH0.00187009 0.1
0x9d7e65367596eb6041dccf77d13bf0080b382384f86bae319e631bea45465c88Approve ERC20Tok...751322852023-03-30 4:26:4213 hrs 12 mins ago0x648e51e9e011dc332a9be155d0a3e52ae38d48d1 IN  Shift: Router0 ETH0.000063870.1
0x89d3f3366bb8f18807d9a3f9022d3b1a2751fa3d3735d00170f9fe0634ef38daBuy Orders Multi...750880852023-03-30 1:22:5916 hrs 16 mins ago0x3897eeff99435b115ccb975984ce2bba96c92679 IN  Shift: Router0 ETH0.00027653 0.1
0xb0388e521b2d29293426e8c3754beec989144bfa2d9a9993cafdd7e25e90ebecBuy Orders Multi...750635402023-03-29 23:38:2818 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00016173 0.1
0x58cd88e142b4acd2e66b97bf4843b2614d5df317c077b311e8b4364da9a77315Buy Orders Multi...750589702023-03-29 23:18:5118 hrs 20 mins ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00035822 0.1
0x82a0fbae67722d2aee5a046437f561574aad7c74691b9a41c24a040abce23433Buy Orders Multi...750429862023-03-29 22:10:1519 hrs 29 mins ago0x3897eeff99435b115ccb975984ce2bba96c92679 IN  Shift: Router0 ETH0.00123286 0.1
0x9fc476c851b64857e4738dfcac5f806fdb4e08b8bf566ab6e8da7cd6ae055b66Buy Orders Multi...749524042023-03-29 15:48:051 day 1 hr ago0x9bca2e57bd0863bb231aec2587acbb9645b59cbf IN  Shift: Router0 ETH0.00084871 0.1
0x0cb5df6fe31a18acd45ed962de99d2c0bc76ebc1d153c25c7c93207402ff56e3Buy Orders Multi...749516092023-03-29 15:44:431 day 1 hr ago0xf42b1ac078b2144bfce9fdc7e197685ceda42011 IN  Shift: Router0 ETH0.00048138 0.1
0x95f0aa0d06c632a5d28555ff0abe039144a21f79e2195fae50b27813c3ef23f4Buy Orders Multi...749487622023-03-29 15:32:551 day 2 hrs ago0x045b3a3f885915b82beaf4f57fcccf7980ce724e IN  Shift: Router0 ETH0.0003916 0.1
0xf5fde336dddefec1d902c2033cbed946c9c86d9f2193b0f3b90910a960471df0Buy Orders Multi...749479922023-03-29 15:29:431 day 2 hrs ago0x045b3a3f885915b82beaf4f57fcccf7980ce724e IN  Shift: Router0 ETH0.00044684 0.1
0x4cea921e50159606b840ddf044f65f59e09e71b43ae36689f2761f1168c18c92Buy Orders Multi...749331152023-03-29 14:28:061 day 3 hrs ago0xba8f1b571bc1e0aef36c33b26cba2e679b0eb400 IN  Shift: Router0 ETH0.00030796 0.1
0x6bad0a4c14bde1f32923a1dc009c708c1bec05f1638bca665e0581c0fc4f049fBuy Orders Multi...748875322023-03-29 11:19:071 day 6 hrs ago0x574c30f968dc3dce3f1ec5d842b9e81ff5905000 IN  Shift: Router0 ETH0.000367440.1
0x9aab0c019483702b9b728d12a6746254de146e04b5f6df5c7bb19b0cebe984cfBuy Orders Multi...748867812023-03-29 11:15:571 day 6 hrs ago0x574c30f968dc3dce3f1ec5d842b9e81ff5905000 IN  Shift: Router0 ETH0.000511910.1
0x42f81df5f61c60ad4c09383db8941f7781a266efd676cc30b1172727de1b6944Buy Orders Multi...748391252023-03-29 7:58:201 day 9 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00027556 0.1
0x57f3cdda199e17fdfb15c6d2119c017d5259de71d2e65afd9b2edb5b9817c5c8Buy Orders Multi...748388392023-03-29 7:57:141 day 9 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00024092 0.1
0x0428e7674a41a4405fd53d43cc9f0f1c2008de4a59f1d11b61e69aaf212f6949Buy Orders Multi...748386062023-03-29 7:56:151 day 9 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.0003522 0.1
0xfc9cdfb9a51287271afbd2b1379aa5d0d5a18676a10adf72afdbe01fd82f78b7Buy Orders Multi...748380542023-03-29 7:53:561 day 9 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00014529 0.1
0xd256b86fca418a66b9d64c1ea2fb95960bced43784353c6b5da2cf64596f0507Buy Orders Multi...748218122023-03-29 6:46:491 day 10 hrs ago0x574c30f968dc3dce3f1ec5d842b9e81ff5905000 IN  Shift: Router0 ETH0.000466080.1
0xf159b05766cfddde3b1f7f1bdaeebb753b062944a116484a032f8cbce577f012Buy Orders Multi...747684852023-03-29 3:01:501 day 14 hrs ago0xde2972fd4ee37ff934218a0789a7222d43c41377 IN  Shift: Router0 ETH0.00027348 0.1
0xf1a31b31999ad924e0180c04507a1af7c61547361dc42eb48c8cd773cf6e7ec1Buy Orders Multi...747311332023-03-29 0:22:021 day 17 hrs ago0xf319f5eecfb027e46bcc3afa1b12e763653a004e IN  Shift: Router0 ETH0.00028445 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Treasure DAO: Treasures Shift: Router0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Treasure DAO: Treasures Shift: Router0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Treasure DAO: Treasures Shift: Router0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Treasure DAO: Treasures Shift: Router0 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router 0x09986b4e255b3c548041a30a2ee312fe176731c20 ETH
0xf49f53a25c80285f7e9f2bff30b7f45fc2c4b7f9a138c6dca352bdece681534d720624872023-03-21 8:39:259 days 8 hrs ago Shift: Router Treasure DAO: Treasures0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShiftSweeper

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 9999999 runs

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

//           _____                    _____                   _______                   _____            _____                    _____                    _____                    _____
//          /\    \                  /\    \                 /::\    \                 /\    \          /\    \                  /\    \                  /\    \                  /\    \
//         /::\    \                /::\____\               /::::\    \               /::\____\        /::\    \                /::\____\                /::\    \                /::\    \
//        /::::\    \              /::::|   |              /::::::\    \             /:::/    /       /::::\    \              /:::/    /               /::::\    \              /::::\    \
//       /::::::\    \            /:::::|   |             /::::::::\    \           /:::/    /       /::::::\    \            /:::/   _/___            /::::::\    \            /::::::\    \
//      /:::/\:::\    \          /::::::|   |            /:::/~~\:::\    \         /:::/    /       /:::/\:::\    \          /:::/   /\    \          /:::/\:::\    \          /:::/\:::\    \
//     /:::/__\:::\    \        /:::/|::|   |           /:::/    \:::\    \       /:::/    /       /:::/__\:::\    \        /:::/   /::\____\        /:::/__\:::\    \        /:::/__\:::\    \
//     \:::\   \:::\    \      /:::/ |::|   |          /:::/    / \:::\    \     /:::/    /        \:::\   \:::\    \      /:::/   /:::/    /       /::::\   \:::\    \      /::::\   \:::\    \
//   ___\:::\   \:::\    \    /:::/  |::|___|______   /:::/____/   \:::\____\   /:::/    /       ___\:::\   \:::\    \    /:::/   /:::/   _/___    /::::::\   \:::\    \    /::::::\   \:::\    \
//  /\   \:::\   \:::\    \  /:::/   |::::::::\    \ |:::|    |     |:::|    | /:::/    /       /\   \:::\   \:::\    \  /:::/___/:::/   /\    \  /:::/\:::\   \:::\    \  /:::/\:::\   \:::\____\
// /::\   \:::\   \:::\____\/:::/    |:::::::::\____\|:::|____|     |:::|    |/:::/____/       /::\   \:::\   \:::\____\|:::|   /:::/   /::\____\/:::/  \:::\   \:::\____\/:::/  \:::\   \:::|    |
// \:::\   \:::\   \::/    /\::/    / ~~~~~/:::/    / \:::\    \   /:::/    / \:::\    \       \:::\   \:::\   \::/    /|:::|__/:::/   /:::/    /\::/    \:::\  /:::/    /\::/    \:::\  /:::|____|
//  \:::\   \:::\   \/____/  \/____/      /:::/    /   \:::\    \ /:::/    /   \:::\    \       \:::\   \:::\   \/____/  \:::\/:::/   /:::/    /  \/____/ \:::\/:::/    /  \/_____/\:::\/:::/    /
//   \:::\   \:::\    \                  /:::/    /     \:::\    /:::/    /     \:::\    \       \:::\   \:::\    \       \::::::/   /:::/    /            \::::::/    /            \::::::/    /
//    \:::\   \:::\____\                /:::/    /       \:::\__/:::/    /       \:::\    \       \:::\   \:::\____\       \::::/___/:::/    /              \::::/    /              \::::/    /
//     \:::\  /:::/    /               /:::/    /         \::::::::/    /         \:::\    \       \:::\  /:::/    /        \:::\__/:::/    /               /:::/    /                \::/____/
//      \:::\/:::/    /               /:::/    /           \::::::/    /           \:::\    \       \:::\/:::/    /          \::::::::/    /               /:::/    /                  ~~
//       \::::::/    /               /:::/    /             \::::/    /             \:::\    \       \::::::/    /            \::::::/    /               /:::/    /
//        \::::/    /               /:::/    /               \::/____/               \:::\____\       \::::/    /              \::::/    /               /:::/    /
//         \::/    /                \::/    /                 ~~                      \::/    /        \::/    /                \::/____/                \::/    /
//          \/____/                  \/____/                                           \/____/          \/____/                  ~~                       \/____/

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "../tokens/ANFTReceiver2.sol";

import "./diamond/Diamond.sol";
import "./diamond/facets/OwnershipFacet.sol";

contract ShiftSweeper is Diamond, ANFTReceiver2, OwnershipModifers {
  using SafeERC20 for IERC20;

  constructor(address _contractOwner, address _diamondCutFacet)
    Diamond(_contractOwner, _diamondCutFacet)
  {}
}

File 2 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 3 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 4 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 5 of 19 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 19 : 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 19 : ANFTReceiver2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC1155/AERC1155Receiver2.sol";
import "./ERC721/AERC721Receiver2.sol";

abstract contract ANFTReceiver2 is AERC721Receiver2, AERC1155Receiver2 {}

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

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

// import "@forge-std/src/console.sol";

import { LibDiamond } from "./libraries/LibDiamond.sol";
import { LibOwnership } from "./libraries/LibOwnership.sol";
import { IDiamondCut } from "./interfaces/IDiamondCut.sol";

// import "@forge-std/src/Test.sol";

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

    // 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), "");
  }

  // 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;
    // get diamond storage
    bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;
    assembly {
      ds.slot := position
    }
    // get facet from function selector
    address facet = ds.selectorToFacetAndPosition[msg.sig].facetAddress;
    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 9 of 19 : OwnershipFacet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IERC173} from "../interfaces/IERC173.sol";
import {LibOwnership} from "../libraries/LibOwnership.sol";
import {IDiamondInit} from "../interfaces/IDiamondInit.sol";

error NotOwner();

abstract contract OwnershipModifers {
  modifier onlyOwner() {
    if (msg.sender != LibOwnership.diamondStorage().contractOwner)
      revert NotOwner();
    _;
  }
}

contract OwnershipFacet is IERC173 {
  function transferOwnership(address _newOwner) external override {
    LibOwnership.enforceIsContractOwner();
    LibOwnership.setContractOwner(_newOwner);
  }

  function owner() external view override returns (address owner_) {
    owner_ = LibOwnership.contractOwner();
  }
}

contract OwnershipDiamondInit is IDiamondInit {
  function init() external {
    LibOwnership.setContractOwner(msg.sender);
  }
}

File 10 of 19 : 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 11 of 19 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 12 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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://consensys.net/diligence/blog/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 13 of 19 : AERC1155Receiver2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

abstract contract AERC1155Receiver2 {
    /**
     * Always returns `IERC1155Receiver.onERC1155ReceivedFrom.selector`.
     */
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) public virtual returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    /**
     * Always returns `IERC1155Receiver.onERC1155BatchReceived.selector`.
     */
    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) public virtual returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 14 of 19 : AERC721Receiver2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

abstract contract AERC721Receiver2 {
    /**
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 15 of 19 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/******************************************************************************\
* 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 {
  error InValidFacetCutAction();
  error NotDiamondOwner();
  error NoSelectorsInFacet();
  error NoZeroAddress();
  error SelectorExists(bytes4 selector);
  error SameSelectorReplacement(bytes4 selector);
  error MustBeZeroAddress();
  error NoCode();
  error NonExistentSelector(bytes4 selector);
  error ImmutableFunction(bytes4 selector);
  error NonEmptyCalldata();
  error EmptyCalldata();
  error InitCallFailed();
  
  bytes32 constant DIAMOND_STORAGE_POSITION =
    keccak256("diamond.standard.diamond.storage");

  struct FacetAddressAndPosition {
    address facetAddress;
    uint96 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array
  }

  struct FacetFunctionSelectors {
    bytes4[] functionSelectors;
    uint256 facetAddressPosition; // position of facetAddress in facetAddresses array
  }

  struct DiamondStorage {
    // maps function selector to the facet address and
    // the position of the selector in the facetFunctionSelectors.selectors array
    mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;
    // maps facet addresses to function selectors
    mapping(address => FacetFunctionSelectors) facetFunctionSelectors;
    // facet addresses
    address[] facetAddresses;
    // Used to query if a contract implements an interface.
    // Used to implement ERC-165.
    mapping(bytes4 => bool) supportedInterfaces;
    // owner of the contract
  }

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

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

  // Internal function version of diamondCut
  function diamondCut(
    IDiamondCut.FacetCut[] memory _diamondCut,
    address _init,
    bytes memory _calldata
  ) internal {
    for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) {
      IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;
      if (action == IDiamondCut.FacetCutAction.Add) {
        addFunctions(
          _diamondCut[facetIndex].facetAddress,
          _diamondCut[facetIndex].functionSelectors
        );
      } else if (action == IDiamondCut.FacetCutAction.Replace) {
        replaceFunctions(
          _diamondCut[facetIndex].facetAddress,
          _diamondCut[facetIndex].functionSelectors
        );
      } else if (action == IDiamondCut.FacetCutAction.Remove) {
        removeFunctions(
          _diamondCut[facetIndex].facetAddress,
          _diamondCut[facetIndex].functionSelectors
        );
      } else {
        revert InValidFacetCutAction();
      }
    }
    emit DiamondCut(_diamondCut, _init, _calldata);
    initializeDiamondCut(_init, _calldata);
  }

  function addFunctions(
    address _facetAddress,
    bytes4[] memory _functionSelectors
  ) internal {
    if (_functionSelectors.length <= 0) revert NoSelectorsInFacet();
    DiamondStorage storage ds = diamondStorage();
    if (_facetAddress == address(0)) revert NoZeroAddress();
    uint96 selectorPosition = uint96(
      ds.facetFunctionSelectors[_facetAddress].functionSelectors.length
    );
    // add new facet address if it does not exist
    if (selectorPosition == 0) {
      addFacet(ds, _facetAddress);
    }
    for (
      uint256 selectorIndex;
      selectorIndex < _functionSelectors.length;
      selectorIndex++
    ) {
      bytes4 selector = _functionSelectors[selectorIndex];
      address oldFacetAddress = ds
        .selectorToFacetAndPosition[selector]
        .facetAddress;
      if (oldFacetAddress != address(0)) revert SelectorExists(selector);
      addFunction(ds, selector, selectorPosition, _facetAddress);
      selectorPosition++;
    }
  }

  function replaceFunctions(
    address _facetAddress,
    bytes4[] memory _functionSelectors
  ) internal {
    if (_functionSelectors.length <= 0) revert NoSelectorsInFacet();
    DiamondStorage storage ds = diamondStorage();
    if (_facetAddress == address(0)) revert NoZeroAddress();
    uint96 selectorPosition = uint96(
      ds.facetFunctionSelectors[_facetAddress].functionSelectors.length
    );
    // add new facet address if it does not exist
    if (selectorPosition == 0) {
      addFacet(ds, _facetAddress);
    }
    for (
      uint256 selectorIndex;
      selectorIndex < _functionSelectors.length;
      selectorIndex++
    ) {
      bytes4 selector = _functionSelectors[selectorIndex];
      address oldFacetAddress = ds
        .selectorToFacetAndPosition[selector]
        .facetAddress;
      if (oldFacetAddress == _facetAddress)
        revert SameSelectorReplacement(selector);
      removeFunction(ds, oldFacetAddress, selector);
      addFunction(ds, selector, selectorPosition, _facetAddress);
      selectorPosition++;
    }
  }

  function removeFunctions(
    address _facetAddress,
    bytes4[] memory _functionSelectors
  ) internal {
    if (_functionSelectors.length <= 0) revert NoSelectorsInFacet();
    DiamondStorage storage ds = diamondStorage();
    // if function does not exist then do nothing and return
    if (_facetAddress != address(0)) revert MustBeZeroAddress();
    for (
      uint256 selectorIndex;
      selectorIndex < _functionSelectors.length;
      selectorIndex++
    ) {
      bytes4 selector = _functionSelectors[selectorIndex];
      address oldFacetAddress = ds
        .selectorToFacetAndPosition[selector]
        .facetAddress;
      removeFunction(ds, oldFacetAddress, selector);
    }
  }

  function addFacet(DiamondStorage storage ds, address _facetAddress) internal {
    enforceHasContractCode(_facetAddress);
    ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds
      .facetAddresses
      .length;
    ds.facetAddresses.push(_facetAddress);
  }

  function addFunction(
    DiamondStorage storage ds,
    bytes4 _selector,
    uint96 _selectorPosition,
    address _facetAddress
  ) internal {
    ds
      .selectorToFacetAndPosition[_selector]
      .functionSelectorPosition = _selectorPosition;
    ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(_selector);
    ds.selectorToFacetAndPosition[_selector].facetAddress = _facetAddress;
  }

  function removeFunction(
    DiamondStorage storage ds,
    address _facetAddress,
    bytes4 _selector
  ) internal {
    if (_facetAddress == address(0)) revert NonExistentSelector(_selector);
    // an immutable function is a function defined directly in a diamond
    if (_facetAddress == address(this)) revert ImmutableFunction(_selector);
    // replace selector with last selector, then delete last selector
    uint256 selectorPosition = ds
      .selectorToFacetAndPosition[_selector]
      .functionSelectorPosition;
    uint256 lastSelectorPosition = ds
      .facetFunctionSelectors[_facetAddress]
      .functionSelectors
      .length - 1;
    // if not the same then replace _selector with lastSelector
    if (selectorPosition != lastSelectorPosition) {
      bytes4 lastSelector = ds
        .facetFunctionSelectors[_facetAddress]
        .functionSelectors[lastSelectorPosition];
      ds.facetFunctionSelectors[_facetAddress].functionSelectors[
          selectorPosition
        ] = lastSelector;
      ds
        .selectorToFacetAndPosition[lastSelector]
        .functionSelectorPosition = uint96(selectorPosition);
    }
    // delete the last selector
    ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();
    delete ds.selectorToFacetAndPosition[_selector];

    // if no more selectors for facet address then delete the facet address
    if (lastSelectorPosition == 0) {
      // replace facet address with last facet address and delete last facet address
      uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;
      uint256 facetAddressPosition = ds
        .facetFunctionSelectors[_facetAddress]
        .facetAddressPosition;
      if (facetAddressPosition != lastFacetAddressPosition) {
        address lastFacetAddress = ds.facetAddresses[lastFacetAddressPosition];
        ds.facetAddresses[facetAddressPosition] = lastFacetAddress;
        ds
          .facetFunctionSelectors[lastFacetAddress]
          .facetAddressPosition = facetAddressPosition;
      }
      ds.facetAddresses.pop();
      delete ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;
    }
  }

  function initializeDiamondCut(address _init, bytes memory _calldata)
    internal
  {
    if (_init == address(0)) {
      if (_calldata.length > 0) revert NonEmptyCalldata();
    } else {
      if (_calldata.length == 0) revert EmptyCalldata();
      if (_init != address(this)) {
        enforceHasContractCode(_init);
      }
      (bool success, bytes memory error) = _init.delegatecall(_calldata);
      if (!success) {
        if (error.length > 0) {
          // bubble up the error
          revert(string(error));
        } else {
          revert InitCallFailed();
        }
      }
    }
  }

  function enforceHasContractCode(address _contract) internal view {
    uint256 contractSize;
    assembly {
      contractSize := extcodesize(_contract)
    }
    if (contractSize <= 0) revert NoCode();
  }
}

File 16 of 19 : LibOwnership.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {LibDiamond} from "./LibDiamond.sol";

error NotDiamondOwner();

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

  struct DiamondStorage {
    // owner of the contract
    address contractOwner;
  }

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

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

  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 {
    if (msg.sender != diamondStorage().contractOwner) revert NotDiamondOwner();
  }
}

File 17 of 19 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/******************************************************************************\
* 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 18 of 19 : IERC173.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title ERC-173 Contract Ownership Standard
///  Note: the ERC-165 identifier for this interface is 0x7f5828d0
/* is ERC165 */
interface IERC173 {
  /// @dev This emits when ownership of a contract changes.
  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );

  /// @notice Get the address of the owner
  /// @return owner_ The address of the owner.
  function owner() external view returns (address owner_);

  /// @notice Set the address of the new owner of the contract
  /// @dev Set _newOwner to address(0) to renounce any ownership.
  /// @param _newOwner The address of the new owner of the contract
  function transferOwnership(address _newOwner) external;
}

File 19 of 19 : IDiamondInit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IDiamondInit {
  function init() external;
}

Settings
{
  "remappings": [
    "@ERC721A/=lib/ERC721A/",
    "@contracts/=src/contracts/",
    "@forge-std/=lib/forge-std/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@rari-capital/solmate/=lib/seaport/./lib/solmate/",
    "@seaport/=lib/seaport/",
    "@solmate/=lib/solmate/",
    "@tests/=src/tests/",
    "@uniswap/=src/contracts/uniswap/",
    "@utils/=src/utils/",
    "contracts/=lib/seaport/contracts/",
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "murky/=lib/seaport/./lib/murky/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "seaport/=lib/seaport/contracts/",
    "solmate/=lib/solmate/src/",
    "src/=src/",
    "src/=src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 9999999
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_diamondCutFacet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EmptyCalldata","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"ImmutableFunction","type":"error"},{"inputs":[],"name":"InValidFacetCutAction","type":"error"},{"inputs":[],"name":"InitCallFailed","type":"error"},{"inputs":[],"name":"MustBeZeroAddress","type":"error"},{"inputs":[],"name":"NoCode","type":"error"},{"inputs":[],"name":"NoSelectorsInFacet","type":"error"},{"inputs":[],"name":"NoZeroAddress","type":"error"},{"inputs":[],"name":"NonEmptyCalldata","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"NonExistentSelector","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"SameSelectorReplacement","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"SelectorExists","type":"error"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162002a0f38038062002a0f833981016040819052620000349162000d9c565b81816200004c826200016860201b620002421760201c565b604080516001808252818301909252600091816020015b60408051606080820183526000808352602083015291810191909152815260200190600190039081620000635750506040805160018082528183019092529192506000919060208083019080368337019050509050631f931c1c60e01b81600081518110620000d657620000d662000dd4565b6001600160e01b031990921660209283029190910182015260408051606081019091526001600160a01b038516815290810160008152602001828152508260008151811062000129576200012962000dd4565b60200260200101819052506200015c82600060405180602001604052806000815250620001d960201b620002d81760201c565b50505050505062001031565b7f586d3bf3558e5ffe721c6f44f4451880e303fa89b73bd2c30250f8d38c80d09c80546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b8351811015620003a0576000848281518110620001fd57620001fd62000dd4565b60200260200101516020015190506000600281111562000221576200022162000dea565b81600281111562000236576200023662000dea565b0362000294576200028e85838151811062000255576200025562000dd4565b60200260200101516000015186848151811062000276576200027662000dd4565b602002602001015160400151620003ef60201b60201c565b6200038a565b6001816002811115620002ab57620002ab62000dea565b0362000303576200028e858381518110620002ca57620002ca62000dd4565b602002602001015160000151868481518110620002eb57620002eb62000dd4565b602002602001015160400151620005d060201b60201c565b60028160028111156200031a576200031a62000dea565b0362000372576200028e85838151811062000339576200033962000dd4565b6020026020010151600001518684815181106200035a576200035a62000dd4565b602002602001015160400151620007b860201b60201c565b60405162c5e5d760e31b815260040160405180910390fd5b5080620003978162000e16565b915050620001dc565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673838383604051620003d69392919062000e8f565b60405180910390a1620003ea828262000895565b505050565b6000815111620004125760405163092d2fe560e41b815260040160405180910390fd5b600080516020620029ef8339815191526001600160a01b0383166200044a5760405163ddbadd5f60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600182016020526040812054906001600160601b03821690036200048357620004838285620009af565b60005b8351811015620005c9576000848281518110620004a757620004a762000dd4565b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b031680156200050a5760405163501e70c760e01b81526001600160e01b0319831660048201526024015b60405180910390fd5b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b03191617905583620005ae8162000f96565b94505050508080620005c09062000e16565b91505062000486565b5050505050565b6000815111620005f35760405163092d2fe560e41b815260040160405180910390fd5b600080516020620029ef8339815191526001600160a01b0383166200062b5760405163ddbadd5f60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600182016020526040812054906001600160601b03821690036200066457620006648285620009af565b60005b8351811015620005c957600084828151811062000688576200068862000dd4565b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b039081169087168103620006ec57604051631c04188b60e31b81526001600160e01b03198316600482015260240162000501565b620006f985828462000a02565b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b031916179055836200079d8162000f96565b94505050508080620007af9062000e16565b91505062000667565b6000815111620007db5760405163092d2fe560e41b815260040160405180910390fd5b600080516020620029ef8339815191526001600160a01b038316156200081457604051631be65fe560e21b815260040160405180910390fd5b60005b82518110156200088f57600083828151811062000838576200083862000dd4565b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b03166200087784828462000a02565b50508080620008869062000e16565b91505062000817565b50505050565b6001600160a01b038216620008c957805115620008c55760405163c21b1ab760e01b815260040160405180910390fd5b5050565b8051600003620008ec57604051633011e86160e21b815260040160405180910390fd5b6001600160a01b03821630146200090857620009088262000d5e565b600080836001600160a01b03168360405162000925919062000fc7565b600060405180830381855af49150503d806000811462000962576040519150601f19603f3d011682016040523d82523d6000602084013e62000967565b606091505b5091509150816200088f5780511562000996578060405162461bcd60e51b815260040162000501919062000fe5565b604051633a18f8dd60e01b815260040160405180910390fd5b620009ba8162000d5e565b6002820180546001600160a01b0390921660008181526001948501602090815260408220860185905594840183559182529290200180546001600160a01b0319169091179055565b6001600160a01b03821662000a3657604051622902d360e91b81526001600160e01b03198216600482015260240162000501565b306001600160a01b0383160362000a6d5760405163069731c560e41b81526001600160e01b03198216600482015260240162000501565b6001600160e01b03198116600090815260208481526040808320546001600160a01b0386168452600180880190935290832054600160a01b9091046001600160601b0316929162000abe9162001001565b905080821462000bb7576001600160a01b0384166000908152600186016020526040812080548390811062000af75762000af762000dd4565b600091825260208083206008830401546001600160a01b038916845260018a019091526040909220805460079092166004026101000a90920460e01b92508291908590811062000b4b5762000b4b62000dd4565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b03199290921682528690526040902080546001600160a01b0316600160a01b6001600160601b038516021790555b6001600160a01b0384166000908152600186016020526040902080548062000be35762000be36200101b565b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b03198516825286905260408120819055819003620005c957600285015460009062000c499060019062001001565b6001600160a01b038616600090815260018089016020526040909120015490915080821462000cff57600087600201838154811062000c8c5762000c8c62000dd4565b6000918252602090912001546002890180546001600160a01b03909216925082918490811062000cc05762000cc062000dd4565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055929091168152600189810190925260409020018190555b8660020180548062000d155762000d156200101b565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0388168252600189810190915260408220015550505050505050565b803b80620008c557604051633c11a9c560e21b815260040160405180910390fd5b80516001600160a01b038116811462000d9757600080fd5b919050565b6000806040838503121562000db057600080fd5b62000dbb8362000d7f565b915062000dcb6020840162000d7f565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000e2b5762000e2b62000e00565b5060010190565b60005b8381101562000e4f57818101518382015260200162000e35565b838111156200088f5750506000910152565b6000815180845262000e7b81602086016020860162000e32565b601f01601f19169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b8481101562000f6457898403607f19018652815180516001600160a01b0316855283810151898601906003811062000f0057634e487b7160e01b600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101562000f4e5783516001600160e01b031916825292860192600192909201919086019062000f22565b5097850197955050509082019060010162000eb8565b50506001600160a01b038a1690880152868103604088015262000f88818962000e61565b9a9950505050505050505050565b60006001600160601b038281166002600160601b0319810162000fbd5762000fbd62000e00565b6001019392505050565b6000825162000fdb81846020870162000e32565b9190910192915050565b60208152600062000ffa602083018462000e61565b9392505050565b60008282101562001016576200101662000e00565b500390565b634e487b7160e01b600052603160045260246000fd5b6119ae80620010416000396000f3fe6080604052600436106100385760003560e01c8063150b7a021461013b578063bc197c81146101b4578063f23a6e61146101fc5761003f565b3661003f57005b600080357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff1680610117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f7420657869737460448201526064015b60405180910390fd5b3660008037600080366000845af43d6000803e808015610136573d6000f35b3d6000fd5b34801561014757600080fd5b5061017f610156366004611373565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200160405180910390f35b3480156101c057600080fd5b5061017f6101cf3660046114fb565b7fbc197c810000000000000000000000000000000000000000000000000000000098975050505050505050565b34801561020857600080fd5b5061017f6102173660046115b6565b7ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b7f586d3bf3558e5ffe721c6f44f4451880e303fa89b73bd2c30250f8d38c80d09c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b83518110156104785760008482815181106102f8576102f861162e565b6020026020010151602001519050600060028111156103195761031961165d565b81600281111561032b5761032b61165d565b03610379576103748583815181106103455761034561162e565b6020026020010151600001518684815181106103635761036361162e565b6020026020010151604001516104c3565b610465565b600181600281111561038d5761038d61165d565b036103d6576103748583815181106103a7576103a761162e565b6020026020010151600001518684815181106103c5576103c561162e565b60200260200101516040015161079b565b60028160028111156103ea576103ea61165d565b03610433576103748583815181106104045761040461162e565b6020026020010151600001518684815181106104225761042261162e565b602002602001015160400151610a7c565b6040517f062f2eb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080610470816116bb565b9150506102db565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516104ac93929190611769565b60405180910390a16104be8282610bc3565b505050565b60008151116104fe576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff831661056c576040517fddbadd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff821690036105b4576105b48285610d5b565b60005b83518110156107945760008482815181106105d4576105d461162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff168015610687576040517f501e70c70000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008316600482015260240161010e565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff0000000000000000000000000000000000000000161790558361077c816118d1565b9450505050808061078c906116bb565b9150506105b7565b5050505050565b60008151116107d6576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff8316610844576040517fddbadd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff8216900361088c5761088c8285610d5b565b60005b83518110156107945760008482815181106108ac576108ac61162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff9081169087168103610964576040517fe020c4580000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008316600482015260240161010e565b61096f858284610dd1565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905583610a64816118d1565b94505050508080610a74906116bb565b91505061088f565b6000815111610ab7576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff831615610b26576040517f6f997f9400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015610bbd576000838281518110610b4657610b4661162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529185905260409091205490915073ffffffffffffffffffffffffffffffffffffffff16610ba8848284610dd1565b50508080610bb5906116bb565b915050610b29565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c1b57805115610c17576040517fc21b1ab700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8051600003610c56576040517fc047a18400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82163014610c7c57610c7c826112e2565b6000808373ffffffffffffffffffffffffffffffffffffffff1683604051610ca491906118fc565b600060405180830381855af49150503d8060008114610cdf576040519150601f19603f3d011682016040523d82523d6000602084013e610ce4565b606091505b509150915081610bbd57805115610d2957806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161010e9190611918565b6040517f3a18f8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d64816112e2565b60028201805473ffffffffffffffffffffffffffffffffffffffff90921660008181526001948501602090815260408220860185905594840183559182529290200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b73ffffffffffffffffffffffffffffffffffffffff8216610e42576040517f5205a6000000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008216600482015260240161010e565b3073ffffffffffffffffffffffffffffffffffffffff831603610eb5576040517f69731c500000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008216600482015260240161010e565b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152602084815260408083205473ffffffffffffffffffffffffffffffffffffffff86168452600180880190935290832054740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169291610f3f91611932565b90508082146110865773ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260408120805483908110610f8157610f8161162e565b6000918252602080832060088304015473ffffffffffffffffffffffffffffffffffffffff8916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610fdf57610fdf61162e565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790557fffffffff0000000000000000000000000000000000000000000000000000000092909216825286905260409020805473ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000006bffffffffffffffffffffffff8516021790555b73ffffffffffffffffffffffffffffffffffffffff8416600090815260018601602052604090208054806110bc576110bc611949565b6000828152602080822060087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90940193840401805463ffffffff600460078716026101000a0219169055919092557fffffffff00000000000000000000000000000000000000000000000000000000851682528690526040812081905581900361079457600285015460009061115590600190611932565b73ffffffffffffffffffffffffffffffffffffffff861660009081526001808901602052604090912001549091508082146112435760008760020183815481106111a1576111a161162e565b60009182526020909120015460028901805473ffffffffffffffffffffffffffffffffffffffff90921692508291849081106111df576111df61162e565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055929091168152600189810190925260409020018190555b8660020180548061125657611256611949565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff88168252600189810190915260408220015550505050505050565b803b80610c17576040517ff046a71400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461133f57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561138957600080fd5b6113928561131b565b93506113a06020860161131b565b925060408501359150606085013567ffffffffffffffff808211156113c457600080fd5b818701915087601f8301126113d857600080fd5b8135818111156113ea576113ea611344565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561143057611430611344565b816040528281528a602084870101111561144957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f84011261147f57600080fd5b50813567ffffffffffffffff81111561149757600080fd5b6020830191508360208260051b85010111156114b257600080fd5b9250929050565b60008083601f8401126114cb57600080fd5b50813567ffffffffffffffff8111156114e357600080fd5b6020830191508360208285010111156114b257600080fd5b60008060008060008060008060a0898b03121561151757600080fd5b6115208961131b565b975061152e60208a0161131b565b9650604089013567ffffffffffffffff8082111561154b57600080fd5b6115578c838d0161146d565b909850965060608b013591508082111561157057600080fd5b61157c8c838d0161146d565b909650945060808b013591508082111561159557600080fd5b506115a28b828c016114b9565b999c989b5096995094979396929594505050565b60008060008060008060a087890312156115cf57600080fd5b6115d88761131b565b95506115e66020880161131b565b94506040870135935060608701359250608087013567ffffffffffffffff81111561161057600080fd5b61161c89828a016114b9565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036116ec576116ec61168c565b5060010190565b60005b8381101561170e5781810151838201526020016116f6565b83811115610bbd5750506000910152565b600081518084526117378160208601602086016116f3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b84811015611894577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808a8503018652815188850173ffffffffffffffffffffffffffffffffffffffff8251168652848201516003811061181b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101561187f5783517fffffffff0000000000000000000000000000000000000000000000000000000016825292860192600192909201919086019061183d565b50978501979550505090820190600101611792565b505073ffffffffffffffffffffffffffffffffffffffff8a169088015286810360408801526118c3818961171f565b9a9950505050505050505050565b60006bffffffffffffffffffffffff8083168181036118f2576118f261168c565b6001019392505050565b6000825161190e8184602087016116f3565b9190910192915050565b60208152600061192b602083018461171f565b9392505050565b6000828210156119445761194461168c565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122049d8120a5062cd6af2e7b65c2fce3225ea56a1317b7b399c2079a44f27dfed1864736f6c634300080e0033c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c000000000000000000000000648e51e9e011dc332a9be155d0a3e52ae38d48d100000000000000000000000000ae9da036b2ff83be756bc8a77f3900ba878c89

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

000000000000000000000000648e51e9e011dc332a9be155d0a3e52ae38d48d100000000000000000000000000ae9da036b2ff83be756bc8a77f3900ba878c89

-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x648e51e9e011dc332a9be155d0a3e52ae38d48d1
Arg [1] : _diamondCutFacet (address): 0x00ae9da036b2ff83be756bc8a77f3900ba878c89

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000648e51e9e011dc332a9be155d0a3e52ae38d48d1
Arg [1] : 00000000000000000000000000ae9da036b2ff83be756bc8a77f3900ba878c89


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.