ETH Price: $3,551.52 (-1.56%)
Gas: 29 Gwei

Contract

0x9c5Fb504f12C0ce864A8B0e6B03dE5D9204FE2a3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...193327492024-02-29 11:03:2329 days ago1709204603IN
0x9c5Fb504...9204FE2a3
0 ETH0.0039785385.35984991
Set Approval For...192475352024-02-17 12:19:2341 days ago1708172363IN
0x9c5Fb504...9204FE2a3
0 ETH0.0007435415.95284777
Set Approval For...191050392024-01-28 12:28:5961 days ago1706444939IN
0x9c5Fb504...9204FE2a3
0 ETH0.0002925211.84444237
Set Approval For...190876102024-01-26 1:49:2363 days ago1706233763IN
0x9c5Fb504...9204FE2a3
0 ETH0.0005018520.32066491
Set Approval For...188888542023-12-29 4:26:5991 days ago1703824019IN
0x9c5Fb504...9204FE2a3
0 ETH0.000445318.03086741
Set Approval For...188101792023-12-18 3:23:35102 days ago1702869815IN
0x9c5Fb504...9204FE2a3
0 ETH0.0015081861.06758848
Set Approval For...188072032023-12-17 17:23:59102 days ago1702833839IN
0x9c5Fb504...9204FE2a3
0 ETH0.0009810339.72292782
Set Approval For...187498572023-12-09 16:27:23110 days ago1702139243IN
0x9c5Fb504...9204FE2a3
0 ETH0.002089844.83690219
Set Approval For...187413472023-12-08 11:49:23112 days ago1702036163IN
0x9c5Fb504...9204FE2a3
0 ETH0.0019251341.30396141
Set Approval For...185290252023-11-08 18:27:59141 days ago1699468079IN
0x9c5Fb504...9204FE2a3
0 ETH0.0020909944.86238882
Set Approval For...182451252023-09-30 1:04:47181 days ago1696035887IN
0x9c5Fb504...9204FE2a3
0 ETH0.00018557.51132705
Set Approval For...176805352023-07-12 22:46:23260 days ago1689201983IN
0x9c5Fb504...9204FE2a3
0 ETH0.0008609318.47151553
Set Approval For...175528832023-06-25 0:16:59278 days ago1687652219IN
0x9c5Fb504...9204FE2a3
0 ETH0.0005557411.92359023
Set Approval For...175362822023-06-22 16:16:23280 days ago1687450583IN
0x9c5Fb504...9204FE2a3
0 ETH0.0009476820.33261111
Set Approval For...174880242023-06-15 21:43:59287 days ago1686865439IN
0x9c5Fb504...9204FE2a3
0 ETH0.0008437518.10286007
Set Approval For...174725492023-06-13 17:26:47289 days ago1686677207IN
0x9c5Fb504...9204FE2a3
0 ETH0.0007915116.98210812
Safe Transfer Fr...173898772023-06-02 1:43:23301 days ago1685670203IN
0x9c5Fb504...9204FE2a3
0 ETH0.0012458723.1489009
Set Approval For...172990422023-05-20 7:05:35314 days ago1684566335IN
0x9c5Fb504...9204FE2a3
0 ETH0.0013677229.34455887
Transfer Ownersh...172708692023-05-16 7:43:35318 days ago1684223015IN
0x9c5Fb504...9204FE2a3
0 ETH0.00115239.62315953
Set Approval For...172434592023-05-12 10:11:59322 days ago1683886319IN
0x9c5Fb504...9204FE2a3
0 ETH0.0020858344.75185195
Set Approval For...171341392023-04-27 1:05:11337 days ago1682557511IN
0x9c5Fb504...9204FE2a3
0 ETH0.0015560433.38517655
Set Approval For...170904632023-04-20 21:54:47343 days ago1682027687IN
0x9c5Fb504...9204FE2a3
0 ETH0.0024870153.35917662
Set Approval For...170794252023-04-19 8:19:59345 days ago1681892399IN
0x9c5Fb504...9204FE2a3
0 ETH0.00497455106.72948477
Set Approval For...170345222023-04-12 21:17:23351 days ago1681334243IN
0x9c5Fb504...9204FE2a3
0 ETH0.0010017921.49350062
Set Approval For...170098572023-04-09 9:27:47355 days ago1681032467IN
0x9c5Fb504...9204FE2a3
0 ETH0.0004832819.56868998
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:
SneakerheadsMysteryBox

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : SneakerheadsMysteryBox.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/* 
      ________  ___      ___  _______   
     /"       )|"  \    /"  ||   _  "\  
    (:   \___/  \   \  //   |(. |_)  :) 
     \___  \    /\\  \/.    ||:     \/  
      __/  \\  |: \.        |(|  _  \\  
     /" \   :) |.  \    /:  ||: |_)  :) 
    (_______/  |___|\__/|___|(_______/  
                                                                                                                                                                           
    Sneakerheads Mystery Box. All Rights Reserved 2022
    Developed by ATOMICON.PRO ([email protected])
*/

import "./ISneakerHeads.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

error TokenIdError();
error ClaimingClosedError();
error RevealingClosedError();
error AlreadyRewardedError(uint256 _sneakerheadTokenId);
error DoesNotOwnSneakerheadError(uint256 _sneakerheadTokenId);
error SneakerheadLevelNotHighEnoughError(uint256 _sneakerheadTokenId);

