ETH Price: $3,395.93 (+1.83%)

Contract

0x4ba00fB6A24B2813a9f515de01A9f65f48FeFe89
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...187995242023-12-16 15:30:11378 days ago1702740611IN
0x4ba00fB6...f48FeFe89
0 ETH0.0023782959.27658806
Set Approval For...187900212023-12-15 7:26:47379 days ago1702625207IN
0x4ba00fB6...f48FeFe89
0 ETH0.0016611941.40347737
Set Approval For...187818852023-12-14 4:03:59380 days ago1702526639IN
0x4ba00fB6...f48FeFe89
0 ETH0.0020654651.47957832
Set Approval For...186733102023-11-28 23:10:35395 days ago1701213035IN
0x4ba00fB6...f48FeFe89
0 ETH0.0021043133.92192055
Set Approval For...186636732023-11-27 14:48:23397 days ago1701096503IN
0x4ba00fB6...f48FeFe89
0 ETH0.0021819835.17398419
Set Approval For...186634792023-11-27 14:09:11397 days ago1701094151IN
0x4ba00fB6...f48FeFe89
0 ETH0.0025569541.21859849
Set Approval For...186619302023-11-27 8:56:35397 days ago1701075395IN
0x4ba00fB6...f48FeFe89
0 ETH0.0008558621.33159371
Set Approval For...186608202023-11-27 5:12:23397 days ago1701061943IN
0x4ba00fB6...f48FeFe89
0 ETH0.0011438218.43870968
Set Approval For...186601842023-11-27 3:04:47397 days ago1701054287IN
0x4ba00fB6...f48FeFe89
0 ETH0.001627826.24055109
Set Approval For...186585252023-11-26 21:28:59397 days ago1701034139IN
0x4ba00fB6...f48FeFe89
0 ETH0.0016690326.90513191
Set Approval For...186559162023-11-26 12:42:11398 days ago1701002531IN
0x4ba00fB6...f48FeFe89
0 ETH0.0013349221.51932178
Set Approval For...186498022023-11-25 16:08:47399 days ago1700928527IN
0x4ba00fB6...f48FeFe89
0 ETH0.0020798733.52797096
Set Approval For...186489642023-11-25 13:18:59399 days ago1700918339IN
0x4ba00fB6...f48FeFe89
0 ETH0.0013758622.1792697
Set Approval For...186488222023-11-25 12:50:35399 days ago1700916635IN
0x4ba00fB6...f48FeFe89
0 ETH0.0014139122.79261807
Set Approval For...186434912023-11-24 18:55:59400 days ago1700852159IN
0x4ba00fB6...f48FeFe89
0 ETH0.0019675831.71788429
Set Approval For...186376922023-11-23 23:26:11400 days ago1700781971IN
0x4ba00fB6...f48FeFe89
0 ETH0.0013039121.01936313
Set Approval For...186310542023-11-23 1:07:59401 days ago1700701679IN
0x4ba00fB6...f48FeFe89
0 ETH0.0036944459.55516412
Set Approval For...186294602023-11-22 19:47:47402 days ago1700682467IN
0x4ba00fB6...f48FeFe89
0 ETH0.0031998651.58251027
Set Approval For...186279112023-11-22 14:36:47402 days ago1700663807IN
0x4ba00fB6...f48FeFe89
0 ETH0.0037801660.93705422
Set Approval For...186202812023-11-21 12:57:59403 days ago1700571479IN
0x4ba00fB6...f48FeFe89
0 ETH0.0018660430.08105387
Set Approval For...186141172023-11-20 16:14:11404 days ago1700496851IN
0x4ba00fB6...f48FeFe89
0 ETH0.002751844.35959709
Set Approval For...186127812023-11-20 11:44:35404 days ago1700480675IN
0x4ba00fB6...f48FeFe89
0 ETH0.001916830.89927012
Safe Transfer Fr...186126782023-11-20 11:23:47404 days ago1700479427IN
0x4ba00fB6...f48FeFe89
0 ETH0.0016664130.44734997
Set Approval For...186098992023-11-20 2:03:23404 days ago1700445803IN
0x4ba00fB6...f48FeFe89
0 ETH0.001300420.99124685
Set Approval For...186086112023-11-19 21:44:11404 days ago1700430251IN
0x4ba00fB6...f48FeFe89
0 ETH0.0021283834.35649519
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
187995242023-12-16 15:30:11378 days ago1702740611
0x4ba00fB6...f48FeFe89
0 ETH
187900212023-12-15 7:26:47379 days ago1702625207
0x4ba00fB6...f48FeFe89
0 ETH
187818852023-12-14 4:03:59380 days ago1702526639
0x4ba00fB6...f48FeFe89
0 ETH
186733172023-11-28 23:11:59395 days ago1701213119
0x4ba00fB6...f48FeFe89
0 ETH
186733102023-11-28 23:10:35395 days ago1701213035
0x4ba00fB6...f48FeFe89
0 ETH
186636752023-11-27 14:48:47397 days ago1701096527
0x4ba00fB6...f48FeFe89
0 ETH
186636732023-11-27 14:48:23397 days ago1701096503
0x4ba00fB6...f48FeFe89
0 ETH
186634802023-11-27 14:09:23397 days ago1701094163
0x4ba00fB6...f48FeFe89
0 ETH
186634792023-11-27 14:09:11397 days ago1701094151
0x4ba00fB6...f48FeFe89
0 ETH
186634732023-11-27 14:07:59397 days ago1701094079
0x4ba00fB6...f48FeFe89
0 ETH
186634732023-11-27 14:07:59397 days ago1701094079
0x4ba00fB6...f48FeFe89
0 ETH
186623162023-11-27 10:14:11397 days ago1701080051
0x4ba00fB6...f48FeFe89
0 ETH
186619302023-11-27 8:56:35397 days ago1701075395
0x4ba00fB6...f48FeFe89
0 ETH
186608232023-11-27 5:12:59397 days ago1701061979
0x4ba00fB6...f48FeFe89
0 ETH
186608202023-11-27 5:12:23397 days ago1701061943
0x4ba00fB6...f48FeFe89
0 ETH
186601842023-11-27 3:04:47397 days ago1701054287
0x4ba00fB6...f48FeFe89
0 ETH
186585272023-11-26 21:29:23397 days ago1701034163
0x4ba00fB6...f48FeFe89
0 ETH
186585252023-11-26 21:28:59397 days ago1701034139
0x4ba00fB6...f48FeFe89
0 ETH
186580362023-11-26 19:50:59398 days ago1701028259
0x4ba00fB6...f48FeFe89
0 ETH
186559182023-11-26 12:42:35398 days ago1701002555
0x4ba00fB6...f48FeFe89
0 ETH
186559162023-11-26 12:42:11398 days ago1701002531
0x4ba00fB6...f48FeFe89
0 ETH
186498042023-11-25 16:09:11399 days ago1700928551
0x4ba00fB6...f48FeFe89
0 ETH
186498022023-11-25 16:08:47399 days ago1700928527
0x4ba00fB6...f48FeFe89
0 ETH
186489662023-11-25 13:19:23399 days ago1700918363
0x4ba00fB6...f48FeFe89
0 ETH
186489642023-11-25 13:18:59399 days ago1700918339
0x4ba00fB6...f48FeFe89
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdidasCrazyfastBugatti

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

