Contract 0xb124f9cade06a3d50207c4566faf879c3b7c257f 11

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa1a863a91f13e3ca19095bae87e67d46fcdbf84eef2da38f1a5c64eee6649fc7Buy Orders Multi...1767467242024-02-02 15:00:0174 days 8 hrs ago0x78db21844f480dd4d91bb619e4bbf72584b149a2 IN  Shift: Router0 ETH0.00024068 0.1
0xf3fb4730cac347d22ed5cc8c09199b269aaed010fad27b67b16ac71ac3e43194Buy Orders Multi...1762346432024-02-01 1:35:1975 days 22 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00023981 0.1
0x8e39e2c3b0bc1085f1f3cfb3ba95d63be3ad03171ab8d292d99386883cf586feBuy Orders Multi...1755565832024-01-30 1:06:0377 days 22 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00015088 0.1
0xe4d3a9ed5e7ac937cbb44656a62190080f93132e34ce870bbac34d2376253acdBuy Orders Multi...1755527922024-01-30 0:48:1777 days 22 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00016986 0.1
0x7955029be92db32abe667b45e593fca4a19c764cdfa5faa52d57c85221baa727Buy Orders Multi...1751976122024-01-28 23:31:2979 days 8 mins ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00010433 0.1
0xc3e6483e1ffb7b92c8c13579ab8fea770a684f9e2394ee3a5b2e126b03996556Buy Orders Multi...1748342212024-01-27 21:46:1580 days 1 hr ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00020692 0.1
0x75b11f8315fdad4af8576c3ad910c5e1501e080a92abade3cecd39673b35fdc5Buy Orders Multi...1743711092024-01-26 12:26:2181 days 11 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00020725 0.1
0x56b8df6eb923103cae659617cb0bfd1adb8d9187885155d3c419907211cc18f7Buy Orders Multi...1743644272024-01-26 11:58:0081 days 11 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00023794 0.1
0x890e84556b6831007d23a502e324937220715534c6b09c12e95b841210d572f8Buy Orders Multi...1736358252024-01-24 8:19:2183 days 15 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00024835 0.1
0x543e25ad459ce72b92e3902500be96a1922559b32b05525c3e9345d9291e973eBuy Orders Multi...1733077502024-01-23 9:14:5084 days 14 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00023865 0.1
0x624a25b582ce91109af0dce590c2fa28971f3dc552344b1722bf1b2f00cdb8b8Buy Orders Multi...1723919392024-01-20 15:38:5487 days 8 hrs ago0x3727220a0062dc00c08cc53186ca2d1cd3babe2f IN  Shift: Router0.006045 ETH0.00013047 0.1
0xfd0cc273d36ca34ee6a87f96d2834820990d18a5d53a12a722728e613f72eff0Buy Orders Multi...1723022332024-01-20 9:20:2287 days 14 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.0003523 0.1
0xbbe67e309d9c41f2ca86b30d6b842089590c2e148dd37a59ffb84b97e8d31f33Buy Orders Multi...1722884662024-01-20 8:22:2187 days 15 hrs ago0xd411c5c70339f15bce20dd033b5ffaa3f8d2806f IN  Shift: Router0 ETH0.00017982 0.1
0x310a8b16d71c58f0c4f5aaff78648a39792b0879668d52d2400e5f64a435443bBuy Orders Multi...1722339502024-01-20 4:32:3387 days 19 hrs ago0xd411c5c70339f15bce20dd033b5ffaa3f8d2806f IN  Shift: Router0 ETH0.0002741 0.1
0x4d8ddaa14d2f915c33017505105bb617ec21e69b11fd4b5f87ea65b42549e42bBuy Orders Multi...1720798072024-01-19 17:34:4688 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00219846 0.1
0xbcbe8cfd34b4c54435fae54cb60344c56620f922ac39bf54e564902bcc459ed5Buy Orders Multi...1719842982024-01-19 10:50:2488 days 12 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.00030638 0.1
0xf4504e87f209d07eed871982d6771a6d6259b083aee86b5b3200f6bab44d512aBuy Orders Multi...1717366172024-01-18 16:46:1389 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00054666 0.1
0xae760c4e95e6a94fd22b30a9350639cb7d468ec850b84af76efa3dcb9d40fc1aBuy Orders Multi...1717357572024-01-18 16:42:3489 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00049927 0.1
0xe15e6cbb6413fc213949f3e350f6d215f608e6b39a2fea4de1af6d45d3d7446aBuy Orders Multi...1717356642024-01-18 16:42:1089 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00136734 0.10177
0x4aa4a6f72702a316ea8da1e98a4d8bdacf07e6d4db4639033a72b2d8d22c067dBuy Orders Multi...1717355012024-01-18 16:41:2989 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00062859 0.10507
0xca29d43df1fe691d3c915ca564717b549bd38517e9f44e03b517a807088c4abfBuy Orders Multi...1717354562024-01-18 16:41:1889 days 6 hrs ago0xde3a6e895ba4946445d980841865e2eec553e050 IN  Shift: Router0 ETH0.00065171 0.10898
0xbec7911c00b51796130a00b3d19adfd4c110f78c00f744443f7f013b25d8a8b4Buy Orders Multi...1711374312024-01-16 21:00:1091 days 2 hrs ago0xbbdc8e177b6ee005a7b858866cedd1589540d3b8 IN  Shift: Router0 ETH0.0004515 0.1
0x7349cd2d49311d134b40e8af48f102b5045dad598082ef146d7e3fad93df2f49Buy Orders Multi...1701524902024-01-13 20:17:0494 days 3 hrs ago0xf8de1e04e35d3059ed38a80c23a85884c3a12833 IN  Shift: Router0 ETH0.000176330.1
0x44ad0f9307704d9e586e93be3c677eb1b263f74d2562654edbaffa543ca9ead5Buy Orders Multi...1693952872024-01-11 14:32:1696 days 9 hrs ago0x5f30e8e3329e7dcd843a887e6ac1acc19a83f604 IN  Shift: Router0 ETH0.0007053 0.1
0x7a97fe226f27146df2f545e8d77b01173e75dce122e8557d88b3efa2460e6f50Buy Orders Multi...1693944772024-01-11 14:28:5596 days 9 hrs ago0x5f30e8e3329e7dcd843a887e6ac1acc19a83f604 IN  Shift: Router0 ETH0.00059673 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x624a25b582ce91109af0dce590c2fa28971f3dc552344b1722bf1b2f00cdb8b81723919392024-01-20 15:38:5487 days 8 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.003 ETH
0x624a25b582ce91109af0dce590c2fa28971f3dc552344b1722bf1b2f00cdb8b81723919392024-01-20 15:38:5487 days 8 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.003 ETH
0xb097f1d770f4fb0225e7fa9eac1210b87fb0b557f916ab6f64ee1317378863ea1676118052024-01-06 7:49:51101 days 15 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.003 ETH
0xb486ac990e8c83d774dbc62b6ac3b709c83c251345e075687b5bb06b1b9814b71676117442024-01-06 7:49:35101 days 15 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.003 ETH
0xb486ac990e8c83d774dbc62b6ac3b709c83c251345e075687b5bb06b1b9814b71676117442024-01-06 7:49:35101 days 15 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.003 ETH
0x4247d0816e1f388ea32851615d204af39e0ef99c4d23b3ecf9588da6d9933a3e1633303352023-12-24 17:09:13114 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.01 ETH
0x496ec132b3e91678eeb0dd990207cfb65225d636607e864dd77f5d39537d66f31632933012023-12-24 14:31:41114 days 9 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0032 ETH
0x4aea8fd65042702f96fc1d76095fdf69c1af9054982790cd490487e2b4d667231632928342023-12-24 14:29:42114 days 9 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0069 ETH
0x493da2861d48b0d9d3c60e8327c740bf936f0ed706776a60928161810af561e11628978762023-12-23 10:23:51115 days 13 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.008 ETH
0x446c6d08c7417df7dd6155a317acf0b726dbcad364601da6c1c9feebe4e7fc6c1628977382023-12-23 10:23:16115 days 13 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.008 ETH
0x648190c878b9410b4c56c1b786421437f6b3e2dc1116b2b9f4749d4aab6058fd1627286082023-12-22 22:23:31116 days 1 hr ago Shift: Router Treasure DAO: Trove Marketplace0.002 ETH
0xee7a9a0a624c04257c2aaac3a1d4835436b8c68f75c95c0ec70940760a61f2841621389242023-12-21 4:51:52117 days 18 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0009 ETH
0xc6e3ccd6fce546dd33650977b9dde4b113b3ac48aa9d468545a2914869b6600a1619881992023-12-20 18:07:59118 days 5 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.01 ETH
0xb7197e7e379408b9c831a334dc0743bc512e3e63906e14412a6830cc81e72f171619876102023-12-20 18:05:30118 days 5 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0069 ETH
0x5d445457bd2c1b942ec82c687b1c6ffef13332a9887ffa7c9db299eb8b05b16e1619869872023-12-20 18:02:57118 days 5 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0069 ETH
0x5d445457bd2c1b942ec82c687b1c6ffef13332a9887ffa7c9db299eb8b05b16e1619869872023-12-20 18:02:57118 days 5 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.007 ETH
0xe46af5ad409391061a749e345d49cf1a76d59197b3c4b145fbf45b18b6d657351619862552023-12-20 17:59:52118 days 5 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.007 ETH
0x660cf5103c9158da8d765e469f7bedf21008a7643f3079ad7848bd1e7289eeda1617599642023-12-20 1:19:40118 days 22 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.0009 ETH
0x8f4f55f0a96c0640fa2dee57d1cb633dcf31aebe14131e2f7de890afff913f8b1609982302023-12-17 17:35:48121 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0xcbe42b57b20fee14f494790128552ecbce07b7d1d0eb9a355648e35b50e63b101609981312023-12-17 17:35:21121 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0xb8049485cf9671fcb177e243aaa131b06c89726224955fa338998da8a875916b1609976252023-12-17 17:32:59121 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0x61bf0866485b61648349fb4cfa3ce1ccc45d2af232bab87bd26b05cd5f20d0d61609960582023-12-17 17:25:41121 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0x0c4f5ba57ceef3eaa9c9eec699f07737cebc930428d97cf186494384431cbc6a1609955842023-12-17 17:23:30121 days 6 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0xb208f0ab6875ec1b957733f98bc23af4a123f94297d2c54035a3ccad3efe0d001606757622023-12-16 16:02:26122 days 7 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 ETH
0x76e6aba7bc06a4a5880e1a8715e12518daccdf6c27de21bf816e0186226527401605143352023-12-16 4:40:38122 days 18 hrs ago Shift: Router Treasure DAO: Trove Marketplace0.001 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

