false
true
0

Contract Address Details

0xfCB0B0D4CF39ca20F438942EeC221bb7d3C9b496

Contract Name
JoynMarketplace
Creator
0x80aa13–d801be at 0xe0d570–c04b7c
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
26732660
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
JoynMarketplace




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
london




Verified at
2026-05-31T12:18:27.663451Z

contracts/JoynMarketplace.sol

/**
 *     ___  ________      ___    ___ ________
 *    |\  \|\   __  \    |\  \  /  /|\   ___  \
 *    \ \  \ \  \|\  \   \ \  \/  / | \  \\ \  \
 *  __ \ \  \ \  \\\  \   \ \    / / \ \  \\ \  \
 * |\  \\_\  \ \  \\\  \   \/  /  /   \ \  \\ \  \
 * \ \________\ \_______\__/  / /      \ \__\\ \__\
 *  \|________|\|_______|\___/ /        \|__| \|__|
 *                      \|___|/
 */

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";

import "../interfaces/IRoyaltyEngineV1.sol";
import "../interfaces/IJoynMarketplace.sol";
import "../interfaces/IWETH9.sol";

error PriceNotMet(address nftAddress, uint256 tokenId, uint256 price);
error ItemNotForSale(address nftAddress, uint256 tokenId);
error NotListed(address nftAddress, uint256 tokenId);
error AlreadyListed(address nftAddress, uint256 tokenId);
error NotOwner();
error NotListingOwner();
error NotApprovedForMarketplace();
error PriceMustBeAboveZero();
error MarketplaceFeeExceedsLimit();
error TransferEthFailed();
error TransferProceedsToSellerFailed();
error ProceedWithdrawalFailed();
error FeesHigherThanSalePrice();

contract JoynMarketplace is
    IJoynMarketplace,
    ReentrancyGuardUpgradeable,
    OwnableUpgradeable
{
    uint256 public constant PERCENTAGE_DIVIDER = 10000;

    uint256 private s_marketplaceFee;

    uint256 private listingCount;

    // State Variables
    mapping(address => mapping(uint256 => Listing)) private s_listings;
    IRoyaltyEngineV1 _royaltyEngine;
    IWETH9 weth;

    uint32 public referrerFee;

    uint32 public constant MAX_MARKETPLACE_FEE = 10000;

    modifier isTokenOwner(
        address nftAddress,
        uint256 tokenId,
        address spender
    ) {
        IERC721Upgradeable nft = IERC721Upgradeable(nftAddress);
        address owner = nft.ownerOf(tokenId);
        if (spender != owner) {
            revert NotOwner();
        }
        _;
    }

    modifier isListingOwner(
        address seller,
        address nftAddress,
        uint256 tokenId
    ) {
        Listing memory listing = s_listings[nftAddress][tokenId];
        if (seller != listing.seller) {
            revert NotListingOwner();
        }
        _;
    }

    function initialize() external initializer {
        __Context_init();
        __Ownable_init();
        __ReentrancyGuard_init();
        referrerFee = 420;
    }

    function _validateListing(
        address nftAddress,
        uint256 tokenId,
        bool shouldListed,
        address seller
    ) private view {
        Listing storage listing = s_listings[nftAddress][tokenId];
        if (shouldListed) {
            if (listing.price == 0) {
                revert NotListed(nftAddress, tokenId);
            }
        } else {
            if (listing.price != 0 && listing.seller == seller) {
                revert AlreadyListed(nftAddress, tokenId);
            }
        }
    }

    function _distributeRoyalties(
        address nftAddress,
        uint256 tokenId,
        uint256 price,
        uint256 listingId
    ) private returns (uint256) {
        (
            address payable[] memory recipients,
            uint256[] memory amounts
        ) = _royaltyEngine.getRoyaltyView(address(nftAddress), tokenId, price);

        address payable receiver;
        uint256 sumOfRoyalties;
        uint256 royalty;
        for (uint i = 0; i < recipients.length; ++i) {
            receiver = recipients[i];
            if (receiver != address(0)) {
                royalty = amounts[i];
                sumOfRoyalties += royalty;

                transferEth(receiver, royalty);

                emit RoyaltyTransfered(
                    receiver,
                    royalty,
                    tokenId,
                    nftAddress,
                    listingId
                );
            }
        }

        return sumOfRoyalties;
    }

    function _distributeReferrerFee(
        address referrerAddress,
        address nftAddress,
        uint256 price,
        uint256 tokenId,
        uint256 listingId
    ) private returns (uint256) {
        uint256 referrerFeeAmount = (price * referrerFee) / PERCENTAGE_DIVIDER;

        if (referrerFeeAmount != 0) {
            transferEth(referrerAddress, referrerFeeAmount);

            emit ReferrerFeeTransferred(
                referrerAddress,
                referrerFeeAmount,
                tokenId,
                nftAddress,
                listingId
            );
        }

        return referrerFeeAmount;
    }

    function listItem(
        address nftAddress,
        uint256 tokenId,
        uint256 price,
        uint32 marketplaceFee
    ) external isTokenOwner(nftAddress, tokenId, _msgSender()) {
        _validateListing(nftAddress, tokenId, false, _msgSender());

        if (price == 0) {
            revert PriceMustBeAboveZero();
        }
        if (marketplaceFee > MAX_MARKETPLACE_FEE) {
            revert MarketplaceFeeExceedsLimit();
        }

        address collectionAddress = nftAddress;
        uint256 listingTokenId = tokenId;
        if (
            IERC721Upgradeable(collectionAddress).getApproved(tokenId) !=
            address(this)
        ) {
            revert NotApprovedForMarketplace();
        }

        Listing storage list = s_listings[collectionAddress][listingTokenId];
        list.listingId = ++listingCount;
        list.price = price;
        list.marketplaceFee = marketplaceFee;
        list.seller = _msgSender();
        list.buyer = address(0);
        emit ItemListed(
            _msgSender(),
            collectionAddress,
            listingTokenId,
            listingCount,
            price,
            marketplaceFee
        );
    }

    function cancelListing(
        address nftAddress,
        uint256 tokenId
    ) external isListingOwner(_msgSender(), nftAddress, tokenId) {
        _validateListing(nftAddress, tokenId, true, _msgSender());

        Listing storage list = s_listings[nftAddress][tokenId];
        list.price = 0;
        emit ItemCanceled(_msgSender(), nftAddress, tokenId, list.listingId);
    }

    function buyItem(
        address nftAddress,
        uint256 tokenId,
        address referrerAddress
    ) external payable nonReentrant {
        _validateListing(nftAddress, tokenId, true, _msgSender());

        Listing storage listedItem = s_listings[nftAddress][tokenId];
        if (msg.value != listedItem.price) {
            revert PriceNotMet(nftAddress, tokenId, listedItem.price);
        }

        IERC721Upgradeable(nftAddress).safeTransferFrom(
            listedItem.seller,
            _msgSender(),
            tokenId
        );

        listedItem.buyer = _msgSender();
        uint256 itemPrice = listedItem.price;
        uint256 marketplaceFeeAmount = (itemPrice * listedItem.marketplaceFee) /
            PERCENTAGE_DIVIDER;
        s_marketplaceFee += marketplaceFeeAmount;
        listedItem.marketplaceFeeAmount = marketplaceFeeAmount;

        uint256 sumOfRoyalties = _distributeRoyalties(
            nftAddress,
            tokenId,
            itemPrice,
            listedItem.listingId
        );

        uint256 referrerFeeAmount;
        if (referrerAddress != address(0)) {
            referrerFeeAmount = _distributeReferrerFee(
                referrerAddress,
                nftAddress,
                itemPrice,
                tokenId,
                listedItem.listingId
            );
        }
        uint256 totalFees = marketplaceFeeAmount +
            sumOfRoyalties +
            referrerFeeAmount;

        if (totalFees > itemPrice) {
            revert FeesHigherThanSalePrice();
        }

        uint256 amountDueToSeller = itemPrice - totalFees;

        (bool success, ) = payable(listedItem.seller).call{
            value: amountDueToSeller
        }("");
        if (!success) {
            revert TransferProceedsToSellerFailed();
        }

        emit ItemBought(
            listedItem.seller,
            _msgSender(),
            nftAddress,
            tokenId,
            listedItem.listingId,
            listedItem.price,
            amountDueToSeller,
            marketplaceFeeAmount
        );
    }

    function updateListingMarketplaceFeeAndPrice(
        address nftAddress,
        uint256 tokenId,
        uint32 marketplaceFee,
        uint256 price
    ) external nonReentrant isListingOwner(_msgSender(), nftAddress, tokenId) {
        _validateListing(nftAddress, tokenId, true, _msgSender());

        if (marketplaceFee > MAX_MARKETPLACE_FEE) {
            revert MarketplaceFeeExceedsLimit();
        }
        if (price == 0) {
            revert PriceMustBeAboveZero();
        }

        Listing storage listing = s_listings[nftAddress][tokenId];
        listing.marketplaceFee = marketplaceFee;
        listing.price = price;
        emit ListingUpdated(
            _msgSender(),
            nftAddress,
            tokenId,
            listing.listingId,
            price,
            marketplaceFee
        );
    }

    function withdrawFee(address receiver) external onlyOwner {
        (bool withdrawFeeTransferSuccess, ) = payable(receiver).call{
            value: s_marketplaceFee
        }("");

        if (!withdrawFeeTransferSuccess) {
            revert ProceedWithdrawalFailed();
        }

        s_marketplaceFee = 0;
    }

    function setRoyaltyEngine(address royaltyEngine) external onlyOwner {
        _royaltyEngine = IRoyaltyEngineV1(royaltyEngine);
    }

    function getMarketplaceFeeAmount() external view returns (uint256) {
        return s_marketplaceFee;
    }

    function getListing(
        address nftAddress,
        uint256 tokenId
    ) external view returns (Listing memory) {
        return s_listings[nftAddress][tokenId];
    }

    function setWETH(address _weth) external onlyOwner {
        weth = IWETH9(_weth);
    }

    function setReferrerFee(uint32 newReferrerFee) external onlyOwner {
        referrerFee = newReferrerFee;
    }

    function transferEth(address receiver, uint256 amount) internal {
        (bool EthTransferSuccess, ) = payable(receiver).call{
            gas: 21000,
            value: amount
        }("");

        if (!EthTransferSuccess) {
            weth.deposit{value: amount}();
            bool WETHTransferSuccess = weth.transfer(receiver, amount);
            if (!WETHTransferSuccess) {
                revert TransferEthFailed();
            }
        }
    }
}
        

/IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @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);
}
          

/ReentrancyGuardUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}
          

/IERC721Upgradeable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}
          

/Initializable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}
          

/OwnableUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}
          

/ContextUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}
          

/AddressUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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);
            }
        }
    }
}
          

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

/IERC20.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

/IRoyaltyEngineV1.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Lookup engine interface
 */
interface IRoyaltyEngineV1 is IERC165 {
    /**
     * Get the royalty for a given token (address, id) and value amount.  Does not cache the bps/amounts.  Caches the spec for a given token address
     *
     * @param tokenAddress - The address of the token
     * @param tokenId      - The id of the token
     * @param value        - The value you wish to get the royalty of
     *
     * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get
     */
    function getRoyalty(
        address tokenAddress,
        uint256 tokenId,
        uint256 value
    )
        external
        returns (address payable[] memory recipients, uint256[] memory amounts);

    /**
     * View only version of getRoyalty
     *
     * @param tokenAddress - The address of the token
     * @param tokenId      - The id of the token
     * @param value        - The value you wish to get the royalty of
     *
     * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get
     */
    function getRoyaltyView(
        address tokenAddress,
        uint256 tokenId,
        uint256 value
    )
        external
        view
        returns (address payable[] memory recipients, uint256[] memory amounts);
}
          

/IJoynMarketplace.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IJoynMarketplace {
    struct Listing {
        uint256 listingId;
        uint256 price;
        uint256 marketplaceFeeAmount;
        uint32 marketplaceFee;
        address seller;
        address buyer;
    }

    event ItemListed(
        address indexed seller,
        address indexed nftAddress,
        uint256 indexed tokenId,
        uint256 listingId,
        uint256 price,
        uint256 marketplaceFee
    );

    event ListingUpdated(
        address indexed seller,
        address indexed nftAddress,
        uint256 indexed tokenId,
        uint256 listingId,
        uint256 price,
        uint256 marketplaceFee
    );

    event ItemCanceled(
        address indexed seller,
        address indexed nftAddress,
        uint256 indexed tokenId,
        uint256 listingId
    );

    event ItemBought(
        address seller,
        address indexed buyer,
        address indexed nftAddress,
        uint256 indexed tokenId,
        uint256 listingId,
        uint256 price,
        uint256 amountTransferredToSeller,
        uint256 marketplaceFeeAmount
    );

    event RoyaltyTransfered(
        address recipient,
        uint256 amount,
        uint256 tokenId,
        address tokenAddress,
        uint256 listingId
    );

    event ReferrerFeeTransferred(
        address recipient,
        uint256 amount,
        uint256 tokenId,
        address tokenAddress,
        uint256 listingId
    );
}
          