/// @title adidas x Crazyfast Bugatti Auction
contract AdidasCrazyfastBugatti is
    ERC1155Supply,
    ERC1155Burnable,
    ERC2981,
    DefaultOperatorFilterer,
    Ownable,
    Pausable,
    ReentrancyGuard
{
    using Strings for uint256;

    struct Bid {
        /// @dev Actual ETH amount
        uint128 value;
        /// @dev Calculated bid value including boost, if applied
        uint128 bidAmount;
        /// @dev Address of the bidder
        address bidder;
        /// @dev Shoe size
        uint8 size;
        /// @dev Whether the bid has been refunded
        bool isRefunded;
    }

    struct Size {
        uint8 supply;
        Bid[] topBids;
    }

    /// @notice Percentage amount of boosted allow-list bids
    uint256 public immutable ALLOWLIST_BOOST;

    /// @notice Auction starting price for all items
    uint256 public startingPrice;

    /// @notice Minimum bid increment above previous bid
    uint256 public constant MINIMUM_INCREMENT = 0.01 ether;

    /// @notice Initialize the bid count for bids
    uint96 public bidCount;

    /// @notice Initialize the bid count for bid top-ups
    uint96 public topUpCount;

    /// @notice Unix timestamp for auction start
    uint256 public auctionStart;

    /// @notice Unix timestamp for auction end
    uint256 public auctionEnd;

    /// @notice Merkle root for allow-list wallet addresses
    bytes32 public merkleRoot;

    /// @notice Mintpass token name
    string public name;

    /// @notice Mintpass token symbol
    string public symbol;

    mapping(uint256 => mapping(address => Bid[])) public bids;
    mapping(uint256 => mapping(address => uint256)) private bidderToTopBidIndex;
    mapping(uint256 => Size) public shoeSize;

    event BidPlaced(
        address indexed bidder,
        uint8 indexed size,
        uint256 deposit,
        uint128 bidValue,
        bool indexed topUp
    );

    event BidRefunded(
        uint8 indexed size,
        address indexed outbidBy,
        uint128 outbidAmount,
        address indexed refundBidder,
        uint128 calculatedBidAmount,
        uint128 refund
    );

    constructor(
        uint8[] memory _sizes,
        uint8[] memory _supply,
        uint256 _auctionStart,
        uint256 _auctionEnd,
        uint256 _allowList,
        uint256 _startingPrice,
        uint96 _value,
        address _recipient,
        bytes32 _merkleRoot,
        string memory _baseUri,
        string memory _name,
        string memory _symbol
    ) ERC1155(_baseUri) {
        _setDefaultRoyalty(_recipient, _value);
        auctionStart = _auctionStart;
        auctionEnd = _auctionEnd;
        ALLOWLIST_BOOST = _allowList;
        startingPrice = _startingPrice;
        merkleRoot = _merkleRoot;
        name = _name;
        symbol = _symbol;
        require(_sizes.length == _supply.length, "Mismatch between sizes and supply amounts");
        unchecked {
            for (uint i = 0; i < _sizes.length; i++) {
                require(_supply[i] > 0, "Supply cannot be zero");
                shoeSize[_sizes[i]].supply = _supply[i];
            }
        }
    }

    /// @notice Handle new bids and top-up bids
    /// @param size The shoe size
    /// @param merkleProof If user is in the allowlist, the merkle proof
    function handleBid(
        uint8 size,
        bytes32[] calldata merkleProof
    ) public payable nonReentrant whenNotPaused {
        Size storage shoe = shoeSize[size];
        require(
            block.timestamp >= auctionStart && block.timestamp <= auctionEnd && shoe.supply > 0,
            "Invalid bid conditions"
        );

        bool isAllowListed = (merkleProof.length > 0) && verifyAllowList(merkleProof, msg.sender);
        uint128 bidIncrement = isAllowListed
            ? uint128((msg.value * ALLOWLIST_BOOST) / 100)
            : uint128(msg.value);
        uint256 index = bidderToTopBidIndex[size][msg.sender];
        Bid[] storage userBids = bids[size][msg.sender];

        if (index > 0) {
            require(
                msg.value >= MINIMUM_INCREMENT,
                "You must top up your bid by at least 0.01 ETH"
            );
            unchecked {
                Bid storage existingTopBid = shoe.topBids[index - 1];
                existingTopBid.value += uint128(msg.value);
                existingTopBid.bidAmount += bidIncrement;
                userBids[userBids.length - 1] = existingTopBid;
                topUpCount++;
                emit BidPlaced(
                    existingTopBid.bidder,
                    size,
                    msg.value,
                    existingTopBid.bidAmount,
                    true
                );
            }
            return;
        }

        Bid memory newBid = Bid({
            value: uint128(msg.value),
            bidAmount: bidIncrement,
            bidder: msg.sender,
            size: size,
            isRefunded: false
        });

        uint256 currentTopBidsCount = shoe.topBids.length;

        if (currentTopBidsCount >= shoe.supply) {
            Bid memory lowestBid = shoe.topBids[0];
            unchecked {
                for (uint256 i = 1; i < currentTopBidsCount; i++) {
                    if (shoe.topBids[i].bidAmount < lowestBid.bidAmount) {
                        lowestBid = shoe.topBids[i];
                    }
                }
            }
            require(
                msg.value >= lowestBid.bidAmount + MINIMUM_INCREMENT,
                "Bid must be at least 0.01 ETH higher than the current minimum bid"
            );

            uint256 lowestBidIndex = bidderToTopBidIndex[size][lowestBid.bidder] - 1;
            Bid[] storage userToRefundBids = bids[size][lowestBid.bidder];
            uint256 lastBidIndex = userToRefundBids.length - 1;

            userToRefundBids[lastBidIndex].isRefunded = true;
            bidderToTopBidIndex[size][lowestBid.bidder] = 0;
            bidderToTopBidIndex[size][msg.sender] = lowestBidIndex + 1;
            shoe.topBids[lowestBidIndex] = newBid;
            lowestBid.bidder.call{value: lowestBid.value}("");

            emit BidRefunded(
                size,
                newBid.bidder,
                newBid.value,
                lowestBid.bidder,
                lowestBid.bidAmount,
                lowestBid.value
            );
        } else {
            require(
                msg.value >= startingPrice,
                "Bid must be equal to or greater than the starting price"
            );
            shoe.topBids.push(newBid);
            bidderToTopBidIndex[size][msg.sender] = currentTopBidsCount + 1;
        }

        userBids.push(newBid);
        unchecked {
            bidCount++;
        }

        emit BidPlaced(newBid.bidder, size, msg.value, newBid.bidAmount, false);
    }

    /// @notice Gets all winning/top bids for a given shoe size
    /// @param size The shoe size
    /// @return An array of Bids
    function getTopBids(uint8 size) public view returns (Bid[] memory) {
        return shoeSize[size].topBids;
    }

    /// @notice Simulator function to return the minimum amount of ETH needed for a new bid
    /// @param sizes The array of sizes to get prices for
    /// @return An array of prices by size
    function getMinimumPrices(uint8[] memory sizes) public view returns (uint256[] memory) {
        unchecked {
            uint256[] memory prices = new uint256[](sizes.length);
            for (uint256 i = 0; i < sizes.length; i++) {
                Size memory shoe = shoeSize[sizes[i]];
                require(shoe.supply > 0, "Invalid shoe size");
                Bid[] memory topBids = shoe.topBids;
                if (topBids.length == 0 || topBids.length < shoe.supply) {
                    prices[i] = startingPrice;
                } else {
                    uint256 lowestBidAmount = topBids[0].bidAmount;
                    for (uint256 j = 1; j < topBids.length; j++) {
                        lowestBidAmount = (topBids[j].bidAmount < lowestBidAmount)
                            ? topBids[j].bidAmount
                            : lowestBidAmount;
                    }
                    prices[i] = lowestBidAmount + MINIMUM_INCREMENT;
                }
            }
            return prices;
        }
    }

    /// @notice Gets all bids placed by a specific address for a range of shoe sizes
    /// @param sizes The shoe sizes
    /// @param bidder The address of the bidder
    /// @return An array of arrays of bids where each element corresponds to a bid
    function getBidsByBidder(
        address bidder,
        uint8[] calldata sizes
    ) public view returns (Bid[] memory) {
        unchecked {
            uint256 totalBids = 0;

            for (uint256 i = 0; i < sizes.length; i++) {
                totalBids += bids[sizes[i]][bidder].length;
            }

            Bid[] memory allBids = new Bid[](totalBids);
            uint256 index = 0;

            for (uint256 i = 0; i < sizes.length; i++) {
                Bid[] memory currentBids = bids[sizes[i]][bidder];
                for (uint256 j = 0; j < currentBids.length; j++) {
                    allBids[index] = currentBids[j];
                    index++;
                }
            }
            return allBids;
        }
    }

    /// @notice Gets all the winning/top bidders' addresses for all sizes
    /// @param sizes An array of all shoe sizes to check
    /// @return An array of arrays of addresses where each element corresponds to top bid addresses for a size
    function getWinningBidders(uint8[] calldata sizes) public view returns (address[][] memory) {
        unchecked {
            address[][] memory winningBidders = new address[][](sizes.length);

            for (uint256 i = 0; i < sizes.length; i++) {
                uint8 currentSize = sizes[i];
                Bid[] memory topBids = shoeSize[currentSize].topBids;
                winningBidders[i] = new address[](topBids.length);

                for (uint256 j = 0; j < topBids.length; j++) {
                    winningBidders[i][j] = topBids[j].bidder;
                }
            }
            return winningBidders;
        }
    }

    /// @notice Verifies if a user is in the allowlist by checking the merkle proof
    /// @param proof The merkle proof provided by the user
    /// @param user The address of the user
    /// @return A boolean indicating whether the user is in the allowlist
    function verifyAllowList(bytes32[] calldata proof, address user) public view returns (bool) {
        bytes32 node = keccak256(abi.encodePacked(user));
        return MerkleProof.verifyCalldata(proof, merkleRoot, node);
    }

    /// @notice Sets the merkle root for the allowlist
    /// @param _merkleRoot The new merkle root
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /// @notice Sets the auction start and end times
    /// @param start The start time for the auction in unix epoch seconds
    /// @param end The end time for the auction in unix epoch seconds
    function setAuctionTimes(uint256 start, uint256 end) public onlyOwner {
        require(start < end, "Auction end time must be after start time");
        auctionStart = start;
        auctionEnd = end;
    }

    ///  @notice Set the auction starting price for all shoe sizes
    ///  @param newStartingPrice The new starting price
    function setStartingPrice(uint256 newStartingPrice) public onlyOwner {
        startingPrice = newStartingPrice;
    }

    /// @notice Pauses the contract, blocking all state-changing operations
    function pause() external onlyOwner {
        _pause();
    }

    /// @notice Unpauses the contract, allowing state-changing operations
    function unpause() external onlyOwner {
        _unpause();
    }

    /// @notice Release funds to owner after auction ends
    function releaseFunds() public onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success, "Failed to release funds");
    }

    /// @notice Mint mintpasses for auction winners
    /// @param recipients The addresses to receive the tokens
    /// @param amounts The amounts of tokens to mint
    /// @param tokenIds The IDs of the tokens to mint
    function mintBatch(
        address[] calldata recipients,
        uint256[] calldata amounts,
        uint256[] calldata tokenIds
    ) public onlyOwner {
        require(recipients.length == tokenIds.length, "Mismatched data");
        unchecked {
            for (uint256 i = 0; i < recipients.length; i++) {
                _mint(recipients[i], tokenIds[i], amounts[i], "");
            }
        }
    }

    /// @notice Token metadata URI
    /// @param id The tokenId
    function uri(uint256 id) public view override returns (string memory) {
        return string(abi.encodePacked(super.uri(id), Strings.toString(id)));
    }

    /// @notice Sets the base URI for the token's metadata
    /// @param baseUri The new base URI
    function setURI(string calldata baseUri) external onlyOwner {
        _setURI(baseUri);
    }

    /// @notice Sets the name and symbol for the token's metadata
    /// @param newName The new token name
    /// @param newSymbol The new token symbol
    function setNameAndSymbol(
        string calldata newName,
        string calldata newSymbol
    ) external onlyOwner {
        name = newName;
        symbol = newSymbol;
    }

    /// @notice Sets the default royalty for the token
    /// @param receiver The receiver of the royalty fees
    /// @param feeNumerator The value of the royalty fees
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) whenNotPaused {
        super.setApprovalForAll(operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) whenNotPaused {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC1155, ERC2981) returns (bool) {
        return ERC1155.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }
}

File 2 of 24 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