contract SneakerheadsMysteryBox is ERC1155, Ownable, ERC1155Supply, ReentrancyGuard {

    /// @dev Emmited when an account reveals (burns) their mystery boxes.
    event Revealed(address indexed account, uint256 amount);

    string private boxTokenUri = "ipfs//QmYeCZwK8jrh6U82eNKHUxDm5p3TrWpsLCTYfkd9UTffRG";
    
    /// @notice Minimal staking level of the sneakerhed, required to claim a box.
    uint8 public minSneakerheadLevel = 1;
    /// @notice Deadline to claim a box.
    uint32 public claimTimeLimit = 1661817600;
    /// @notice Date and time after which a box can be revealed.
    uint32 public revealTimeStart = 1664064000;

    ISneakerHeads private _sneakerheadsContract;
    bool private _airdropHasHappened = false;
    mapping(uint256=>bool) private _isRewarded;
    
    constructor(ISneakerHeads sneakerheadsContract) ERC1155("") {
        _sneakerheadsContract = sneakerheadsContract;
    }

    /// @notice Airdrop boxes to the owners of sneakerheads tokens that have reached level 1 or higher in staking.
    function airdrop(uint256[] memory sneakerheadTokenIds)
        external
        onlyOwner
    {
        for(uint64 i = 0; i < sneakerheadTokenIds.length; i++) {
            uint256 sneakerheadTokenId = sneakerheadTokenIds[i];
            address owner = _sneakerheadsContract.ownerOf(sneakerheadTokenId);

            if(isTokenRewarded(sneakerheadTokenId)) revert AlreadyRewardedError(sneakerheadTokenId);
            if(!_sneakerheadIsHighEnoughLevel(sneakerheadTokenId)) revert SneakerheadLevelNotHighEnoughError(sneakerheadTokenId);

            _mint(owner, 1, 1, "");
            _isRewarded[sneakerheadTokenId] = true;
        }

        _airdropHasHappened = true;
    }

    /// @notice Claim a box after reaching level 1 in staking.
    function claim(uint256 sneakerheadTokenId)
        external
        nonReentrant
    {
        if(isTokenRewarded(sneakerheadTokenId)) revert AlreadyRewardedError(sneakerheadTokenId);
        if(!isClaimOpen()) revert ClaimingClosedError();       

        if(!_ownsSneakerhead(sneakerheadTokenId)) revert DoesNotOwnSneakerheadError(sneakerheadTokenId);
        if(!_sneakerheadIsHighEnoughLevel(sneakerheadTokenId)) revert SneakerheadLevelNotHighEnoughError(sneakerheadTokenId);

        _isRewarded[sneakerheadTokenId] = true;
        _mint(msg.sender, 1, 1, "");
    }
    
    /// @notice Burn a box to get a reward.
    function reveal(uint256 ammount) 
        public 
        nonReentrant 
    {
        if(!isRevealOpen()) revert RevealingClosedError();

        _burn(msg.sender, 1, ammount);
        emit Revealed(msg.sender, ammount);
    }

    function isTokenRewarded(uint256 sneakerheadTokenId) public view returns (bool) {
        return _isRewarded[sneakerheadTokenId];
    }

    function isClaimOpen() public view returns (bool) {
        return _airdropHasHappened && block.timestamp < claimTimeLimit;
    }

    function isRevealOpen() public view returns (bool) {
        return block.timestamp >= revealTimeStart;
    }

    function _ownsSneakerhead(uint256 sneakerheadTokenId) private view returns (bool) {
        return _sneakerheadsContract.ownerOf(sneakerheadTokenId) == msg.sender;
    }

    function _sneakerheadIsHighEnoughLevel(uint256 sneakerheadTokenId) private view returns (bool) {
        return _sneakerheadsContract.stockingLevel(sneakerheadTokenId) >= minSneakerheadLevel;
    }

    /// @notice Change URI with metadata of the box
    function setUri(string memory newUri) public onlyOwner {
        boxTokenUri = newUri;
    }

    /// @notice Change minimal staking level of the sneakerhed, required to claim a box.
    function setMinSneakerheadLevel(uint8 level) public onlyOwner {
        minSneakerheadLevel = level;
    }

    /// @notice Change deadline to claim a box.
    function setClaimTimeLimit(uint32 unixtime) public onlyOwner {
        claimTimeLimit = unixtime;
    }

    /// @notice Change date and time after which a box can be revealed.
    function setRevealTimeStart(uint32 unixtime) public onlyOwner {
        revealTimeStart = unixtime;
    }

    /// @notice URI with metadata of the box
    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        if(tokenId != 1) revert TokenIdError();
        return boxTokenUri;
    }

    /// @notice URI with contract metadata for OpenSea
    function contractURI() public pure returns (string memory) {
        return "ipfs://QmXEkDRVWbsMEiJmnk32M2w6G3AWbrjHntn6P2vyfkqxUB";
    }

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 6 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 7 of 13 : ISneakerHeads.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @dev ABI interface to interact with the tests contract
contract ISneakerHeads {

    function ownerOf(uint256 tokenId) external view returns (address owner) {}

    function stockingLevel(uint256 tokenId) public view returns(uint64) {}
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 13 : 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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 12 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 13 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ISneakerHeads","name":"sneakerheadsContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_sneakerheadTokenId","type":"uint256"}],"name":"AlreadyRewardedError","type":"error"},{"inputs":[],"name":"ClaimingClosedError","type":"error"},{"inputs":[{"internalType":"uint256","name":"_sneakerheadTokenId","type":"uint256"}],"name":"DoesNotOwnSneakerheadError","type":"error"},{"inputs":[],"name":"RevealingClosedError","type":"error"},{"inputs":[{"internalType":"uint256","name":"_sneakerheadTokenId","type":"uint256"}],"name":"SneakerheadLevelNotHighEnoughError","type":"error"},{"inputs":[],"name":"TokenIdError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"sneakerheadTokenIds","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sneakerheadTokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTimeLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sneakerheadTokenId","type":"uint256"}],"name":"isTokenRewarded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minSneakerheadLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ammount","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealTimeStart","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixtime","type":"uint32"}],"name":"setClaimTimeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"level","type":"uint8"}],"name":"setMinSneakerheadLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixtime","type":"uint32"}],"name":"setRevealTimeStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604052604051806060016040528060348152602001620048c660349139600690816200002e9190620004d2565b506001600760006101000a81548160ff021916908360ff16021790555063630d5300600760016101000a81548163ffffffff021916908363ffffffff16021790555063632f9a00600760056101000a81548163ffffffff021916908363ffffffff16021790555060006007601d6101000a81548160ff021916908315150217905550348015620000bd57600080fd5b50604051620048fa380380620048fa8339818101604052810190620000e3919062000637565b6040518060200160405280600081525062000104816200017560201b60201c565b5062000125620001196200018a60201b60201c565b6200019260201b60201c565b600160058190555080600760096101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000669565b8060029081620001869190620004d2565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002da57607f821691505b602082108103620002f057620002ef62000292565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200035a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200031b565b6200036686836200031b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003b3620003ad620003a7846200037e565b62000388565b6200037e565b9050919050565b6000819050919050565b620003cf8362000392565b620003e7620003de82620003ba565b84845462000328565b825550505050565b600090565b620003fe620003ef565b6200040b818484620003c4565b505050565b5b81811015620004335762000427600082620003f4565b60018101905062000411565b5050565b601f82111562000482576200044c81620002f6565b62000457846200030b565b8101602085101562000467578190505b6200047f62000476856200030b565b83018262000410565b50505b505050565b600082821c905092915050565b6000620004a76000198460080262000487565b1980831691505092915050565b6000620004c2838362000494565b9150826002028217905092915050565b620004dd8262000258565b67ffffffffffffffff811115620004f957620004f862000263565b5b620005058254620002c1565b6200051282828562000437565b600060209050601f8311600181146200054a576000841562000535578287015190505b620005418582620004b4565b865550620005b1565b601f1984166200055a86620002f6565b60005b8281101562000584578489015182556001820191506020850194506020810190506200055d565b86831015620005a45784890151620005a0601f89168262000494565b8355505b6001600288020188555050505b505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005eb82620005be565b9050919050565b6000620005ff82620005de565b9050919050565b6200061181620005f2565b81146200061d57600080fd5b50565b600081519050620006318162000606565b92915050565b60006020828403121562000650576200064f620005b9565b5b6000620006608482850162000620565b91505092915050565b61424d80620006796000396000f3fe608060405234801561001057600080fd5b50600436106101a85760003560e01c80636b489770116100f9578063bd85b03911610097578063e8a3d48511610071578063e8a3d485146104b7578063e985e9c5146104d5578063f242432a14610505578063f2fde38b14610521576101a8565b8063bd85b0391461044f578063c2ca0ac51461047f578063c2cc4f441461049b576101a8565b80639b642de1116100d35780639b642de1146103db578063a22cb465146103f7578063a5611a6714610413578063ae0c8a8114610431576101a8565b80636b48977014610397578063715018a6146103b35780638da5cb5b146103bd576101a8565b806324fd2652116101665780634e1273f4116101405780634e1273f4146102e95780634f558e7914610319578063567db40114610349578063580594fc14610379576101a8565b806324fd2652146102935780632eb2c2d6146102b1578063379607f5146102cd576101a8565b8062fdd58e146101ad57806301ffc9a7146101dd5780630e89341c1461020d57806317428b4e1461023d5780631e2ea867146102595780631f54afc614610277575b600080fd5b6101c760048036038101906101c29190612724565b61053d565b6040516101d49190612773565b60405180910390f35b6101f760048036038101906101f291906127e6565b610605565b604051610204919061282e565b60405180910390f35b61022760048036038101906102229190612849565b6106e7565b6040516102349190612906565b60405180910390f35b61025760048036038101906102529190612a70565b6107b5565b005b6102616109ad565b60405161026e9190612ad8565b60405180910390f35b610291600480360381019061028c9190612b1f565b6109c3565b005b61029b6109ef565b6040516102a8919061282e565b60405180910390f35b6102cb60048036038101906102c69190612c01565b610a29565b005b6102e760048036038101906102e29190612849565b610aca565b005b61030360048036038101906102fe9190612d93565b610c87565b6040516103109190612ec9565b60405180910390f35b610333600480360381019061032e9190612849565b610da0565b604051610340919061282e565b60405180910390f35b610363600480360381019061035e9190612849565b610db4565b604051610370919061282e565b60405180910390f35b610381610dde565b60405161038e9190612f07565b60405180910390f35b6103b160048036038101906103ac9190612f4e565b610df1565b005b6103bb610e17565b005b6103c5610e2b565b6040516103d29190612f8a565b60405180910390f35b6103f560048036038101906103f09190613046565b610e55565b005b610411600480360381019061040c91906130bb565b610e70565b005b61041b610e86565b6040516104289190612ad8565b60405180910390f35b610439610e9c565b604051610446919061282e565b60405180910390f35b61046960048036038101906104649190612849565b610ebf565b6040516104769190612773565b60405180910390f35b61049960048036038101906104949190612849565b610edc565b005b6104b560048036038101906104b09190612b1f565b610fcc565b005b6104bf610ff8565b6040516104cc9190612906565b60405180910390f35b6104ef60048036038101906104ea91906130fb565b611018565b6040516104fc919061282e565b60405180910390f35b61051f600480360381019061051a919061313b565b6110ac565b005b61053b600480360381019061053691906131d2565b61114d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a490613271565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106d057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106e057506106df826111d0565b5b9050919050565b606060018214610723576040517f5c19637d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60068054610730906132c0565b80601f016020809104026020016040519081016040528092919081815260200182805461075c906132c0565b80156107a95780601f1061077e576101008083540402835291602001916107a9565b820191906000526020600020905b81548152906001019060200180831161078c57829003601f168201915b50505050509050919050565b6107bd61123a565b60005b81518167ffffffffffffffff16101561098e576000828267ffffffffffffffff16815181106107f2576107f16132f1565b5b602002602001015190506000600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016108599190612773565b602060405180830381865afa158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190613335565b90506108a582610db4565b156108e757816040517fb91b8c9f0000000000000000000000000000000000000000000000000000000081526004016108de9190612773565b60405180910390fd5b6108f0826112b8565b61093157816040517fc7b4ad100000000000000000000000000000000000000000000000000000000081526004016109289190612773565b60405180910390fd5b61094d816001806040518060200160405280600081525061137c565b60016008600084815260200190815260200160002060006101000a81548160ff02191690831515021790555050508080610986906133a5565b9150506107c0565b5060016007601d6101000a81548160ff02191690831515021790555050565b600760059054906101000a900463ffffffff1681565b6109cb61123a565b80600760056101000a81548163ffffffff021916908363ffffffff16021790555050565b60006007601d9054906101000a900460ff168015610a245750600760019054906101000a900463ffffffff1663ffffffff1642105b905090565b610a3161152c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a775750610a7685610a7161152c565b611018565b5b610ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aad90613447565b60405180910390fd5b610ac38585858585611534565b5050505050565b600260055403610b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b06906134b3565b60405180910390fd5b6002600581905550610b2081610db4565b15610b6257806040517fb91b8c9f000000000000000000000000000000000000000000000000000000008152600401610b599190612773565b60405180910390fd5b610b6a6109ef565b610ba0576040517feee48fdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ba981611855565b610bea57806040517f6dee98f8000000000000000000000000000000000000000000000000000000008152600401610be19190612773565b60405180910390fd5b610bf3816112b8565b610c3457806040517fc7b4ad10000000000000000000000000000000000000000000000000000000008152600401610c2b9190612773565b60405180910390fd5b60016008600083815260200190815260200160002060006101000a81548160ff021916908315150217905550610c7c336001806040518060200160405280600081525061137c565b600160058190555050565b60608151835114610ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc490613545565b60405180910390fd5b6000835167ffffffffffffffff811115610cea57610ce961292d565b5b604051908082528060200260200182016040528015610d185781602001602082028036833780820191505090505b50905060005b8451811015610d9557610d65858281518110610d3d57610d3c6132f1565b5b6020026020010151858381518110610d5857610d576132f1565b5b602002602001015161053d565b828281518110610d7857610d776132f1565b5b60200260200101818152505080610d8e90613565565b9050610d1e565b508091505092915050565b600080610dac83610ebf565b119050919050565b60006008600083815260200190815260200160002060009054906101000a900460ff169050919050565b600760009054906101000a900460ff1681565b610df961123a565b80600760006101000a81548160ff021916908360ff16021790555050565b610e1f61123a565b610e296000611928565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e5d61123a565b8060069081610e6c9190613759565b5050565b610e82610e7b61152c565b83836119ee565b5050565b600760019054906101000a900463ffffffff1681565b6000600760059054906101000a900463ffffffff1663ffffffff16421015905090565b600060046000838152602001908152602001600020549050919050565b600260055403610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f18906134b3565b60405180910390fd5b6002600581905550610f31610e9c565b610f67576040517f76caaab100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f7333600183611b5a565b3373ffffffffffffffffffffffffffffffffffffffff167f36cb84e26ec058ba1aadcd698199fa19568d3c52427b175bd593b94ce83f67c082604051610fb99190612773565b60405180910390a2600160058190555050565b610fd461123a565b80600760016101000a81548163ffffffff021916908363ffffffff16021790555050565b60606040518060600160405280603581526020016141e360359139905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6110b461152c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110fa57506110f9856110f461152c565b611018565b5b611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113090613447565b60405180910390fd5b6111468585858585611da0565b5050505050565b61115561123a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb9061389d565b60405180910390fd5b6111cd81611928565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61124261152c565b73ffffffffffffffffffffffffffffffffffffffff16611260610e2b565b73ffffffffffffffffffffffffffffffffffffffff16146112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90613909565b60405180910390fd5b565b6000600760009054906101000a900460ff1660ff16600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630628e341846040518263ffffffff1660e01b81526004016113289190612773565b602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190613955565b67ffffffffffffffff1610159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e2906139f4565b60405180910390fd5b60006113f561152c565b905060006114028561203b565b9050600061140f8561203b565b9050611420836000898585896120b5565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461147f9190613a14565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516114fd929190613a48565b60405180910390a4611514836000898585896120cb565b611523836000898989896120d3565b50505050505050565b600033905090565b8151835114611578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156f90613ae3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de90613b75565b60405180910390fd5b60006115f161152c565b90506116018187878787876120b5565b60005b84518110156117b2576000858281518110611622576116216132f1565b5b602002602001015190506000858381518110611641576116406132f1565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990613c07565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117979190613a14565b92505081905550505050806117ab90613565565b9050611604565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611829929190613c27565b60405180910390a461183f8187878787876120cb565b61184d8187878787876122aa565b505050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016118c99190612773565b602060405180830381865afa1580156118e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190a9190613335565b73ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5390613cd0565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4d919061282e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090613d62565b60405180910390fd5b6000611bd361152c565b90506000611be08461203b565b90506000611bed8461203b565b9050611c0d838760008585604051806020016040528060008152506120b5565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90613df4565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611d71929190613a48565b60405180910390a4611d97848860008686604051806020016040528060008152506120cb565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690613b75565b60405180910390fd5b6000611e1961152c565b90506000611e268561203b565b90506000611e338561203b565b9050611e438389898585896120b5565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed190613c07565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8f9190613a14565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161200c929190613a48565b60405180910390a4612022848a8a86868a6120cb565b612030848a8a8a8a8a6120d3565b505050505050505050565b60606000600167ffffffffffffffff81111561205a5761205961292d565b5b6040519080825280602002602001820160405280156120885781602001602082028036833780820191505090505b50905082816000815181106120a05761209f6132f1565b5b60200260200101818152505080915050919050565b6120c3868686868686612481565b505050505050565b505050505050565b6120f28473ffffffffffffffffffffffffffffffffffffffff16612651565b156122a2578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612138959493929190613e69565b6020604051808303816000875af192505050801561217457506040513d601f19601f820116820180604052508101906121719190613ed8565b60015b61221957612180613f12565b806308c379a0036121dc5750612194613f34565b8061219f57506121de565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d39190612906565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221090614036565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146122a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612297906140c8565b60405180910390fd5b505b505050505050565b6122c98473ffffffffffffffffffffffffffffffffffffffff16612651565b15612479578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161230f9594939291906140e8565b6020604051808303816000875af192505050801561234b57506040513d601f19601f820116820180604052508101906123489190613ed8565b60015b6123f057612357613f12565b806308c379a0036123b3575061236b613f34565b8061237657506123b5565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123aa9190612906565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e790614036565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e906140c8565b60405180910390fd5b505b505050505050565b61248f868686868686612674565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125405760005b835181101561253e578281815181106124e2576124e16132f1565b5b602002602001015160046000868481518110612501576125006132f1565b5b6020026020010151815260200190815260200160002060008282546125269190613a14565b925050819055508061253790613565565b90506124c6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126495760005b8351811015612647576000848281518110612595576125946132f1565b5b6020026020010151905060008483815181106125b4576125b36132f1565b5b6020026020010151905060006004600084815260200190815260200160002054905081811015612619576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612610906141c2565b60405180910390fd5b81810360046000858152602001908152602001600020819055505050508061264090613565565b9050612577565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006126bb82612690565b9050919050565b6126cb816126b0565b81146126d657600080fd5b50565b6000813590506126e8816126c2565b92915050565b6000819050919050565b612701816126ee565b811461270c57600080fd5b50565b60008135905061271e816126f8565b92915050565b6000806040838503121561273b5761273a612686565b5b6000612749858286016126d9565b925050602061275a8582860161270f565b9150509250929050565b61276d816126ee565b82525050565b60006020820190506127886000830184612764565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127c38161278e565b81146127ce57600080fd5b50565b6000813590506127e0816127ba565b92915050565b6000602082840312156127fc576127fb612686565b5b600061280a848285016127d1565b91505092915050565b60008115159050919050565b61282881612813565b82525050565b6000602082019050612843600083018461281f565b92915050565b60006020828403121561285f5761285e612686565b5b600061286d8482850161270f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156128b0578082015181840152602081019050612895565b60008484015250505050565b6000601f19601f8301169050919050565b60006128d882612876565b6128e28185612881565b93506128f2818560208601612892565b6128fb816128bc565b840191505092915050565b6000602082019050818103600083015261292081846128cd565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612965826128bc565b810181811067ffffffffffffffff821117156129845761298361292d565b5b80604052505050565b600061299761267c565b90506129a3828261295c565b919050565b600067ffffffffffffffff8211156129c3576129c261292d565b5b602082029050602081019050919050565b600080fd5b60006129ec6129e7846129a8565b61298d565b90508083825260208201905060208402830185811115612a0f57612a0e6129d4565b5b835b81811015612a385780612a24888261270f565b845260208401935050602081019050612a11565b5050509392505050565b600082601f830112612a5757612a56612928565b5b8135612a678482602086016129d9565b91505092915050565b600060208284031215612a8657612a85612686565b5b600082013567ffffffffffffffff811115612aa457612aa361268b565b5b612ab084828501612a42565b91505092915050565b600063ffffffff82169050919050565b612ad281612ab9565b82525050565b6000602082019050612aed6000830184612ac9565b92915050565b612afc81612ab9565b8114612b0757600080fd5b50565b600081359050612b1981612af3565b92915050565b600060208284031215612b3557612b34612686565b5b6000612b4384828501612b0a565b91505092915050565b600080fd5b600067ffffffffffffffff821115612b6c57612b6b61292d565b5b612b75826128bc565b9050602081019050919050565b82818337600083830152505050565b6000612ba4612b9f84612b51565b61298d565b905082815260208101848484011115612bc057612bbf612b4c565b5b612bcb848285612b82565b509392505050565b600082601f830112612be857612be7612928565b5b8135612bf8848260208601612b91565b91505092915050565b600080600080600060a08688031215612c1d57612c1c612686565b5b6000612c2b888289016126d9565b9550506020612c3c888289016126d9565b945050604086013567ffffffffffffffff811115612c5d57612c5c61268b565b5b612c6988828901612a42565b935050606086013567ffffffffffffffff811115612c8a57612c8961268b565b5b612c9688828901612a42565b925050608086013567ffffffffffffffff811115612cb757612cb661268b565b5b612cc388828901612bd3565b9150509295509295909350565b600067ffffffffffffffff821115612ceb57612cea61292d565b5b602082029050602081019050919050565b6000612d0f612d0a84612cd0565b61298d565b90508083825260208201905060208402830185811115612d3257612d316129d4565b5b835b81811015612d5b5780612d4788826126d9565b845260208401935050602081019050612d34565b5050509392505050565b600082601f830112612d7a57612d79612928565b5b8135612d8a848260208601612cfc565b91505092915050565b60008060408385031215612daa57612da9612686565b5b600083013567ffffffffffffffff811115612dc857612dc761268b565b5b612dd485828601612d65565b925050602083013567ffffffffffffffff811115612df557612df461268b565b5b612e0185828601612a42565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612e40816126ee565b82525050565b6000612e528383612e37565b60208301905092915050565b6000602082019050919050565b6000612e7682612e0b565b612e808185612e16565b9350612e8b83612e27565b8060005b83811015612ebc578151612ea38882612e46565b9750612eae83612e5e565b925050600181019050612e8f565b5085935050505092915050565b60006020820190508181036000830152612ee38184612e6b565b905092915050565b600060ff82169050919050565b612f0181612eeb565b82525050565b6000602082019050612f1c6000830184612ef8565b92915050565b612f2b81612eeb565b8114612f3657600080fd5b50565b600081359050612f4881612f22565b92915050565b600060208284031215612f6457612f63612686565b5b6000612f7284828501612f39565b91505092915050565b612f84816126b0565b82525050565b6000602082019050612f9f6000830184612f7b565b92915050565b600067ffffffffffffffff821115612fc057612fbf61292d565b5b612fc9826128bc565b9050602081019050919050565b6000612fe9612fe484612fa5565b61298d565b90508281526020810184848401111561300557613004612b4c565b5b613010848285612b82565b509392505050565b600082601f83011261302d5761302c612928565b5b813561303d848260208601612fd6565b91505092915050565b60006020828403121561305c5761305b612686565b5b600082013567ffffffffffffffff81111561307a5761307961268b565b5b61308684828501613018565b91505092915050565b61309881612813565b81146130a357600080fd5b50565b6000813590506130b58161308f565b92915050565b600080604083850312156130d2576130d1612686565b5b60006130e0858286016126d9565b92505060206130f1858286016130a6565b9150509250929050565b6000806040838503121561311257613111612686565b5b6000613120858286016126d9565b9250506020613131858286016126d9565b9150509250929050565b600080600080600060a0868803121561315757613156612686565b5b6000613165888289016126d9565b9550506020613176888289016126d9565b94505060406131878882890161270f565b93505060606131988882890161270f565b925050608086013567ffffffffffffffff8111156131b9576131b861268b565b5b6131c588828901612bd3565b9150509295509295909350565b6000602082840312156131e8576131e7612686565b5b60006131f6848285016126d9565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b600061325b602a83612881565b9150613266826131ff565b604082019050919050565b6000602082019050818103600083015261328a8161324e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806132d857607f821691505b6020821081036132eb576132ea613291565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061332f816126c2565b92915050565b60006020828403121561334b5761334a612686565b5b600061335984828501613320565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff82169050919050565b60006133b082613391565b915067ffffffffffffffff82036133ca576133c9613362565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613431602f83612881565b915061343c826133d5565b604082019050919050565b6000602082019050818103600083015261346081613424565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061349d601f83612881565b91506134a882613467565b602082019050919050565b600060208201905081810360008301526134cc81613490565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061352f602983612881565b915061353a826134d3565b604082019050919050565b6000602082019050818103600083015261355e81613522565b9050919050565b6000613570826126ee565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135a2576135a1613362565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261360f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826135d2565b61361986836135d2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061365661365161364c846126ee565b613631565b6126ee565b9050919050565b6000819050919050565b6136708361363b565b61368461367c8261365d565b8484546135df565b825550505050565b600090565b61369961368c565b6136a4818484613667565b505050565b5b818110156136c8576136bd600082613691565b6001810190506136aa565b5050565b601f82111561370d576136de816135ad565b6136e7846135c2565b810160208510156136f6578190505b61370a613702856135c2565b8301826136a9565b50505b505050565b600082821c905092915050565b600061373060001984600802613712565b1980831691505092915050565b6000613749838361371f565b9150826002028217905092915050565b61376282612876565b67ffffffffffffffff81111561377b5761377a61292d565b5b61378582546132c0565b6137908282856136cc565b600060209050601f8311600181146137c357600084156137b1578287015190505b6137bb858261373d565b865550613823565b601f1984166137d1866135ad565b60005b828110156137f9578489015182556001820191506020850194506020810190506137d4565b868310156138165784890151613812601f89168261371f565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613887602683612881565b91506138928261382b565b604082019050919050565b600060208201905081810360008301526138b68161387a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006138f3602083612881565b91506138fe826138bd565b602082019050919050565b60006020820190508181036000830152613922816138e6565b9050919050565b61393281613391565b811461393d57600080fd5b50565b60008151905061394f81613929565b92915050565b60006020828403121561396b5761396a612686565b5b600061397984828501613940565b91505092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006139de602183612881565b91506139e982613982565b604082019050919050565b60006020820190508181036000830152613a0d816139d1565b9050919050565b6000613a1f826126ee565b9150613a2a836126ee565b9250828201905080821115613a4257613a41613362565b5b92915050565b6000604082019050613a5d6000830185612764565b613a6a6020830184612764565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613acd602883612881565b9150613ad882613a71565b604082019050919050565b60006020820190508181036000830152613afc81613ac0565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613b5f602583612881565b9150613b6a82613b03565b604082019050919050565b60006020820190508181036000830152613b8e81613b52565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613bf1602a83612881565b9150613bfc82613b95565b604082019050919050565b60006020820190508181036000830152613c2081613be4565b9050919050565b60006040820190508181036000830152613c418185612e6b565b90508181036020830152613c558184612e6b565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613cba602983612881565b9150613cc582613c5e565b604082019050919050565b60006020820190508181036000830152613ce981613cad565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613d4c602383612881565b9150613d5782613cf0565b604082019050919050565b60006020820190508181036000830152613d7b81613d3f565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000613dde602483612881565b9150613de982613d82565b604082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613e3b82613e14565b613e458185613e1f565b9350613e55818560208601612892565b613e5e816128bc565b840191505092915050565b600060a082019050613e7e6000830188612f7b565b613e8b6020830187612f7b565b613e986040830186612764565b613ea56060830185612764565b8181036080830152613eb78184613e30565b90509695505050505050565b600081519050613ed2816127ba565b92915050565b600060208284031215613eee57613eed612686565b5b6000613efc84828501613ec3565b91505092915050565b60008160e01c9050919050565b600060033d1115613f315760046000803e613f2e600051613f05565b90505b90565b600060443d10613fc157613f4661267c565b60043d036004823e80513d602482011167ffffffffffffffff82111715613f6e575050613fc1565b808201805167ffffffffffffffff811115613f8c5750505050613fc1565b80602083010160043d038501811115613fa9575050505050613fc1565b613fb88260200185018661295c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614020603483612881565b915061402b82613fc4565b604082019050919050565b6000602082019050818103600083015261404f81614013565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006140b2602883612881565b91506140bd82614056565b604082019050919050565b600060208201905081810360008301526140e1816140a5565b9050919050565b600060a0820190506140fd6000830188612f7b565b61410a6020830187612f7b565b818103604083015261411c8186612e6b565b905081810360608301526141308185612e6b565b905081810360808301526141448184613e30565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006141ac602883612881565b91506141b782614150565b604082019050919050565b600060208201905081810360008301526141db8161419f565b905091905056fe697066733a2f2f516d58456b4452565762734d45694a6d6e6b33324d3277364733415762726a486e746e3650327679666b71785542a2646970667358221220e1e0b862a25970d513750c5787c65531a78f474ac707524fbaac5751d429006064736f6c63430008100033697066732f2f516d5965435a774b386a726836553832654e4b485578446d35703354725770734c435459666b64395554666652470000000000000000000000008dc7b6ec6fafa36085ee9ec8e39112428d3360aa

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a85760003560e01c80636b489770116100f9578063bd85b03911610097578063e8a3d48511610071578063e8a3d485146104b7578063e985e9c5146104d5578063f242432a14610505578063f2fde38b14610521576101a8565b8063bd85b0391461044f578063c2ca0ac51461047f578063c2cc4f441461049b576101a8565b80639b642de1116100d35780639b642de1146103db578063a22cb465146103f7578063a5611a6714610413578063ae0c8a8114610431576101a8565b80636b48977014610397578063715018a6146103b35780638da5cb5b146103bd576101a8565b806324fd2652116101665780634e1273f4116101405780634e1273f4146102e95780634f558e7914610319578063567db40114610349578063580594fc14610379576101a8565b806324fd2652146102935780632eb2c2d6146102b1578063379607f5146102cd576101a8565b8062fdd58e146101ad57806301ffc9a7146101dd5780630e89341c1461020d57806317428b4e1461023d5780631e2ea867146102595780631f54afc614610277575b600080fd5b6101c760048036038101906101c29190612724565b61053d565b6040516101d49190612773565b60405180910390f35b6101f760048036038101906101f291906127e6565b610605565b604051610204919061282e565b60405180910390f35b61022760048036038101906102229190612849565b6106e7565b6040516102349190612906565b60405180910390f35b61025760048036038101906102529190612a70565b6107b5565b005b6102616109ad565b60405161026e9190612ad8565b60405180910390f35b610291600480360381019061028c9190612b1f565b6109c3565b005b61029b6109ef565b6040516102a8919061282e565b60405180910390f35b6102cb60048036038101906102c69190612c01565b610a29565b005b6102e760048036038101906102e29190612849565b610aca565b005b61030360048036038101906102fe9190612d93565b610c87565b6040516103109190612ec9565b60405180910390f35b610333600480360381019061032e9190612849565b610da0565b604051610340919061282e565b60405180910390f35b610363600480360381019061035e9190612849565b610db4565b604051610370919061282e565b60405180910390f35b610381610dde565b60405161038e9190612f07565b60405180910390f35b6103b160048036038101906103ac9190612f4e565b610df1565b005b6103bb610e17565b005b6103c5610e2b565b6040516103d29190612f8a565b60405180910390f35b6103f560048036038101906103f09190613046565b610e55565b005b610411600480360381019061040c91906130bb565b610e70565b005b61041b610e86565b6040516104289190612ad8565b60405180910390f35b610439610e9c565b604051610446919061282e565b60405180910390f35b61046960048036038101906104649190612849565b610ebf565b6040516104769190612773565b60405180910390f35b61049960048036038101906104949190612849565b610edc565b005b6104b560048036038101906104b09190612b1f565b610fcc565b005b6104bf610ff8565b6040516104cc9190612906565b60405180910390f35b6104ef60048036038101906104ea91906130fb565b611018565b6040516104fc919061282e565b60405180910390f35b61051f600480360381019061051a919061313b565b6110ac565b005b61053b600480360381019061053691906131d2565b61114d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a490613271565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106d057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106e057506106df826111d0565b5b9050919050565b606060018214610723576040517f5c19637d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60068054610730906132c0565b80601f016020809104026020016040519081016040528092919081815260200182805461075c906132c0565b80156107a95780601f1061077e576101008083540402835291602001916107a9565b820191906000526020600020905b81548152906001019060200180831161078c57829003601f168201915b50505050509050919050565b6107bd61123a565b60005b81518167ffffffffffffffff16101561098e576000828267ffffffffffffffff16815181106107f2576107f16132f1565b5b602002602001015190506000600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016108599190612773565b602060405180830381865afa158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190613335565b90506108a582610db4565b156108e757816040517fb91b8c9f0000000000000000000000000000000000000000000000000000000081526004016108de9190612773565b60405180910390fd5b6108f0826112b8565b61093157816040517fc7b4ad100000000000000000000000000000000000000000000000000000000081526004016109289190612773565b60405180910390fd5b61094d816001806040518060200160405280600081525061137c565b60016008600084815260200190815260200160002060006101000a81548160ff02191690831515021790555050508080610986906133a5565b9150506107c0565b5060016007601d6101000a81548160ff02191690831515021790555050565b600760059054906101000a900463ffffffff1681565b6109cb61123a565b80600760056101000a81548163ffffffff021916908363ffffffff16021790555050565b60006007601d9054906101000a900460ff168015610a245750600760019054906101000a900463ffffffff1663ffffffff1642105b905090565b610a3161152c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a775750610a7685610a7161152c565b611018565b5b610ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aad90613447565b60405180910390fd5b610ac38585858585611534565b5050505050565b600260055403610b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b06906134b3565b60405180910390fd5b6002600581905550610b2081610db4565b15610b6257806040517fb91b8c9f000000000000000000000000000000000000000000000000000000008152600401610b599190612773565b60405180910390fd5b610b6a6109ef565b610ba0576040517feee48fdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ba981611855565b610bea57806040517f6dee98f8000000000000000000000000000000000000000000000000000000008152600401610be19190612773565b60405180910390fd5b610bf3816112b8565b610c3457806040517fc7b4ad10000000000000000000000000000000000000000000000000000000008152600401610c2b9190612773565b60405180910390fd5b60016008600083815260200190815260200160002060006101000a81548160ff021916908315150217905550610c7c336001806040518060200160405280600081525061137c565b600160058190555050565b60608151835114610ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc490613545565b60405180910390fd5b6000835167ffffffffffffffff811115610cea57610ce961292d565b5b604051908082528060200260200182016040528015610d185781602001602082028036833780820191505090505b50905060005b8451811015610d9557610d65858281518110610d3d57610d3c6132f1565b5b6020026020010151858381518110610d5857610d576132f1565b5b602002602001015161053d565b828281518110610d7857610d776132f1565b5b60200260200101818152505080610d8e90613565565b9050610d1e565b508091505092915050565b600080610dac83610ebf565b119050919050565b60006008600083815260200190815260200160002060009054906101000a900460ff169050919050565b600760009054906101000a900460ff1681565b610df961123a565b80600760006101000a81548160ff021916908360ff16021790555050565b610e1f61123a565b610e296000611928565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e5d61123a565b8060069081610e6c9190613759565b5050565b610e82610e7b61152c565b83836119ee565b5050565b600760019054906101000a900463ffffffff1681565b6000600760059054906101000a900463ffffffff1663ffffffff16421015905090565b600060046000838152602001908152602001600020549050919050565b600260055403610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f18906134b3565b60405180910390fd5b6002600581905550610f31610e9c565b610f67576040517f76caaab100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f7333600183611b5a565b3373ffffffffffffffffffffffffffffffffffffffff167f36cb84e26ec058ba1aadcd698199fa19568d3c52427b175bd593b94ce83f67c082604051610fb99190612773565b60405180910390a2600160058190555050565b610fd461123a565b80600760016101000a81548163ffffffff021916908363ffffffff16021790555050565b60606040518060600160405280603581526020016141e360359139905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6110b461152c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110fa57506110f9856110f461152c565b611018565b5b611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113090613447565b60405180910390fd5b6111468585858585611da0565b5050505050565b61115561123a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb9061389d565b60405180910390fd5b6111cd81611928565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61124261152c565b73ffffffffffffffffffffffffffffffffffffffff16611260610e2b565b73ffffffffffffffffffffffffffffffffffffffff16146112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90613909565b60405180910390fd5b565b6000600760009054906101000a900460ff1660ff16600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630628e341846040518263ffffffff1660e01b81526004016113289190612773565b602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190613955565b67ffffffffffffffff1610159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e2906139f4565b60405180910390fd5b60006113f561152c565b905060006114028561203b565b9050600061140f8561203b565b9050611420836000898585896120b5565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461147f9190613a14565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516114fd929190613a48565b60405180910390a4611514836000898585896120cb565b611523836000898989896120d3565b50505050505050565b600033905090565b8151835114611578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156f90613ae3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de90613b75565b60405180910390fd5b60006115f161152c565b90506116018187878787876120b5565b60005b84518110156117b2576000858281518110611622576116216132f1565b5b602002602001015190506000858381518110611641576116406132f1565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990613c07565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117979190613a14565b92505081905550505050806117ab90613565565b9050611604565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611829929190613c27565b60405180910390a461183f8187878787876120cb565b61184d8187878787876122aa565b505050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16600760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016118c99190612773565b602060405180830381865afa1580156118e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190a9190613335565b73ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5390613cd0565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4d919061282e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090613d62565b60405180910390fd5b6000611bd361152c565b90506000611be08461203b565b90506000611bed8461203b565b9050611c0d838760008585604051806020016040528060008152506120b5565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90613df4565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611d71929190613a48565b60405180910390a4611d97848860008686604051806020016040528060008152506120cb565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690613b75565b60405180910390fd5b6000611e1961152c565b90506000611e268561203b565b90506000611e338561203b565b9050611e438389898585896120b5565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed190613c07565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8f9190613a14565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161200c929190613a48565b60405180910390a4612022848a8a86868a6120cb565b612030848a8a8a8a8a6120d3565b505050505050505050565b60606000600167ffffffffffffffff81111561205a5761205961292d565b5b6040519080825280602002602001820160405280156120885781602001602082028036833780820191505090505b50905082816000815181106120a05761209f6132f1565b5b60200260200101818152505080915050919050565b6120c3868686868686612481565b505050505050565b505050505050565b6120f28473ffffffffffffffffffffffffffffffffffffffff16612651565b156122a2578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612138959493929190613e69565b6020604051808303816000875af192505050801561217457506040513d601f19601f820116820180604052508101906121719190613ed8565b60015b61221957612180613f12565b806308c379a0036121dc5750612194613f34565b8061219f57506121de565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d39190612906565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221090614036565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146122a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612297906140c8565b60405180910390fd5b505b505050505050565b6122c98473ffffffffffffffffffffffffffffffffffffffff16612651565b15612479578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161230f9594939291906140e8565b6020604051808303816000875af192505050801561234b57506040513d601f19601f820116820180604052508101906123489190613ed8565b60015b6123f057612357613f12565b806308c379a0036123b3575061236b613f34565b8061237657506123b5565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123aa9190612906565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e790614036565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e906140c8565b60405180910390fd5b505b505050505050565b61248f868686868686612674565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125405760005b835181101561253e578281815181106124e2576124e16132f1565b5b602002602001015160046000868481518110612501576125006132f1565b5b6020026020010151815260200190815260200160002060008282546125269190613a14565b925050819055508061253790613565565b90506124c6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126495760005b8351811015612647576000848281518110612595576125946132f1565b5b6020026020010151905060008483815181106125b4576125b36132f1565b5b6020026020010151905060006004600084815260200190815260200160002054905081811015612619576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612610906141c2565b60405180910390fd5b81810360046000858152602001908152602001600020819055505050508061264090613565565b9050612577565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006126bb82612690565b9050919050565b6126cb816126b0565b81146126d657600080fd5b50565b6000813590506126e8816126c2565b92915050565b6000819050919050565b612701816126ee565b811461270c57600080fd5b50565b60008135905061271e816126f8565b92915050565b6000806040838503121561273b5761273a612686565b5b6000612749858286016126d9565b925050602061275a8582860161270f565b9150509250929050565b61276d816126ee565b82525050565b60006020820190506127886000830184612764565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127c38161278e565b81146127ce57600080fd5b50565b6000813590506127e0816127ba565b92915050565b6000602082840312156127fc576127fb612686565b5b600061280a848285016127d1565b91505092915050565b60008115159050919050565b61282881612813565b82525050565b6000602082019050612843600083018461281f565b92915050565b60006020828403121561285f5761285e612686565b5b600061286d8482850161270f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156128b0578082015181840152602081019050612895565b60008484015250505050565b6000601f19601f8301169050919050565b60006128d882612876565b6128e28185612881565b93506128f2818560208601612892565b6128fb816128bc565b840191505092915050565b6000602082019050818103600083015261292081846128cd565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612965826128bc565b810181811067ffffffffffffffff821117156129845761298361292d565b5b80604052505050565b600061299761267c565b90506129a3828261295c565b919050565b600067ffffffffffffffff8211156129c3576129c261292d565b5b602082029050602081019050919050565b600080fd5b60006129ec6129e7846129a8565b61298d565b90508083825260208201905060208402830185811115612a0f57612a0e6129d4565b5b835b81811015612a385780612a24888261270f565b845260208401935050602081019050612a11565b5050509392505050565b600082601f830112612a5757612a56612928565b5b8135612a678482602086016129d9565b91505092915050565b600060208284031215612a8657612a85612686565b5b600082013567ffffffffffffffff811115612aa457612aa361268b565b5b612ab084828501612a42565b91505092915050565b600063ffffffff82169050919050565b612ad281612ab9565b82525050565b6000602082019050612aed6000830184612ac9565b92915050565b612afc81612ab9565b8114612b0757600080fd5b50565b600081359050612b1981612af3565b92915050565b600060208284031215612b3557612b34612686565b5b6000612b4384828501612b0a565b91505092915050565b600080fd5b600067ffffffffffffffff821115612b6c57612b6b61292d565b5b612b75826128bc565b9050602081019050919050565b82818337600083830152505050565b6000612ba4612b9f84612b51565b61298d565b905082815260208101848484011115612bc057612bbf612b4c565b5b612bcb848285612b82565b509392505050565b600082601f830112612be857612be7612928565b5b8135612bf8848260208601612b91565b91505092915050565b600080600080600060a08688031215612c1d57612c1c612686565b5b6000612c2b888289016126d9565b9550506020612c3c888289016126d9565b945050604086013567ffffffffffffffff811115612c5d57612c5c61268b565b5b612c6988828901612a42565b935050606086013567ffffffffffffffff811115612c8a57612c8961268b565b5b612c9688828901612a42565b925050608086013567ffffffffffffffff811115612cb757612cb661268b565b5b612cc388828901612bd3565b9150509295509295909350565b600067ffffffffffffffff821115612ceb57612cea61292d565b5b602082029050602081019050919050565b6000612d0f612d0a84612cd0565b61298d565b90508083825260208201905060208402830185811115612d3257612d316129d4565b5b835b81811015612d5b5780612d4788826126d9565b845260208401935050602081019050612d34565b5050509392505050565b600082601f830112612d7a57612d79612928565b5b8135612d8a848260208601612cfc565b91505092915050565b60008060408385031215612daa57612da9612686565b5b600083013567ffffffffffffffff811115612dc857612dc761268b565b5b612dd485828601612d65565b925050602083013567ffffffffffffffff811115612df557612df461268b565b5b612e0185828601612a42565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612e40816126ee565b82525050565b6000612e528383612e37565b60208301905092915050565b6000602082019050919050565b6000612e7682612e0b565b612e808185612e16565b9350612e8b83612e27565b8060005b83811015612ebc578151612ea38882612e46565b9750612eae83612e5e565b925050600181019050612e8f565b5085935050505092915050565b60006020820190508181036000830152612ee38184612e6b565b905092915050565b600060ff82169050919050565b612f0181612eeb565b82525050565b6000602082019050612f1c6000830184612ef8565b92915050565b612f2b81612eeb565b8114612f3657600080fd5b50565b600081359050612f4881612f22565b92915050565b600060208284031215612f6457612f63612686565b5b6000612f7284828501612f39565b91505092915050565b612f84816126b0565b82525050565b6000602082019050612f9f6000830184612f7b565b92915050565b600067ffffffffffffffff821115612fc057612fbf61292d565b5b612fc9826128bc565b9050602081019050919050565b6000612fe9612fe484612fa5565b61298d565b90508281526020810184848401111561300557613004612b4c565b5b613010848285612b82565b509392505050565b600082601f83011261302d5761302c612928565b5b813561303d848260208601612fd6565b91505092915050565b60006020828403121561305c5761305b612686565b5b600082013567ffffffffffffffff81111561307a5761307961268b565b5b61308684828501613018565b91505092915050565b61309881612813565b81146130a357600080fd5b50565b6000813590506130b58161308f565b92915050565b600080604083850312156130d2576130d1612686565b5b60006130e0858286016126d9565b92505060206130f1858286016130a6565b9150509250929050565b6000806040838503121561311257613111612686565b5b6000613120858286016126d9565b9250506020613131858286016126d9565b9150509250929050565b600080600080600060a0868803121561315757613156612686565b5b6000613165888289016126d9565b9550506020613176888289016126d9565b94505060406131878882890161270f565b93505060606131988882890161270f565b925050608086013567ffffffffffffffff8111156131b9576131b861268b565b5b6131c588828901612bd3565b9150509295509295909350565b6000602082840312156131e8576131e7612686565b5b60006131f6848285016126d9565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b600061325b602a83612881565b9150613266826131ff565b604082019050919050565b6000602082019050818103600083015261328a8161324e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806132d857607f821691505b6020821081036132eb576132ea613291565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061332f816126c2565b92915050565b60006020828403121561334b5761334a612686565b5b600061335984828501613320565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff82169050919050565b60006133b082613391565b915067ffffffffffffffff82036133ca576133c9613362565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613431602f83612881565b915061343c826133d5565b604082019050919050565b6000602082019050818103600083015261346081613424565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061349d601f83612881565b91506134a882613467565b602082019050919050565b600060208201905081810360008301526134cc81613490565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061352f602983612881565b915061353a826134d3565b604082019050919050565b6000602082019050818103600083015261355e81613522565b9050919050565b6000613570826126ee565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135a2576135a1613362565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261360f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826135d2565b61361986836135d2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061365661365161364c846126ee565b613631565b6126ee565b9050919050565b6000819050919050565b6136708361363b565b61368461367c8261365d565b8484546135df565b825550505050565b600090565b61369961368c565b6136a4818484613667565b505050565b5b818110156136c8576136bd600082613691565b6001810190506136aa565b5050565b601f82111561370d576136de816135ad565b6136e7846135c2565b810160208510156136f6578190505b61370a613702856135c2565b8301826136a9565b50505b505050565b600082821c905092915050565b600061373060001984600802613712565b1980831691505092915050565b6000613749838361371f565b9150826002028217905092915050565b61376282612876565b67ffffffffffffffff81111561377b5761377a61292d565b5b61378582546132c0565b6137908282856136cc565b600060209050601f8311600181146137c357600084156137b1578287015190505b6137bb858261373d565b865550613823565b601f1984166137d1866135ad565b60005b828110156137f9578489015182556001820191506020850194506020810190506137d4565b868310156138165784890151613812601f89168261371f565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613887602683612881565b91506138928261382b565b604082019050919050565b600060208201905081810360008301526138b68161387a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006138f3602083612881565b91506138fe826138bd565b602082019050919050565b60006020820190508181036000830152613922816138e6565b9050919050565b61393281613391565b811461393d57600080fd5b50565b60008151905061394f81613929565b92915050565b60006020828403121561396b5761396a612686565b5b600061397984828501613940565b91505092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006139de602183612881565b91506139e982613982565b604082019050919050565b60006020820190508181036000830152613a0d816139d1565b9050919050565b6000613a1f826126ee565b9150613a2a836126ee565b9250828201905080821115613a4257613a41613362565b5b92915050565b6000604082019050613a5d6000830185612764565b613a6a6020830184612764565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613acd602883612881565b9150613ad882613a71565b604082019050919050565b60006020820190508181036000830152613afc81613ac0565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613b5f602583612881565b9150613b6a82613b03565b604082019050919050565b60006020820190508181036000830152613b8e81613b52565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613bf1602a83612881565b9150613bfc82613b95565b604082019050919050565b60006020820190508181036000830152613c2081613be4565b9050919050565b60006040820190508181036000830152613c418185612e6b565b90508181036020830152613c558184612e6b565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613cba602983612881565b9150613cc582613c5e565b604082019050919050565b60006020820190508181036000830152613ce981613cad565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613d4c602383612881565b9150613d5782613cf0565b604082019050919050565b60006020820190508181036000830152613d7b81613d3f565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000613dde602483612881565b9150613de982613d82565b604082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613e3b82613e14565b613e458185613e1f565b9350613e55818560208601612892565b613e5e816128bc565b840191505092915050565b600060a082019050613e7e6000830188612f7b565b613e8b6020830187612f7b565b613e986040830186612764565b613ea56060830185612764565b8181036080830152613eb78184613e30565b90509695505050505050565b600081519050613ed2816127ba565b92915050565b600060208284031215613eee57613eed612686565b5b6000613efc84828501613ec3565b91505092915050565b60008160e01c9050919050565b600060033d1115613f315760046000803e613f2e600051613f05565b90505b90565b600060443d10613fc157613f4661267c565b60043d036004823e80513d602482011167ffffffffffffffff82111715613f6e575050613fc1565b808201805167ffffffffffffffff811115613f8c5750505050613fc1565b80602083010160043d038501811115613fa9575050505050613fc1565b613fb88260200185018661295c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614020603483612881565b915061402b82613fc4565b604082019050919050565b6000602082019050818103600083015261404f81614013565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006140b2602883612881565b91506140bd82614056565b604082019050919050565b600060208201905081810360008301526140e1816140a5565b9050919050565b600060a0820190506140fd6000830188612f7b565b61410a6020830187612f7b565b818103604083015261411c8186612e6b565b905081810360608301526141308185612e6b565b905081810360808301526141448184613e30565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006141ac602883612881565b91506141b782614150565b604082019050919050565b600060208201905081810360008301526141db8161419f565b905091905056fe697066733a2f2f516d58456b4452565762734d45694a6d6e6b33324d3277364733415762726a486e746e3650327679666b71785542a2646970667358221220e1e0b862a25970d513750c5787c65531a78f474ac707524fbaac5751d429006064736f6c63430008100033

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

0000000000000000000000008dc7b6ec6fafa36085ee9ec8e39112428d3360aa

-----Decoded View---------------
Arg [0] : sneakerheadsContract (address): 0x8dC7b6EC6FafA36085EE9ec8e39112428D3360aa

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008dc7b6ec6fafa36085ee9ec8e39112428d3360aa


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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.