ETH Price: $3,159.92 (-4.20%)
Gas: 4 Gwei

Token

Apepe Odyssey: Chapter 1 (AO:C1)
 

Overview

Max Total Supply

6,080 AO:C1

Holders

718

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
kasens.eth
0x35ba887a6dc798323567e5e4c4534ebc65074bdb
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The story unravels. Part of https://opensea.io/collection/rare-apepes Art by Rare Designer

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ApepeOdyssey

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./opensea-operator-filterer/DefaultOperatorFilterer.sol";

//                                .__        ___.
//  ____________ _______   ____    |  | _____ \_ |__   ______
//  \_  __ \__  \\_  __ \_/ __ \   |  | \__  \ | __ \ /  ___/
//   |  | \// __ \|  | \/\  ___/   |  |__/ __ \| \_\ \\___ \
//   |__|  (____  /__|    \___  >  |____(____  /___  /____  >
//              \/            \/             \/    \/     \/
//
// Apepe Odyssey: Chapter 1
// the story unravels..
//

interface IDelegationRegistry {
    function checkDelegateForToken(
        address delegate,
        address vault,
        address contract_,
        uint256 tokenId
    ) external view returns (bool);
}

interface IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address owner);

    function balanceOf(address _owner) external view returns (uint256);
}

contract ApepeOdyssey is
    DefaultOperatorFilterer,
    ERC1155,
    ERC2981,
    Ownable,
    ERC1155Burnable,
    ERC1155Supply
{
    IDelegationRegistry dc;

    constructor(
        uint96 _royaltyFeesInBips,
        address _royaltyRecipient,
        IERC721 _rayc,
        IERC721 _zayc,
        IDelegationRegistry delegateContract
    ) ERC1155("") {
        setRoyaltyInfo(_royaltyRecipient, _royaltyFeesInBips);
        rayc = _rayc;
        zayc = _zayc;
        dc = delegateContract;
    }

    string public name = "Apepe Odyssey: Chapter 1";
    string public symbol = "AO:C1";

    string baseURI = "";
    string baseExtension = ".json";

    IERC721 public rayc;
    IERC721 public zayc;
    address payable private payoutAddress;
    mapping(uint256 => TokenConfig) public tokenIdToConfig;
    mapping(uint256 => uint256) ownerMints; // piece id to quantity

    struct TokenConfig {
        uint256 startDate;
        uint256 endDate;
        uint256 limit;
        bool isLimited;
        bool openToPublic;
        uint256 priceRayc;
        uint256 priceZayc;
        uint256 pricePublic;
    }
    struct UsedAllocation {
        address tokenUsed;
        uint256 id;
    }

    mapping(address => mapping(uint256 => mapping(uint256 => bool)))
        public tokensUsed;

    function setURI(string memory newUri) public onlyOwner {
        baseURI = newUri;
    }

    function mint(
        uint256 id, // the odyssey token id to mint
        IERC721 token, // the 'mint pass' token
        uint256 tokenId, // the 'mint pass' token id
        address _vault
    ) public payable {
        require(
            block.timestamp >= tokenIdToConfig[id].startDate &&
                tokenIdToConfig[id].startDate != 0,
            "Mint not started"
        );

        require(block.timestamp <= tokenIdToConfig[id].endDate, "Mint ended");
        address requester = msg.sender;

        if (_vault != address(0)) {
            bool isDelegateValid = dc.checkDelegateForToken(
                msg.sender,
                _vault,
                address(token),
                tokenId
            );
            require(isDelegateValid, "Invalid delegate-vault pairing");
            requester = _vault;
        }

        // if no 'mint pass' token is used
        if (address(token) == address(0)) {
            require(
                tokenIdToConfig[id].openToPublic,
                "Token is not available for public mint"
            );
        }

        if (tokenIdToConfig[id].isLimited) {
            require(tokenIdToConfig[id].limit > totalSupply(id), "All minted");
        }

        // when using a 'mint pass' token
        if (address(token) != address(0)) {
            require(
                !tokensUsed[address(token)][id][tokenId],
                "Token already used"
            );
            require(
                token.ownerOf(tokenId) == requester,
                "You are not the owner of the token"
            );
            tokensUsed[address(token)][id][tokenId] = true;
        }

        uint256 _price;

        if (rayc == token) {
            _price = tokenIdToConfig[id].priceRayc;
        } else if (zayc == token) {
            _price = tokenIdToConfig[id].priceZayc;
        } else {
            require(tokenIdToConfig[id].openToPublic, "Not open to public.");
            _price = tokenIdToConfig[id].pricePublic;
        }

        require(
            msg.value >= _price,
            string(
                abi.encodePacked(
                    "Invalid price, please send: ",
                    Strings.toString(_price),
                    " wei"
                )
            )
        );

        _mint(requester, id, 1, "0x00");
    }

    function mintAsPublic(
        uint256 id, // the odyssey token id to mint
        uint256 qty // how many to mint
    ) public payable {
        require(
            block.timestamp >= tokenIdToConfig[id].startDate &&
                tokenIdToConfig[id].startDate != 0,
            "Mint not started"
        );
        require(block.timestamp <= tokenIdToConfig[id].endDate, "Mint ended");
        require(tokenIdToConfig[id].openToPublic, "Not open to public.");
        require(qty > 0, "Min 1");
        require(qty <= 10, "Max 10 in one txn");

        if (tokenIdToConfig[id].isLimited) {
            require(tokenIdToConfig[id].limit >= totalSupply(id) + qty, "Supply exceeded");
        }

        require(
            msg.value >= tokenIdToConfig[id].pricePublic * qty,
            string(
                abi.encodePacked(
                    "Invalid price, please send: ",
                    Strings.toString(tokenIdToConfig[id].pricePublic * qty),
                    " wei"
                )
            )
        );

        _mint(msg.sender, id, qty, "0x00");
    }

    function mintMultiple(
        uint256[] memory ids, // array of odyssey token ids to mint
        IERC721[] memory tokens, // array of 'mint pass' tokens
        uint256[] memory tokenIds, // array of 'mint pass' token ids
        address[] memory vaults
    ) public payable {
        if (msg.sender == owner()) {
            for (uint256 i = 0; i < ids.length; i++) {
                uint256 id = ids[i];
                require(ownerMints[id] + ids.length <= 20, "Max reached.");
                ownerMints[id]++;
                _mint(msg.sender, id, 1, "0x00");
            }
            return;
        }

        require(ids.length > 0, "Must not be empty");
        require(ids.length < 51, "50 or below");

        require(
            ids.length == tokens.length &&
                ids.length == tokenIds.length &&
                ids.length == vaults.length,
            "Input arrays must have the same length"
        );

        uint256 requiredValue = 0;

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            IERC721 token = tokens[i];

            if (token == rayc) {
                requiredValue += tokenIdToConfig[id].priceRayc;
            } else if (token == zayc) {
                requiredValue += tokenIdToConfig[id].priceZayc;
            } else {
                require(
                    tokenIdToConfig[id].openToPublic,
                    "Not open to the public"
                );
                requiredValue += tokenIdToConfig[id].pricePublic;
            }
        }

        require(
            msg.value >= requiredValue,
            string(
                abi.encodePacked(
                    "Invalid total price, please send: ",
                    Strings.toString(requiredValue),
                    " wei"
                )
            )
        );

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            IERC721 token = tokens[i];
            uint256 tokenId = tokenIds[i];
            address _vault = vaults[i];

            mint(id, token, tokenId, _vault);
        }
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
        string memory currentBaseURI = baseURI;

        return
            bytes(currentBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        currentBaseURI,
                        Strings.toString(tokenId),
                        baseExtension
                    )
                )
                : "";
    }

    function setTokenConfig(
        uint256 _id,
        uint256 _startDate,
        uint256 _endDate,
        uint256 _limit,
        bool _isLimited,
        bool _openToPublic,
        uint256 _priceRayc,
        uint256 _priceZayc,
        uint256 _pricePublic
    ) external onlyOwner {
        tokenIdToConfig[_id] = TokenConfig(
            _startDate,
            _endDate,
            _limit,
            _isLimited,
            _openToPublic,
            _priceRayc,
            _priceZayc,
            _pricePublic
        );
    }

    function updatePayoutAddress(address _payoutAddress) external onlyOwner {
        payoutAddress = payable(_payoutAddress);
    }

    function withdraw(uint256 _amount) external onlyOwner {
        require(
            _amount <= address(this).balance && address(this).balance > 0,
            "Not enough ethers to withdraw"
        );
        if (_amount == 0) {
            // withdraw all
            (bool sent, ) = payoutAddress.call{value: address(this).balance}(
                ""
            );
            require(sent, "Error while transfering");
        } else {
            // withdraw _amount
            (bool sent, ) = payoutAddress.call{value: _amount}("");
            require(sent, "Error while transfering");
        }
    }

    // For ERC2981
    function setRoyaltyInfo(
        address _receiver,
        uint96 _royaltyFeesInBips
    ) public onlyOwner {
        _setDefaultRoyalty(_receiver, _royaltyFeesInBips);
    }

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

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

    // Opensea Filter Registry

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    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);
    }
}

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

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

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 3 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 4 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.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 `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);
    }
}

File 5 of 19 : 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 6 of 19 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 7 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 8 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 9 of 19 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.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.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    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));
                }
            }
        }
    }

    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);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    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) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 10 of 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

File 11 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 13 of 19 : 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 14 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 19 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"contract IERC721","name":"_rayc","type":"address"},{"internalType":"contract IERC721","name":"_zayc","type":"address"},{"internalType":"contract IDelegationRegistry","name":"delegateContract","type":"address"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"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":[{"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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"_vault","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mintAsPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"contract IERC721[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"vaults","type":"address[]"}],"name":"mintMultiple","outputs":[],"stateMutability":"payable","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":"rayc","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_endDate","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"bool","name":"_isLimited","type":"bool"},{"internalType":"bool","name":"_openToPublic","type":"bool"},{"internalType":"uint256","name":"_priceRayc","type":"uint256"},{"internalType":"uint256","name":"_priceZayc","type":"uint256"},{"internalType":"uint256","name":"_pricePublic","type":"uint256"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToConfig","outputs":[{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"bool","name":"isLimited","type":"bool"},{"internalType":"bool","name":"openToPublic","type":"bool"},{"internalType":"uint256","name":"priceRayc","type":"uint256"},{"internalType":"uint256","name":"priceZayc","type":"uint256"},{"internalType":"uint256","name":"pricePublic","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"updatePayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zayc","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c0604052601860809081527f4170657065204f6479737365793a20436861707465722031000000000000000060a0526008906200003e90826200053f565b50604080518082019091526005815264414f3a433160d81b60208201526009906200006a90826200053f565b50604080516020810190915260008152600a906200008990826200053f565b50604080518082019091526005815264173539b7b760d91b6020820152600b90620000b590826200053f565b50348015620000c357600080fd5b506040516200417138038062004171833981016040819052620000e69162000624565b604080516020810190915260008152733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620002515780156200019f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018057600080fd5b505af115801562000195573d6000803e3d6000fd5b5050505062000251565b6001600160a01b03821615620001f05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000165565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023757600080fd5b505af11580156200024c573d6000803e3d6000fd5b505050505b506200025f905081620002bd565b506200026b33620002cf565b62000277848662000321565b600c80546001600160a01b039485166001600160a01b031991821617909155600d8054938516938216939093179092556007805491909316911617905550620006af9050565b6002620002cb82826200053f565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200032b62000337565b620002cb828262000399565b6005546001600160a01b03163314620003975760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620004095760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200038e565b6001600160a01b038216620004615760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200038e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004c557607f821691505b602082108103620004e657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200053a57600081815260208120601f850160051c81016020861015620005155750805b601f850160051c820191505b81811015620005365782815560010162000521565b5050505b505050565b81516001600160401b038111156200055b576200055b6200049a565b62000573816200056c8454620004b0565b84620004ec565b602080601f831160018114620005ab5760008415620005925750858301515b600019600386901b1c1916600185901b17855562000536565b600085815260208120601f198616915b82811015620005dc57888601518255948401946001909101908401620005bb565b5085821015620005fb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03811681146200062157600080fd5b50565b600080600080600060a086880312156200063d57600080fd5b85516001600160601b03811681146200065557600080fd5b602087015190955062000668816200060b565b60408701519094506200067b816200060b565b60608701519093506200068e816200060b565b6080870151909250620006a1816200060b565b809150509295509295909350565b613ab280620006bf6000396000f3fe6080604052600436106101d75760003560e01c80637114680111610102578063bd85b03911610095578063efaa03f711610064578063efaa03f71461065b578063f242432a1461066e578063f2fde38b1461068e578063f5298aca146106ae57600080fd5b8063bd85b03914610534578063c02af6c914610561578063e985e9c5146105ff578063e9eb70081461064857600080fd5b8063a02148b7116100d1578063a02148b7146104c1578063a22cb465146104d4578063a903a3a7146104f4578063bc9a2e611461051457600080fd5b80637114680114610438578063715018a6146104795780638da5cb5b1461048e57806395d89b41146104ac57600080fd5b80632e1a7d4d1161017a5780634f558e79116101495780634f558e79146103a9578063535237ae146103d857806356200819146103f85780636b20c4541461041857600080fd5b80632e1a7d4d146103025780632eb2c2d61461032257806341f43434146103425780634e1273f41461037c57600080fd5b806302fe5305116101b657806302fe53051461026157806306fdde03146102815780630e89341c146102a35780632a55205a146102c357600080fd5b8062fdd58e146101dc57806301ffc9a71461020f57806302fa7c471461023f575b600080fd5b3480156101e857600080fd5b506101fc6101f7366004612b74565b6106ce565b6040519081526020015b60405180910390f35b34801561021b57600080fd5b5061022f61022a366004612bb6565b610767565b6040519015158152602001610206565b34801561024b57600080fd5b5061025f61025a366004612bd3565b610772565b005b34801561026d57600080fd5b5061025f61027c366004612cb7565b610788565b34801561028d57600080fd5b5061029661079c565b6040516102069190612d57565b3480156102af57600080fd5b506102966102be366004612d6a565b61082a565b3480156102cf57600080fd5b506102e36102de366004612d83565b61090e565b604080516001600160a01b039093168352602083019190915201610206565b34801561030e57600080fd5b5061025f61031d366004612d6a565b6109ba565b34801561032e57600080fd5b5061025f61033d366004612e59565b610b19565b34801561034e57600080fd5b506103646daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610206565b34801561038857600080fd5b5061039c610397366004612f75565b610b48565b6040516102069190613013565b3480156103b557600080fd5b5061022f6103c4366004612d6a565b600090815260066020526040902054151590565b3480156103e457600080fd5b5061025f6103f3366004613034565b610c71565b34801561040457600080fd5b5061025f6104133660046130b1565b610d1e565b34801561042457600080fd5b5061025f6104333660046130ce565b610d48565b34801561044457600080fd5b5061022f610453366004613143565b601160209081526000938452604080852082529284528284209052825290205460ff1681565b34801561048557600080fd5b5061025f610d90565b34801561049a57600080fd5b506005546001600160a01b0316610364565b3480156104b857600080fd5b50610296610da4565b61025f6104cf366004612d83565b610db1565b3480156104e057600080fd5b5061025f6104ef366004613178565b611078565b34801561050057600080fd5b50600d54610364906001600160a01b031681565b34801561052057600080fd5b50600c54610364906001600160a01b031681565b34801561054057600080fd5b506101fc61054f366004612d6a565b60009081526006602052604090205490565b34801561056d57600080fd5b506105c261057c366004612d6a565b600f60205260009081526040902080546001820154600283015460038401546004850154600586015460069096015494959394929360ff80841694610100909404169288565b6040805198895260208901979097529587019490945291151560608601521515608085015260a084015260c083015260e082015261010001610206565b34801561060b57600080fd5b5061022f61061a3660046131a6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61025f6106563660046131d4565b61108c565b61025f61066936600461321e565b6115eb565b34801561067a57600080fd5b5061025f610689366004613332565b611a29565b34801561069a57600080fd5b5061025f6106a93660046130b1565b611a50565b3480156106ba57600080fd5b5061025f6106c9366004613143565b611ac6565b60006001600160a01b03831661073e5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061076182611b09565b61077a611b2e565b6107848282611b88565b5050565b610790611b2e565b600a610784828261341a565b600880546107a99061339a565b80601f01602080910402602001604051908101604052809291908181526020018280546107d59061339a565b80156108225780601f106107f757610100808354040283529160200191610822565b820191906000526020600020905b81548152906001019060200180831161080557829003601f168201915b505050505081565b60606000600a805461083b9061339a565b80601f01602080910402602001604051908101604052809291908181526020018280546108679061339a565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905060008151116108d95760405180602001604052806000815250610907565b806108e384611c85565b600b6040516020016108f7939291906134d9565b6040516020818303038152906040525b9392505050565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109835750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109a2906001600160601b03168761358f565b6109ac91906135a6565b915196919550909350505050565b6109c2611b2e565b4781111580156109d25750600047115b610a1e5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f7567682065746865727320746f2077697468647261770000006044820152606401610735565b80600003610ac957600e546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610a73576040519150601f19603f3d011682016040523d82523d6000602084013e610a78565b606091505b50509050806107845760405162461bcd60e51b815260206004820152601760248201527f4572726f72207768696c65207472616e73666572696e670000000000000000006044820152606401610735565b600e546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610a73576040519150601f19603f3d011682016040523d82523d6000602084013e610a78565b50565b846001600160a01b0381163314610b3357610b3333611d17565b610b408686868686611dd0565b505050505050565b60608151835114610bad5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610735565b600083516001600160401b03811115610bc857610bc8612c18565b604051908082528060200260200182016040528015610bf1578160200160208202803683370190505b50905060005b8451811015610c6957610c3c858281518110610c1557610c156135c8565b6020026020010151858381518110610c2f57610c2f6135c8565b60200260200101516106ce565b828281518110610c4e57610c4e6135c8565b6020908102919091010152610c62816135de565b9050610bf7565b509392505050565b610c79611b2e565b6040805161010080820183529981526020808201998a52818301988952961515606082019081529515156080820190815260a0820195865260c0820194855260e0820193845260009b8c52600f90975299209851895595516001890155935160028801559051600387018054935161ffff1990941691151561ff0019169190911792151590950291909117909355915160048401559051600583015551600690910155565b610d26611b2e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316331480610d645750610d64833361061a565b610d805760405162461bcd60e51b8152600401610735906135f7565b610d8b838383611e1c565b505050565b610d98611b2e565b610da26000611fb8565b565b600980546107a99061339a565b6000828152600f60205260409020544210801590610ddc57506000828152600f602052604090205415155b610e1b5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610735565b6000828152600f6020526040902060010154421115610e695760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610735565b6000828152600f6020526040902060030154610100900460ff16610ec55760405162461bcd60e51b81526020600482015260136024820152722737ba1037b832b7103a3790383ab13634b19760691b6044820152606401610735565b60008111610efd5760405162461bcd60e51b81526020600482015260056024820152644d696e203160d81b6044820152606401610735565b600a811115610f425760405162461bcd60e51b815260206004820152601160248201527026b0bc1018981034b71037b732903a3c3760791b6044820152606401610735565b6000828152600f602052604090206003015460ff1615610fc857600082815260066020526040902054610f76908290613645565b6000838152600f60205260409020600201541015610fc85760405162461bcd60e51b815260206004820152600f60248201526e14dd5c1c1b1e48195e18d959591959608a1b6044820152606401610735565b6000828152600f6020526040902060060154610fe590829061358f565b34101561101282600f60008681526020019081526020016000206006015461100d919061358f565b611c85565b6040516020016110229190613658565b6040516020818303038152906040529061104f5760405162461bcd60e51b81526004016107359190612d57565b50610784338383604051806040016040528060048152602001630307830360e41b81525061200a565b8161108281611d17565b610d8b838361212d565b6000848152600f602052604090205442108015906110b757506000848152600f602052604090205415155b6110f65760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610735565b6000848152600f60205260409020600101544211156111445760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610735565b336001600160a01b0382161561122c57600754604051631574d39f60e31b81523360048201526001600160a01b038481166024830152868116604483015260648201869052600092169063aba69cf890608401602060405180830381865afa1580156111b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d891906136ab565b9050806112275760405162461bcd60e51b815260206004820152601e60248201527f496e76616c69642064656c65676174652d7661756c742070616972696e6700006044820152606401610735565b829150505b6001600160a01b0384166112af576000858152600f6020526040902060030154610100900460ff166112af5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e206973206e6f7420617661696c61626c6520666f72207075626c6960448201526518c81b5a5b9d60d21b6064820152608401610735565b6000858152600f602052604090206003015460ff1615611324576000858152600660205260409020546000868152600f6020526040902060020154116113245760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610735565b6001600160a01b038416156114aa576001600160a01b0384166000908152601160209081526040808320888452825280832086845290915290205460ff16156113a45760405162461bcd60e51b8152602060048201526012602482015271151bdad95b88185b1c9958591e481d5cd95960721b6044820152606401610735565b6040516331a9108f60e11b8152600481018490526001600160a01b038083169190861690636352211e90602401602060405180830381865afa1580156113ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141291906136c8565b6001600160a01b0316146114735760405162461bcd60e51b815260206004820152602260248201527f596f7520617265206e6f7420746865206f776e6572206f662074686520746f6b60448201526132b760f11b6064820152608401610735565b6001600160a01b038416600090815260116020908152604080832088845282528083208684529091529020805460ff191660011790555b600c546000906001600160a01b038087169116036114da57506000858152600f6020526040902060040154611577565b600d546001600160a01b0380871691160361150757506000858152600f6020526040902060050154611577565b6000868152600f6020526040902060030154610100900460ff166115635760405162461bcd60e51b81526020600482015260136024820152722737ba1037b832b7103a3790383ab13634b19760691b6044820152606401610735565b506000858152600f60205260409020600601545b8034101561158482611c85565b6040516020016115949190613658565b604051602081830303815290604052906115c15760405162461bcd60e51b81526004016107359190612d57565b50610b4082876001604051806040016040528060048152602001630307830360e41b81525061200a565b6005546001600160a01b031633036116e75760005b84518110156116e157600085828151811061161d5761161d6135c8565b602002602001015190506014865160106000848152602001908152602001600020546116499190613645565b11156116865760405162461bcd60e51b815260206004820152600c60248201526b26b0bc103932b0b1b432b21760a11b6044820152606401610735565b60008181526010602052604081208054916116a0836135de565b91905055506116ce33826001604051806040016040528060048152602001630307830360e41b81525061200a565b50806116d9816135de565b915050611600565b50611a23565b600084511161172c5760405162461bcd60e51b81526020600482015260116024820152704d757374206e6f7420626520656d70747960781b6044820152606401610735565b603384511061176b5760405162461bcd60e51b815260206004820152600b60248201526a3530206f722062656c6f7760a81b6044820152606401610735565b8251845114801561177d575081518451145b801561178a575080518451145b6117e55760405162461bcd60e51b815260206004820152602660248201527f496e70757420617272617973206d7573742068617665207468652073616d65206044820152650d8cadccee8d60d31b6064820152608401610735565b6000805b8551811015611930576000868281518110611806576118066135c8565b602002602001015190506000868381518110611824576118246135c8565b6020908102919091010151600c549091506001600160a01b039081169082160361186b576000828152600f60205260409020600401546118649085613645565b935061191b565b600d546001600160a01b039081169082160361189d576000828152600f60205260409020600501546118649085613645565b6000828152600f6020526040902060030154610100900460ff166118fc5760405162461bcd60e51b81526020600482015260166024820152754e6f74206f70656e20746f20746865207075626c696360501b6044820152606401610735565b6000828152600f60205260409020600601546119189085613645565b93505b50508080611928906135de565b9150506117e9565b508034101561193e82611c85565b60405160200161194e91906136e5565b6040516020818303038152906040529061197b5760405162461bcd60e51b81526004016107359190612d57565b5060005b8551811015610b4057600086828151811061199c5761199c6135c8565b6020026020010151905060008683815181106119ba576119ba6135c8565b6020026020010151905060008684815181106119d8576119d86135c8565b6020026020010151905060008685815181106119f6576119f66135c8565b60200260200101519050611a0c8484848461108c565b505050508080611a1b906135de565b91505061197f565b50505050565b846001600160a01b0381163314611a4357611a4333611d17565b610b408686868686612138565b611a58611b2e565b6001600160a01b038116611abd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b610b1681611fb8565b6001600160a01b038316331480611ae25750611ae2833361061a565b611afe5760405162461bcd60e51b8152600401610735906135f7565b610d8b83838361217d565b60006001600160e01b0319821663152a902d60e11b1480610761575061076182612295565b6005546001600160a01b03163314610da25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610735565b6127106001600160601b0382161115611bf65760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610735565b6001600160a01b038216611c4c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610735565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60606000611c92836122e5565b60010190506000816001600160401b03811115611cb157611cb1612c18565b6040519080825280601f01601f191660200182016040528015611cdb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611ce557509392505050565b6daaeb6d7670e522a718067333cd4e3b15610b1657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611d84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da891906136ab565b610b1657604051633b79c77360e21b81526001600160a01b0382166004820152602401610735565b6001600160a01b038516331480611dec5750611dec853361061a565b611e085760405162461bcd60e51b8152600401610735906135f7565b611e1585858585856123bd565b5050505050565b6001600160a01b038316611e425760405162461bcd60e51b815260040161073590613743565b8051825114611e635760405162461bcd60e51b815260040161073590613786565b6000339050611e868185600086866040518060200160405280600081525061255f565b60005b8351811015611f4b576000848281518110611ea657611ea66135c8565b602002602001015190506000848381518110611ec457611ec46135c8565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611f145760405162461bcd60e51b8152600401610735906137ce565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f43816135de565b915050611e89565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f9c929190613812565b60405180910390a4604080516020810190915260009052611a23565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661206a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610735565b3360006120768561256d565b905060006120838561256d565b90506120948360008985858961255f565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906120c4908490613645565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612124836000898989896125b8565b50505050505050565b610784338383612713565b6001600160a01b0385163314806121545750612154853361061a565b6121705760405162461bcd60e51b8152600401610735906135f7565b611e1585858585856127f3565b6001600160a01b0383166121a35760405162461bcd60e51b815260040161073590613743565b3360006121af8461256d565b905060006121bc8461256d565b90506121dc8387600085856040518060200160405280600081525061255f565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561221d5760405162461bcd60e51b8152600401610735906137ce565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052612124565b60006001600160e01b03198216636cdb3d1360e11b14806122c657506001600160e01b031982166303a24d0760e21b145b8061076157506301ffc9a760e01b6001600160e01b0319831614610761565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106123245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612350576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061236e57662386f26fc10000830492506010015b6305f5e1008310612386576305f5e100830492506008015b612710831061239a57612710830492506004015b606483106123ac576064830492506002015b600a83106107615760010192915050565b81518351146123de5760405162461bcd60e51b815260040161073590613786565b6001600160a01b0384166124045760405162461bcd60e51b815260040161073590613840565b3361241381878787878761255f565b60005b84518110156124f9576000858281518110612433576124336135c8565b602002602001015190506000858381518110612451576124516135c8565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124a15760405162461bcd60e51b815260040161073590613885565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124de908490613645565b92505081905550505050806124f2906135de565b9050612416565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612549929190613812565b60405180910390a4610b4081878787878761292b565b610b408686868686866129e6565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125a7576125a76135c8565b602090810291909101015292915050565b6001600160a01b0384163b15610b405760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125fc90899089908890889088906004016138cf565b6020604051808303816000875af1925050508015612637575060408051601f3d908101601f1916820190925261263491810190613914565b60015b6126e357612643613931565b806308c379a00361267c575061265761394d565b80612662575061267e565b8060405162461bcd60e51b81526004016107359190612d57565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610735565b6001600160e01b0319811663f23a6e6160e01b146121245760405162461bcd60e51b8152600401610735906139d6565b816001600160a01b0316836001600160a01b0316036127865760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610735565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166128195760405162461bcd60e51b815260040161073590613840565b3360006128258561256d565b905060006128328561256d565b905061284283898985858961255f565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156128835760405162461bcd60e51b815260040161073590613885565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906128c0908490613645565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612920848a8a8a8a8a6125b8565b505050505050505050565b6001600160a01b0384163b15610b405760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061296f9089908990889088908890600401613a1e565b6020604051808303816000875af19250505080156129aa575060408051601f3d908101601f191682019092526129a791810190613914565b60015b6129b657612643613931565b6001600160e01b0319811663bc197c8160e01b146121245760405162461bcd60e51b8152600401610735906139d6565b6001600160a01b038516612a6d5760005b8351811015612a6b57828181518110612a1257612a126135c8565b602002602001015160066000868481518110612a3057612a306135c8565b602002602001015181526020019081526020016000206000828254612a559190613645565b90915550612a649050816135de565b90506129f7565b505b6001600160a01b038416610b405760005b8351811015612124576000848281518110612a9b57612a9b6135c8565b602002602001015190506000848381518110612ab957612ab96135c8565b6020026020010151905060006006600084815260200190815260200160002054905081811015612b3c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610735565b60009283526006602052604090922091039055612b58816135de565b9050612a7e565b6001600160a01b0381168114610b1657600080fd5b60008060408385031215612b8757600080fd5b8235612b9281612b5f565b946020939093013593505050565b6001600160e01b031981168114610b1657600080fd5b600060208284031215612bc857600080fd5b813561090781612ba0565b60008060408385031215612be657600080fd5b8235612bf181612b5f565b915060208301356001600160601b0381168114612c0d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612c5357612c53612c18565b6040525050565b60006001600160401b03831115612c7357612c73612c18565b604051612c8a601f8501601f191660200182612c2e565b809150838152848484011115612c9f57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612cc957600080fd5b81356001600160401b03811115612cdf57600080fd5b8201601f81018413612cf057600080fd5b612cff84823560208401612c5a565b949350505050565b60005b83811015612d22578181015183820152602001612d0a565b50506000910152565b60008151808452612d43816020860160208601612d07565b601f01601f19169290920160200192915050565b6020815260006109076020830184612d2b565b600060208284031215612d7c57600080fd5b5035919050565b60008060408385031215612d9657600080fd5b50508035926020909101359150565b60006001600160401b03821115612dbe57612dbe612c18565b5060051b60200190565b600082601f830112612dd957600080fd5b81356020612de682612da5565b604051612df38282612c2e565b83815260059390931b8501820192828101915086841115612e1357600080fd5b8286015b84811015612e2e5780358352918301918301612e17565b509695505050505050565b600082601f830112612e4a57600080fd5b61090783833560208501612c5a565b600080600080600060a08688031215612e7157600080fd5b8535612e7c81612b5f565b94506020860135612e8c81612b5f565b935060408601356001600160401b0380821115612ea857600080fd5b612eb489838a01612dc8565b94506060880135915080821115612eca57600080fd5b612ed689838a01612dc8565b93506080880135915080821115612eec57600080fd5b50612ef988828901612e39565b9150509295509295909350565b600082601f830112612f1757600080fd5b81356020612f2482612da5565b604051612f318282612c2e565b83815260059390931b8501820192828101915086841115612f5157600080fd5b8286015b84811015612e2e578035612f6881612b5f565b8352918301918301612f55565b60008060408385031215612f8857600080fd5b82356001600160401b0380821115612f9f57600080fd5b612fab86838701612f06565b93506020850135915080821115612fc157600080fd5b50612fce85828601612dc8565b9150509250929050565b600081518084526020808501945080840160005b8381101561300857815187529582019590820190600101612fec565b509495945050505050565b6020815260006109076020830184612fd8565b8015158114610b1657600080fd5b60008060008060008060008060006101208a8c03121561305357600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a013561307a81613026565b945060a08a013561308a81613026565b8094505060c08a0135925060e08a013591506101008a013590509295985092959850929598565b6000602082840312156130c357600080fd5b813561090781612b5f565b6000806000606084860312156130e357600080fd5b83356130ee81612b5f565b925060208401356001600160401b038082111561310a57600080fd5b61311687838801612dc8565b9350604086013591508082111561312c57600080fd5b5061313986828701612dc8565b9150509250925092565b60008060006060848603121561315857600080fd5b833561316381612b5f565b95602085013595506040909401359392505050565b6000806040838503121561318b57600080fd5b823561319681612b5f565b91506020830135612c0d81613026565b600080604083850312156131b957600080fd5b82356131c481612b5f565b91506020830135612c0d81612b5f565b600080600080608085870312156131ea57600080fd5b8435935060208501356131fc81612b5f565b925060408501359150606085013561321381612b5f565b939692955090935050565b6000806000806080858703121561323457600080fd5b84356001600160401b038082111561324b57600080fd5b61325788838901612dc8565b955060209150818701358181111561326e57600080fd5b8701601f8101891361327f57600080fd5b803561328a81612da5565b6040516132978282612c2e565b82815260059290921b830185019185810191508b8311156132b757600080fd5b928501925b828410156132de5783356132cf81612b5f565b825292850192908501906132bc565b975050505060408701359150808211156132f757600080fd5b61330388838901612dc8565b9350606087013591508082111561331957600080fd5b5061332687828801612f06565b91505092959194509250565b600080600080600060a0868803121561334a57600080fd5b853561335581612b5f565b9450602086013561336581612b5f565b9350604086013592506060860135915060808601356001600160401b0381111561338e57600080fd5b612ef988828901612e39565b600181811c908216806133ae57607f821691505b6020821081036133ce57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d8b57600081815260208120601f850160051c810160208610156133fb5750805b601f850160051c820191505b81811015610b4057828155600101613407565b81516001600160401b0381111561343357613433612c18565b61344781613441845461339a565b846133d4565b602080601f83116001811461347c57600084156134645750858301515b600019600386901b1c1916600185901b178555610b40565b600085815260208120601f198616915b828110156134ab5788860151825594840194600190910190840161348c565b50858210156134c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206134ec8285838a01612d07565b8551918401916134ff8184848a01612d07565b85549201916000906135108161339a565b60018281168015613528576001811461353d57613569565b60ff1984168752821515830287019450613569565b896000528560002060005b8481101561356157815489820152908301908701613548565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761076157610761613579565b6000826135c357634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016135f0576135f0613579565b5060010190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561076157610761613579565b7f496e76616c69642070726963652c20706c656173652073656e643a200000000081526000825161369081601c850160208701612d07565b632077656960e01b601c939091019283015250602001919050565b6000602082840312156136bd57600080fd5b815161090781613026565b6000602082840312156136da57600080fd5b815161090781612b5f565b7f496e76616c696420746f74616c2070726963652c20706c656173652073656e6481526101d160f51b602082015260008251613728816022850160208701612d07565b632077656960e01b6022939091019283015250602601919050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6040815260006138256040830185612fd8565b82810360208401526138378185612fd8565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061390990830184612d2b565b979650505050505050565b60006020828403121561392657600080fd5b815161090781612ba0565b600060033d111561394a5760046000803e5060005160e01c5b90565b600060443d101561395b5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561398a57505050505090565b82850191508151818111156139a25750505050505090565b843d87010160208285010111156139bc5750505050505090565b6139cb60208286010187612c2e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613a4a90830186612fd8565b8281036060840152613a5c8186612fd8565b90508281036080840152613a708185612d2b565b9897505050505050505056fea2646970667358221220953ea16fd91a25d3f1c0ff140550d9421e3b283d29aa17836227f0662d6dd25564736f6c6343000812003300000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000a210ac838a866fbeb213f27a08a3a3fa27a6baf00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170000000000000000000000000f902a8baf88793ddf636a8791bd55a62b71c9ef400000000000000000000000000000000000076a84fef008cdabe6409d2fe638b

Deployed Bytecode

0x6080604052600436106101d75760003560e01c80637114680111610102578063bd85b03911610095578063efaa03f711610064578063efaa03f71461065b578063f242432a1461066e578063f2fde38b1461068e578063f5298aca146106ae57600080fd5b8063bd85b03914610534578063c02af6c914610561578063e985e9c5146105ff578063e9eb70081461064857600080fd5b8063a02148b7116100d1578063a02148b7146104c1578063a22cb465146104d4578063a903a3a7146104f4578063bc9a2e611461051457600080fd5b80637114680114610438578063715018a6146104795780638da5cb5b1461048e57806395d89b41146104ac57600080fd5b80632e1a7d4d1161017a5780634f558e79116101495780634f558e79146103a9578063535237ae146103d857806356200819146103f85780636b20c4541461041857600080fd5b80632e1a7d4d146103025780632eb2c2d61461032257806341f43434146103425780634e1273f41461037c57600080fd5b806302fe5305116101b657806302fe53051461026157806306fdde03146102815780630e89341c146102a35780632a55205a146102c357600080fd5b8062fdd58e146101dc57806301ffc9a71461020f57806302fa7c471461023f575b600080fd5b3480156101e857600080fd5b506101fc6101f7366004612b74565b6106ce565b6040519081526020015b60405180910390f35b34801561021b57600080fd5b5061022f61022a366004612bb6565b610767565b6040519015158152602001610206565b34801561024b57600080fd5b5061025f61025a366004612bd3565b610772565b005b34801561026d57600080fd5b5061025f61027c366004612cb7565b610788565b34801561028d57600080fd5b5061029661079c565b6040516102069190612d57565b3480156102af57600080fd5b506102966102be366004612d6a565b61082a565b3480156102cf57600080fd5b506102e36102de366004612d83565b61090e565b604080516001600160a01b039093168352602083019190915201610206565b34801561030e57600080fd5b5061025f61031d366004612d6a565b6109ba565b34801561032e57600080fd5b5061025f61033d366004612e59565b610b19565b34801561034e57600080fd5b506103646daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610206565b34801561038857600080fd5b5061039c610397366004612f75565b610b48565b6040516102069190613013565b3480156103b557600080fd5b5061022f6103c4366004612d6a565b600090815260066020526040902054151590565b3480156103e457600080fd5b5061025f6103f3366004613034565b610c71565b34801561040457600080fd5b5061025f6104133660046130b1565b610d1e565b34801561042457600080fd5b5061025f6104333660046130ce565b610d48565b34801561044457600080fd5b5061022f610453366004613143565b601160209081526000938452604080852082529284528284209052825290205460ff1681565b34801561048557600080fd5b5061025f610d90565b34801561049a57600080fd5b506005546001600160a01b0316610364565b3480156104b857600080fd5b50610296610da4565b61025f6104cf366004612d83565b610db1565b3480156104e057600080fd5b5061025f6104ef366004613178565b611078565b34801561050057600080fd5b50600d54610364906001600160a01b031681565b34801561052057600080fd5b50600c54610364906001600160a01b031681565b34801561054057600080fd5b506101fc61054f366004612d6a565b60009081526006602052604090205490565b34801561056d57600080fd5b506105c261057c366004612d6a565b600f60205260009081526040902080546001820154600283015460038401546004850154600586015460069096015494959394929360ff80841694610100909404169288565b6040805198895260208901979097529587019490945291151560608601521515608085015260a084015260c083015260e082015261010001610206565b34801561060b57600080fd5b5061022f61061a3660046131a6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61025f6106563660046131d4565b61108c565b61025f61066936600461321e565b6115eb565b34801561067a57600080fd5b5061025f610689366004613332565b611a29565b34801561069a57600080fd5b5061025f6106a93660046130b1565b611a50565b3480156106ba57600080fd5b5061025f6106c9366004613143565b611ac6565b60006001600160a01b03831661073e5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061076182611b09565b61077a611b2e565b6107848282611b88565b5050565b610790611b2e565b600a610784828261341a565b600880546107a99061339a565b80601f01602080910402602001604051908101604052809291908181526020018280546107d59061339a565b80156108225780601f106107f757610100808354040283529160200191610822565b820191906000526020600020905b81548152906001019060200180831161080557829003601f168201915b505050505081565b60606000600a805461083b9061339a565b80601f01602080910402602001604051908101604052809291908181526020018280546108679061339a565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905060008151116108d95760405180602001604052806000815250610907565b806108e384611c85565b600b6040516020016108f7939291906134d9565b6040516020818303038152906040525b9392505050565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109835750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109a2906001600160601b03168761358f565b6109ac91906135a6565b915196919550909350505050565b6109c2611b2e565b4781111580156109d25750600047115b610a1e5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f7567682065746865727320746f2077697468647261770000006044820152606401610735565b80600003610ac957600e546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610a73576040519150601f19603f3d011682016040523d82523d6000602084013e610a78565b606091505b50509050806107845760405162461bcd60e51b815260206004820152601760248201527f4572726f72207768696c65207472616e73666572696e670000000000000000006044820152606401610735565b600e546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610a73576040519150601f19603f3d011682016040523d82523d6000602084013e610a78565b50565b846001600160a01b0381163314610b3357610b3333611d17565b610b408686868686611dd0565b505050505050565b60608151835114610bad5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610735565b600083516001600160401b03811115610bc857610bc8612c18565b604051908082528060200260200182016040528015610bf1578160200160208202803683370190505b50905060005b8451811015610c6957610c3c858281518110610c1557610c156135c8565b6020026020010151858381518110610c2f57610c2f6135c8565b60200260200101516106ce565b828281518110610c4e57610c4e6135c8565b6020908102919091010152610c62816135de565b9050610bf7565b509392505050565b610c79611b2e565b6040805161010080820183529981526020808201998a52818301988952961515606082019081529515156080820190815260a0820195865260c0820194855260e0820193845260009b8c52600f90975299209851895595516001890155935160028801559051600387018054935161ffff1990941691151561ff0019169190911792151590950291909117909355915160048401559051600583015551600690910155565b610d26611b2e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316331480610d645750610d64833361061a565b610d805760405162461bcd60e51b8152600401610735906135f7565b610d8b838383611e1c565b505050565b610d98611b2e565b610da26000611fb8565b565b600980546107a99061339a565b6000828152600f60205260409020544210801590610ddc57506000828152600f602052604090205415155b610e1b5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610735565b6000828152600f6020526040902060010154421115610e695760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610735565b6000828152600f6020526040902060030154610100900460ff16610ec55760405162461bcd60e51b81526020600482015260136024820152722737ba1037b832b7103a3790383ab13634b19760691b6044820152606401610735565b60008111610efd5760405162461bcd60e51b81526020600482015260056024820152644d696e203160d81b6044820152606401610735565b600a811115610f425760405162461bcd60e51b815260206004820152601160248201527026b0bc1018981034b71037b732903a3c3760791b6044820152606401610735565b6000828152600f602052604090206003015460ff1615610fc857600082815260066020526040902054610f76908290613645565b6000838152600f60205260409020600201541015610fc85760405162461bcd60e51b815260206004820152600f60248201526e14dd5c1c1b1e48195e18d959591959608a1b6044820152606401610735565b6000828152600f6020526040902060060154610fe590829061358f565b34101561101282600f60008681526020019081526020016000206006015461100d919061358f565b611c85565b6040516020016110229190613658565b6040516020818303038152906040529061104f5760405162461bcd60e51b81526004016107359190612d57565b50610784338383604051806040016040528060048152602001630307830360e41b81525061200a565b8161108281611d17565b610d8b838361212d565b6000848152600f602052604090205442108015906110b757506000848152600f602052604090205415155b6110f65760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610735565b6000848152600f60205260409020600101544211156111445760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610735565b336001600160a01b0382161561122c57600754604051631574d39f60e31b81523360048201526001600160a01b038481166024830152868116604483015260648201869052600092169063aba69cf890608401602060405180830381865afa1580156111b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d891906136ab565b9050806112275760405162461bcd60e51b815260206004820152601e60248201527f496e76616c69642064656c65676174652d7661756c742070616972696e6700006044820152606401610735565b829150505b6001600160a01b0384166112af576000858152600f6020526040902060030154610100900460ff166112af5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e206973206e6f7420617661696c61626c6520666f72207075626c6960448201526518c81b5a5b9d60d21b6064820152608401610735565b6000858152600f602052604090206003015460ff1615611324576000858152600660205260409020546000868152600f6020526040902060020154116113245760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610735565b6001600160a01b038416156114aa576001600160a01b0384166000908152601160209081526040808320888452825280832086845290915290205460ff16156113a45760405162461bcd60e51b8152602060048201526012602482015271151bdad95b88185b1c9958591e481d5cd95960721b6044820152606401610735565b6040516331a9108f60e11b8152600481018490526001600160a01b038083169190861690636352211e90602401602060405180830381865afa1580156113ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141291906136c8565b6001600160a01b0316146114735760405162461bcd60e51b815260206004820152602260248201527f596f7520617265206e6f7420746865206f776e6572206f662074686520746f6b60448201526132b760f11b6064820152608401610735565b6001600160a01b038416600090815260116020908152604080832088845282528083208684529091529020805460ff191660011790555b600c546000906001600160a01b038087169116036114da57506000858152600f6020526040902060040154611577565b600d546001600160a01b0380871691160361150757506000858152600f6020526040902060050154611577565b6000868152600f6020526040902060030154610100900460ff166115635760405162461bcd60e51b81526020600482015260136024820152722737ba1037b832b7103a3790383ab13634b19760691b6044820152606401610735565b506000858152600f60205260409020600601545b8034101561158482611c85565b6040516020016115949190613658565b604051602081830303815290604052906115c15760405162461bcd60e51b81526004016107359190612d57565b50610b4082876001604051806040016040528060048152602001630307830360e41b81525061200a565b6005546001600160a01b031633036116e75760005b84518110156116e157600085828151811061161d5761161d6135c8565b602002602001015190506014865160106000848152602001908152602001600020546116499190613645565b11156116865760405162461bcd60e51b815260206004820152600c60248201526b26b0bc103932b0b1b432b21760a11b6044820152606401610735565b60008181526010602052604081208054916116a0836135de565b91905055506116ce33826001604051806040016040528060048152602001630307830360e41b81525061200a565b50806116d9816135de565b915050611600565b50611a23565b600084511161172c5760405162461bcd60e51b81526020600482015260116024820152704d757374206e6f7420626520656d70747960781b6044820152606401610735565b603384511061176b5760405162461bcd60e51b815260206004820152600b60248201526a3530206f722062656c6f7760a81b6044820152606401610735565b8251845114801561177d575081518451145b801561178a575080518451145b6117e55760405162461bcd60e51b815260206004820152602660248201527f496e70757420617272617973206d7573742068617665207468652073616d65206044820152650d8cadccee8d60d31b6064820152608401610735565b6000805b8551811015611930576000868281518110611806576118066135c8565b602002602001015190506000868381518110611824576118246135c8565b6020908102919091010151600c549091506001600160a01b039081169082160361186b576000828152600f60205260409020600401546118649085613645565b935061191b565b600d546001600160a01b039081169082160361189d576000828152600f60205260409020600501546118649085613645565b6000828152600f6020526040902060030154610100900460ff166118fc5760405162461bcd60e51b81526020600482015260166024820152754e6f74206f70656e20746f20746865207075626c696360501b6044820152606401610735565b6000828152600f60205260409020600601546119189085613645565b93505b50508080611928906135de565b9150506117e9565b508034101561193e82611c85565b60405160200161194e91906136e5565b6040516020818303038152906040529061197b5760405162461bcd60e51b81526004016107359190612d57565b5060005b8551811015610b4057600086828151811061199c5761199c6135c8565b6020026020010151905060008683815181106119ba576119ba6135c8565b6020026020010151905060008684815181106119d8576119d86135c8565b6020026020010151905060008685815181106119f6576119f66135c8565b60200260200101519050611a0c8484848461108c565b505050508080611a1b906135de565b91505061197f565b50505050565b846001600160a01b0381163314611a4357611a4333611d17565b610b408686868686612138565b611a58611b2e565b6001600160a01b038116611abd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b610b1681611fb8565b6001600160a01b038316331480611ae25750611ae2833361061a565b611afe5760405162461bcd60e51b8152600401610735906135f7565b610d8b83838361217d565b60006001600160e01b0319821663152a902d60e11b1480610761575061076182612295565b6005546001600160a01b03163314610da25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610735565b6127106001600160601b0382161115611bf65760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610735565b6001600160a01b038216611c4c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610735565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60606000611c92836122e5565b60010190506000816001600160401b03811115611cb157611cb1612c18565b6040519080825280601f01601f191660200182016040528015611cdb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611ce557509392505050565b6daaeb6d7670e522a718067333cd4e3b15610b1657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611d84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da891906136ab565b610b1657604051633b79c77360e21b81526001600160a01b0382166004820152602401610735565b6001600160a01b038516331480611dec5750611dec853361061a565b611e085760405162461bcd60e51b8152600401610735906135f7565b611e1585858585856123bd565b5050505050565b6001600160a01b038316611e425760405162461bcd60e51b815260040161073590613743565b8051825114611e635760405162461bcd60e51b815260040161073590613786565b6000339050611e868185600086866040518060200160405280600081525061255f565b60005b8351811015611f4b576000848281518110611ea657611ea66135c8565b602002602001015190506000848381518110611ec457611ec46135c8565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611f145760405162461bcd60e51b8152600401610735906137ce565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f43816135de565b915050611e89565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f9c929190613812565b60405180910390a4604080516020810190915260009052611a23565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661206a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610735565b3360006120768561256d565b905060006120838561256d565b90506120948360008985858961255f565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906120c4908490613645565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612124836000898989896125b8565b50505050505050565b610784338383612713565b6001600160a01b0385163314806121545750612154853361061a565b6121705760405162461bcd60e51b8152600401610735906135f7565b611e1585858585856127f3565b6001600160a01b0383166121a35760405162461bcd60e51b815260040161073590613743565b3360006121af8461256d565b905060006121bc8461256d565b90506121dc8387600085856040518060200160405280600081525061255f565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561221d5760405162461bcd60e51b8152600401610735906137ce565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052612124565b60006001600160e01b03198216636cdb3d1360e11b14806122c657506001600160e01b031982166303a24d0760e21b145b8061076157506301ffc9a760e01b6001600160e01b0319831614610761565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106123245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612350576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061236e57662386f26fc10000830492506010015b6305f5e1008310612386576305f5e100830492506008015b612710831061239a57612710830492506004015b606483106123ac576064830492506002015b600a83106107615760010192915050565b81518351146123de5760405162461bcd60e51b815260040161073590613786565b6001600160a01b0384166124045760405162461bcd60e51b815260040161073590613840565b3361241381878787878761255f565b60005b84518110156124f9576000858281518110612433576124336135c8565b602002602001015190506000858381518110612451576124516135c8565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124a15760405162461bcd60e51b815260040161073590613885565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124de908490613645565b92505081905550505050806124f2906135de565b9050612416565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612549929190613812565b60405180910390a4610b4081878787878761292b565b610b408686868686866129e6565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125a7576125a76135c8565b602090810291909101015292915050565b6001600160a01b0384163b15610b405760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125fc90899089908890889088906004016138cf565b6020604051808303816000875af1925050508015612637575060408051601f3d908101601f1916820190925261263491810190613914565b60015b6126e357612643613931565b806308c379a00361267c575061265761394d565b80612662575061267e565b8060405162461bcd60e51b81526004016107359190612d57565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610735565b6001600160e01b0319811663f23a6e6160e01b146121245760405162461bcd60e51b8152600401610735906139d6565b816001600160a01b0316836001600160a01b0316036127865760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610735565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166128195760405162461bcd60e51b815260040161073590613840565b3360006128258561256d565b905060006128328561256d565b905061284283898985858961255f565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156128835760405162461bcd60e51b815260040161073590613885565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906128c0908490613645565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612920848a8a8a8a8a6125b8565b505050505050505050565b6001600160a01b0384163b15610b405760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061296f9089908990889088908890600401613a1e565b6020604051808303816000875af19250505080156129aa575060408051601f3d908101601f191682019092526129a791810190613914565b60015b6129b657612643613931565b6001600160e01b0319811663bc197c8160e01b146121245760405162461bcd60e51b8152600401610735906139d6565b6001600160a01b038516612a6d5760005b8351811015612a6b57828181518110612a1257612a126135c8565b602002602001015160066000868481518110612a3057612a306135c8565b602002602001015181526020019081526020016000206000828254612a559190613645565b90915550612a649050816135de565b90506129f7565b505b6001600160a01b038416610b405760005b8351811015612124576000848281518110612a9b57612a9b6135c8565b602002602001015190506000848381518110612ab957612ab96135c8565b6020026020010151905060006006600084815260200190815260200160002054905081811015612b3c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610735565b60009283526006602052604090922091039055612b58816135de565b9050612a7e565b6001600160a01b0381168114610b1657600080fd5b60008060408385031215612b8757600080fd5b8235612b9281612b5f565b946020939093013593505050565b6001600160e01b031981168114610b1657600080fd5b600060208284031215612bc857600080fd5b813561090781612ba0565b60008060408385031215612be657600080fd5b8235612bf181612b5f565b915060208301356001600160601b0381168114612c0d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612c5357612c53612c18565b6040525050565b60006001600160401b03831115612c7357612c73612c18565b604051612c8a601f8501601f191660200182612c2e565b809150838152848484011115612c9f57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612cc957600080fd5b81356001600160401b03811115612cdf57600080fd5b8201601f81018413612cf057600080fd5b612cff84823560208401612c5a565b949350505050565b60005b83811015612d22578181015183820152602001612d0a565b50506000910152565b60008151808452612d43816020860160208601612d07565b601f01601f19169290920160200192915050565b6020815260006109076020830184612d2b565b600060208284031215612d7c57600080fd5b5035919050565b60008060408385031215612d9657600080fd5b50508035926020909101359150565b60006001600160401b03821115612dbe57612dbe612c18565b5060051b60200190565b600082601f830112612dd957600080fd5b81356020612de682612da5565b604051612df38282612c2e565b83815260059390931b8501820192828101915086841115612e1357600080fd5b8286015b84811015612e2e5780358352918301918301612e17565b509695505050505050565b600082601f830112612e4a57600080fd5b61090783833560208501612c5a565b600080600080600060a08688031215612e7157600080fd5b8535612e7c81612b5f565b94506020860135612e8c81612b5f565b935060408601356001600160401b0380821115612ea857600080fd5b612eb489838a01612dc8565b94506060880135915080821115612eca57600080fd5b612ed689838a01612dc8565b93506080880135915080821115612eec57600080fd5b50612ef988828901612e39565b9150509295509295909350565b600082601f830112612f1757600080fd5b81356020612f2482612da5565b604051612f318282612c2e565b83815260059390931b8501820192828101915086841115612f5157600080fd5b8286015b84811015612e2e578035612f6881612b5f565b8352918301918301612f55565b60008060408385031215612f8857600080fd5b82356001600160401b0380821115612f9f57600080fd5b612fab86838701612f06565b93506020850135915080821115612fc157600080fd5b50612fce85828601612dc8565b9150509250929050565b600081518084526020808501945080840160005b8381101561300857815187529582019590820190600101612fec565b509495945050505050565b6020815260006109076020830184612fd8565b8015158114610b1657600080fd5b60008060008060008060008060006101208a8c03121561305357600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a013561307a81613026565b945060a08a013561308a81613026565b8094505060c08a0135925060e08a013591506101008a013590509295985092959850929598565b6000602082840312156130c357600080fd5b813561090781612b5f565b6000806000606084860312156130e357600080fd5b83356130ee81612b5f565b925060208401356001600160401b038082111561310a57600080fd5b61311687838801612dc8565b9350604086013591508082111561312c57600080fd5b5061313986828701612dc8565b9150509250925092565b60008060006060848603121561315857600080fd5b833561316381612b5f565b95602085013595506040909401359392505050565b6000806040838503121561318b57600080fd5b823561319681612b5f565b91506020830135612c0d81613026565b600080604083850312156131b957600080fd5b82356131c481612b5f565b91506020830135612c0d81612b5f565b600080600080608085870312156131ea57600080fd5b8435935060208501356131fc81612b5f565b925060408501359150606085013561321381612b5f565b939692955090935050565b6000806000806080858703121561323457600080fd5b84356001600160401b038082111561324b57600080fd5b61325788838901612dc8565b955060209150818701358181111561326e57600080fd5b8701601f8101891361327f57600080fd5b803561328a81612da5565b6040516132978282612c2e565b82815260059290921b830185019185810191508b8311156132b757600080fd5b928501925b828410156132de5783356132cf81612b5f565b825292850192908501906132bc565b975050505060408701359150808211156132f757600080fd5b61330388838901612dc8565b9350606087013591508082111561331957600080fd5b5061332687828801612f06565b91505092959194509250565b600080600080600060a0868803121561334a57600080fd5b853561335581612b5f565b9450602086013561336581612b5f565b9350604086013592506060860135915060808601356001600160401b0381111561338e57600080fd5b612ef988828901612e39565b600181811c908216806133ae57607f821691505b6020821081036133ce57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d8b57600081815260208120601f850160051c810160208610156133fb5750805b601f850160051c820191505b81811015610b4057828155600101613407565b81516001600160401b0381111561343357613433612c18565b61344781613441845461339a565b846133d4565b602080601f83116001811461347c57600084156134645750858301515b600019600386901b1c1916600185901b178555610b40565b600085815260208120601f198616915b828110156134ab5788860151825594840194600190910190840161348c565b50858210156134c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206134ec8285838a01612d07565b8551918401916134ff8184848a01612d07565b85549201916000906135108161339a565b60018281168015613528576001811461353d57613569565b60ff1984168752821515830287019450613569565b896000528560002060005b8481101561356157815489820152908301908701613548565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761076157610761613579565b6000826135c357634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016135f0576135f0613579565b5060010190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561076157610761613579565b7f496e76616c69642070726963652c20706c656173652073656e643a200000000081526000825161369081601c850160208701612d07565b632077656960e01b601c939091019283015250602001919050565b6000602082840312156136bd57600080fd5b815161090781613026565b6000602082840312156136da57600080fd5b815161090781612b5f565b7f496e76616c696420746f74616c2070726963652c20706c656173652073656e6481526101d160f51b602082015260008251613728816022850160208701612d07565b632077656960e01b6022939091019283015250602601919050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6040815260006138256040830185612fd8565b82810360208401526138378185612fd8565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061390990830184612d2b565b979650505050505050565b60006020828403121561392657600080fd5b815161090781612ba0565b600060033d111561394a5760046000803e5060005160e01c5b90565b600060443d101561395b5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561398a57505050505090565b82850191508151818111156139a25750505050505090565b843d87010160208285010111156139bc5750505050505090565b6139cb60208286010187612c2e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613a4a90830186612fd8565b8281036060840152613a5c8186612fd8565b90508281036080840152613a708185612d2b565b9897505050505050505056fea2646970667358221220953ea16fd91a25d3f1c0ff140550d9421e3b283d29aa17836227f0662d6dd25564736f6c63430008120033

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

00000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000a210ac838a866fbeb213f27a08a3a3fa27a6baf00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170000000000000000000000000f902a8baf88793ddf636a8791bd55a62b71c9ef400000000000000000000000000000000000076a84fef008cdabe6409d2fe638b

-----Decoded View---------------
Arg [0] : _royaltyFeesInBips (uint96): 500
Arg [1] : _royaltyRecipient (address): 0x0a210ac838A866fbEB213F27a08A3A3Fa27a6BAF
Arg [2] : _rayc (address): 0x31d45de84fdE2fB36575085e05754a4932DD5170
Arg [3] : _zayc (address): 0xf902A8BAF88793DDF636a8791bd55A62B71c9ef4
Arg [4] : delegateContract (address): 0x00000000000076A84feF008CDAbe6409d2FE638B

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [1] : 0000000000000000000000000a210ac838a866fbeb213f27a08a3a3fa27a6baf
Arg [2] : 00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170
Arg [3] : 000000000000000000000000f902a8baf88793ddf636a8791bd55a62b71c9ef4
Arg [4] : 00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.