ETH Price: $3,234.99 (+1.64%)

Contract

0xFC4F2fa5016D58134aFf6eae8a6218b50a4967F2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy Nft Item202018232024-06-30 3:29:47199 days ago1719718187IN
0xFC4F2fa5...50a4967F2
0 ETH0.000240061.79374667
Buy Nft Item202018202024-06-30 3:29:11199 days ago1719718151IN
0xFC4F2fa5...50a4967F2
0 ETH0.000281111.63044177
Buy Nft Item185067602023-11-05 15:41:11436 days ago1699198871IN
0xFC4F2fa5...50a4967F2
0 ETH0.0028815320.88948355
Buy Item183296932023-10-11 20:52:23461 days ago1697057543IN
0xFC4F2fa5...50a4967F2
0 ETH0.00049967.00564138
Buy Nft Item182525662023-10-01 2:01:11472 days ago1696125671IN
0xFC4F2fa5...50a4967F2
0 ETH0.000946316.25675683
Buy Nft Item178603072023-08-07 3:14:23527 days ago1691378063IN
0xFC4F2fa5...50a4967F2
0 ETH0.0004337913.07075402
Buy Nft Item176501502023-07-08 16:11:35556 days ago1688832695IN
0xFC4F2fa5...50a4967F2
0 ETH0.0105951274.58626746
Buy Nft Item176485482023-07-08 10:48:11556 days ago1688813291IN
0xFC4F2fa5...50a4967F2
0 ETH0.0017438413.72891317
Buy Nft Item176112752023-07-03 5:09:11562 days ago1688360951IN
0xFC4F2fa5...50a4967F2
0 ETH0.0018322413.14832355
Buy Nft Item176112722023-07-03 5:08:35562 days ago1688360915IN
0xFC4F2fa5...50a4967F2
0 ETH0.0017773812.75463419
Buy Nft Item176112692023-07-03 5:07:59562 days ago1688360879IN
0xFC4F2fa5...50a4967F2
0 ETH0.0017015312.21031673
Buy Nft Item176112672023-07-03 5:07:35562 days ago1688360855IN
0xFC4F2fa5...50a4967F2
0 ETH0.0020115412.6355868
Buy Item174668682023-06-12 22:15:11582 days ago1686608111IN
0xFC4F2fa5...50a4967F2
0 ETH0.0012121317
Buy Nft Item174668422023-06-12 22:09:59582 days ago1686607799IN
0xFC4F2fa5...50a4967F2
0 ETH0.0023286914.44135495
Buy Nft Item173565172023-05-28 9:05:11597 days ago1685264711IN
0xFC4F2fa5...50a4967F2
0 ETH0.0035206825.29809387
Buy Nft Item173565172023-05-28 9:05:11597 days ago1685264711IN
0xFC4F2fa5...50a4967F2
0 ETH0.0036246825.29809387
Buy Nft Item173565162023-05-28 9:04:59597 days ago1685264699IN
0xFC4F2fa5...50a4967F2
0 ETH0.0039677124.95198034
Buy Nft Item170214202023-04-11 0:48:23645 days ago1681174103IN
0xFC4F2fa5...50a4967F2
0 ETH0.0036189223.53953309
Buy Nft Item170214082023-04-11 0:45:59645 days ago1681173959IN
0xFC4F2fa5...50a4967F2
0 ETH0.0032413719.60159454
Buy Nft Item170146312023-04-10 1:43:59646 days ago1681091039IN
0xFC4F2fa5...50a4967F2
0 ETH0.0032433919.88554512
Add Nft Items170144102023-04-10 0:59:23646 days ago1681088363IN
0xFC4F2fa5...50a4967F2
0 ETH0.0048789918.36053273
Add Nft Items170141532023-04-10 0:07:35646 days ago1681085255IN
0xFC4F2fa5...50a4967F2
0 ETH0.0274514819.56627481
Add Nft Items170141112023-04-09 23:58:59646 days ago1681084739IN
0xFC4F2fa5...50a4967F2
0 ETH0.007951718.38884223
Buy Nft Item169521402023-04-01 5:10:47655 days ago1680325847IN
0xFC4F2fa5...50a4967F2
0 ETH0.0026839919.26053448
Buy Nft Item168596152023-03-19 5:13:47668 days ago1679202827IN
0xFC4F2fa5...50a4967F2
0 ETH0.0023629512.63695445
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RandomMarketPlace

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : RandomMarketPlace.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract RandomMarketPlace is Ownable {
    mapping(address => bool) controllers;
    address public token;
    address public vault;
    uint256 public totalItems = 0;
    bool public isPaused = false;
    mapping(uint256 => Item) public items;
    uint256[] public deletedIds;
    mapping(address => mapping(uint256 => NftItem)) public nftItems;
    NftItem[] public nftItemsArray;

    struct CollectionForSell {
        address collection;
        uint256[] nftIds;
    }

    struct NftItem {
        address seller;
        uint256 price;
        uint256 tokenId;
        address tokenCollection;
        bool isForSale;
    }

    struct Item {
        uint256 id;
        string name;
        uint256 price;
        address owner;
        bool purchased;
        string mongoId;
        bool exists;
    }

    event ItemBought(
        uint256 id,
        string name,
        uint256 price,
        address owner,
        bool purchased
    );

    event NftBought(
        address seller,
        uint256 price,
        uint256 tokenId,
        address tokenCollection,
        bool isForSale
    );

    function isValidMongoId(string memory _mongoId) public pure returns (bool) {
        bytes memory b = bytes(_mongoId);
        if (b.length != 24) return false;
        for (uint256 i = 0; i < b.length; i++) {
            bytes1 char = b[i];
            if (
                !(char >= 0x30 && char <= 0x39) &&
                !(char >= 0x41 && char <= 0x5A) &&
                !(char >= 0x61 && char <= 0x7A)
            ) {
                return false;
            }
        }
        return true;
    }

    modifier onlyItemOwner(uint256 _id) {
        require(items[_id].owner == msg.sender, "You are not the owner");
        _;
    }

    modifier onlyController() {
        require(controllers[msg.sender], "You are not a controller");
        _;
    }

    modifier itemAlreadyPurchased(uint256 _id) {
        require(items[_id].purchased == false, "Item already purchased");
        _;
    }
    modifier allArraysAreSameLength(
        string[] memory _names,
        uint256[] memory _prices,
        string[] memory __mongoIds
    ) {
        for (uint256 i = 0; i < __mongoIds.length; i++) {
            require(
                isValidMongoId(__mongoIds[i]),
                "One of the mongo ids is not valid"
            );
        }
        require(
            _names.length == _prices.length &&
                _prices.length == __mongoIds.length,
            "Arrays are not the same length"
        );
        _;
    }

    modifier validMongoId(string memory _mongoId) {
        require(isValidMongoId(_mongoId), "Mongo id is not valid");
        _;
    }

    modifier enoughMoneyToBuy(uint256 _id) {
        require(
            IERC20(token).balanceOf(msg.sender) >= items[_id].price,
            "You don't have enough money"
        );
        _;
    }

    modifier deleteNftItemsLengthCompliant(
        uint256[] memory _tokenIds,
        address[] memory _tokenCollections
    ) {
        require(
            _tokenIds.length == _tokenCollections.length,
            "Arrays are not the same length"
        );
        _;
    }

    modifier buyNftCompliant(
        uint256 _tokenId,
        address _tokenCollection,
        uint256 _price
    ) {
        NftItem memory _item = nftItems[_tokenCollection][_tokenId];
        require(_item.isForSale == true, "Item is not for sale");
        require(_item.price == _price, "Price is not correct");
        require(
            IERC721(_tokenCollection).ownerOf(_tokenId) == _item.seller,
            "Seller is not the owner"
        );
        require(
            IERC20(token).balanceOf(msg.sender) >= _item.price,
            "You don't have enough money"
        );
        require(
            IERC721(_tokenCollection).isApprovedForAll(
                _item.seller,
                address(this)
            ),
            "The Owner of this nft is no longer approved for this contract"
        );
        _;
    }

    modifier addNftItemsCompliant(
        uint256[] memory _prices,
        uint256[] memory _tokenIds,
        address[] memory _tokenCollections
    ) {
        require(
            _tokenCollections.length == _tokenIds.length &&
                _tokenIds.length == _prices.length,
            "Arrays are not the same length"
        );
        for (uint256 i = 0; i < _tokenCollections.length; i++) {
            require(
                IERC721(_tokenCollections[i]).isApprovedForAll(
                    msg.sender,
                    address(this)
                ),
                "You need to approve this contract before you sell your NFTs"
            );
            require(
                IERC721(_tokenCollections[i]).ownerOf(_tokenIds[i]) ==
                    msg.sender,
                "You are not the owner of this NFT"
            );
        }
        _;
    }

    modifier notPaused() {
        require(isPaused == false, "Contract is paused");
        _;
    }

    constructor(address _token) {
        token = _token;
    }

    function createItem(
        string memory _name,
        uint256 _price,
        string memory mongoId,
        address _seller
    ) public onlyController {
        uint256 id = totalItems;
        _seller == address(0) ? _seller = msg.sender : _seller = _seller;
        if (deletedIds.length > 0) {
            id = deletedIds[deletedIds.length - 1];
            deletedIds.pop();
        } else {
            id = totalItems;
            totalItems++;
        }
        items[id] = Item(id, _name, _price, _seller, false, mongoId, true);
    }

    function buyItem(uint256 _id)
        public
        itemAlreadyPurchased(_id)
        enoughMoneyToBuy(_id)
        notPaused
    {
        Item memory _item = items[_id];
        IERC20(token).transferFrom(msg.sender, _item.owner, _item.price);
        items[_id].owner = msg.sender;
        items[_id].purchased = true;
        emit ItemBought(_item.id, _item.name, _item.price, msg.sender, true);
    }

    function addController(address controller) external onlyOwner {
        controllers[controller] = true;
    }

    function removeController(address controller) external onlyOwner {
        controllers[controller] = false;
    }

    function createManyItems(
        string[] memory _names,
        uint256[] memory _prices,
        string[] memory _mongoIds,
        address _seller
    ) public allArraysAreSameLength(_names, _prices, _mongoIds) onlyController {
        for (uint256 i = 0; i < _names.length; i++) {
            createItem(_names[i], _prices[i], _mongoIds[i], _seller);
        }
    }

    function createManyItemsSimpleMethod(
        string memory name,
        uint256 price,
        uint256 ammount,
        string memory mongoId,
        address _seller
    ) public onlyController validMongoId(mongoId) {
        for (uint256 i = 0; i < ammount; i++) {
            createItem(name, price, mongoId, _seller);
        }
    }
    
    function createManyNftItemsSimpleMethod(
        uint256 _price,
        uint256[] memory _tokenIds,
        address _tokenCollection
    ) public onlyController {
        require(
            IERC721(_tokenCollection).isApprovedForAll(msg.sender, address(this)),
            "You need to approve this contract before you sell your NFTs"
        );
        for(uint256 i = 0; i < _tokenIds.length; i++){
            require(
                IERC721(_tokenCollection).ownerOf(_tokenIds[i]) == msg.sender,
                "You are not the owner of this NFT"
            );
            NftItem memory _item = NftItem(
                msg.sender,
                _price,
                _tokenIds[i],
                _tokenCollection,
                true
            );
            nftItems[_tokenCollection][_tokenIds[i]] = _item;
            _addNftItemToArray(_item);
        }
    }

    function addNftItems(
        uint256[] memory _prices,
        uint256[] memory _tokenIds,
        address[] memory _tokenCollections
    )
        public
        onlyController
        addNftItemsCompliant(_prices, _tokenIds, _tokenCollections)
    {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            NftItem memory _item = NftItem(
                msg.sender,
                _prices[i],
                _tokenIds[i],
                _tokenCollections[i],
                true
            );
            nftItems[_tokenCollections[i]][_tokenIds[i]] = _item;
            _addNftItemToArray(_item);
        }
    }

    function buyNftItem(
        uint256 _tokenId,
        address _tokenCollection,
        uint256 _price
    ) public notPaused buyNftCompliant(_tokenId, _tokenCollection, _price) {
        NftItem memory _item = nftItems[_tokenCollection][_tokenId];
        IERC20(token).transferFrom(msg.sender, _item.seller, _price);
        IERC721(_tokenCollection).transferFrom(
            _item.seller,
            msg.sender,
            _tokenId
        );
        _removeNftItemFromArray(_item);
        delete nftItems[_tokenCollection][_tokenId];
        emit NftBought(_item.seller, _price, _tokenId, _tokenCollection, false);
    }

    function deleteNftItems(
        uint256[] memory _tokenIds,
        address[] memory _tokenCollections
    )
        public
        deleteNftItemsLengthCompliant(_tokenIds, _tokenCollections)
        onlyController
    {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            _removeNftItemFromArray(
                nftItems[_tokenCollections[i]][_tokenIds[i]]
            );
            delete nftItems[_tokenCollections[i]][_tokenIds[i]];
        }
    }

    function getNftItemsForSell()
        public
        view
        returns (NftItem[] memory _items)
    {
        return nftItemsArray;
    }

    function setPaused(bool _isPaused) public onlyController {
        isPaused = _isPaused;
    }

    function getItems() public view returns (Item[] memory) {
        Item[] memory _items = new Item[](totalItems);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalItems; i++) {
            if (items[i].exists) {
                _items[counter] = items[i];
                counter++;
            }
        }
        return _items;
    }

    function getItemsForSaleIds() public view returns (uint256[] memory) {
        uint256[] memory _itemsForSellIds = new uint256[](totalItems);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalItems; i++) {
            if (items[i].purchased == false) {
                _itemsForSellIds[counter] = items[i].id;
                counter += 1;
            }
        }
        return _itemsForSellIds;
    }

    function _addNftItemToArray(NftItem memory _item) internal {
        for (uint256 i = 0; i < nftItemsArray.length; i++) {
            if (
                nftItemsArray[i].tokenId == _item.tokenId &&
                nftItemsArray[i].tokenCollection == _item.tokenCollection
            ) {
                return;
            }
        }
        nftItemsArray.push(_item);
    }

    function _removeNftItemFromArray(NftItem memory _item) internal {
        for (uint256 i = 0; i < nftItemsArray.length; i++) {
            if (
                nftItemsArray[i].tokenId == _item.tokenId &&
                nftItemsArray[i].tokenCollection == _item.tokenCollection
            ) {
                delete nftItemsArray[i];
                nftItemsArray[i] = nftItemsArray[nftItemsArray.length - 1];
                nftItemsArray.pop();
                return;
            }
        }
    }

    function getSoldItems() public view returns (Item[] memory) {
        Item[] memory _soldItems = new Item[](totalItems);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalItems; i++) {
            if (items[i].purchased == true) {
                _soldItems[counter] = items[i];
                counter += 1;
            }
        }
        return _soldItems;
    }

    function paused() public view returns (bool) {
        return isPaused;
    }

    function getSomeLove() public pure returns (string memory) {
        return "Love you <3 <3 <3";
    }

    function getSoldItemsIds() public view returns (uint256[] memory) {
        uint256[] memory _soldItemsIds = new uint256[](totalItems);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalItems; i++) {
            if (items[i].purchased == true) {
                _soldItemsIds[counter] = items[i].id;
                counter += 1;
            }
        }
        return _soldItemsIds;
    }

    function getItem(uint256 _id) public view returns (Item memory) {
        return items[_id];
    }

    function getBalance() public view returns (uint256) {
        return IERC20(token).balanceOf(msg.sender);
    }

    function deleteItem(uint256 _id) public onlyController {
        require(items[_id].purchased == false, "Item is already purchased");
        require(items[_id].exists == true, "Item does not exist");
        deletedIds.push(_id);
        delete items[_id];
    }

    function deleteManyItems(uint256[] memory _ids) public onlyController {
        for (uint256 i = 0; i < _ids.length; i++) {
            deleteItem(_ids[i]);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 6 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
     * @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;
}

File 5 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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

File 6 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"bool","name":"purchased","type":"bool"}],"name":"ItemBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenCollection","type":"address"},{"indexed":false,"internalType":"bool","name":"isForSale","type":"bool"}],"name":"NftBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_tokenCollections","type":"address[]"}],"name":"addNftItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"buyItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_tokenCollection","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"buyNftItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"address","name":"_seller","type":"address"}],"name":"createItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_names","type":"string[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"string[]","name":"_mongoIds","type":"string[]"},{"internalType":"address","name":"_seller","type":"address"}],"name":"createManyItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"ammount","type":"uint256"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"address","name":"_seller","type":"address"}],"name":"createManyItemsSimpleMethod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address","name":"_tokenCollection","type":"address"}],"name":"createManyNftItemsSimpleMethod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"deleteItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"deleteManyItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_tokenCollections","type":"address[]"}],"name":"deleteNftItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deletedIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getItem","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"purchased","type":"bool"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"bool","name":"exists","type":"bool"}],"internalType":"struct RandomMarketPlace.Item","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getItems","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"purchased","type":"bool"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"bool","name":"exists","type":"bool"}],"internalType":"struct RandomMarketPlace.Item[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getItemsForSaleIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNftItemsForSell","outputs":[{"components":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"tokenCollection","type":"address"},{"internalType":"bool","name":"isForSale","type":"bool"}],"internalType":"struct RandomMarketPlace.NftItem[]","name":"_items","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldItems","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"purchased","type":"bool"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"bool","name":"exists","type":"bool"}],"internalType":"struct RandomMarketPlace.Item[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldItemsIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSomeLove","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_mongoId","type":"string"}],"name":"isValidMongoId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"items","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"purchased","type":"bool"},{"internalType":"string","name":"mongoId","type":"string"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftItems","outputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"tokenCollection","type":"address"},{"internalType":"bool","name":"isForSale","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftItemsArray","outputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"tokenCollection","type":"address"},{"internalType":"bool","name":"isForSale","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalItems","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405260006004556005805460ff191690553480156200002057600080fd5b5060405162003c9338038062003c938339810160408190526200004391620000c4565b6200004e3362000074565b600280546001600160a01b0319166001600160a01b0392909216919091179055620000f6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000d757600080fd5b81516001600160a01b0381168114620000ef57600080fd5b9392505050565b613b8d80620001066000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80639cbd8c2e1161011a578063e68b32e4116100ad578063f54c1c2a1161007c578063f54c1c2a146104e5578063f6a74ed7146104f8578063f80211351461050b578063fbfa77cf1461051e578063fc0c546a1461053157600080fd5b8063e68b32e414610499578063e7fb74c7146104ac578063eb71ec37146104bf578063f2fde38b146104d257600080fd5b8063bfb231d2116100e9578063bfb231d21461041a578063c1a09b4214610440578063d5a8ef8414610453578063d7f850ee1461048657600080fd5b80639cbd8c2e146103d4578063a7fc7a07146103e7578063b187bd26146103fa578063bade4a991461040757600080fd5b80633129e7731161019d578063578908c01161016c578063578908c0146103265780635c975abb1461037d578063654fc83314610394578063715018a6146103a75780638da5cb5b146103af57600080fd5b80633129e773146102e357806331c0347d146103035780633994d98914610316578063410d59cc1461031e57600080fd5b806316c38b3c116101d957806316c38b3c1461026857806318ad151b1461027b5780632799276d146102905780632813fbd81461029957600080fd5b8062822a8c1461020a578063018c8e0b1461021f5780630e3e25fc1461023d57806312065fe014610252575b600080fd5b61021d6102183660046130d2565b610544565b005b6102276105fc565b604051610234919061315d565b60405180910390f35b6102456106ca565b60405161023491906131a1565b61025a61076c565b604051908152602001610234565b61021d61027636600461322d565b6107ed565b61028361082f565b6040516102349190613317565b61025a60045481565b6102ac6102a7366004613379565b610a8c565b604080516001600160a01b03968716815260208101959095528401929092529092166060820152901515608082015260a001610234565b6102f66102f1366004613379565b610ade565b6040516102349190613392565b61021d610311366004613497565b610c7c565b610227611016565b6102836110e2565b6102ac61033436600461351e565b600860209081526000928352604080842090915290825290208054600182015460028301546003909301546001600160a01b03928316939192811690600160a01b900460ff1685565b60055460ff165b6040519015158152602001610234565b61021d6103a2366004613379565b611334565b61021d6114af565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610234565b6103846103e236600461354a565b6114e5565b61021d6103f5366004613586565b6115e7565b6005546103849060ff1681565b61021d610415366004613622565b611638565b61042d610428366004613379565b6117ae565b60405161023497969594939291906136bc565b61021d61044e36600461371c565b61190f565b60408051808201825260118152704c6f766520796f75203c33203c33203c3360781b602082015290516102349190613754565b61025a610494366004613379565b611ef9565b61021d6104a7366004613767565b611f1a565b61021d6104ba366004613379565b6120f1565b61021d6104cd3660046137ca565b61252a565b61021d6104e0366004613586565b6127f8565b61021d6104f3366004613824565b612893565b61021d610506366004613586565b612a47565b61021d610519366004613887565b612a92565b6003546103bc906001600160a01b031681565b6002546103bc906001600160a01b031681565b3360009081526001602052604090205460ff1661057c5760405162461bcd60e51b8152600401610573906138bb565b60405180910390fd5b81610586816114e5565b6105ca5760405162461bcd60e51b8152602060048201526015602482015274135bdb99dbc81a59081a5cc81b9bdd081d985b1a59605a1b6044820152606401610573565b60005b848110156105f3576105e187878686612893565b806105eb81613908565b9150506105cd565b50505050505050565b606060006004546001600160401b0381111561061a5761061a613008565b604051908082528060200260200182016040528015610643578160200160208202803683370190505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff166106b057600081815260066020526040902054835184908490811061069757610697613923565b60209081029190910101526106ad600183613939565b91505b806106ba81613908565b91505061064a565b509092915050565b60606009805480602002602001604051908101604052809291908181526020016000905b828210156107635760008481526020908190206040805160a0810182526004860290920180546001600160a01b039081168452600180830154858701526002830154938501939093526003909101549081166060840152600160a01b900460ff161515608083015290835290920191016106ee565b50505050905090565b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107b057600080fd5b505afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e89190613951565b905090565b3360009081526001602052604090205460ff1661081c5760405162461bcd60e51b8152600401610573906138bb565b6005805460ff1916911515919091179055565b606060006004546001600160401b0381111561084d5761084d613008565b60405190808252806020026020018201604052801561088657816020015b610873612eeb565b81526020019060019003908161086b5790505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff16151560011415610a7a57600660008281526020019081526020016000206040518060e0016040529081600082015481526020016001820180546108f59061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546109219061396a565b801561096e5780601f106109435761010080835404028352916020019161096e565b820191906000526020600020905b81548152906001019060200180831161095157829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916109ba9061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e69061396a565b8015610a335780601f10610a0857610100808354040283529160200191610a33565b820191906000526020600020905b815481529060010190602001808311610a1657829003601f168201915b50505091835250506005919091015460ff1615156020909101528351849084908110610a6157610a61613923565b6020908102919091010152610a77600183613939565b91505b80610a8481613908565b91505061088d565b60098181548110610a9c57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039283169450909291811690600160a01b900460ff1685565b610ae6612eeb565b600660008381526020019081526020016000206040518060e001604052908160008201548152602001600182018054610b1e9061396a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a9061396a565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff1615156060820152600482018054608090920191610be39061396a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0f9061396a565b8015610c5c5780601f10610c3157610100808354040283529160200191610c5c565b820191906000526020600020905b815481529060010190602001808311610c3f57829003601f168201915b50505091835250506005919091015460ff16151560209091015292915050565b3360009081526001602052604090205460ff16610cab5760405162461bcd60e51b8152600401610573906138bb565b82828281518151148015610cc0575082518251145b610cdc5760405162461bcd60e51b8152600401610573906139a5565b60005b8151811015610e9157818181518110610cfa57610cfa613923565b602090810291909101015160405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c59060440160206040518083038186803b158015610d4b57600080fd5b505afa158015610d5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8391906139dc565b610d9f5760405162461bcd60e51b8152600401610573906139f9565b336001600160a01b0316828281518110610dbb57610dbb613923565b60200260200101516001600160a01b0316636352211e858481518110610de357610de3613923565b60200260200101516040518263ffffffff1660e01b8152600401610e0991815260200190565b60206040518083038186803b158015610e2157600080fd5b505afa158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190613a56565b6001600160a01b031614610e7f5760405162461bcd60e51b815260040161057390613a73565b80610e8981613908565b915050610cdf565b5060005b85518110156105f35760006040518060a00160405280336001600160a01b03168152602001898481518110610ecc57610ecc613923565b60200260200101518152602001888481518110610eeb57610eeb613923565b60200260200101518152602001878481518110610f0a57610f0a613923565b60200260200101516001600160a01b031681526020016001151581525090508060086000888581518110610f4057610f40613923565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000898581518110610f7c57610f7c613923565b6020908102919091018101518252818101929092526040908101600020835181546001600160a01b039182166001600160a01b03199091161782559284015160018201559083015160028201556060830151600390910180546080909401511515600160a01b026001600160a81b0319909416919092161791909117905561100381612b05565b508061100e81613908565b915050610e95565b606060006004546001600160401b0381111561103457611034613008565b60405190808252806020026020018201604052801561105d578160200160208202803683370190505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff161515600114156110d05760008181526006602052604090205483518490849081106110b7576110b7613923565b60209081029190910101526110cd600183613939565b91505b806110da81613908565b915050611064565b606060006004546001600160401b0381111561110057611100613008565b60405190808252806020026020018201604052801561113957816020015b611126612eeb565b81526020019060019003908161111e5790505b5090506000805b6004548110156106c25760008181526006602052604090206005015460ff161561132257600660008281526020019081526020016000206040518060e00160405290816000820154815260200160018201805461119c9061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546111c89061396a565b80156112155780601f106111ea57610100808354040283529160200191611215565b820191906000526020600020905b8154815290600101906020018083116111f857829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916112619061396a565b80601f016020809104026020016040519081016040528092919081815260200182805461128d9061396a565b80156112da5780601f106112af576101008083540402835291602001916112da565b820191906000526020600020905b8154815290600101906020018083116112bd57829003601f168201915b50505091835250506005919091015460ff161515602090910152835184908490811061130857611308613923565b6020026020010181905250818061131e90613908565b9250505b8061132c81613908565b915050611140565b3360009081526001602052604090205460ff166113635760405162461bcd60e51b8152600401610573906138bb565b600081815260066020526040902060030154600160a01b900460ff16156113cc5760405162461bcd60e51b815260206004820152601960248201527f4974656d20697320616c726561647920707572636861736564000000000000006044820152606401610573565b60008181526006602052604090206005015460ff1615156001146114285760405162461bcd60e51b8152602060048201526013602482015272125d195b48191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606401610573565b6007805460018181019092557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880182905560008281526006602052604081208181559161147790830182612f35565b6000600283018190556003830180546001600160a81b03191690556114a0906004840190612f35565b50600501805460ff1916905550565b6000546001600160a01b031633146114d95760405162461bcd60e51b815260040161057390613ab4565b6114e36000612c9a565b565b805160009082906018146114fc5750600092915050565b60005b81518110156115dd57600082828151811061151c5761151c613923565b01602001516001600160f81b0319169050600360fc1b811080159061154f5750603960f81b6001600160f81b0319821611155b1580156115855750604160f81b6001600160f81b03198216108015906115835750602d60f91b6001600160f81b0319821611155b155b80156115ba5750606160f81b6001600160f81b03198216108015906115b85750603d60f91b6001600160f81b0319821611155b155b156115ca57506000949350505050565b50806115d581613908565b9150506114ff565b5060019392505050565b6000546001600160a01b031633146116115760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b83838360005b81518110156116d15761166982828151811061165c5761165c613923565b60200260200101516114e5565b6116bf5760405162461bcd60e51b815260206004820152602160248201527f4f6e65206f6620746865206d6f6e676f20696473206973206e6f742076616c696044820152601960fa1b6064820152608401610573565b806116c981613908565b91505061163e565b50815183511480156116e4575080518251145b6117005760405162461bcd60e51b8152600401610573906139a5565b3360009081526001602052604090205460ff1661172f5760405162461bcd60e51b8152600401610573906138bb565b60005b87518110156117a45761179288828151811061175057611750613923565b602002602001015188838151811061176a5761176a613923565b602002602001015188848151811061178457611784613923565b602002602001015188612893565b8061179c81613908565b915050611732565b5050505050505050565b600660205260009081526040902080546001820180549192916117d09061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546117fc9061396a565b80156118495780601f1061181e57610100808354040283529160200191611849565b820191906000526020600020905b81548152906001019060200180831161182c57829003601f168201915b5050505060028301546003840154600485018054949592946001600160a01b0383169450600160a01b90920460ff1692916118839061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546118af9061396a565b80156118fc5780601f106118d1576101008083540402835291602001916118fc565b820191906000526020600020905b8154815290600101906020018083116118df57829003601f168201915b5050506005909301549192505060ff1687565b60055460ff16156119575760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610573565b6001600160a01b038281166000908152600860209081526040808320878452825291829020825160a08101845281548516815260018083015493820193909352600282015493810193909352600301549283166060830152600160a01b90920460ff16151560808201819052859285928592909114611a0f5760405162461bcd60e51b81526020600482015260146024820152734974656d206973206e6f7420666f722073616c6560601b6044820152606401610573565b81816020015114611a595760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481a5cc81b9bdd0818dbdc9c9958dd60621b6044820152606401610573565b80516040516331a9108f60e11b8152600481018690526001600160a01b0391821691851690636352211e9060240160206040518083038186803b158015611a9f57600080fd5b505afa158015611ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad79190613a56565b6001600160a01b031614611b2d5760405162461bcd60e51b815260206004820152601760248201527f53656c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610573565b60208101516002546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190613951565b1015611bfb5760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e2774206861766520656e6f756768206d6f6e657900000000006044820152606401610573565b805160405163e985e9c560e01b81526001600160a01b0391821660048201523060248201529084169063e985e9c59060440160206040518083038186803b158015611c4557600080fd5b505afa158015611c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7d91906139dc565b611cef5760405162461bcd60e51b815260206004820152603d60248201527f546865204f776e6572206f662074686973206e6674206973206e6f206c6f6e6760448201527f657220617070726f76656420666f72207468697320636f6e74726163740000006064820152608401610573565b6001600160a01b0386811660009081526008602090815260408083208b8452825291829020825160a08101845281548516808252600183015493820193909352600280830154828601526003909201548086166060830152600160a01b900460ff1615156080820152905492516323b872dd60e01b81523360048201526024810192909252604482018990529291909116906323b872dd90606401602060405180830381600087803b158015611da457600080fd5b505af1158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc91906139dc565b5080516040516323b872dd60e01b81526001600160a01b039182166004820152336024820152604481018a9052908816906323b872dd90606401600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b50505050611e5181612cea565b6001600160a01b0387811660008181526008602090815260408083208d8452825280832080546001600160a01b0319168155600181018490556002810184905560030180546001600160a81b031916905585518151951685529084018a905283018b9052606083019190915260808201527f4864d4e35940ee149092d023838a1848538c625d48fc216c0a27265e1424da699060a00160405180910390a15050505050505050565b60078181548110611f0957600080fd5b600091825260209091200154905081565b81818051825114611f3d5760405162461bcd60e51b8152600401610573906139a5565b3360009081526001602052604090205460ff16611f6c5760405162461bcd60e51b8152600401610573906138bb565b60005b84518110156120ea5761203c60086000868481518110611f9157611f91613923565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000878481518110611fcd57611fcd613923565b6020908102919091018101518252818101929092526040908101600020815160a08101835281546001600160a01b039081168252600183015494820194909452600282015492810192909252600301549182166060820152600160a01b90910460ff1615156080820152612cea565b6008600085838151811061205257612052613923565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061208e5761208e613923565b6020908102919091018101518252810191909152604001600090812080546001600160a01b031916815560018101829055600281019190915560030180546001600160a81b0319169055806120e281613908565b915050611f6f565b5050505050565b6000818152600660205260409020600301548190600160a01b900460ff16156121555760405162461bcd60e51b8152602060048201526016602482015275125d195b48185b1c9958591e481c1d5c98da185cd95960521b6044820152606401610573565b60008281526006602052604090819020600290810154905491516370a0823160e01b815233600482015284926001600160a01b0316906370a082319060240160206040518083038186803b1580156121ac57600080fd5b505afa1580156121c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e49190613951565b10156122325760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e2774206861766520656e6f756768206d6f6e657900000000006044820152606401610573565b60055460ff161561227a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610573565b6000600660008581526020019081526020016000206040518060e0016040529081600082015481526020016001820180546122b49061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546122e09061396a565b801561232d5780601f106123025761010080835404028352916020019161232d565b820191906000526020600020905b81548152906001019060200180831161231057829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916123799061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546123a59061396a565b80156123f25780601f106123c7576101008083540402835291602001916123f2565b820191906000526020600020905b8154815290600101906020018083116123d557829003601f168201915b50505091835250506005919091015460ff161515602090910152600254606082015160408084015190516323b872dd60e01b81523360048201526001600160a01b039283166024820152604481019190915292935016906323b872dd90606401602060405180830381600087803b15801561246c57600080fd5b505af1158015612480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a491906139dc565b50600084815260066020908152604091829020600301805460ff60a01b19339081166001600160a81b031990921691909117600160a01b179091558351918401518484015193517f4f91fa3e023c0c292083c4092fee8a413b0ef3ea96731feebb48e2bd6bff441b9461251c94939091600190613ae9565b60405180910390a150505050565b3360009081526001602052604090205460ff166125595760405162461bcd60e51b8152600401610573906138bb565b60405163e985e9c560e01b81523360048201523060248201526001600160a01b0382169063e985e9c59060440160206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d691906139dc565b6125f25760405162461bcd60e51b8152600401610573906139f9565b60005b82518110156127f257336001600160a01b0316826001600160a01b0316636352211e85848151811061262957612629613923565b60200260200101516040518263ffffffff1660e01b815260040161264f91815260200190565b60206040518083038186803b15801561266757600080fd5b505afa15801561267b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269f9190613a56565b6001600160a01b0316146126c55760405162461bcd60e51b815260040161057390613a73565b60006040518060a00160405280336001600160a01b031681526020018681526020018584815181106126f9576126f9613923565b60200260200101518152602001846001600160a01b031681526020016001151581525090508060086000856001600160a01b03166001600160a01b03168152602001908152602001600020600086858151811061275857612758613923565b6020908102919091018101518252818101929092526040908101600020835181546001600160a01b039182166001600160a01b03199091161782559284015160018201559083015160028201556060830151600390910180546080909401511515600160a01b026001600160a81b031990941691909216179190911790556127df81612b05565b50806127ea81613908565b9150506125f5565b50505050565b6000546001600160a01b031633146128225760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b0381166128875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610573565b61289081612c9a565b50565b3360009081526001602052604090205460ff166128c25760405162461bcd60e51b8152600401610573906138bb565b6004546001600160a01b038216156128da57816128df565b339150815b506007541561294157600780546128f890600190613b2a565b8154811061290857612908613923565b90600052602060002001549050600780548061292657612926613b41565b6001900381819060005260206000200160009055905561295a565b5060048054908190600061295483613908565b91905055505b6040805160e08101825282815260208082018881528284018890526001600160a01b038616606084015260006080840181905260a08401889052600160c08501819052868252600684529490208351815590518051939491936129c593928501929190910190612f6f565b5060408201516002820155606082015160038201805460808501511515600160a01b026001600160a81b03199091166001600160a01b039093169290921791909117905560a08201518051612a24916004840191602090910190612f6f565b5060c091909101516005909101805460ff19169115159190911790555050505050565b6000546001600160a01b03163314612a715760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b03166000908152600160205260409020805460ff19169055565b3360009081526001602052604090205460ff16612ac15760405162461bcd60e51b8152600401610573906138bb565b60005b8151811015612b0157612aef828281518110612ae257612ae2613923565b6020026020010151611334565b80612af981613908565b915050612ac4565b5050565b60005b600954811015612b9f57816040015160098281548110612b2a57612b2a613923565b906000526020600020906004020160020154148015612b84575081606001516001600160a01b031660098281548110612b6557612b65613923565b60009182526020909120600360049092020101546001600160a01b0316145b15612b8d575050565b80612b9781613908565b915050612b08565b5060098054600181018255600091909152815160049091027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810180546001600160a01b039384166001600160a01b031990911617905560208301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015560408301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015560608301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910180546080909401511515600160a01b026001600160a81b03199094169190921617919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b600954811015612b0157816040015160098281548110612d0f57612d0f613923565b906000526020600020906004020160020154148015612d69575081606001516001600160a01b031660098281548110612d4a57612d4a613923565b60009182526020909120600360049092020101546001600160a01b0316145b15612ed95760098181548110612d8157612d81613923565b60009182526020822060049091020180546001600160a01b03191681556001808201839055600282019290925560030180546001600160a81b0319169055600980549091612dce91613b2a565b81548110612dde57612dde613923565b906000526020600020906004020160098281548110612dff57612dff613923565b60009182526020909120825460049092020180546001600160a01b039283166001600160a01b0319918216178255600180850154908301556002808501549083015560039384018054949092018054949093169084168117835590546001600160a81b031990931617600160a01b9283900460ff1615159092029190911790556009805480612e9057612e90613b41565b60008281526020812060046000199093019283020180546001600160a01b031916815560018101829055600281019190915560030180546001600160a81b031916905590555050565b80612ee381613908565b915050612ced565b6040518060e0016040528060008152602001606081526020016000815260200160006001600160a01b03168152602001600015158152602001606081526020016000151581525090565b508054612f419061396a565b6000825580601f10612f51575050565b601f0160209004906000526020600020908101906128909190612ff3565b828054612f7b9061396a565b90600052602060002090601f016020900481019282612f9d5760008555612fe3565b82601f10612fb657805160ff1916838001178555612fe3565b82800160010185558215612fe3579182015b82811115612fe3578251825591602001919060010190612fc8565b50612fef929150612ff3565b5090565b5b80821115612fef5760008155600101612ff4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561304657613046613008565b604052919050565b600082601f83011261305f57600080fd5b81356001600160401b0381111561307857613078613008565b61308b601f8201601f191660200161301e565b8181528460208386010111156130a057600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160a01b038116811461289057600080fd5b600080600080600060a086880312156130ea57600080fd5b85356001600160401b038082111561310157600080fd5b61310d89838a0161304e565b96506020880135955060408801359450606088013591508082111561313157600080fd5b5061313e8882890161304e565b925050608086013561314f816130bd565b809150509295509295909350565b6020808252825182820181905260009190848201906040850190845b8181101561319557835183529284019291840191600101613179565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561321257815180516001600160a01b039081168652878201518887015286820151878701526060808301519091169086015260809081015115159085015260a090930192908501906001016131be565b5091979650505050505050565b801515811461289057600080fd5b60006020828403121561323f57600080fd5b813561324a8161321f565b9392505050565b6000815180845260005b818110156132775760208185018101518683018201520161325b565b81811115613289576000602083870101525b50601f01601f19169290920160200192915050565b805182526000602082015160e060208501526132bd60e0850182613251565b90506040830151604085015260018060a01b03606084015116606085015260808301511515608085015260a083015184820360a08601526132fe8282613251565b91505060c0830151151560c08501528091505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561336c57603f1988860301845261335a85835161329e565b9450928501929085019060010161333e565b5092979650505050505050565b60006020828403121561338b57600080fd5b5035919050565b60208152600061324a602083018461329e565b60006001600160401b038211156133be576133be613008565b5060051b60200190565b600082601f8301126133d957600080fd5b813560206133ee6133e9836133a5565b61301e565b82815260059290921b8401810191818101908684111561340d57600080fd5b8286015b848110156134285780358352918301918301613411565b509695505050505050565b600082601f83011261344457600080fd5b813560206134546133e9836133a5565b82815260059290921b8401810191818101908684111561347357600080fd5b8286015b8481101561342857803561348a816130bd565b8352918301918301613477565b6000806000606084860312156134ac57600080fd5b83356001600160401b03808211156134c357600080fd5b6134cf878388016133c8565b945060208601359150808211156134e557600080fd5b6134f1878388016133c8565b9350604086013591508082111561350757600080fd5b5061351486828701613433565b9150509250925092565b6000806040838503121561353157600080fd5b823561353c816130bd565b946020939093013593505050565b60006020828403121561355c57600080fd5b81356001600160401b0381111561357257600080fd5b61357e8482850161304e565b949350505050565b60006020828403121561359857600080fd5b813561324a816130bd565b600082601f8301126135b457600080fd5b813560206135c46133e9836133a5565b82815260059290921b840181019181810190868411156135e357600080fd5b8286015b848110156134285780356001600160401b038111156136065760008081fd5b6136148986838b010161304e565b8452509183019183016135e7565b6000806000806080858703121561363857600080fd5b84356001600160401b038082111561364f57600080fd5b61365b888389016135a3565b9550602087013591508082111561367157600080fd5b61367d888389016133c8565b9450604087013591508082111561369357600080fd5b506136a0878288016135a3565b92505060608501356136b1816130bd565b939692955090935050565b87815260e0602082015260006136d560e0830189613251565b604083018890526001600160a01b0387166060840152851515608084015282810360a08401526137058186613251565b91505082151560c083015298975050505050505050565b60008060006060848603121561373157600080fd5b833592506020840135613743816130bd565b929592945050506040919091013590565b60208152600061324a6020830184613251565b6000806040838503121561377a57600080fd5b82356001600160401b038082111561379157600080fd5b61379d868387016133c8565b935060208501359150808211156137b357600080fd5b506137c085828601613433565b9150509250929050565b6000806000606084860312156137df57600080fd5b8335925060208401356001600160401b038111156137fc57600080fd5b613808868287016133c8565b9250506040840135613819816130bd565b809150509250925092565b6000806000806080858703121561383a57600080fd5b84356001600160401b038082111561385157600080fd5b61385d8883890161304e565b955060208701359450604087013591508082111561387a57600080fd5b506136a08782880161304e565b60006020828403121561389957600080fd5b81356001600160401b038111156138af57600080fd5b61357e848285016133c8565b60208082526018908201527f596f7520617265206e6f74206120636f6e74726f6c6c65720000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561391c5761391c6138f2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000821982111561394c5761394c6138f2565b500190565b60006020828403121561396357600080fd5b5051919050565b600181811c9082168061397e57607f821691505b6020821081141561399f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601e908201527f41727261797320617265206e6f74207468652073616d65206c656e6774680000604082015260600190565b6000602082840312156139ee57600080fd5b815161324a8161321f565b6020808252603b908201527f596f75206e65656420746f20617070726f7665207468697320636f6e7472616360408201527f74206265666f726520796f752073656c6c20796f7572204e4654730000000000606082015260800190565b600060208284031215613a6857600080fd5b815161324a816130bd565b60208082526021908201527f596f7520617265206e6f7420746865206f776e6572206f662074686973204e466040820152601560fa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b85815260a060208201526000613b0260a0830187613251565b6040830195909552506001600160a01b03929092166060830152151560809091015292915050565b600082821015613b3c57613b3c6138f2565b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220433328cc1a6f5e93f364be03eb78ce20ea72d9f120738f200136de106a17799764736f6c6343000809003300000000000000000000000062f0d9b1e69b29d11b8ed3dcd3a8e69bad54e533

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102055760003560e01c80639cbd8c2e1161011a578063e68b32e4116100ad578063f54c1c2a1161007c578063f54c1c2a146104e5578063f6a74ed7146104f8578063f80211351461050b578063fbfa77cf1461051e578063fc0c546a1461053157600080fd5b8063e68b32e414610499578063e7fb74c7146104ac578063eb71ec37146104bf578063f2fde38b146104d257600080fd5b8063bfb231d2116100e9578063bfb231d21461041a578063c1a09b4214610440578063d5a8ef8414610453578063d7f850ee1461048657600080fd5b80639cbd8c2e146103d4578063a7fc7a07146103e7578063b187bd26146103fa578063bade4a991461040757600080fd5b80633129e7731161019d578063578908c01161016c578063578908c0146103265780635c975abb1461037d578063654fc83314610394578063715018a6146103a75780638da5cb5b146103af57600080fd5b80633129e773146102e357806331c0347d146103035780633994d98914610316578063410d59cc1461031e57600080fd5b806316c38b3c116101d957806316c38b3c1461026857806318ad151b1461027b5780632799276d146102905780632813fbd81461029957600080fd5b8062822a8c1461020a578063018c8e0b1461021f5780630e3e25fc1461023d57806312065fe014610252575b600080fd5b61021d6102183660046130d2565b610544565b005b6102276105fc565b604051610234919061315d565b60405180910390f35b6102456106ca565b60405161023491906131a1565b61025a61076c565b604051908152602001610234565b61021d61027636600461322d565b6107ed565b61028361082f565b6040516102349190613317565b61025a60045481565b6102ac6102a7366004613379565b610a8c565b604080516001600160a01b03968716815260208101959095528401929092529092166060820152901515608082015260a001610234565b6102f66102f1366004613379565b610ade565b6040516102349190613392565b61021d610311366004613497565b610c7c565b610227611016565b6102836110e2565b6102ac61033436600461351e565b600860209081526000928352604080842090915290825290208054600182015460028301546003909301546001600160a01b03928316939192811690600160a01b900460ff1685565b60055460ff165b6040519015158152602001610234565b61021d6103a2366004613379565b611334565b61021d6114af565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610234565b6103846103e236600461354a565b6114e5565b61021d6103f5366004613586565b6115e7565b6005546103849060ff1681565b61021d610415366004613622565b611638565b61042d610428366004613379565b6117ae565b60405161023497969594939291906136bc565b61021d61044e36600461371c565b61190f565b60408051808201825260118152704c6f766520796f75203c33203c33203c3360781b602082015290516102349190613754565b61025a610494366004613379565b611ef9565b61021d6104a7366004613767565b611f1a565b61021d6104ba366004613379565b6120f1565b61021d6104cd3660046137ca565b61252a565b61021d6104e0366004613586565b6127f8565b61021d6104f3366004613824565b612893565b61021d610506366004613586565b612a47565b61021d610519366004613887565b612a92565b6003546103bc906001600160a01b031681565b6002546103bc906001600160a01b031681565b3360009081526001602052604090205460ff1661057c5760405162461bcd60e51b8152600401610573906138bb565b60405180910390fd5b81610586816114e5565b6105ca5760405162461bcd60e51b8152602060048201526015602482015274135bdb99dbc81a59081a5cc81b9bdd081d985b1a59605a1b6044820152606401610573565b60005b848110156105f3576105e187878686612893565b806105eb81613908565b9150506105cd565b50505050505050565b606060006004546001600160401b0381111561061a5761061a613008565b604051908082528060200260200182016040528015610643578160200160208202803683370190505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff166106b057600081815260066020526040902054835184908490811061069757610697613923565b60209081029190910101526106ad600183613939565b91505b806106ba81613908565b91505061064a565b509092915050565b60606009805480602002602001604051908101604052809291908181526020016000905b828210156107635760008481526020908190206040805160a0810182526004860290920180546001600160a01b039081168452600180830154858701526002830154938501939093526003909101549081166060840152600160a01b900460ff161515608083015290835290920191016106ee565b50505050905090565b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107b057600080fd5b505afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e89190613951565b905090565b3360009081526001602052604090205460ff1661081c5760405162461bcd60e51b8152600401610573906138bb565b6005805460ff1916911515919091179055565b606060006004546001600160401b0381111561084d5761084d613008565b60405190808252806020026020018201604052801561088657816020015b610873612eeb565b81526020019060019003908161086b5790505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff16151560011415610a7a57600660008281526020019081526020016000206040518060e0016040529081600082015481526020016001820180546108f59061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546109219061396a565b801561096e5780601f106109435761010080835404028352916020019161096e565b820191906000526020600020905b81548152906001019060200180831161095157829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916109ba9061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e69061396a565b8015610a335780601f10610a0857610100808354040283529160200191610a33565b820191906000526020600020905b815481529060010190602001808311610a1657829003601f168201915b50505091835250506005919091015460ff1615156020909101528351849084908110610a6157610a61613923565b6020908102919091010152610a77600183613939565b91505b80610a8481613908565b91505061088d565b60098181548110610a9c57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039283169450909291811690600160a01b900460ff1685565b610ae6612eeb565b600660008381526020019081526020016000206040518060e001604052908160008201548152602001600182018054610b1e9061396a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a9061396a565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff1615156060820152600482018054608090920191610be39061396a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0f9061396a565b8015610c5c5780601f10610c3157610100808354040283529160200191610c5c565b820191906000526020600020905b815481529060010190602001808311610c3f57829003601f168201915b50505091835250506005919091015460ff16151560209091015292915050565b3360009081526001602052604090205460ff16610cab5760405162461bcd60e51b8152600401610573906138bb565b82828281518151148015610cc0575082518251145b610cdc5760405162461bcd60e51b8152600401610573906139a5565b60005b8151811015610e9157818181518110610cfa57610cfa613923565b602090810291909101015160405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c59060440160206040518083038186803b158015610d4b57600080fd5b505afa158015610d5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8391906139dc565b610d9f5760405162461bcd60e51b8152600401610573906139f9565b336001600160a01b0316828281518110610dbb57610dbb613923565b60200260200101516001600160a01b0316636352211e858481518110610de357610de3613923565b60200260200101516040518263ffffffff1660e01b8152600401610e0991815260200190565b60206040518083038186803b158015610e2157600080fd5b505afa158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190613a56565b6001600160a01b031614610e7f5760405162461bcd60e51b815260040161057390613a73565b80610e8981613908565b915050610cdf565b5060005b85518110156105f35760006040518060a00160405280336001600160a01b03168152602001898481518110610ecc57610ecc613923565b60200260200101518152602001888481518110610eeb57610eeb613923565b60200260200101518152602001878481518110610f0a57610f0a613923565b60200260200101516001600160a01b031681526020016001151581525090508060086000888581518110610f4057610f40613923565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000898581518110610f7c57610f7c613923565b6020908102919091018101518252818101929092526040908101600020835181546001600160a01b039182166001600160a01b03199091161782559284015160018201559083015160028201556060830151600390910180546080909401511515600160a01b026001600160a81b0319909416919092161791909117905561100381612b05565b508061100e81613908565b915050610e95565b606060006004546001600160401b0381111561103457611034613008565b60405190808252806020026020018201604052801561105d578160200160208202803683370190505b5090506000805b6004548110156106c257600081815260066020526040902060030154600160a01b900460ff161515600114156110d05760008181526006602052604090205483518490849081106110b7576110b7613923565b60209081029190910101526110cd600183613939565b91505b806110da81613908565b915050611064565b606060006004546001600160401b0381111561110057611100613008565b60405190808252806020026020018201604052801561113957816020015b611126612eeb565b81526020019060019003908161111e5790505b5090506000805b6004548110156106c25760008181526006602052604090206005015460ff161561132257600660008281526020019081526020016000206040518060e00160405290816000820154815260200160018201805461119c9061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546111c89061396a565b80156112155780601f106111ea57610100808354040283529160200191611215565b820191906000526020600020905b8154815290600101906020018083116111f857829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916112619061396a565b80601f016020809104026020016040519081016040528092919081815260200182805461128d9061396a565b80156112da5780601f106112af576101008083540402835291602001916112da565b820191906000526020600020905b8154815290600101906020018083116112bd57829003601f168201915b50505091835250506005919091015460ff161515602090910152835184908490811061130857611308613923565b6020026020010181905250818061131e90613908565b9250505b8061132c81613908565b915050611140565b3360009081526001602052604090205460ff166113635760405162461bcd60e51b8152600401610573906138bb565b600081815260066020526040902060030154600160a01b900460ff16156113cc5760405162461bcd60e51b815260206004820152601960248201527f4974656d20697320616c726561647920707572636861736564000000000000006044820152606401610573565b60008181526006602052604090206005015460ff1615156001146114285760405162461bcd60e51b8152602060048201526013602482015272125d195b48191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606401610573565b6007805460018181019092557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880182905560008281526006602052604081208181559161147790830182612f35565b6000600283018190556003830180546001600160a81b03191690556114a0906004840190612f35565b50600501805460ff1916905550565b6000546001600160a01b031633146114d95760405162461bcd60e51b815260040161057390613ab4565b6114e36000612c9a565b565b805160009082906018146114fc5750600092915050565b60005b81518110156115dd57600082828151811061151c5761151c613923565b01602001516001600160f81b0319169050600360fc1b811080159061154f5750603960f81b6001600160f81b0319821611155b1580156115855750604160f81b6001600160f81b03198216108015906115835750602d60f91b6001600160f81b0319821611155b155b80156115ba5750606160f81b6001600160f81b03198216108015906115b85750603d60f91b6001600160f81b0319821611155b155b156115ca57506000949350505050565b50806115d581613908565b9150506114ff565b5060019392505050565b6000546001600160a01b031633146116115760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b83838360005b81518110156116d15761166982828151811061165c5761165c613923565b60200260200101516114e5565b6116bf5760405162461bcd60e51b815260206004820152602160248201527f4f6e65206f6620746865206d6f6e676f20696473206973206e6f742076616c696044820152601960fa1b6064820152608401610573565b806116c981613908565b91505061163e565b50815183511480156116e4575080518251145b6117005760405162461bcd60e51b8152600401610573906139a5565b3360009081526001602052604090205460ff1661172f5760405162461bcd60e51b8152600401610573906138bb565b60005b87518110156117a45761179288828151811061175057611750613923565b602002602001015188838151811061176a5761176a613923565b602002602001015188848151811061178457611784613923565b602002602001015188612893565b8061179c81613908565b915050611732565b5050505050505050565b600660205260009081526040902080546001820180549192916117d09061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546117fc9061396a565b80156118495780601f1061181e57610100808354040283529160200191611849565b820191906000526020600020905b81548152906001019060200180831161182c57829003601f168201915b5050505060028301546003840154600485018054949592946001600160a01b0383169450600160a01b90920460ff1692916118839061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546118af9061396a565b80156118fc5780601f106118d1576101008083540402835291602001916118fc565b820191906000526020600020905b8154815290600101906020018083116118df57829003601f168201915b5050506005909301549192505060ff1687565b60055460ff16156119575760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610573565b6001600160a01b038281166000908152600860209081526040808320878452825291829020825160a08101845281548516815260018083015493820193909352600282015493810193909352600301549283166060830152600160a01b90920460ff16151560808201819052859285928592909114611a0f5760405162461bcd60e51b81526020600482015260146024820152734974656d206973206e6f7420666f722073616c6560601b6044820152606401610573565b81816020015114611a595760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481a5cc81b9bdd0818dbdc9c9958dd60621b6044820152606401610573565b80516040516331a9108f60e11b8152600481018690526001600160a01b0391821691851690636352211e9060240160206040518083038186803b158015611a9f57600080fd5b505afa158015611ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad79190613a56565b6001600160a01b031614611b2d5760405162461bcd60e51b815260206004820152601760248201527f53656c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610573565b60208101516002546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190613951565b1015611bfb5760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e2774206861766520656e6f756768206d6f6e657900000000006044820152606401610573565b805160405163e985e9c560e01b81526001600160a01b0391821660048201523060248201529084169063e985e9c59060440160206040518083038186803b158015611c4557600080fd5b505afa158015611c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7d91906139dc565b611cef5760405162461bcd60e51b815260206004820152603d60248201527f546865204f776e6572206f662074686973206e6674206973206e6f206c6f6e6760448201527f657220617070726f76656420666f72207468697320636f6e74726163740000006064820152608401610573565b6001600160a01b0386811660009081526008602090815260408083208b8452825291829020825160a08101845281548516808252600183015493820193909352600280830154828601526003909201548086166060830152600160a01b900460ff1615156080820152905492516323b872dd60e01b81523360048201526024810192909252604482018990529291909116906323b872dd90606401602060405180830381600087803b158015611da457600080fd5b505af1158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc91906139dc565b5080516040516323b872dd60e01b81526001600160a01b039182166004820152336024820152604481018a9052908816906323b872dd90606401600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b50505050611e5181612cea565b6001600160a01b0387811660008181526008602090815260408083208d8452825280832080546001600160a01b0319168155600181018490556002810184905560030180546001600160a81b031916905585518151951685529084018a905283018b9052606083019190915260808201527f4864d4e35940ee149092d023838a1848538c625d48fc216c0a27265e1424da699060a00160405180910390a15050505050505050565b60078181548110611f0957600080fd5b600091825260209091200154905081565b81818051825114611f3d5760405162461bcd60e51b8152600401610573906139a5565b3360009081526001602052604090205460ff16611f6c5760405162461bcd60e51b8152600401610573906138bb565b60005b84518110156120ea5761203c60086000868481518110611f9157611f91613923565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000878481518110611fcd57611fcd613923565b6020908102919091018101518252818101929092526040908101600020815160a08101835281546001600160a01b039081168252600183015494820194909452600282015492810192909252600301549182166060820152600160a01b90910460ff1615156080820152612cea565b6008600085838151811061205257612052613923565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061208e5761208e613923565b6020908102919091018101518252810191909152604001600090812080546001600160a01b031916815560018101829055600281019190915560030180546001600160a81b0319169055806120e281613908565b915050611f6f565b5050505050565b6000818152600660205260409020600301548190600160a01b900460ff16156121555760405162461bcd60e51b8152602060048201526016602482015275125d195b48185b1c9958591e481c1d5c98da185cd95960521b6044820152606401610573565b60008281526006602052604090819020600290810154905491516370a0823160e01b815233600482015284926001600160a01b0316906370a082319060240160206040518083038186803b1580156121ac57600080fd5b505afa1580156121c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e49190613951565b10156122325760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e2774206861766520656e6f756768206d6f6e657900000000006044820152606401610573565b60055460ff161561227a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610573565b6000600660008581526020019081526020016000206040518060e0016040529081600082015481526020016001820180546122b49061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546122e09061396a565b801561232d5780601f106123025761010080835404028352916020019161232d565b820191906000526020600020905b81548152906001019060200180831161231057829003601f168201915b50505091835250506002820154602082015260038201546001600160a01b0381166040830152600160a01b900460ff16151560608201526004820180546080909201916123799061396a565b80601f01602080910402602001604051908101604052809291908181526020018280546123a59061396a565b80156123f25780601f106123c7576101008083540402835291602001916123f2565b820191906000526020600020905b8154815290600101906020018083116123d557829003601f168201915b50505091835250506005919091015460ff161515602090910152600254606082015160408084015190516323b872dd60e01b81523360048201526001600160a01b039283166024820152604481019190915292935016906323b872dd90606401602060405180830381600087803b15801561246c57600080fd5b505af1158015612480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a491906139dc565b50600084815260066020908152604091829020600301805460ff60a01b19339081166001600160a81b031990921691909117600160a01b179091558351918401518484015193517f4f91fa3e023c0c292083c4092fee8a413b0ef3ea96731feebb48e2bd6bff441b9461251c94939091600190613ae9565b60405180910390a150505050565b3360009081526001602052604090205460ff166125595760405162461bcd60e51b8152600401610573906138bb565b60405163e985e9c560e01b81523360048201523060248201526001600160a01b0382169063e985e9c59060440160206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d691906139dc565b6125f25760405162461bcd60e51b8152600401610573906139f9565b60005b82518110156127f257336001600160a01b0316826001600160a01b0316636352211e85848151811061262957612629613923565b60200260200101516040518263ffffffff1660e01b815260040161264f91815260200190565b60206040518083038186803b15801561266757600080fd5b505afa15801561267b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269f9190613a56565b6001600160a01b0316146126c55760405162461bcd60e51b815260040161057390613a73565b60006040518060a00160405280336001600160a01b031681526020018681526020018584815181106126f9576126f9613923565b60200260200101518152602001846001600160a01b031681526020016001151581525090508060086000856001600160a01b03166001600160a01b03168152602001908152602001600020600086858151811061275857612758613923565b6020908102919091018101518252818101929092526040908101600020835181546001600160a01b039182166001600160a01b03199091161782559284015160018201559083015160028201556060830151600390910180546080909401511515600160a01b026001600160a81b031990941691909216179190911790556127df81612b05565b50806127ea81613908565b9150506125f5565b50505050565b6000546001600160a01b031633146128225760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b0381166128875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610573565b61289081612c9a565b50565b3360009081526001602052604090205460ff166128c25760405162461bcd60e51b8152600401610573906138bb565b6004546001600160a01b038216156128da57816128df565b339150815b506007541561294157600780546128f890600190613b2a565b8154811061290857612908613923565b90600052602060002001549050600780548061292657612926613b41565b6001900381819060005260206000200160009055905561295a565b5060048054908190600061295483613908565b91905055505b6040805160e08101825282815260208082018881528284018890526001600160a01b038616606084015260006080840181905260a08401889052600160c08501819052868252600684529490208351815590518051939491936129c593928501929190910190612f6f565b5060408201516002820155606082015160038201805460808501511515600160a01b026001600160a81b03199091166001600160a01b039093169290921791909117905560a08201518051612a24916004840191602090910190612f6f565b5060c091909101516005909101805460ff19169115159190911790555050505050565b6000546001600160a01b03163314612a715760405162461bcd60e51b815260040161057390613ab4565b6001600160a01b03166000908152600160205260409020805460ff19169055565b3360009081526001602052604090205460ff16612ac15760405162461bcd60e51b8152600401610573906138bb565b60005b8151811015612b0157612aef828281518110612ae257612ae2613923565b6020026020010151611334565b80612af981613908565b915050612ac4565b5050565b60005b600954811015612b9f57816040015160098281548110612b2a57612b2a613923565b906000526020600020906004020160020154148015612b84575081606001516001600160a01b031660098281548110612b6557612b65613923565b60009182526020909120600360049092020101546001600160a01b0316145b15612b8d575050565b80612b9781613908565b915050612b08565b5060098054600181018255600091909152815160049091027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810180546001600160a01b039384166001600160a01b031990911617905560208301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015560408301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015560608301517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910180546080909401511515600160a01b026001600160a81b03199094169190921617919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b600954811015612b0157816040015160098281548110612d0f57612d0f613923565b906000526020600020906004020160020154148015612d69575081606001516001600160a01b031660098281548110612d4a57612d4a613923565b60009182526020909120600360049092020101546001600160a01b0316145b15612ed95760098181548110612d8157612d81613923565b60009182526020822060049091020180546001600160a01b03191681556001808201839055600282019290925560030180546001600160a81b0319169055600980549091612dce91613b2a565b81548110612dde57612dde613923565b906000526020600020906004020160098281548110612dff57612dff613923565b60009182526020909120825460049092020180546001600160a01b039283166001600160a01b0319918216178255600180850154908301556002808501549083015560039384018054949092018054949093169084168117835590546001600160a81b031990931617600160a01b9283900460ff1615159092029190911790556009805480612e9057612e90613b41565b60008281526020812060046000199093019283020180546001600160a01b031916815560018101829055600281019190915560030180546001600160a81b031916905590555050565b80612ee381613908565b915050612ced565b6040518060e0016040528060008152602001606081526020016000815260200160006001600160a01b03168152602001600015158152602001606081526020016000151581525090565b508054612f419061396a565b6000825580601f10612f51575050565b601f0160209004906000526020600020908101906128909190612ff3565b828054612f7b9061396a565b90600052602060002090601f016020900481019282612f9d5760008555612fe3565b82601f10612fb657805160ff1916838001178555612fe3565b82800160010185558215612fe3579182015b82811115612fe3578251825591602001919060010190612fc8565b50612fef929150612ff3565b5090565b5b80821115612fef5760008155600101612ff4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561304657613046613008565b604052919050565b600082601f83011261305f57600080fd5b81356001600160401b0381111561307857613078613008565b61308b601f8201601f191660200161301e565b8181528460208386010111156130a057600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160a01b038116811461289057600080fd5b600080600080600060a086880312156130ea57600080fd5b85356001600160401b038082111561310157600080fd5b61310d89838a0161304e565b96506020880135955060408801359450606088013591508082111561313157600080fd5b5061313e8882890161304e565b925050608086013561314f816130bd565b809150509295509295909350565b6020808252825182820181905260009190848201906040850190845b8181101561319557835183529284019291840191600101613179565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561321257815180516001600160a01b039081168652878201518887015286820151878701526060808301519091169086015260809081015115159085015260a090930192908501906001016131be565b5091979650505050505050565b801515811461289057600080fd5b60006020828403121561323f57600080fd5b813561324a8161321f565b9392505050565b6000815180845260005b818110156132775760208185018101518683018201520161325b565b81811115613289576000602083870101525b50601f01601f19169290920160200192915050565b805182526000602082015160e060208501526132bd60e0850182613251565b90506040830151604085015260018060a01b03606084015116606085015260808301511515608085015260a083015184820360a08601526132fe8282613251565b91505060c0830151151560c08501528091505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561336c57603f1988860301845261335a85835161329e565b9450928501929085019060010161333e565b5092979650505050505050565b60006020828403121561338b57600080fd5b5035919050565b60208152600061324a602083018461329e565b60006001600160401b038211156133be576133be613008565b5060051b60200190565b600082601f8301126133d957600080fd5b813560206133ee6133e9836133a5565b61301e565b82815260059290921b8401810191818101908684111561340d57600080fd5b8286015b848110156134285780358352918301918301613411565b509695505050505050565b600082601f83011261344457600080fd5b813560206134546133e9836133a5565b82815260059290921b8401810191818101908684111561347357600080fd5b8286015b8481101561342857803561348a816130bd565b8352918301918301613477565b6000806000606084860312156134ac57600080fd5b83356001600160401b03808211156134c357600080fd5b6134cf878388016133c8565b945060208601359150808211156134e557600080fd5b6134f1878388016133c8565b9350604086013591508082111561350757600080fd5b5061351486828701613433565b9150509250925092565b6000806040838503121561353157600080fd5b823561353c816130bd565b946020939093013593505050565b60006020828403121561355c57600080fd5b81356001600160401b0381111561357257600080fd5b61357e8482850161304e565b949350505050565b60006020828403121561359857600080fd5b813561324a816130bd565b600082601f8301126135b457600080fd5b813560206135c46133e9836133a5565b82815260059290921b840181019181810190868411156135e357600080fd5b8286015b848110156134285780356001600160401b038111156136065760008081fd5b6136148986838b010161304e565b8452509183019183016135e7565b6000806000806080858703121561363857600080fd5b84356001600160401b038082111561364f57600080fd5b61365b888389016135a3565b9550602087013591508082111561367157600080fd5b61367d888389016133c8565b9450604087013591508082111561369357600080fd5b506136a0878288016135a3565b92505060608501356136b1816130bd565b939692955090935050565b87815260e0602082015260006136d560e0830189613251565b604083018890526001600160a01b0387166060840152851515608084015282810360a08401526137058186613251565b91505082151560c083015298975050505050505050565b60008060006060848603121561373157600080fd5b833592506020840135613743816130bd565b929592945050506040919091013590565b60208152600061324a6020830184613251565b6000806040838503121561377a57600080fd5b82356001600160401b038082111561379157600080fd5b61379d868387016133c8565b935060208501359150808211156137b357600080fd5b506137c085828601613433565b9150509250929050565b6000806000606084860312156137df57600080fd5b8335925060208401356001600160401b038111156137fc57600080fd5b613808868287016133c8565b9250506040840135613819816130bd565b809150509250925092565b6000806000806080858703121561383a57600080fd5b84356001600160401b038082111561385157600080fd5b61385d8883890161304e565b955060208701359450604087013591508082111561387a57600080fd5b506136a08782880161304e565b60006020828403121561389957600080fd5b81356001600160401b038111156138af57600080fd5b61357e848285016133c8565b60208082526018908201527f596f7520617265206e6f74206120636f6e74726f6c6c65720000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561391c5761391c6138f2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000821982111561394c5761394c6138f2565b500190565b60006020828403121561396357600080fd5b5051919050565b600181811c9082168061397e57607f821691505b6020821081141561399f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601e908201527f41727261797320617265206e6f74207468652073616d65206c656e6774680000604082015260600190565b6000602082840312156139ee57600080fd5b815161324a8161321f565b6020808252603b908201527f596f75206e65656420746f20617070726f7665207468697320636f6e7472616360408201527f74206265666f726520796f752073656c6c20796f7572204e4654730000000000606082015260800190565b600060208284031215613a6857600080fd5b815161324a816130bd565b60208082526021908201527f596f7520617265206e6f7420746865206f776e6572206f662074686973204e466040820152601560fa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b85815260a060208201526000613b0260a0830187613251565b6040830195909552506001600160a01b03929092166060830152151560809091015292915050565b600082821015613b3c57613b3c6138f2565b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220433328cc1a6f5e93f364be03eb78ce20ea72d9f120738f200136de106a17799764736f6c63430008090033

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

00000000000000000000000062f0d9b1e69b29d11b8ed3dcd3a8e69bad54e533

-----Decoded View---------------
Arg [0] : _token (address): 0x62f0D9b1E69b29D11B8ED3dcD3a8E69bad54E533

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000062f0d9b1e69b29d11b8ed3dcd3a8e69bad54e533


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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