Deployed Bytecode

0x6080604052600436106100385760003560e01c8063150b7a021461013b578063bc197c81146101b4578063f23a6e61146101fc5761003f565b3661003f57005b600080357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff1680610117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f7420657869737460448201526064015b60405180910390fd5b3660008037600080366000845af43d6000803e808015610136573d6000f35b3d6000fd5b34801561014757600080fd5b5061017f610156366004611373565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200160405180910390f35b3480156101c057600080fd5b5061017f6101cf3660046114fb565b7fbc197c810000000000000000000000000000000000000000000000000000000098975050505050505050565b34801561020857600080fd5b5061017f6102173660046115b6565b7ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b7f586d3bf3558e5ffe721c6f44f4451880e303fa89b73bd2c30250f8d38c80d09c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b83518110156104785760008482815181106102f8576102f861162e565b6020026020010151602001519050600060028111156103195761031961165d565b81600281111561032b5761032b61165d565b03610379576103748583815181106103455761034561162e565b6020026020010151600001518684815181106103635761036361162e565b6020026020010151604001516104c3565b610465565b600181600281111561038d5761038d61165d565b036103d6576103748583815181106103a7576103a761162e565b6020026020010151600001518684815181106103c5576103c561162e565b60200260200101516040015161079b565b60028160028111156103ea576103ea61165d565b03610433576103748583815181106104045761040461162e565b6020026020010151600001518684815181106104225761042261162e565b602002602001015160400151610a7c565b6040517f062f2eb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080610470816116bb565b9150506102db565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516104ac93929190611769565b60405180910390a16104be8282610bc3565b505050565b60008151116104fe576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff831661056c576040517fddbadd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff821690036105b4576105b48285610d5b565b60005b83518110156107945760008482815181106105d4576105d461162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff168015610687576040517f501e70c70000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008316600482015260240161010e565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff0000000000000000000000000000000000000000161790558361077c816118d1565b9450505050808061078c906116bb565b9150506105b7565b5050505050565b60008151116107d6576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff8316610844576040517fddbadd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff8216900361088c5761088c8285610d5b565b60005b83518110156107945760008482815181106108ac576108ac61162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff9081169087168103610964576040517fe020c4580000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008316600482015260240161010e565b61096f858284610dd1565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905583610a64816118d1565b94505050508080610a74906116bb565b91505061088f565b6000815111610ab7576040517f92d2fe5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff831615610b26576040517f6f997f9400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015610bbd576000838281518110610b4657610b4661162e565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529185905260409091205490915073ffffffffffffffffffffffffffffffffffffffff16610ba8848284610dd1565b50508080610bb5906116bb565b915050610b29565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c1b57805115610c17576040517fc21b1ab700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8051600003610c56576040517fc047a18400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82163014610c7c57610c7c826112e2565b6000808373ffffffffffffffffffffffffffffffffffffffff1683604051610ca491906118fc565b600060405180830381855af49150503d8060008114610cdf576040519150601f19603f3d011682016040523d82523d6000602084013e610ce4565b606091505b509150915081610bbd57805115610d2957806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161010e9190611918565b6040517f3a18f8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d64816112e2565b60028201805473ffffffffffffffffffffffffffffffffffffffff90921660008181526001948501602090815260408220860185905594840183559182529290200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b73ffffffffffffffffffffffffffffffffffffffff8216610e42576040517f5205a6000000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008216600482015260240161010e565b3073ffffffffffffffffffffffffffffffffffffffff831603610eb5576040517f69731c500000000000000000000000000000000000000000000000000000000081527fffffffff000000000000000000000000000000000000000000000000000000008216600482015260240161010e565b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152602084815260408083205473ffffffffffffffffffffffffffffffffffffffff86168452600180880190935290832054740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169291610f3f91611932565b90508082146110865773ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260408120805483908110610f8157610f8161162e565b6000918252602080832060088304015473ffffffffffffffffffffffffffffffffffffffff8916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610fdf57610fdf61162e565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790557fffffffff0000000000000000000000000000000000000000000000000000000092909216825286905260409020805473ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000006bffffffffffffffffffffffff8516021790555b73ffffffffffffffffffffffffffffffffffffffff8416600090815260018601602052604090208054806110bc576110bc611949565b6000828152602080822060087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90940193840401805463ffffffff600460078716026101000a0219169055919092557fffffffff00000000000000000000000000000000000000000000000000000000851682528690526040812081905581900361079457600285015460009061115590600190611932565b73ffffffffffffffffffffffffffffffffffffffff861660009081526001808901602052604090912001549091508082146112435760008760020183815481106111a1576111a161162e565b60009182526020909120015460028901805473ffffffffffffffffffffffffffffffffffffffff90921692508291849081106111df576111df61162e565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055929091168152600189810190925260409020018190555b8660020180548061125657611256611949565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff88168252600189810190915260408220015550505050505050565b803b80610c17576040517ff046a71400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461133f57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561138957600080fd5b6113928561131b565b93506113a06020860161131b565b925060408501359150606085013567ffffffffffffffff808211156113c457600080fd5b818701915087601f8301126113d857600080fd5b8135818111156113ea576113ea611344565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561143057611430611344565b816040528281528a602084870101111561144957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f84011261147f57600080fd5b50813567ffffffffffffffff81111561149757600080fd5b6020830191508360208260051b85010111156114b257600080fd5b9250929050565b60008083601f8401126114cb57600080fd5b50813567ffffffffffffffff8111156114e357600080fd5b6020830191508360208285010111156114b257600080fd5b60008060008060008060008060a0898b03121561151757600080fd5b6115208961131b565b975061152e60208a0161131b565b9650604089013567ffffffffffffffff8082111561154b57600080fd5b6115578c838d0161146d565b909850965060608b013591508082111561157057600080fd5b61157c8c838d0161146d565b909650945060808b013591508082111561159557600080fd5b506115a28b828c016114b9565b999c989b5096995094979396929594505050565b60008060008060008060a087890312156115cf57600080fd5b6115d88761131b565b95506115e66020880161131b565b94506040870135935060608701359250608087013567ffffffffffffffff81111561161057600080fd5b61161c89828a016114b9565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036116ec576116ec61168c565b5060010190565b60005b8381101561170e5781810151838201526020016116f6565b83811115610bbd5750506000910152565b600081518084526117378160208601602086016116f3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b84811015611894577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808a8503018652815188850173ffffffffffffffffffffffffffffffffffffffff8251168652848201516003811061181b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101561187f5783517fffffffff0000000000000000000000000000000000000000000000000000000016825292860192600192909201919086019061183d565b50978501979550505090820190600101611792565b505073ffffffffffffffffffffffffffffffffffffffff8a169088015286810360408801526118c3818961171f565b9a9950505050505050505050565b60006bffffffffffffffffffffffff8083168181036118f2576118f261168c565b6001019392505050565b6000825161190e8184602087016116f3565b9190910192915050565b60208152600061192b602083018461171f565b9392505050565b6000828210156119445761194461168c565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122049d8120a5062cd6af2e7b65c2fce3225ea56a1317b7b399c2079a44f27dfed1864736f6c634300080e0033

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.