File 3 of 24 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 4 of 24 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 24 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 6 of 24 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 7 of 24 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `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 memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - 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[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 8 of 24 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(address account, uint256 id, uint256 value) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 9 of 24 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 10 of 24 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 11 of 24 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 12 of 24 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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.8.0/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 14 of 24 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 15 of 24 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 16 of 24 : 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 17 of 24 : 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 18 of 24 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 19 of 24 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 20 of 24 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 21 of 24 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 22 of 24 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 23 of 24 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 24 of 24 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint8[]","name":"_sizes","type":"uint8[]"},{"internalType":"uint8[]","name":"_supply","type":"uint8[]"},{"internalType":"uint256","name":"_auctionStart","type":"uint256"},{"internalType":"uint256","name":"_auctionEnd","type":"uint256"},{"internalType":"uint256","name":"_allowList","type":"uint256"},{"internalType":"uint256","name":"_startingPrice","type":"uint256"},{"internalType":"uint96","name":"_value","type":"uint96"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":true,"internalType":"uint8","name":"size","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"bidValue","type":"uint128"},{"indexed":true,"internalType":"bool","name":"topUp","type":"bool"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"size","type":"uint8"},{"indexed":true,"internalType":"address","name":"outbidBy","type":"address"},{"indexed":false,"internalType":"uint128","name":"outbidAmount","type":"uint128"},{"indexed":true,"internalType":"address","name":"refundBidder","type":"address"},{"indexed":false,"internalType":"uint128","name":"calculatedBidAmount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"refund","type":"uint128"}],"name":"BidRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ALLOWLIST_BOOST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_INCREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bidCount","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bids","outputs":[{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"bidAmount","type":"uint128"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint8","name":"size","type":"uint8"},{"internalType":"bool","name":"isRefunded","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint8[]","name":"sizes","type":"uint8[]"}],"name":"getBidsByBidder","outputs":[{"components":[{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"bidAmount","type":"uint128"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint8","name":"size","type":"uint8"},{"internalType":"bool","name":"isRefunded","type":"bool"}],"internalType":"struct AdidasCrazyfastBugatti.Bid[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"sizes","type":"uint8[]"}],"name":"getMinimumPrices","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"size","type":"uint8"}],"name":"getTopBids","outputs":[{"components":[{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"bidAmount","type":"uint128"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint8","name":"size","type":"uint8"},{"internalType":"bool","name":"isRefunded","type":"bool"}],"internalType":"struct AdidasCrazyfastBugatti.Bid[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"sizes","type":"uint8[]"}],"name":"getWinningBidders","outputs":[{"internalType":"address[][]","name":"","type":"address[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"size","type":"uint8"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"handleBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setAuctionTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"},{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStartingPrice","type":"uint256"}],"name":"setStartingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shoeSize","outputs":[{"internalType":"uint8","name":"supply","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"topUpCount","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"verifyAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a060405234620007cf575f620048d2908138038092620000228260a0620008d7565b60a0396101808212620007cf5760a0516001600160401b038111620007cf5762000054908360a0019060a001620008fb565b60c0516001600160401b038111620007cf5762000079908460a0019060a001620008fb565b60e051610100516101205161014051610160519794959493929091906001600160601b0389168903620007cf5761018051936001600160a01b0385168503620007cf576101a0516101c0519095906001600160401b038111620007cf57620000e9908860a0019060a00162000973565b6101e051909b906001600160401b038111620007cf5762000112908960a0019060a00162000973565b610200519098906001600160401b038111620007cf576200013a9160a0019060a00162000973565b8c51909c6001600160401b038211620006ab5760025490600182811c92168015620008cc575b6020831014620008b85781601f8493116200085a575b50602090601f8311600114620007df575f92620007d3575b50508160011b915f199060031b1c1916176002555b6daaeb6d7670e522a718067333cd4e803b62000759575b5060065460405190336001600160a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08f80a36001600160a81b0319163360ff60a01b19161760065560016007556127106001600160601b038316116200070457506001600160a01b03821615620006bf57604080519081018082116001600160401b0390911117620006ab57604081810190526001600160a01b03929092168083526001600160601b03821660209093019290925260a01b6001600160a01b03191617600455600a55600b55608052600855600c558051906001600160401b0382116200069757600d54600181811c911680156200068c575b602082101462000678579081601f84931162000617575b50602090601f8311600114620005a257869262000596575b50508160011b915f199060031b1c191617600d555b83516001600160401b0381116200058257600e54600181811c9116801562000577575b60208210146200056357601f81116200050d575b50602094601f8211600114620004995794849582939495926200048d575b50508160011b915f199060031b1c191617600e555b80518251036200043657825b8151811015620004165760ff90816200038c8286620009e7565b511615620003d15781600192620003a48387620009e7565b511690620003b38386620009e7565b511686526011602052604086209060ff198254161790550162000372565b60405162461bcd60e51b815260206004820152601560248201527f537570706c792063616e6e6f74206265207a65726f00000000000000000000006044820152606490fd5b604051613e61908162000a1182396080518181816108ca01526132150152f35b60405162461bcd60e51b815260206004820152602960248201527f4d69736d61746368206265747765656e2073697a657320616e6420737570706c6044820152687920616d6f756e747360b81b6064820152608490fd5b015190505f8062000351565b600e8552601f198216955f805160206200489283398151915291865b888110620004f457508360019596979810620004db575b505050811b01600e5562000366565b01515f1960f88460031b161c191690555f8080620004cc565b91926020600181928685015181550194019201620004b5565b600e85525f8051602062004892833981519152601f830160051c8101916020841062000558575b601f0160051c01905b8181106200054c575062000333565b8581556001016200053d565b909150819062000534565b634e487b7160e01b85526022600452602485fd5b90607f16906200031f565b634e487b7160e01b84526041600452602484fd5b015190505f80620002e7565b600d87525f80516020620048b28339815191529250601f198416875b818110620005fe5750908460019594939210620005e5575b505050811b01600d55620002fc565b01515f1960f88460031b161c191690555f8080620005d6565b92936020600181928786015181550195019301620005be565b600d87529091505f80516020620048b2833981519152601f840160051c810191602085106200066d575b90601f859493920160051c01905b8181106200065e5750620002cf565b8781558493506001016200064f565b909150819062000641565b634e487b7160e01b86526022600452602486fd5b90607f1690620002b8565b634e487b7160e01b85526041600452602485fd5b634e487b7160e01b5f52604160045260245ffd5b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b62461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b803b15620007cf575f8091604460405180948193633e9f1edf60e11b8352306004840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af18015620007c45715620001ba57909a506001600160401b038111620006ab576040525f995f620001ba565b6040513d5f823e3d90fd5b5f80fd5b015190505f806200018e565b60025f90815293505f805160206200487283398151915291905b601f19841685106200083e576001945083601f1981161062000825575b505050811b01600255620001a3565b01515f1960f88460031b161c191690555f808062000816565b81810151835560209485019460019093019290910190620007f9565b60025f529091505f8051602062004872833981519152601f840160051c810160208510620008b0575b90849392915b601f830160051c82018110620008a157505062000176565b5f815585945060010162000889565b508062000883565b634e487b7160e01b5f52602260045260245ffd5b91607f169162000160565b601f909101601f19168101906001600160401b03821190821017620006ab57604052565b81601f82011215620007cf578051916020916001600160401b038411620006ab578360051b90604051946200093385840187620008d7565b85528380860192820101928311620007cf578301905b82821062000958575050505090565b815160ff81168103620007cf57815290830190830162000949565b919080601f84011215620007cf5782516001600160401b038111620006ab5760209060405192620009ae83601f19601f8501160185620008d7565b818452828287010111620007cf575f5b818110620009d35750825f9394955001015290565b8581018301518482018401528201620009be565b8051821015620009fc5760209160051b010190565b634e487b7160e01b5f52603260045260245ffdfe60806040526004361015610011575f80fd5b5f3560e01c8062fdd58e14612b1b57806301ffc9a714612a8457806302fe53051461290157806304634d8d146127f757806306fdde031461274e5780630d28d0941461270d5780630e89341c146124a55780630f73b4f4146124845780632a24f46c146124675780632a55205a146123c55780632eb2c2d614611fe95780632eb4a7ab14611fcc5780633f4ba83a14611f3157806341f4343414611f095780634e1273f414611d955780634f245ef714611d785780634f558e7914611d4c5780635712868314611a4a5780635a446215146117795780635c975abb1461175457806360a8d5461461172b578063618439631461152557806369d89575146114a55780636b20c4541461124b578063715018a6146111f057806376c1fc06146110115780637cb6475914610ff05780638456cb5914610f8f57806389c4b80814610f625780638da5cb5b14610f3a57806394fccfb214610ea457806395d89b4114610dc65780639f1b2fc114610d48578063a22cb46514610c57578063a570a96114610c36578063b40a562714610c10578063bd85b03914610be6578063c103edf214610b46578063c5dd0c86146109a9578063d395da8e1461095c578063d6fbf2021461093f578063e985e9c5146108ed578063eaea39b2146108b3578063f242432a146104d9578063f2fde38b146104165763f5298aca14610212575f80fd5b346104125760603660031901126104125761022b612b4a565b60249060448035916001600160a01b031690833533831480156103ed575b6102529061308f565b82159261025f8415613ab7565b61026882613ce9565b9161027286613ce9565b945f60405161028081612c11565b52610289613be9565b61039b575b5f5b835181101561031f576102a3818561303c565b516102ae828861303c565b5190805f526003602081815260405f2054928484106102de5790600195949392915f52520360405f205501610290565b506084905f80516020613e0c8339815191528a60288f6040519462461bcd60e51b8652600486015284015282015267616c537570706c7960c01b6064820152fd5b5f838389818452836020526040842083855260205280604085205461034682821015613b6c565b838652856020526040862085875260205203604085205560405191825260208201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4610399604051612c11565b005b94919592905f5b87518110156103e257806103b86001928861303c565b516103c3828b61303c565b515f5260036020526103da60405f209182546131bf565b9055016103a2565b50909295919461028e565b50825f52600160205260405f20335f5260205261025260ff60405f2054169050610249565b5f80fd5b346104125760203660031901126104125761042f612b4a565b61043761399e565b6001600160a01b0390811690811561048557600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346104125760a0366003190112610412576104f2612b4a565b6104fa612b60565b90604480356064803592608480356001600160401b03811161041257610524903690600401612e03565b6001600160a01b0396871696909390338814801590816108a5575b90610880575b61054e9061308f565b881692831561055d8115613c30565b61056687613ce9565b61056f89613ce9565b91610578613be9565b8a15610820575b61076e575b5050505050825f526020955f875260405f20865f5287528460405f20546105ad82821015613c8a565b855f525f895260405f20885f5289520360405f2055835f525f875260405f20825f52875260405f206105e08682546131bf565b90558186604051868152878a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a43b61061c57005b61065f935f87946040519687958694859363f23a6e6160e01b9b8c865233600487015260248601526044850152606484015260a0608484015260a4830190612c6e565b03925af15f918161073f575b506106d65782610679613d2e565b6308c379a0146106a1575b60405162461bcd60e51b81528061069d60048201613db6565b0390fd5b6106a9613d49565b90816106b55750610684565b61069d60405192839262461bcd60e51b845260048401526024830190612c6e565b6001600160e01b0319160390506106e957005b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b610760919250843d8611610767575b6107588183612c2c565b810190613d0e565b908461066b565b503d61074e565b94989297919690955f9a949a5b865181101561080a5761078e818861303c565b51610799828a61303c565b5190805f526003602081815260405f2054928484106107c95790600195949392915f52520360405f20550161077b565b508f915067616c537570706c7960c01b8e5f80516020613e0c8339815191528f6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b5095509550955095915095508680808080610584565b999693909a9794919895925f5b8c5181101561086f57808d610850826108498f9560019661303c565b519261303c565b515f52600360205261086760405f209182546131bf565b90550161082d565b509295989194979a9093969961057f565b50875f52600160205260405f20335f5260205261054e60ff60405f2054169050610545565b6108ae336139f6565b61053f565b34610412575f3660031901126104125760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b3461041257604036600319011261041257610906612b4a565b61090e612b60565b9060018060a01b038091165f52600160205260405f2091165f52602052602060ff60405f2054166040519015158152f35b34610412575f366003190112610412576020600854604051908152f35b34610412576040366003190112610412576004356001600160401b0381116104125761099f6109916020923690600401612e54565b610999612b60565b91613916565b6040519015158152f35b34610412576040366003190112610412576109c2612b4a565b6024356001600160401b038111610412576109e1903690600401612e54565b6001600160a01b03909216915f9190825b818110610b0b5750610a0383612d3b565b92610a116040519485612c2c565b808452610a20601f1991612d3b565b015f5b818110610acc5750505f935f925b828410610a4a5760405180610a468782612ca3565b0390f35b60ff610a63610a5e86868599979899613050565b6130f2565b165f526020600f815260405f2090835f5252610a8160405f20612f81565b915f965b8351881015610abc5760018091610a9c8a8761303c565b51610aa7828961303c565b52610ab2818861303c565b5001970196610a85565b9650929460010193929150610a31565b6020906040969394959651610ae081612bf6565b5f8152825f818301525f60408301525f60608301525f60808301528289010152019493929194610a23565b9390919260019060ff610b22610a5e888789613050565b165f526020600f815260405f2090845f525260405f205401940193929190936109f2565b604036600319011261041257610b5a612c93565b6024356001600160401b03811161041257610b79903690600401612e54565b90600260075414610ba157610b9a926002600755610b95613be9565b6131cc565b6001600755005b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b34610412576020366003190112610412576004355f526003602052602060405f2054604051908152f35b34610412575f3660031901126104125760206001600160601b0360095416604051908152f35b34610412575f366003190112610412576020604051662386f26fc100008152f35b3461041257604036600319011261041257610c70612b4a565b6024359081151580920361041257610c87816139f6565b610c8f613be9565b6001600160a01b031690338214610cf157335f52600160205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b3461041257610d5636612d25565b90610d5f61399e565b81811015610d6f57600a55600b55005b60405162461bcd60e51b815260206004820152602960248201527f41756374696f6e20656e642074696d65206d7573742062652061667465722073604482015268746172742074696d6560b81b6064820152608490fd5b34610412575f36600319011261041257604051600e545f82610de783612ba3565b91828252602093600190856001821691825f14610e84575050600114610e29575b50610e1592500383612c2c565b610a46604051928284938452830190612c6e565b849150600e5f527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd905f915b858310610e6c575050610e15935082010185610e08565b80548389018501528794508693909201918101610e55565b60ff191685820152610e1595151560051b8501019250879150610e089050565b3461041257606036600319011261041257610ebd612b60565b604435906004355f52600f60205260405f2060018060a01b038092165f5260205260405f2091825481101561041257610efa60ff9160a094612e84565b50916001835493015490604051936001600160801b038116855260801c6020850152811660408401528181851c16606084015260a81c1615156080820152f35b34610412575f366003190112610412576006546040516001600160a01b039091168152602090f35b34610412576020366003190112610412576004355f526011602052602060ff60405f205416604051908152f35b34610412575f36600319011261041257610fa761399e565b610faf613be9565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b346104125760203660031901126104125761100961399e565b600435600c55005b3461041257602080600319360112610412576004356001600160401b03811161041257611042903690600401612e54565b9061104c82612d3b565b9161105a6040519384612c2c565b80835261106681612d3b565b601f1991908201855f5b8281106111e1575050505f5b81811061111f578486604051918183928301818452825180915260408401918060408360051b8701019401925f905b8382106110b85786860387f35b9193955091938390603f198882030183528651908280835192838152019201905f905b8082106110fc575050509080600192970192019201869594929391936110ab565b82516001600160a01b0316845287949384019390920191600191909101906110db565b60ff61112f610a5e838588613050565b165f526011865260016111468160405f2001612f81565b80518561116b61115583612d3b565b926111636040519485612c2c565b808452612d3b565b01368a83013761117b848961303c565b52611186838861303c565b505f825b61119a575b50505060010161107c565b81518110156111dc5782908190896111d4826111ce896001600160a01b0360406111c4858c61303c565b510151169461303c565b5161303c565b52019061118a565b61118f565b60608782018301528101611070565b34610412575f3660031901126104125761120861399e565b600680546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461041257606036600319011261041257611264612b4a565b6024906001600160401b0390823582811161041257611287903690600401612d52565b91604490604435908111610412576112a3903690600401612d52565b6001600160a01b03909216923384148015611480575b6112c29061308f565b83156112ce8115613ab7565b6112db8251855114613b0f565b5f6040516112e881612c11565b526112f1613be9565b611430575b5f5b81518110156113875761130b818361303c565b51611316828661303c565b5190805f526003602081815260405f2054928484106113465790600195949392915f52520360405f2055016112f8565b60405162461bcd60e51b8152600481018390526028818d01525f80516020613e0c833981519152818a015267616c537570706c7960c01b6064820152608490fd5b8382865f5b82518110156113ec57806113a26001928561303c565b516113ad828761303c565b5190805f5260205f815260405f20865f52815260405f2054916113d284841015613b6c565b5f525f815260405f2090865f52520360405f20550161138c565b50907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb6114225f94604051918291339583613bc4565b0390a4610399604051612c11565b925f9491945b8451811015611476578061144c6001928661303c565b51611457828861303c565b515f52600360205261146e60405f209182546131bf565b905501611436565b50929390936112f6565b50835f52600160205260405f20335f526020526112c260ff60405f20541690506112b9565b34610412575f366003190112610412576114bd61399e565b5f80808060018060a01b036006541647905af16114d8613060565b50156114e057005b60405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f2072656c656173652066756e64730000000000000000006044820152606490fd5b346104125760208060031936011261041257600435906001600160401b03821161041257366023830112156104125781600401359160249061156684612d3b565b936115746040519586612c2c565b80855260248486019160051b8301019136831161041257602401905b828210611712575050506115a48351612ffd565b905f5b84518110156116ff5760ff806115bd838861303c565b51165f52601180865260405f2090604051906115d882612bdb565b8383541682526115eb6001809401612f81565b9088830191825284835116156116c95750519283519081159283156116bc575b5050505f1461162e575050600190600854611626828661303c565b525b016115a7565b806001600160801b0393929380886116458761302f565b510151169482935b611672575b50505050662386f26fc100006001920161166c828661303c565b52611628565b80518410156116b7578286859697848c61168d85998761303c565b5101511610156116b25750828a6116a4888561303c565b510151165b9695019361164d565b6116a9565b611652565b511611905088808061160b565b88606491886040519262461bcd60e51b8452600484015282015270496e76616c69642073686f652073697a6560781b6044820152fd5b60405184815280610a4681870186612e21565b813560ff81168103610412578152908401908401611590565b34610412575f3660031901126104125760206001600160601b0360095460601c16604051908152f35b34610412575f36600319011261041257602060ff60065460a01c166040519015158152f35b34610412576040366003190112610412576001600160401b03600435818111610412576117aa903690600401612b76565b9190602435828111610412576117c4903690600401612b76565b9290936117cf61399e565b818111611948576117e1600d54612ba3565b92601f938481116119ea575b505f908483116001146119675761181b92915f918361195c575b50508160011b915f199060031b1c19161790565b600d555b821161194857611830600e54612ba3565b8181116118ec575b505f908211600114611874578190611864935f926118695750508160011b915f199060031b1c19161790565b600e55005b013590508380611807565b601f198216927fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd915f5b8581106118d4575083600195106118bb575b505050811b01600e55005b01355f19600384901b60f8161c191690558280806118b0565b9092602060018192868601358155019401910161189e565b7fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd8280850160051c8201926020861061193f575b0160051c01905b8181106119345750611838565b5f8155600101611927565b92508192611920565b634e487b7160e01b5f52604160045260245ffd5b013590508780611807565b601f19831691600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5925f5b8181106119d257509084600195949392106119b9575b505050811b01600d5561181f565b01355f19600384901b60f8161c191690558680806119ab565b91936020600181928787013581550195019201611995565b600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58580850160051c82019260208610611a41575b0160051c01905b818110611a3657506117ed565b5f8155600101611a29565b92508192611a22565b34610412576060366003190112610412576001600160401b0360043581811161041257611a7b903690600401612e54565b909160243581811161041257611a95903690600401612e54565b92909160443590811161041257611ab0903690600401612e54565b91611ab961399e565b828103611d155782855f88875b858310611acf57005b611ada838784613050565b35956001600160a01b038716870361041257611af784878a613050565b3592611b04858785613050565b359560405193611b1385612c11565b5f85526001600160a01b038a1615611cc657611b2e86613ce9565b98611b3889613ce9565b9b611b41613be9565b5f5b8b51811015611b7e57808c8f82610849600195611b5f9361303c565b515f526003602052611b7660405f209182546131bf565b905501611b43565b5096939a91989b50969394919850825f5260209a5f8c5260405f2060018060a01b0383165f528c5260405f20611bb58282546131bf565b9055604080518581528d81018390526001600160a01b038416915f9133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a4813b611c17575b505050506001919293949596975001919590949293611ac6565b918b91611c5b935f60405180968195829463f23a6e6160e01b9a8b85523360048601528560248601526044850152606484015260a0608484015260a4830190612c6e565b03926001600160a01b03165af15f9181611ca7575b50611c7e5789610679613d2e565b9091929394959697985063ffffffff60e01b16036106e957869594939291906001898080611bfd565b611cbf9192508b3d8d11610767576107588183612c2c565b908b611c70565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405162461bcd60e51b815260206004820152600f60248201526e4d69736d617463686564206461746160881b6044820152606490fd5b34610412576020366003190112610412576004355f526003602052602060405f20541515604051908152f35b34610412575f366003190112610412576020600a54604051908152f35b34610412576040366003190112610412576004356001600160401b03808211610412573660238301121561041257816004013590611dd282612d3b565b92611de06040519485612c2c565b82845260209260248486019160051b8301019136831161041257602401905b828210611eea5750505060243590811161041257611e21903690600401612d52565b8251815103611e9357611e348351612ffd565b925f5b8151811015611e7c57600190611e6b6001600160a01b03611e58838661303c565b5116611e64838761303c565b5190612eb1565b611e75828861303c565b5201611e37565b505050610a46604051928284938452830190612e21565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b0381168103610412578152908401908401611dff565b34610412575f3660031901126104125760206040516daaeb6d7670e522a718067333cd4e8152f35b34610412575f36600319011261041257611f4961399e565b60065460ff8160a01c1615611f905760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b34610412575f366003190112610412576020600c54604051908152f35b346104125760031960a03682011261041257612003612b4a565b9061200c612b60565b9060448035916001600160401b039283811161041257612030903690600401612d52565b90606480358581116104125761204a903690600401612d52565b9460849060843590811161041257612066903690600401612e03565b6001600160a01b0398891698909290338a14801590816123b7575b90612392575b6120909061308f565b61209d8651895114613b0f565b88169586156120ac8115613c30565b6120b4613be9565b8a1561233e575b612291575b5050505f5b835181101561214757806120db6001928661303c565b516120e6828961303c565b5190805f526020905f825260405f208c5f5282528260405f205461210c82821015613c8a565b825f525f84528d60405f20905f5284520360405f20555f525f815260405f2090885f525261213f60405f209182546131bf565b9055016120c5565b5090949392919382876040517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806121828a8c83613bc4565b0390a43b61218c57005b5f6020946121ec6121dd976121cd94604051998a988997889663bc197c8160e01b9e8f89523360048a0152602489015260a0604489015260a4880190612e21565b9084878303016064880152612e21565b91848303016084850152612c6e565b03925af15f9181612270575b5061225f57612205613d2e565b6308c379a0146122285760405162461bcd60e51b81528061069d60048201613db6565b612230613d49565b8061223b5750610684565b60405162461bcd60e51b81526020600482015290819061069d906024830190612c6e565b6001600160e01b031916036106e957005b61228a91925060203d602011610767576107588183612c2c565b90836121f8565b95909694935f99939892995b855181101561232b576122b0818761303c565b516122bb828961303c565b5190805f526003602081815260405f2054928484106122eb5790600195949392915f52520360405f20550161229d565b508e9067616c537570706c7960c01b8e5f80516020613e0c8339815191528f6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b50939496509450959096508780806120c0565b9895999694939291905f5b8b5181101561238357808c612364826108496001958f61303c565b515f52600360205261237b60405f209182546131bf565b905501612349565b509091929394969995986120bb565b50895f52600160205260405f20335f5260205261209060ff60405f2054169050612087565b6123c0336139f6565b612081565b346104125760406123d536612d25565b905f526005602052815f208251906123ec82612bdb565b546001600160a01b0380821680845260a09290921c60208401529192901561243b575b61242a612710916001600160601b0360208601511690612fd6565b049151169082519182526020820152f35b915061271061242a845161244e81612bdb565b600454848116825260a01c60208201529391505061240f565b34610412575f366003190112610412576020600b54604051908152f35b346104125760203660031901126104125761249d61399e565b600435600855005b346104125760208060031936011261041257600435906040515f600254906124cc82612ba3565b8084528385810192600194876001821691825f146126f2575050600114612696575b6124fa92500384612c2c565b5f94807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008181811015612688575b50506d04ee2d6d415b85acef81000000008083101561267a575b50662386f26fc100008083101561266b575b506305f5e1008083101561265c575b506127108083101561264d575b50606482101561263d575b600a80921015612633575b9260018701938160216125ac61259688612db2565b976125a4604051998a612c2c565b808952612db2565b878a019a90601f1901368c37870101905b6125fe575b6125e388610e15818a8d8b6125f28c60405198899551809288880190612c4d565b84019151809386840190612c4d565b01038085520183612c2c565b5f19019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561262e579190826125bd565b6125c2565b9560010195612581565b9590606460029104910195612576565b6004919792049101958761256b565b6008919792049101958761255e565b6010919792049101958761254f565b86919792049101958761253d565b604098500491508780612523565b505060025f5283857f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace855f915b8583106126d95750506124fa93508201016124ee565b80919294505483858a01015201910186908587936126c3565b60ff191686526124fa94151560051b84010191506124ee9050565b346104125760203660031901126104125760ff612728612c93565b165f526011602052610a46612742600160405f2001612f81565b60405191829182612ca3565b34610412575f36600319011261041257604051600d545f8261276f83612ba3565b91828252602093600190856001821691825f14610e8457505060011461279c5750610e1592500383612c2c565b849150600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5905f915b8583106127df575050610e15935082010185610e08565b805483890185015287945086939092019181016127c8565b3461041257604036600319011261041257612810612b4a565b602435906001600160601b038216808303610412576127109061283161399e565b116128a9576001600160a01b031690811561286457612851604051612bdb565b60a01b6001600160a01b03191617600455005b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b3461041257602080600319360112610412576001600160401b0360043581811161041257612936612945913690600401612b76565b61293e61399e565b3691612dcd565b9182519182116119485761295a600254612ba3565b601f8111612a21575b50602090601f83116001146129a357508190612993935f926129985750508160011b915f199060031b1c19161790565b600255005b015190508380611807565b90601f1983169360025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace925f905b868210612a0957505083600195106129f1575b505050811b01600255005b01515f1960f88460031b161c191690558280806129e6565b806001859682949686015181550195019301906129d3565b60025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f840160051c81019160208510612a7a575b601f0160051c01905b818110612a6f5750612963565b5f8155600101612a62565b9091508190612a59565b346104125760203660031901126104125760043563ffffffff60e01b811680910361041257602090636cdb3d1360e11b81148015612b0b575b8015612afb575b80918115612ad9575b50506040519015158152f35b63152a902d60e11b1491508115612af3575b508280612acd565b905082612aeb565b506301ffc9a760e01b8114612ac4565b506303a24d0760e21b8114612abd565b34610412576040366003190112610412576020612b42612b39612b4a565b60243590612eb1565b604051908152f35b600435906001600160a01b038216820361041257565b602435906001600160a01b038216820361041257565b9181601f84011215610412578235916001600160401b038311610412576020838186019501011161041257565b90600182811c92168015612bd1575b6020831014612bbd57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691612bb2565b604081019081106001600160401b0382111761194857604052565b60a081019081106001600160401b0382111761194857604052565b602081019081106001600160401b0382111761194857604052565b90601f801991011681019081106001600160401b0382111761194857604052565b5f5b838110612c5e5750505f910152565b8181015183820152602001612c4f565b90602091612c8781518092818552858086019101612c4d565b601f01601f1916010190565b6004359060ff8216820361041257565b60208082019080835283518092528060408094019401925f905b838210612ccc57505050505090565b845180516001600160801b039081168852818501511687850152808201516001600160a01b03168783015260608082015160ff169088015260809081015115159087015260a09095019493820193600190910190612cbd565b6040906003190112610412576004359060243590565b6001600160401b0381116119485760051b60200190565b9080601f83011215610412576020908235612d6c81612d3b565b93612d7a6040519586612c2c565b81855260208086019260051b82010192831161041257602001905b828210612da3575050505090565b81358152908301908301612d95565b6001600160401b03811161194857601f01601f191660200190565b929192612dd982612db2565b91612de76040519384612c2c565b829481845281830111610412578281602093845f960137010152565b9080601f8301121561041257816020612e1e93359101612dcd565b90565b9081518082526020808093019301915f5b828110612e40575050505090565b835185529381019392810192600101612e32565b9181601f84011215610412578235916001600160401b038311610412576020808501948460051b01011161041257565b8054821015612e9d575f5260205f209060011b01905f90565b634e487b7160e01b5f52603260045260245ffd5b6001600160a01b0316908115612ed9575f525f60205260405f20905f5260205260405f205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b90604051612f3e81612bf6565b608060ff6001839580546001600160801b0381168652841c6020860152015460018060a01b0381166040850152818160a01c16606085015260a81c161515910152565b908154612f8d81612d3b565b92612f9b6040519485612c2c565b8184525f90815260208082208186015b848410612fb9575050505050565b600283600192612fc885612f31565b815201920193019290612fab565b81810292918115918404141715612fe957565b634e487b7160e01b5f52601160045260245ffd5b9061300782612d3b565b6130146040519182612c2c565b8281528092613025601f1991612d3b565b0190602036910137565b805115612e9d5760200190565b8051821015612e9d5760209160051b010190565b9190811015612e9d5760051b0190565b3d1561308a573d9061307182612db2565b9161307f6040519384612c2c565b82523d5f602084013e565b606090565b1561309657565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b3560ff811681036104125790565b919061317e5780516020820151608090811b6001600160801b0319166001600160801b039092169190911783556040820151600190930180546060840151929093015160ff60a81b90151560a81b166001600160b01b03199093166001600160a01b039094169390931760a09190911b60ff60a01b1617179055565b565b634e487b7160e01b5f525f60045260245ffd5b908154916801000000000000000083101561194857826131b991600161317c95018155612e84565b90613100565b91908201809211612fe957565b909160ff82165f52601160205260405f2092600a544210158061390a575b806138fd575b156138bf5781151591826138ac575b50501561389d576001600160801b03606461323a7f000000000000000000000000000000000000000000000000000000000000000034612fd6565b04165b60ff82165f52601060205260405f20335f5260205260405f20549260ff83165f52600f60205260405f20335f5260205260405f20938061369657506001600160801b036040519261328d84612bf6565b813416845216602083015233604083015260ff831660608301526080935f6080840152600182015460ff8354168110155f146135e157600183015415612e9d57600183015f526132df60205f20612f31565b9560015b828110613593575050506001600160801b03602086015116662386f26fc100008101809111612fe957341061351e5760ff84165f52601060205260405f2060018060a01b036040870151165f5260205260405f2054905f19958287810111612fe95760ff86165f52600f60205260405f2060018060a01b036040830151165f5260205260405f20968754938482810111612fe9576131b9613492966001848a9894826133975f9f6133f2998d990190612e84565b50018360a81b60ff60a81b1982541617905560ff8d168e52601060205260408e20838060a01b0360408a0151168f526020528d604081205560ff8d168e52601060205260408e20338f526020528060408f2055019101612e84565b8680808060018060a01b036040860151166001600160801b03865116905af15061341a613060565b5060018060a01b036040840151166001600160801b0384511660018060a01b03604084015116926001600160801b038060208301511691511690604051928352602083015260408201527fdae14d4caa7239b2bfc721f3fb18a0835e60eb28461496771cca1ad66b95d80d606060ff8a1692a4613191565b6009546001600160601b0360018183160116906001600160601b031916176009557e90ad5a4a625fad7cdaf615307743c753e32ad4a90bbe26e6413a12626827c960ff6001600160801b03602060018060a01b036040860151169401511693613519604051928392169534839092916001600160801b036020916040840195845216910152565b0390a4565b60405162461bcd60e51b815260206004820152604160248201527f426964206d757374206265206174206c6561737420302e30312045544820686960448201527f67686572207468616e207468652063757272656e74206d696e696d756d2062696064820152601960fa1b608482015260a490fd5b6135a08160018701612e84565b5054821c6001600160801b0360208a015116116135c0575b6001016132e3565b965060016135d96135d389838801612e84565b50612f31565b9790506135b8565b945090600854341061362b578260016135fa9201613191565b60018401809411612fe95781613492915f9560ff861687526010602052604087203388526020526040872055613191565b60405162461bcd60e51b815260206004820152603760248201527f426964206d75737420626520657175616c20746f206f7220677265617465722060448201527f7468616e20746865207374617274696e672070726963650000000000000000006064820152608490fd5b909391662386f26fc100003410613842576136ff6136bd600196875f198096019101612e84565b5080546001600160801b03198082166001600160801b03928316348416018316908117608090811c90960190951b811690941782559094909381540190612e84565b61317e5785918482036137a6575b5050600980546bffffffffffffffffffffffff60601b198116606091821c6001600160601b0316880190911b6bffffffffffffffffffffffff60601b1617905550508083015490546040805134815260809290921c602083015260ff93909316926001600160a01b0392909216917e90ad5a4a625fad7cdaf615307743c753e32ad4a90bbe26e6413a12626827c9919081908101613519565b84548254941693169290921780835583546001600160801b0319166001600160801b039091161782556138399185840180549190920180546001600160a01b039092166001600160a01b0319831681178255835460ff60a01b166001600160a81b0319909316179190911781559060ff9054825460ff60a81b191660a891821c929092161515901b60ff60a81b16179055565b5f83818061370d565b60405162461bcd60e51b815260206004820152602d60248201527f596f75206d75737420746f7020757020796f757220626964206279206174206c60448201526c0cac2e6e840605c6062408aa89609b1b6064820152608490fd5b6001600160801b03341661323d565b6138b892503391613916565b5f806131ff565b60405162461bcd60e51b8152602060048201526016602482015275496e76616c69642062696420636f6e646974696f6e7360501b6044820152606490fd5b5060ff84541615156131f0565b50600b544211156131ea565b91906040926040519260209360208101916001600160601b03199060601b1682526014815261394481612bdb565b51902093600c5494935f935b8085106139605750505050501490565b9091929394613970868387613050565b35908181101561398f575f5282526001835f205b950193929190613950565b905f5282526001835f20613984565b6006546001600160a01b031633036139b257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6daaeb6d7670e522a718067333cd4e90813b613a10575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa908115613aac575f91613a71575b5015613a595750565b60249060405190633b79c77360e21b82526004820152fd5b90506020813d602011613aa4575b81613a8c60209383612c2c565b8101031261041257518015158103610412575f613a50565b3d9150613a7f565b6040513d5f823e3d90fd5b15613abe57565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b15613b1657565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b15613b7357565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b9091613bdb612e1e93604084526040840190612e21565b916020818403910152612e21565b60ff60065460a01c16613bf857565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b15613c3757565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15613c9157565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b60405190613cf682612bdb565b6001825260203681840137613d0a8261302f565b5290565b9081602091031261041257516001600160e01b0319811681036104125790565b5f9060033d11613d3a57565b905060045f803e5f5160e01c90565b5f60443d10612e1e57604051600319913d83016004833e81516001600160401b03918282113d602484011117613da557818401948551938411613dad573d85010160208487010111613da55750612e1e92910160200190612c2c565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6060820152019056fe455243313135353a206275726e20616d6f756e74206578636565647320746f74a2646970667358221220cfe7c3844dac2c7cef8a943b6b2ed60a5514750dc24292e51dffc1aff2152c6064736f6c63430008160033405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acebb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fdd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000654ba27000000000000000000000000000000000000000000000000000000000654f972b000000000000000000000000000000000000000000000000000000000000006e00000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce70336b1d6aafcb4ff52aa2665eb21b45cd86471adb819f8db6da734416a0e22d5ebb0000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004800000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000d00000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000266164696461732078204372617a79666173742042756761747469204163636573732050617373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044144434200000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361015610011575f80fd5b5f3560e01c8062fdd58e14612b1b57806301ffc9a714612a8457806302fe53051461290157806304634d8d146127f757806306fdde031461274e5780630d28d0941461270d5780630e89341c146124a55780630f73b4f4146124845780632a24f46c146124675780632a55205a146123c55780632eb2c2d614611fe95780632eb4a7ab14611fcc5780633f4ba83a14611f3157806341f4343414611f095780634e1273f414611d955780634f245ef714611d785780634f558e7914611d4c5780635712868314611a4a5780635a446215146117795780635c975abb1461175457806360a8d5461461172b578063618439631461152557806369d89575146114a55780636b20c4541461124b578063715018a6146111f057806376c1fc06146110115780637cb6475914610ff05780638456cb5914610f8f57806389c4b80814610f625780638da5cb5b14610f3a57806394fccfb214610ea457806395d89b4114610dc65780639f1b2fc114610d48578063a22cb46514610c57578063a570a96114610c36578063b40a562714610c10578063bd85b03914610be6578063c103edf214610b46578063c5dd0c86146109a9578063d395da8e1461095c578063d6fbf2021461093f578063e985e9c5146108ed578063eaea39b2146108b3578063f242432a146104d9578063f2fde38b146104165763f5298aca14610212575f80fd5b346104125760603660031901126104125761022b612b4a565b60249060448035916001600160a01b031690833533831480156103ed575b6102529061308f565b82159261025f8415613ab7565b61026882613ce9565b9161027286613ce9565b945f60405161028081612c11565b52610289613be9565b61039b575b5f5b835181101561031f576102a3818561303c565b516102ae828861303c565b5190805f526003602081815260405f2054928484106102de5790600195949392915f52520360405f205501610290565b506084905f80516020613e0c8339815191528a60288f6040519462461bcd60e51b8652600486015284015282015267616c537570706c7960c01b6064820152fd5b5f838389818452836020526040842083855260205280604085205461034682821015613b6c565b838652856020526040862085875260205203604085205560405191825260208201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4610399604051612c11565b005b94919592905f5b87518110156103e257806103b86001928861303c565b516103c3828b61303c565b515f5260036020526103da60405f209182546131bf565b9055016103a2565b50909295919461028e565b50825f52600160205260405f20335f5260205261025260ff60405f2054169050610249565b5f80fd5b346104125760203660031901126104125761042f612b4a565b61043761399e565b6001600160a01b0390811690811561048557600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346104125760a0366003190112610412576104f2612b4a565b6104fa612b60565b90604480356064803592608480356001600160401b03811161041257610524903690600401612e03565b6001600160a01b0396871696909390338814801590816108a5575b90610880575b61054e9061308f565b881692831561055d8115613c30565b61056687613ce9565b61056f89613ce9565b91610578613be9565b8a15610820575b61076e575b5050505050825f526020955f875260405f20865f5287528460405f20546105ad82821015613c8a565b855f525f895260405f20885f5289520360405f2055835f525f875260405f20825f52875260405f206105e08682546131bf565b90558186604051868152878a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a43b61061c57005b61065f935f87946040519687958694859363f23a6e6160e01b9b8c865233600487015260248601526044850152606484015260a0608484015260a4830190612c6e565b03925af15f918161073f575b506106d65782610679613d2e565b6308c379a0146106a1575b60405162461bcd60e51b81528061069d60048201613db6565b0390fd5b6106a9613d49565b90816106b55750610684565b61069d60405192839262461bcd60e51b845260048401526024830190612c6e565b6001600160e01b0319160390506106e957005b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b610760919250843d8611610767575b6107588183612c2c565b810190613d0e565b908461066b565b503d61074e565b94989297919690955f9a949a5b865181101561080a5761078e818861303c565b51610799828a61303c565b5190805f526003602081815260405f2054928484106107c95790600195949392915f52520360405f20550161077b565b508f915067616c537570706c7960c01b8e5f80516020613e0c8339815191528f6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b5095509550955095915095508680808080610584565b999693909a9794919895925f5b8c5181101561086f57808d610850826108498f9560019661303c565b519261303c565b515f52600360205261086760405f209182546131bf565b90550161082d565b509295989194979a9093969961057f565b50875f52600160205260405f20335f5260205261054e60ff60405f2054169050610545565b6108ae336139f6565b61053f565b34610412575f3660031901126104125760206040517f000000000000000000000000000000000000000000000000000000000000006e8152f35b3461041257604036600319011261041257610906612b4a565b61090e612b60565b9060018060a01b038091165f52600160205260405f2091165f52602052602060ff60405f2054166040519015158152f35b34610412575f366003190112610412576020600854604051908152f35b34610412576040366003190112610412576004356001600160401b0381116104125761099f6109916020923690600401612e54565b610999612b60565b91613916565b6040519015158152f35b34610412576040366003190112610412576109c2612b4a565b6024356001600160401b038111610412576109e1903690600401612e54565b6001600160a01b03909216915f9190825b818110610b0b5750610a0383612d3b565b92610a116040519485612c2c565b808452610a20601f1991612d3b565b015f5b818110610acc5750505f935f925b828410610a4a5760405180610a468782612ca3565b0390f35b60ff610a63610a5e86868599979899613050565b6130f2565b165f526020600f815260405f2090835f5252610a8160405f20612f81565b915f965b8351881015610abc5760018091610a9c8a8761303c565b51610aa7828961303c565b52610ab2818861303c565b5001970196610a85565b9650929460010193929150610a31565b6020906040969394959651610ae081612bf6565b5f8152825f818301525f60408301525f60608301525f60808301528289010152019493929194610a23565b9390919260019060ff610b22610a5e888789613050565b165f526020600f815260405f2090845f525260405f205401940193929190936109f2565b604036600319011261041257610b5a612c93565b6024356001600160401b03811161041257610b79903690600401612e54565b90600260075414610ba157610b9a926002600755610b95613be9565b6131cc565b6001600755005b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b34610412576020366003190112610412576004355f526003602052602060405f2054604051908152f35b34610412575f3660031901126104125760206001600160601b0360095416604051908152f35b34610412575f366003190112610412576020604051662386f26fc100008152f35b3461041257604036600319011261041257610c70612b4a565b6024359081151580920361041257610c87816139f6565b610c8f613be9565b6001600160a01b031690338214610cf157335f52600160205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b3461041257610d5636612d25565b90610d5f61399e565b81811015610d6f57600a55600b55005b60405162461bcd60e51b815260206004820152602960248201527f41756374696f6e20656e642074696d65206d7573742062652061667465722073604482015268746172742074696d6560b81b6064820152608490fd5b34610412575f36600319011261041257604051600e545f82610de783612ba3565b91828252602093600190856001821691825f14610e84575050600114610e29575b50610e1592500383612c2c565b610a46604051928284938452830190612c6e565b849150600e5f527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd905f915b858310610e6c575050610e15935082010185610e08565b80548389018501528794508693909201918101610e55565b60ff191685820152610e1595151560051b8501019250879150610e089050565b3461041257606036600319011261041257610ebd612b60565b604435906004355f52600f60205260405f2060018060a01b038092165f5260205260405f2091825481101561041257610efa60ff9160a094612e84565b50916001835493015490604051936001600160801b038116855260801c6020850152811660408401528181851c16606084015260a81c1615156080820152f35b34610412575f366003190112610412576006546040516001600160a01b039091168152602090f35b34610412576020366003190112610412576004355f526011602052602060ff60405f205416604051908152f35b34610412575f36600319011261041257610fa761399e565b610faf613be9565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b346104125760203660031901126104125761100961399e565b600435600c55005b3461041257602080600319360112610412576004356001600160401b03811161041257611042903690600401612e54565b9061104c82612d3b565b9161105a6040519384612c2c565b80835261106681612d3b565b601f1991908201855f5b8281106111e1575050505f5b81811061111f578486604051918183928301818452825180915260408401918060408360051b8701019401925f905b8382106110b85786860387f35b9193955091938390603f198882030183528651908280835192838152019201905f905b8082106110fc575050509080600192970192019201869594929391936110ab565b82516001600160a01b0316845287949384019390920191600191909101906110db565b60ff61112f610a5e838588613050565b165f526011865260016111468160405f2001612f81565b80518561116b61115583612d3b565b926111636040519485612c2c565b808452612d3b565b01368a83013761117b848961303c565b52611186838861303c565b505f825b61119a575b50505060010161107c565b81518110156111dc5782908190896111d4826111ce896001600160a01b0360406111c4858c61303c565b510151169461303c565b5161303c565b52019061118a565b61118f565b60608782018301528101611070565b34610412575f3660031901126104125761120861399e565b600680546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461041257606036600319011261041257611264612b4a565b6024906001600160401b0390823582811161041257611287903690600401612d52565b91604490604435908111610412576112a3903690600401612d52565b6001600160a01b03909216923384148015611480575b6112c29061308f565b83156112ce8115613ab7565b6112db8251855114613b0f565b5f6040516112e881612c11565b526112f1613be9565b611430575b5f5b81518110156113875761130b818361303c565b51611316828661303c565b5190805f526003602081815260405f2054928484106113465790600195949392915f52520360405f2055016112f8565b60405162461bcd60e51b8152600481018390526028818d01525f80516020613e0c833981519152818a015267616c537570706c7960c01b6064820152608490fd5b8382865f5b82518110156113ec57806113a26001928561303c565b516113ad828761303c565b5190805f5260205f815260405f20865f52815260405f2054916113d284841015613b6c565b5f525f815260405f2090865f52520360405f20550161138c565b50907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb6114225f94604051918291339583613bc4565b0390a4610399604051612c11565b925f9491945b8451811015611476578061144c6001928661303c565b51611457828861303c565b515f52600360205261146e60405f209182546131bf565b905501611436565b50929390936112f6565b50835f52600160205260405f20335f526020526112c260ff60405f20541690506112b9565b34610412575f366003190112610412576114bd61399e565b5f80808060018060a01b036006541647905af16114d8613060565b50156114e057005b60405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f2072656c656173652066756e64730000000000000000006044820152606490fd5b346104125760208060031936011261041257600435906001600160401b03821161041257366023830112156104125781600401359160249061156684612d3b565b936115746040519586612c2c565b80855260248486019160051b8301019136831161041257602401905b828210611712575050506115a48351612ffd565b905f5b84518110156116ff5760ff806115bd838861303c565b51165f52601180865260405f2090604051906115d882612bdb565b8383541682526115eb6001809401612f81565b9088830191825284835116156116c95750519283519081159283156116bc575b5050505f1461162e575050600190600854611626828661303c565b525b016115a7565b806001600160801b0393929380886116458761302f565b510151169482935b611672575b50505050662386f26fc100006001920161166c828661303c565b52611628565b80518410156116b7578286859697848c61168d85998761303c565b5101511610156116b25750828a6116a4888561303c565b510151165b9695019361164d565b6116a9565b611652565b511611905088808061160b565b88606491886040519262461bcd60e51b8452600484015282015270496e76616c69642073686f652073697a6560781b6044820152fd5b60405184815280610a4681870186612e21565b813560ff81168103610412578152908401908401611590565b34610412575f3660031901126104125760206001600160601b0360095460601c16604051908152f35b34610412575f36600319011261041257602060ff60065460a01c166040519015158152f35b34610412576040366003190112610412576001600160401b03600435818111610412576117aa903690600401612b76565b9190602435828111610412576117c4903690600401612b76565b9290936117cf61399e565b818111611948576117e1600d54612ba3565b92601f938481116119ea575b505f908483116001146119675761181b92915f918361195c575b50508160011b915f199060031b1c19161790565b600d555b821161194857611830600e54612ba3565b8181116118ec575b505f908211600114611874578190611864935f926118695750508160011b915f199060031b1c19161790565b600e55005b013590508380611807565b601f198216927fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd915f5b8581106118d4575083600195106118bb575b505050811b01600e55005b01355f19600384901b60f8161c191690558280806118b0565b9092602060018192868601358155019401910161189e565b7fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd8280850160051c8201926020861061193f575b0160051c01905b8181106119345750611838565b5f8155600101611927565b92508192611920565b634e487b7160e01b5f52604160045260245ffd5b013590508780611807565b601f19831691600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5925f5b8181106119d257509084600195949392106119b9575b505050811b01600d5561181f565b01355f19600384901b60f8161c191690558680806119ab565b91936020600181928787013581550195019201611995565b600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58580850160051c82019260208610611a41575b0160051c01905b818110611a3657506117ed565b5f8155600101611a29565b92508192611a22565b34610412576060366003190112610412576001600160401b0360043581811161041257611a7b903690600401612e54565b909160243581811161041257611a95903690600401612e54565b92909160443590811161041257611ab0903690600401612e54565b91611ab961399e565b828103611d155782855f88875b858310611acf57005b611ada838784613050565b35956001600160a01b038716870361041257611af784878a613050565b3592611b04858785613050565b359560405193611b1385612c11565b5f85526001600160a01b038a1615611cc657611b2e86613ce9565b98611b3889613ce9565b9b611b41613be9565b5f5b8b51811015611b7e57808c8f82610849600195611b5f9361303c565b515f526003602052611b7660405f209182546131bf565b905501611b43565b5096939a91989b50969394919850825f5260209a5f8c5260405f2060018060a01b0383165f528c5260405f20611bb58282546131bf565b9055604080518581528d81018390526001600160a01b038416915f9133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a4813b611c17575b505050506001919293949596975001919590949293611ac6565b918b91611c5b935f60405180968195829463f23a6e6160e01b9a8b85523360048601528560248601526044850152606484015260a0608484015260a4830190612c6e565b03926001600160a01b03165af15f9181611ca7575b50611c7e5789610679613d2e565b9091929394959697985063ffffffff60e01b16036106e957869594939291906001898080611bfd565b611cbf9192508b3d8d11610767576107588183612c2c565b908b611c70565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405162461bcd60e51b815260206004820152600f60248201526e4d69736d617463686564206461746160881b6044820152606490fd5b34610412576020366003190112610412576004355f526003602052602060405f20541515604051908152f35b34610412575f366003190112610412576020600a54604051908152f35b34610412576040366003190112610412576004356001600160401b03808211610412573660238301121561041257816004013590611dd282612d3b565b92611de06040519485612c2c565b82845260209260248486019160051b8301019136831161041257602401905b828210611eea5750505060243590811161041257611e21903690600401612d52565b8251815103611e9357611e348351612ffd565b925f5b8151811015611e7c57600190611e6b6001600160a01b03611e58838661303c565b5116611e64838761303c565b5190612eb1565b611e75828861303c565b5201611e37565b505050610a46604051928284938452830190612e21565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b0381168103610412578152908401908401611dff565b34610412575f3660031901126104125760206040516daaeb6d7670e522a718067333cd4e8152f35b34610412575f36600319011261041257611f4961399e565b60065460ff8160a01c1615611f905760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b34610412575f366003190112610412576020600c54604051908152f35b346104125760031960a03682011261041257612003612b4a565b9061200c612b60565b9060448035916001600160401b039283811161041257612030903690600401612d52565b90606480358581116104125761204a903690600401612d52565b9460849060843590811161041257612066903690600401612e03565b6001600160a01b0398891698909290338a14801590816123b7575b90612392575b6120909061308f565b61209d8651895114613b0f565b88169586156120ac8115613c30565b6120b4613be9565b8a1561233e575b612291575b5050505f5b835181101561214757806120db6001928661303c565b516120e6828961303c565b5190805f526020905f825260405f208c5f5282528260405f205461210c82821015613c8a565b825f525f84528d60405f20905f5284520360405f20555f525f815260405f2090885f525261213f60405f209182546131bf565b9055016120c5565b5090949392919382876040517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806121828a8c83613bc4565b0390a43b61218c57005b5f6020946121ec6121dd976121cd94604051998a988997889663bc197c8160e01b9e8f89523360048a0152602489015260a0604489015260a4880190612e21565b9084878303016064880152612e21565b91848303016084850152612c6e565b03925af15f9181612270575b5061225f57612205613d2e565b6308c379a0146122285760405162461bcd60e51b81528061069d60048201613db6565b612230613d49565b8061223b5750610684565b60405162461bcd60e51b81526020600482015290819061069d906024830190612c6e565b6001600160e01b031916036106e957005b61228a91925060203d602011610767576107588183612c2c565b90836121f8565b95909694935f99939892995b855181101561232b576122b0818761303c565b516122bb828961303c565b5190805f526003602081815260405f2054928484106122eb5790600195949392915f52520360405f20550161229d565b508e9067616c537570706c7960c01b8e5f80516020613e0c8339815191528f6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b50939496509450959096508780806120c0565b9895999694939291905f5b8b5181101561238357808c612364826108496001958f61303c565b515f52600360205261237b60405f209182546131bf565b905501612349565b509091929394969995986120bb565b50895f52600160205260405f20335f5260205261209060ff60405f2054169050612087565b6123c0336139f6565b612081565b346104125760406123d536612d25565b905f526005602052815f208251906123ec82612bdb565b546001600160a01b0380821680845260a09290921c60208401529192901561243b575b61242a612710916001600160601b0360208601511690612fd6565b049151169082519182526020820152f35b915061271061242a845161244e81612bdb565b600454848116825260a01c60208201529391505061240f565b34610412575f366003190112610412576020600b54604051908152f35b346104125760203660031901126104125761249d61399e565b600435600855005b346104125760208060031936011261041257600435906040515f600254906124cc82612ba3565b8084528385810192600194876001821691825f146126f2575050600114612696575b6124fa92500384612c2c565b5f94807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008181811015612688575b50506d04ee2d6d415b85acef81000000008083101561267a575b50662386f26fc100008083101561266b575b506305f5e1008083101561265c575b506127108083101561264d575b50606482101561263d575b600a80921015612633575b9260018701938160216125ac61259688612db2565b976125a4604051998a612c2c565b808952612db2565b878a019a90601f1901368c37870101905b6125fe575b6125e388610e15818a8d8b6125f28c60405198899551809288880190612c4d565b84019151809386840190612c4d565b01038085520183612c2c565b5f19019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561262e579190826125bd565b6125c2565b9560010195612581565b9590606460029104910195612576565b6004919792049101958761256b565b6008919792049101958761255e565b6010919792049101958761254f565b86919792049101958761253d565b604098500491508780612523565b505060025f5283857f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace855f915b8583106126d95750506124fa93508201016124ee565b80919294505483858a01015201910186908587936126c3565b60ff191686526124fa94151560051b84010191506124ee9050565b346104125760203660031901126104125760ff612728612c93565b165f526011602052610a46612742600160405f2001612f81565b60405191829182612ca3565b34610412575f36600319011261041257604051600d545f8261276f83612ba3565b91828252602093600190856001821691825f14610e8457505060011461279c5750610e1592500383612c2c565b849150600d5f527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5905f915b8583106127df575050610e15935082010185610e08565b805483890185015287945086939092019181016127c8565b3461041257604036600319011261041257612810612b4a565b602435906001600160601b038216808303610412576127109061283161399e565b116128a9576001600160a01b031690811561286457612851604051612bdb565b60a01b6001600160a01b03191617600455005b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b3461041257602080600319360112610412576001600160401b0360043581811161041257612936612945913690600401612b76565b61293e61399e565b3691612dcd565b9182519182116119485761295a600254612ba3565b601f8111612a21575b50602090601f83116001146129a357508190612993935f926129985750508160011b915f199060031b1c19161790565b600255005b015190508380611807565b90601f1983169360025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace925f905b868210612a0957505083600195106129f1575b505050811b01600255005b01515f1960f88460031b161c191690558280806129e6565b806001859682949686015181550195019301906129d3565b60025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f840160051c81019160208510612a7a575b601f0160051c01905b818110612a6f5750612963565b5f8155600101612a62565b9091508190612a59565b346104125760203660031901126104125760043563ffffffff60e01b811680910361041257602090636cdb3d1360e11b81148015612b0b575b8015612afb575b80918115612ad9575b50506040519015158152f35b63152a902d60e11b1491508115612af3575b508280612acd565b905082612aeb565b506301ffc9a760e01b8114612ac4565b506303a24d0760e21b8114612abd565b34610412576040366003190112610412576020612b42612b39612b4a565b60243590612eb1565b604051908152f35b600435906001600160a01b038216820361041257565b602435906001600160a01b038216820361041257565b9181601f84011215610412578235916001600160401b038311610412576020838186019501011161041257565b90600182811c92168015612bd1575b6020831014612bbd57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691612bb2565b604081019081106001600160401b0382111761194857604052565b60a081019081106001600160401b0382111761194857604052565b602081019081106001600160401b0382111761194857604052565b90601f801991011681019081106001600160401b0382111761194857604052565b5f5b838110612c5e5750505f910152565b8181015183820152602001612c4f565b90602091612c8781518092818552858086019101612c4d565b601f01601f1916010190565b6004359060ff8216820361041257565b60208082019080835283518092528060408094019401925f905b838210612ccc57505050505090565b845180516001600160801b039081168852818501511687850152808201516001600160a01b03168783015260608082015160ff169088015260809081015115159087015260a09095019493820193600190910190612cbd565b6040906003190112610412576004359060243590565b6001600160401b0381116119485760051b60200190565b9080601f83011215610412576020908235612d6c81612d3b565b93612d7a6040519586612c2c565b81855260208086019260051b82010192831161041257602001905b828210612da3575050505090565b81358152908301908301612d95565b6001600160401b03811161194857601f01601f191660200190565b929192612dd982612db2565b91612de76040519384612c2c565b829481845281830111610412578281602093845f960137010152565b9080601f8301121561041257816020612e1e93359101612dcd565b90565b9081518082526020808093019301915f5b828110612e40575050505090565b835185529381019392810192600101612e32565b9181601f84011215610412578235916001600160401b038311610412576020808501948460051b01011161041257565b8054821015612e9d575f5260205f209060011b01905f90565b634e487b7160e01b5f52603260045260245ffd5b6001600160a01b0316908115612ed9575f525f60205260405f20905f5260205260405f205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b90604051612f3e81612bf6565b608060ff6001839580546001600160801b0381168652841c6020860152015460018060a01b0381166040850152818160a01c16606085015260a81c161515910152565b908154612f8d81612d3b565b92612f9b6040519485612c2c565b8184525f90815260208082208186015b848410612fb9575050505050565b600283600192612fc885612f31565b815201920193019290612fab565b81810292918115918404141715612fe957565b634e487b7160e01b5f52601160045260245ffd5b9061300782612d3b565b6130146040519182612c2c565b8281528092613025601f1991612d3b565b0190602036910137565b805115612e9d5760200190565b8051821015612e9d5760209160051b010190565b9190811015612e9d5760051b0190565b3d1561308a573d9061307182612db2565b9161307f6040519384612c2c565b82523d5f602084013e565b606090565b1561309657565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b3560ff811681036104125790565b919061317e5780516020820151608090811b6001600160801b0319166001600160801b039092169190911783556040820151600190930180546060840151929093015160ff60a81b90151560a81b166001600160b01b03199093166001600160a01b039094169390931760a09190911b60ff60a01b1617179055565b565b634e487b7160e01b5f525f60045260245ffd5b908154916801000000000000000083101561194857826131b991600161317c95018155612e84565b90613100565b91908201809211612fe957565b909160ff82165f52601160205260405f2092600a544210158061390a575b806138fd575b156138bf5781151591826138ac575b50501561389d576001600160801b03606461323a7f000000000000000000000000000000000000000000000000000000000000006e34612fd6565b04165b60ff82165f52601060205260405f20335f5260205260405f20549260ff83165f52600f60205260405f20335f5260205260405f20938061369657506001600160801b036040519261328d84612bf6565b813416845216602083015233604083015260ff831660608301526080935f6080840152600182015460ff8354168110155f146135e157600183015415612e9d57600183015f526132df60205f20612f31565b9560015b828110613593575050506001600160801b03602086015116662386f26fc100008101809111612fe957341061351e5760ff84165f52601060205260405f2060018060a01b036040870151165f5260205260405f2054905f19958287810111612fe95760ff86165f52600f60205260405f2060018060a01b036040830151165f5260205260405f20968754938482810111612fe9576131b9613492966001848a9894826133975f9f6133f2998d990190612e84565b50018360a81b60ff60a81b1982541617905560ff8d168e52601060205260408e20838060a01b0360408a0151168f526020528d604081205560ff8d168e52601060205260408e20338f526020528060408f2055019101612e84565b8680808060018060a01b036040860151166001600160801b03865116905af15061341a613060565b5060018060a01b036040840151166001600160801b0384511660018060a01b03604084015116926001600160801b038060208301511691511690604051928352602083015260408201527fdae14d4caa7239b2bfc721f3fb18a0835e60eb28461496771cca1ad66b95d80d606060ff8a1692a4613191565b6009546001600160601b0360018183160116906001600160601b031916176009557e90ad5a4a625fad7cdaf615307743c753e32ad4a90bbe26e6413a12626827c960ff6001600160801b03602060018060a01b036040860151169401511693613519604051928392169534839092916001600160801b036020916040840195845216910152565b0390a4565b60405162461bcd60e51b815260206004820152604160248201527f426964206d757374206265206174206c6561737420302e30312045544820686960448201527f67686572207468616e207468652063757272656e74206d696e696d756d2062696064820152601960fa1b608482015260a490fd5b6135a08160018701612e84565b5054821c6001600160801b0360208a015116116135c0575b6001016132e3565b965060016135d96135d389838801612e84565b50612f31565b9790506135b8565b945090600854341061362b578260016135fa9201613191565b60018401809411612fe95781613492915f9560ff861687526010602052604087203388526020526040872055613191565b60405162461bcd60e51b815260206004820152603760248201527f426964206d75737420626520657175616c20746f206f7220677265617465722060448201527f7468616e20746865207374617274696e672070726963650000000000000000006064820152608490fd5b909391662386f26fc100003410613842576136ff6136bd600196875f198096019101612e84565b5080546001600160801b03198082166001600160801b03928316348416018316908117608090811c90960190951b811690941782559094909381540190612e84565b61317e5785918482036137a6575b5050600980546bffffffffffffffffffffffff60601b198116606091821c6001600160601b0316880190911b6bffffffffffffffffffffffff60601b1617905550508083015490546040805134815260809290921c602083015260ff93909316926001600160a01b0392909216917e90ad5a4a625fad7cdaf615307743c753e32ad4a90bbe26e6413a12626827c9919081908101613519565b84548254941693169290921780835583546001600160801b0319166001600160801b039091161782556138399185840180549190920180546001600160a01b039092166001600160a01b0319831681178255835460ff60a01b166001600160a81b0319909316179190911781559060ff9054825460ff60a81b191660a891821c929092161515901b60ff60a81b16179055565b5f83818061370d565b60405162461bcd60e51b815260206004820152602d60248201527f596f75206d75737420746f7020757020796f757220626964206279206174206c60448201526c0cac2e6e840605c6062408aa89609b1b6064820152608490fd5b6001600160801b03341661323d565b6138b892503391613916565b5f806131ff565b60405162461bcd60e51b8152602060048201526016602482015275496e76616c69642062696420636f6e646974696f6e7360501b6044820152606490fd5b5060ff84541615156131f0565b50600b544211156131ea565b91906040926040519260209360208101916001600160601b03199060601b1682526014815261394481612bdb565b51902093600c5494935f935b8085106139605750505050501490565b9091929394613970868387613050565b35908181101561398f575f5282526001835f205b950193929190613950565b905f5282526001835f20613984565b6006546001600160a01b031633036139b257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6daaeb6d7670e522a718067333cd4e90813b613a10575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa908115613aac575f91613a71575b5015613a595750565b60249060405190633b79c77360e21b82526004820152fd5b90506020813d602011613aa4575b81613a8c60209383612c2c565b8101031261041257518015158103610412575f613a50565b3d9150613a7f565b6040513d5f823e3d90fd5b15613abe57565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b15613b1657565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b15613b7357565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b9091613bdb612e1e93604084526040840190612e21565b916020818403910152612e21565b60ff60065460a01c16613bf857565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b15613c3757565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15613c9157565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b60405190613cf682612bdb565b6001825260203681840137613d0a8261302f565b5290565b9081602091031261041257516001600160e01b0319811681036104125790565b5f9060033d11613d3a57565b905060045f803e5f5160e01c90565b5f60443d10612e1e57604051600319913d83016004833e81516001600160401b03918282113d602484011117613da557818401948551938411613dad573d85010160208487010111613da55750612e1e92910160200190612c2c565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6060820152019056fe455243313135353a206275726e20616d6f756e74206578636565647320746f74a2646970667358221220cfe7c3844dac2c7cef8a943b6b2ed60a5514750dc24292e51dffc1aff2152c6064736f6c63430008160033

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

000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000654ba27000000000000000000000000000000000000000000000000000000000654f972b000000000000000000000000000000000000000000000000000000000000006e00000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce70336b1d6aafcb4ff52aa2665eb21b45cd86471adb819f8db6da734416a0e22d5ebb0000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004800000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000d00000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000266164696461732078204372617a79666173742042756761747469204163636573732050617373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044144434200000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _sizes (uint8[]): 1,2,3,4,5,6,7,8,9
Arg [1] : _supply (uint8[]): 6,8,13,17,18,15,10,7,5
Arg [2] : _auctionStart (uint256): 1699455600
Arg [3] : _auctionEnd (uint256): 1699714859
Arg [4] : _allowList (uint256): 110
Arg [5] : _startingPrice (uint256): 200000000000000000
Arg [6] : _value (uint96): 1000
Arg [7] : _recipient (address): 0x734dABe2171Dfa9689E94675Cc279aA0d3Ce7033
Arg [8] : _merkleRoot (bytes32): 0x6b1d6aafcb4ff52aa2665eb21b45cd86471adb819f8db6da734416a0e22d5ebb
Arg [9] : _baseUri (string):
Arg [10] : _name (string): adidas x Crazyfast Bugatti Access Pass
Arg [11] : _symbol (string): ADCB

-----Encoded View---------------
38 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [2] : 00000000000000000000000000000000000000000000000000000000654ba270
Arg [3] : 00000000000000000000000000000000000000000000000000000000654f972b
Arg [4] : 000000000000000000000000000000000000000000000000000000000000006e
Arg [5] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [7] : 000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce7033
Arg [8] : 6b1d6aafcb4ff52aa2665eb21b45cd86471adb819f8db6da734416a0e22d5ebb
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000400
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000420
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000480
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [25] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [28] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [29] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [34] : 6164696461732078204372617a79666173742042756761747469204163636573
Arg [35] : 7320506173730000000000000000000000000000000000000000000000000000
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [37] : 4144434200000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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