/IWETH9.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IWETH9 is IERC20 {
    function deposit() external payable;
}
          

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"london","compilationTarget":{"contracts/JoynMarketplace.sol":"JoynMarketplace"}}
              

Contract ABI

[{"type":"error","name":"AlreadyListed","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"error","name":"FeesHigherThanSalePrice","inputs":[]},{"type":"error","name":"MarketplaceFeeExceedsLimit","inputs":[]},{"type":"error","name":"NotApprovedForMarketplace","inputs":[]},{"type":"error","name":"NotListed","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"error","name":"NotListingOwner","inputs":[]},{"type":"error","name":"NotOwner","inputs":[]},{"type":"error","name":"PriceMustBeAboveZero","inputs":[]},{"type":"error","name":"PriceNotMet","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"price","internalType":"uint256"}]},{"type":"error","name":"ProceedWithdrawalFailed","inputs":[]},{"type":"error","name":"TransferEthFailed","inputs":[]},{"type":"error","name":"TransferProceedsToSellerFailed","inputs":[]},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"ItemBought","inputs":[{"type":"address","name":"seller","internalType":"address","indexed":false},{"type":"address","name":"buyer","internalType":"address","indexed":true},{"type":"address","name":"nftAddress","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false},{"type":"uint256","name":"price","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountTransferredToSeller","internalType":"uint256","indexed":false},{"type":"uint256","name":"marketplaceFeeAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ItemCanceled","inputs":[{"type":"address","name":"seller","internalType":"address","indexed":true},{"type":"address","name":"nftAddress","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ItemListed","inputs":[{"type":"address","name":"seller","internalType":"address","indexed":true},{"type":"address","name":"nftAddress","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false},{"type":"uint256","name":"price","internalType":"uint256","indexed":false},{"type":"uint256","name":"marketplaceFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ListingUpdated","inputs":[{"type":"address","name":"seller","internalType":"address","indexed":true},{"type":"address","name":"nftAddress","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false},{"type":"uint256","name":"price","internalType":"uint256","indexed":false},{"type":"uint256","name":"marketplaceFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ReferrerFeeTransferred","inputs":[{"type":"address","name":"recipient","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoyaltyTransfered","inputs":[{"type":"address","name":"recipient","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"uint256","name":"listingId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"MAX_MARKETPLACE_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"PERCENTAGE_DIVIDER","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"buyItem","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"referrerAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelListing","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct IJoynMarketplace.Listing","components":[{"type":"uint256","name":"listingId","internalType":"uint256"},{"type":"uint256","name":"price","internalType":"uint256"},{"type":"uint256","name":"marketplaceFeeAmount","internalType":"uint256"},{"type":"uint32","name":"marketplaceFee","internalType":"uint32"},{"type":"address","name":"seller","internalType":"address"},{"type":"address","name":"buyer","internalType":"address"}]}],"name":"getListing","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMarketplaceFeeAmount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"listItem","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"price","internalType":"uint256"},{"type":"uint32","name":"marketplaceFee","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"referrerFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setReferrerFee","inputs":[{"type":"uint32","name":"newReferrerFee","internalType":"uint32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoyaltyEngine","inputs":[{"type":"address","name":"royaltyEngine","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setWETH","inputs":[{"type":"address","name":"_weth","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateListingMarketplaceFeeAndPrice","inputs":[{"type":"address","name":"nftAddress","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint32","name":"marketplaceFee","internalType":"uint32"},{"type":"uint256","name":"price","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawFee","inputs":[{"type":"address","name":"receiver","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5061301e806100206000396000f3fe6080604052600436106100fe5760003560e01c806388700d1c11610095578063b2ddee0611610064578063b2ddee06146102d6578063bb60aaa7146102ff578063c28169581461032a578063ca28ae8414610355578063f2fde38b14610380576100fe565b806388700d1c1461021c5780638d9b8026146102595780638da5cb5b146102825780639e76c152146102ad576100fe565b80635c4581c3116100d15780635c4581c31461019a5780636e88a7bd146101c3578063715018a6146101ee5780638129fc1c14610205576100fe565b80631ac3ddeb1461010357806321ede0321461012c578063259ca365146101555780635b769f3c14610171575b600080fd5b34801561010f57600080fd5b5061012a600480360381019061012591906122f5565b6103a9565b005b34801561013857600080fd5b50610153600480360381019061014e91906122f5565b610462565b005b61016f600480360381019061016a919061238f565b6104ae565b005b34801561017d57600080fd5b50610198600480360381019061019391906122f5565b610938565b005b3480156101a657600080fd5b506101c160048036038101906101bc9190612555565b610984565b005b3480156101cf57600080fd5b506101d86109b0565b6040516101e59190612a3e565b60405180910390f35b3480156101fa57600080fd5b506102036109c6565b005b34801561021157600080fd5b5061021a6109da565b005b34801561022857600080fd5b50610243600480360381019061023e919061234f565b610b4b565b60405161025091906129d1565b60405180910390f35b34801561026557600080fd5b50610280600480360381019061027b9190612449565b610ca6565b005b34801561028e57600080fd5b50610297611054565b6040516102a4919061276b565b60405180910390f35b3480156102b957600080fd5b506102d460048036038101906102cf91906123e2565b61107e565b005b3480156102e257600080fd5b506102fd60048036038101906102f8919061234f565b6114b9565b005b34801561030b57600080fd5b50610314611767565b60405161032191906129ec565b60405180910390f35b34801561033657600080fd5b5061033f61176d565b60405161034c91906129ec565b60405180910390f35b34801561036157600080fd5b5061036a611777565b6040516103779190612a3e565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a291906122f5565b61177d565b005b6103b1611801565b60008173ffffffffffffffffffffffffffffffffffffffff166097546040516103d990612756565b60006040518083038185875af1925050503d8060008114610416576040519150601f19603f3d011682016040523d82523d6000602084013e61041b565b606091505b5050905080610456576040517fa9ee051900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006097819055505050565b61046a611801565b80609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260015414156104f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104eb906129b1565b60405180910390fd5b60026001819055506105108383600161050b61187f565b611887565b6000609960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000209050806001015434146105b457838382600101546040517f7c9345650000000000000000000000000000000000000000000000000000000081526004016105ab93929190612839565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e8260030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff166105fd61187f565b866040518463ffffffff1660e01b815260040161061c939291906127d9565b600060405180830381600087803b15801561063657600080fd5b505af115801561064a573d6000803e3d6000fd5b5050505061065661187f565b8160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008160010154905060006127108360030160009054906101000a900463ffffffff1663ffffffff16836106cc9190612b79565b6106d69190612b48565b905080609760008282546106ea9190612af2565b92505081905550808360020181905550600061070c87878587600001546119e2565b905060008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610757576107548689868a8960000154611b9b565b90505b60008183856107669190612af2565b6107709190612af2565b9050848111156107ac576040517f421e90b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081866107ba9190612bd3565b905060008760030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161080690612756565b60006040518083038185875af1925050503d8060008114610843576040519150601f19603f3d011682016040523d82523d6000602084013e610848565b606091505b5050905080610883576040517f0bf360ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b898b73ffffffffffffffffffffffffffffffffffffffff166108a361187f565b73ffffffffffffffffffffffffffffffffffffffff167f85b145b87fe9a25110cc3ba528d538a108fcc2f17019fe541ae62695cdc69f798b60030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c600001548d60010154888d60405161091c9594939291906128c3565b60405180910390a4505050505050505060018081905550505050565b610940611801565b80609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61098c611801565b80609b60146101000a81548163ffffffff021916908363ffffffff16021790555050565b609b60149054906101000a900463ffffffff1681565b6109ce611801565b6109d86000611c30565b565b60008060019054906101000a900460ff16159050808015610a0b5750600160008054906101000a900460ff1660ff16105b80610a385750610a1a30611cf6565b158015610a375750600160008054906101000a900460ff1660ff16145b5b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90612951565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610ab4576001600060016101000a81548160ff0219169083151502179055505b610abc611d19565b610ac4611d6a565b610acc611dc3565b6101a4609b60146101000a81548163ffffffff021916908363ffffffff1602179055508015610b485760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610b3f9190612916565b60405180910390a15b50565b610b536120be565b609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b60026001541415610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce3906129b1565b60405180910390fd5b6002600181905550610cfc61187f565b84846000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806080015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614610eb6576040517f7c62d69f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eca88886001610ec561187f565b611887565b61271063ffffffff168663ffffffff161115610f12576040517f2ec6646100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000851415610f4d576040517fe1abbfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609960008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008981526020019081526020016000209050868160030160006101000a81548163ffffffff021916908363ffffffff160217905550858160010181905550878973ffffffffffffffffffffffffffffffffffffffff16610fed61187f565b73ffffffffffffffffffffffffffffffffffffffff167f955a72df4b5dbe32180c181b78385cf9bd4b3f97fb08cd36a7e23a620ac18bb684600001548a8c60405161103a93929190612a07565b60405180910390a450505050506001808190555050505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b838361108861187f565b600083905060008173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016110c891906129ec565b60206040518083038186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111189190612322565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461117f576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111938989600061118e61187f565b611887565b60008714156111ce576040517fe1abbfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61271063ffffffff168663ffffffff161115611216576040517f2ec6646100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600089905060008990503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663081812fc8c6040518263ffffffff1660e01b815260040161127091906129ec565b60206040518083038186803b15801561128857600080fd5b505afa15801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190612322565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f4be3a2c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020905060986000815461137090612d09565b9190508190558160000181905550898160010181905550888160030160006101000a81548163ffffffff021916908363ffffffff1602179055506113b261187f565b8160030160046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff1661145861187f565b73ffffffffffffffffffffffffffffffffffffffff167f66bd0bc88d76947965bc00f670f5c5b25aebab9fef6cb916d8c63a253ec392b76098548e8e6040516114a393929190612a07565b60405180910390a4505050505050505050505050565b6114c161187f565b82826000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806080015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461167b576040517f7c62d69f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61168f8686600161168a61187f565b611887565b6000609960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878152602001908152602001600020905060008160010181905550858773ffffffffffffffffffffffffffffffffffffffff1661170d61187f565b73ffffffffffffffffffffffffffffffffffffffff167f74114e1af8d4d398357d12468ae7b6a7bf4144bf482db553622d275b6be6f191846000015460405161175691906129ec565b60405180910390a450505050505050565b61271081565b6000609754905090565b61271081565b611785611801565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec90612931565b60405180910390fd5b6117fe81611c30565b50565b61180961187f565b73ffffffffffffffffffffffffffffffffffffffff16611827611054565b73ffffffffffffffffffffffffffffffffffffffff161461187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187490612971565b60405180910390fd5b565b600033905090565b6000609960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020905082156119325760008160010154141561192d5784846040517f6831488c000000000000000000000000000000000000000000000000000000008152600401611924929190612810565b60405180910390fd5b6119db565b600081600101541415801561199657508173ffffffffffffffffffffffffffffffffffffffff168160030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b156119da5784846040517f4a5568d50000000000000000000000000000000000000000000000000000000081526004016119d1929190612810565b60405180910390fd5b5b5050505050565b6000806000609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e1040148888886040518463ffffffff1660e01b8152600401611a4693929190612839565b60006040518083038186803b158015611a5e57600080fd5b505afa158015611a72573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a9b91906124b0565b91509150600080600080600090505b8551811015611b8a57858181518110611ac657611ac5612db0565b5b60200260200101519350600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611b7957848181518110611b1757611b16612db0565b5b602002602001015191508183611b2d9190612af2565b9250611b398483611e1c565b7f147605513328ab35a450c7b1bfd53eba7a3201aade9d1f2fbc7e22225de0fafb84838c8e8c604051611b70959493929190612786565b60405180910390a15b80611b8390612d09565b9050611aaa565b508195505050505050949350505050565b600080612710609b60149054906101000a900463ffffffff1663ffffffff1686611bc59190612b79565b611bcf9190612b48565b905060008114611c2357611be38782611e1c565b7f108dc45bcde1a28305ebc2155c4c31090383467b62d6a86685d27fbccf6897b18782868987604051611c1a959493929190612870565b60405180910390a15b8091505095945050505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5f90612991565b60405180910390fd5b565b600060019054906101000a900460ff16611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db090612991565b60405180910390fd5b611dc1612005565b565b600060019054906101000a900460ff16611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0990612991565b60405180910390fd5b611e1a612066565b565b60008273ffffffffffffffffffffffffffffffffffffffff1661520883604051611e4590612756565b600060405180830381858888f193505050503d8060008114611e83576040519150601f19603f3d011682016040523d82523d6000602084013e611e88565b606091505b505090508061200057609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b158015611efb57600080fd5b505af1158015611f0f573d6000803e3d6000fd5b50505050506000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401611f73929190612810565b602060405180830381600087803b158015611f8d57600080fd5b505af1158015611fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc59190612528565b905080611ffe576040517f6200562d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b505050565b600060019054906101000a900460ff16612054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90612991565b60405180910390fd5b61206461205f61187f565b611c30565b565b600060019054906101000a900460ff166120b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ac90612991565b60405180910390fd5b60018081905550565b6040518060c00160405280600081526020016000815260200160008152602001600063ffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600061213961213484612a7e565b612a59565b9050808382526020820190508285602086028201111561215c5761215b612e13565b5b60005b8581101561218c57816121728882612230565b84526020840193506020830192505060018101905061215f565b5050509392505050565b60006121a96121a484612aaa565b612a59565b905080838252602082019050828560208602820111156121cc576121cb612e13565b5b60005b858110156121fc57816121e288826122cb565b8452602084019350602083019250506001810190506121cf565b5050509392505050565b60008135905061221581612f75565b92915050565b60008151905061222a81612f75565b92915050565b60008151905061223f81612f8c565b92915050565b600082601f83011261225a57612259612e0e565b5b815161226a848260208601612126565b91505092915050565b600082601f83011261228857612287612e0e565b5b8151612298848260208601612196565b91505092915050565b6000815190506122b081612fa3565b92915050565b6000813590506122c581612fba565b92915050565b6000815190506122da81612fba565b92915050565b6000813590506122ef81612fd1565b92915050565b60006020828403121561230b5761230a612e1d565b5b600061231984828501612206565b91505092915050565b60006020828403121561233857612337612e1d565b5b60006123468482850161221b565b91505092915050565b6000806040838503121561236657612365612e1d565b5b600061237485828601612206565b9250506020612385858286016122b6565b9150509250929050565b6000806000606084860312156123a8576123a7612e1d565b5b60006123b686828701612206565b93505060206123c7868287016122b6565b92505060406123d886828701612206565b9150509250925092565b600080600080608085870312156123fc576123fb612e1d565b5b600061240a87828801612206565b945050602061241b878288016122b6565b935050604061242c878288016122b6565b925050606061243d878288016122e0565b91505092959194509250565b6000806000806080858703121561246357612462612e1d565b5b600061247187828801612206565b9450506020612482878288016122b6565b9350506040612493878288016122e0565b92505060606124a4878288016122b6565b91505092959194509250565b600080604083850312156124c7576124c6612e1d565b5b600083015167ffffffffffffffff8111156124e5576124e4612e18565b5b6124f185828601612245565b925050602083015167ffffffffffffffff81111561251257612511612e18565b5b61251e85828601612273565b9150509250929050565b60006020828403121561253e5761253d612e1d565b5b600061254c848285016122a1565b91505092915050565b60006020828403121561256b5761256a612e1d565b5b6000612579848285016122e0565b91505092915050565b61258b81612c7e565b82525050565b61259a81612c07565b82525050565b6125a981612c07565b82525050565b6125b881612c90565b82525050565b60006125cb602683612ae1565b91506125d682612e33565b604082019050919050565b60006125ee602e83612ae1565b91506125f982612e82565b604082019050919050565b6000612611602083612ae1565b915061261c82612ed1565b602082019050919050565b6000612634600083612ad6565b915061263f82612efa565b600082019050919050565b6000612657602b83612ae1565b915061266282612efd565b604082019050919050565b600061267a601f83612ae1565b915061268582612f4c565b602082019050919050565b60c0820160008201516126a6600085018261270b565b5060208201516126b9602085018261270b565b5060408201516126cc604085018261270b565b5060608201516126df6060850182612738565b5060808201516126f26080850182612591565b5060a082015161270560a0850182612591565b50505050565b61271481612c57565b82525050565b61272381612c57565b82525050565b61273281612cc6565b82525050565b61274181612c61565b82525050565b61275081612c61565b82525050565b600061276182612627565b9150819050919050565b600060208201905061278060008301846125a0565b92915050565b600060a08201905061279b6000830188612582565b6127a8602083018761271a565b6127b5604083018661271a565b6127c260608301856125a0565b6127cf608083018461271a565b9695505050505050565b60006060820190506127ee60008301866125a0565b6127fb60208301856125a0565b612808604083018461271a565b949350505050565b600060408201905061282560008301856125a0565b612832602083018461271a565b9392505050565b600060608201905061284e60008301866125a0565b61285b602083018561271a565b612868604083018461271a565b949350505050565b600060a08201905061288560008301886125a0565b612892602083018761271a565b61289f604083018661271a565b6128ac60608301856125a0565b6128b9608083018461271a565b9695505050505050565b600060a0820190506128d860008301886125a0565b6128e5602083018761271a565b6128f2604083018661271a565b6128ff606083018561271a565b61290c608083018461271a565b9695505050505050565b600060208201905061292b60008301846125af565b92915050565b6000602082019050818103600083015261294a816125be565b9050919050565b6000602082019050818103600083015261296a816125e1565b9050919050565b6000602082019050818103600083015261298a81612604565b9050919050565b600060208201905081810360008301526129aa8161264a565b9050919050565b600060208201905081810360008301526129ca8161266d565b9050919050565b600060c0820190506129e66000830184612690565b92915050565b6000602082019050612a01600083018461271a565b92915050565b6000606082019050612a1c600083018661271a565b612a29602083018561271a565b612a366040830184612729565b949350505050565b6000602082019050612a536000830184612747565b92915050565b6000612a63612a74565b9050612a6f8282612cd8565b919050565b6000604051905090565b600067ffffffffffffffff821115612a9957612a98612ddf565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612ac557612ac4612ddf565b5b602082029050602081019050919050565b600081905092915050565b600082825260208201905092915050565b6000612afd82612c57565b9150612b0883612c57565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612b3d57612b3c612d52565b5b828201905092915050565b6000612b5382612c57565b9150612b5e83612c57565b925082612b6e57612b6d612d81565b5b828204905092915050565b6000612b8482612c57565b9150612b8f83612c57565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bc857612bc7612d52565b5b828202905092915050565b6000612bde82612c57565b9150612be983612c57565b925082821015612bfc57612bfb612d52565b5b828203905092915050565b6000612c1282612c37565b9050919050565b6000612c2482612c37565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b6000612c8982612ca2565b9050919050565b6000612c9b82612c71565b9050919050565b6000612cad82612cb4565b9050919050565b6000612cbf82612c37565b9050919050565b6000612cd182612c61565b9050919050565b612ce182612e22565b810181811067ffffffffffffffff82111715612d0057612cff612ddf565b5b80604052505050565b6000612d1482612c57565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d4757612d46612d52565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b612f7e81612c07565b8114612f8957600080fd5b50565b612f9581612c19565b8114612fa057600080fd5b50565b612fac81612c2b565b8114612fb757600080fd5b50565b612fc381612c57565b8114612fce57600080fd5b50565b612fda81612c61565b8114612fe557600080fd5b5056fea2646970667358221220780543a6a43fed99b3f58ee88a76381b98ab00041135703b953e71015536f5df64736f6c63430008070033

Deployed ByteCode

0x6080604052600436106100fe5760003560e01c806388700d1c11610095578063b2ddee0611610064578063b2ddee06146102d6578063bb60aaa7146102ff578063c28169581461032a578063ca28ae8414610355578063f2fde38b14610380576100fe565b806388700d1c1461021c5780638d9b8026146102595780638da5cb5b146102825780639e76c152146102ad576100fe565b80635c4581c3116100d15780635c4581c31461019a5780636e88a7bd146101c3578063715018a6146101ee5780638129fc1c14610205576100fe565b80631ac3ddeb1461010357806321ede0321461012c578063259ca365146101555780635b769f3c14610171575b600080fd5b34801561010f57600080fd5b5061012a600480360381019061012591906122f5565b6103a9565b005b34801561013857600080fd5b50610153600480360381019061014e91906122f5565b610462565b005b61016f600480360381019061016a919061238f565b6104ae565b005b34801561017d57600080fd5b50610198600480360381019061019391906122f5565b610938565b005b3480156101a657600080fd5b506101c160048036038101906101bc9190612555565b610984565b005b3480156101cf57600080fd5b506101d86109b0565b6040516101e59190612a3e565b60405180910390f35b3480156101fa57600080fd5b506102036109c6565b005b34801561021157600080fd5b5061021a6109da565b005b34801561022857600080fd5b50610243600480360381019061023e919061234f565b610b4b565b60405161025091906129d1565b60405180910390f35b34801561026557600080fd5b50610280600480360381019061027b9190612449565b610ca6565b005b34801561028e57600080fd5b50610297611054565b6040516102a4919061276b565b60405180910390f35b3480156102b957600080fd5b506102d460048036038101906102cf91906123e2565b61107e565b005b3480156102e257600080fd5b506102fd60048036038101906102f8919061234f565b6114b9565b005b34801561030b57600080fd5b50610314611767565b60405161032191906129ec565b60405180910390f35b34801561033657600080fd5b5061033f61176d565b60405161034c91906129ec565b60405180910390f35b34801561036157600080fd5b5061036a611777565b6040516103779190612a3e565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a291906122f5565b61177d565b005b6103b1611801565b60008173ffffffffffffffffffffffffffffffffffffffff166097546040516103d990612756565b60006040518083038185875af1925050503d8060008114610416576040519150601f19603f3d011682016040523d82523d6000602084013e61041b565b606091505b5050905080610456576040517fa9ee051900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006097819055505050565b61046a611801565b80609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260015414156104f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104eb906129b1565b60405180910390fd5b60026001819055506105108383600161050b61187f565b611887565b6000609960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000209050806001015434146105b457838382600101546040517f7c9345650000000000000000000000000000000000000000000000000000000081526004016105ab93929190612839565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e8260030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff166105fd61187f565b866040518463ffffffff1660e01b815260040161061c939291906127d9565b600060405180830381600087803b15801561063657600080fd5b505af115801561064a573d6000803e3d6000fd5b5050505061065661187f565b8160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008160010154905060006127108360030160009054906101000a900463ffffffff1663ffffffff16836106cc9190612b79565b6106d69190612b48565b905080609760008282546106ea9190612af2565b92505081905550808360020181905550600061070c87878587600001546119e2565b905060008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610757576107548689868a8960000154611b9b565b90505b60008183856107669190612af2565b6107709190612af2565b9050848111156107ac576040517f421e90b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081866107ba9190612bd3565b905060008760030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161080690612756565b60006040518083038185875af1925050503d8060008114610843576040519150601f19603f3d011682016040523d82523d6000602084013e610848565b606091505b5050905080610883576040517f0bf360ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b898b73ffffffffffffffffffffffffffffffffffffffff166108a361187f565b73ffffffffffffffffffffffffffffffffffffffff167f85b145b87fe9a25110cc3ba528d538a108fcc2f17019fe541ae62695cdc69f798b60030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c600001548d60010154888d60405161091c9594939291906128c3565b60405180910390a4505050505050505060018081905550505050565b610940611801565b80609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61098c611801565b80609b60146101000a81548163ffffffff021916908363ffffffff16021790555050565b609b60149054906101000a900463ffffffff1681565b6109ce611801565b6109d86000611c30565b565b60008060019054906101000a900460ff16159050808015610a0b5750600160008054906101000a900460ff1660ff16105b80610a385750610a1a30611cf6565b158015610a375750600160008054906101000a900460ff1660ff16145b5b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90612951565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610ab4576001600060016101000a81548160ff0219169083151502179055505b610abc611d19565b610ac4611d6a565b610acc611dc3565b6101a4609b60146101000a81548163ffffffff021916908363ffffffff1602179055508015610b485760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610b3f9190612916565b60405180910390a15b50565b610b536120be565b609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b60026001541415610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce3906129b1565b60405180910390fd5b6002600181905550610cfc61187f565b84846000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806080015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614610eb6576040517f7c62d69f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eca88886001610ec561187f565b611887565b61271063ffffffff168663ffffffff161115610f12576040517f2ec6646100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000851415610f4d576040517fe1abbfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609960008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008981526020019081526020016000209050868160030160006101000a81548163ffffffff021916908363ffffffff160217905550858160010181905550878973ffffffffffffffffffffffffffffffffffffffff16610fed61187f565b73ffffffffffffffffffffffffffffffffffffffff167f955a72df4b5dbe32180c181b78385cf9bd4b3f97fb08cd36a7e23a620ac18bb684600001548a8c60405161103a93929190612a07565b60405180910390a450505050506001808190555050505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b838361108861187f565b600083905060008173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016110c891906129ec565b60206040518083038186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111189190612322565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461117f576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111938989600061118e61187f565b611887565b60008714156111ce576040517fe1abbfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61271063ffffffff168663ffffffff161115611216576040517f2ec6646100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600089905060008990503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663081812fc8c6040518263ffffffff1660e01b815260040161127091906129ec565b60206040518083038186803b15801561128857600080fd5b505afa15801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190612322565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f4be3a2c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020905060986000815461137090612d09565b9190508190558160000181905550898160010181905550888160030160006101000a81548163ffffffff021916908363ffffffff1602179055506113b261187f565b8160030160046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff1661145861187f565b73ffffffffffffffffffffffffffffffffffffffff167f66bd0bc88d76947965bc00f670f5c5b25aebab9fef6cb916d8c63a253ec392b76098548e8e6040516114a393929190612a07565b60405180910390a4505050505050505050505050565b6114c161187f565b82826000609960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806080015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461167b576040517f7c62d69f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61168f8686600161168a61187f565b611887565b6000609960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878152602001908152602001600020905060008160010181905550858773ffffffffffffffffffffffffffffffffffffffff1661170d61187f565b73ffffffffffffffffffffffffffffffffffffffff167f74114e1af8d4d398357d12468ae7b6a7bf4144bf482db553622d275b6be6f191846000015460405161175691906129ec565b60405180910390a450505050505050565b61271081565b6000609754905090565b61271081565b611785611801565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec90612931565b60405180910390fd5b6117fe81611c30565b50565b61180961187f565b73ffffffffffffffffffffffffffffffffffffffff16611827611054565b73ffffffffffffffffffffffffffffffffffffffff161461187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187490612971565b60405180910390fd5b565b600033905090565b6000609960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020905082156119325760008160010154141561192d5784846040517f6831488c000000000000000000000000000000000000000000000000000000008152600401611924929190612810565b60405180910390fd5b6119db565b600081600101541415801561199657508173ffffffffffffffffffffffffffffffffffffffff168160030160049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b156119da5784846040517f4a5568d50000000000000000000000000000000000000000000000000000000081526004016119d1929190612810565b60405180910390fd5b5b5050505050565b6000806000609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e1040148888886040518463ffffffff1660e01b8152600401611a4693929190612839565b60006040518083038186803b158015611a5e57600080fd5b505afa158015611a72573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a9b91906124b0565b91509150600080600080600090505b8551811015611b8a57858181518110611ac657611ac5612db0565b5b60200260200101519350600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611b7957848181518110611b1757611b16612db0565b5b602002602001015191508183611b2d9190612af2565b9250611b398483611e1c565b7f147605513328ab35a450c7b1bfd53eba7a3201aade9d1f2fbc7e22225de0fafb84838c8e8c604051611b70959493929190612786565b60405180910390a15b80611b8390612d09565b9050611aaa565b508195505050505050949350505050565b600080612710609b60149054906101000a900463ffffffff1663ffffffff1686611bc59190612b79565b611bcf9190612b48565b905060008114611c2357611be38782611e1c565b7f108dc45bcde1a28305ebc2155c4c31090383467b62d6a86685d27fbccf6897b18782868987604051611c1a959493929190612870565b60405180910390a15b8091505095945050505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5f90612991565b60405180910390fd5b565b600060019054906101000a900460ff16611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db090612991565b60405180910390fd5b611dc1612005565b565b600060019054906101000a900460ff16611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0990612991565b60405180910390fd5b611e1a612066565b565b60008273ffffffffffffffffffffffffffffffffffffffff1661520883604051611e4590612756565b600060405180830381858888f193505050503d8060008114611e83576040519150601f19603f3d011682016040523d82523d6000602084013e611e88565b606091505b505090508061200057609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b158015611efb57600080fd5b505af1158015611f0f573d6000803e3d6000fd5b50505050506000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401611f73929190612810565b602060405180830381600087803b158015611f8d57600080fd5b505af1158015611fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc59190612528565b905080611ffe576040517f6200562d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b505050565b600060019054906101000a900460ff16612054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90612991565b60405180910390fd5b61206461205f61187f565b611c30565b565b600060019054906101000a900460ff166120b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ac90612991565b60405180910390fd5b60018081905550565b6040518060c00160405280600081526020016000815260200160008152602001600063ffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600061213961213484612a7e565b612a59565b9050808382526020820190508285602086028201111561215c5761215b612e13565b5b60005b8581101561218c57816121728882612230565b84526020840193506020830192505060018101905061215f565b5050509392505050565b60006121a96121a484612aaa565b612a59565b905080838252602082019050828560208602820111156121cc576121cb612e13565b5b60005b858110156121fc57816121e288826122cb565b8452602084019350602083019250506001810190506121cf565b5050509392505050565b60008135905061221581612f75565b92915050565b60008151905061222a81612f75565b92915050565b60008151905061223f81612f8c565b92915050565b600082601f83011261225a57612259612e0e565b5b815161226a848260208601612126565b91505092915050565b600082601f83011261228857612287612e0e565b5b8151612298848260208601612196565b91505092915050565b6000815190506122b081612fa3565b92915050565b6000813590506122c581612fba565b92915050565b6000815190506122da81612fba565b92915050565b6000813590506122ef81612fd1565b92915050565b60006020828403121561230b5761230a612e1d565b5b600061231984828501612206565b91505092915050565b60006020828403121561233857612337612e1d565b5b60006123468482850161221b565b91505092915050565b6000806040838503121561236657612365612e1d565b5b600061237485828601612206565b9250506020612385858286016122b6565b9150509250929050565b6000806000606084860312156123a8576123a7612e1d565b5b60006123b686828701612206565b93505060206123c7868287016122b6565b92505060406123d886828701612206565b9150509250925092565b600080600080608085870312156123fc576123fb612e1d565b5b600061240a87828801612206565b945050602061241b878288016122b6565b935050604061242c878288016122b6565b925050606061243d878288016122e0565b91505092959194509250565b6000806000806080858703121561246357612462612e1d565b5b600061247187828801612206565b9450506020612482878288016122b6565b9350506040612493878288016122e0565b92505060606124a4878288016122b6565b91505092959194509250565b600080604083850312156124c7576124c6612e1d565b5b600083015167ffffffffffffffff8111156124e5576124e4612e18565b5b6124f185828601612245565b925050602083015167ffffffffffffffff81111561251257612511612e18565b5b61251e85828601612273565b9150509250929050565b60006020828403121561253e5761253d612e1d565b5b600061254c848285016122a1565b91505092915050565b60006020828403121561256b5761256a612e1d565b5b6000612579848285016122e0565b91505092915050565b61258b81612c7e565b82525050565b61259a81612c07565b82525050565b6125a981612c07565b82525050565b6125b881612c90565b82525050565b60006125cb602683612ae1565b91506125d682612e33565b604082019050919050565b60006125ee602e83612ae1565b91506125f982612e82565b604082019050919050565b6000612611602083612ae1565b915061261c82612ed1565b602082019050919050565b6000612634600083612ad6565b915061263f82612efa565b600082019050919050565b6000612657602b83612ae1565b915061266282612efd565b604082019050919050565b600061267a601f83612ae1565b915061268582612f4c565b602082019050919050565b60c0820160008201516126a6600085018261270b565b5060208201516126b9602085018261270b565b5060408201516126cc604085018261270b565b5060608201516126df6060850182612738565b5060808201516126f26080850182612591565b5060a082015161270560a0850182612591565b50505050565b61271481612c57565b82525050565b61272381612c57565b82525050565b61273281612cc6565b82525050565b61274181612c61565b82525050565b61275081612c61565b82525050565b600061276182612627565b9150819050919050565b600060208201905061278060008301846125a0565b92915050565b600060a08201905061279b6000830188612582565b6127a8602083018761271a565b6127b5604083018661271a565b6127c260608301856125a0565b6127cf608083018461271a565b9695505050505050565b60006060820190506127ee60008301866125a0565b6127fb60208301856125a0565b612808604083018461271a565b949350505050565b600060408201905061282560008301856125a0565b612832602083018461271a565b9392505050565b600060608201905061284e60008301866125a0565b61285b602083018561271a565b612868604083018461271a565b949350505050565b600060a08201905061288560008301886125a0565b612892602083018761271a565b61289f604083018661271a565b6128ac60608301856125a0565b6128b9608083018461271a565b9695505050505050565b600060a0820190506128d860008301886125a0565b6128e5602083018761271a565b6128f2604083018661271a565b6128ff606083018561271a565b61290c608083018461271a565b9695505050505050565b600060208201905061292b60008301846125af565b92915050565b6000602082019050818103600083015261294a816125be565b9050919050565b6000602082019050818103600083015261296a816125e1565b9050919050565b6000602082019050818103600083015261298a81612604565b9050919050565b600060208201905081810360008301526129aa8161264a565b9050919050565b600060208201905081810360008301526129ca8161266d565b9050919050565b600060c0820190506129e66000830184612690565b92915050565b6000602082019050612a01600083018461271a565b92915050565b6000606082019050612a1c600083018661271a565b612a29602083018561271a565b612a366040830184612729565b949350505050565b6000602082019050612a536000830184612747565b92915050565b6000612a63612a74565b9050612a6f8282612cd8565b919050565b6000604051905090565b600067ffffffffffffffff821115612a9957612a98612ddf565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612ac557612ac4612ddf565b5b602082029050602081019050919050565b600081905092915050565b600082825260208201905092915050565b6000612afd82612c57565b9150612b0883612c57565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612b3d57612b3c612d52565b5b828201905092915050565b6000612b5382612c57565b9150612b5e83612c57565b925082612b6e57612b6d612d81565b5b828204905092915050565b6000612b8482612c57565b9150612b8f83612c57565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bc857612bc7612d52565b5b828202905092915050565b6000612bde82612c57565b9150612be983612c57565b925082821015612bfc57612bfb612d52565b5b828203905092915050565b6000612c1282612c37565b9050919050565b6000612c2482612c37565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b6000612c8982612ca2565b9050919050565b6000612c9b82612c71565b9050919050565b6000612cad82612cb4565b9050919050565b6000612cbf82612c37565b9050919050565b6000612cd182612c61565b9050919050565b612ce182612e22565b810181811067ffffffffffffffff82111715612d0057612cff612ddf565b5b80604052505050565b6000612d1482612c57565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d4757612d46612d52565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b612f7e81612c07565b8114612f8957600080fd5b50565b612f9581612c19565b8114612fa057600080fd5b50565b612fac81612c2b565b8114612fb757600080fd5b50565b612fc381612c57565b8114612fce57600080fd5b50565b612fda81612c61565b8114612fe557600080fd5b5056fea2646970667358221220780543a6a43fed99b3f58ee88a76381b98ab00041135703b953e71015536f5df64736f6c63430008070033